:root {
  --ink: #192540;
  --navy: #101b32;
  --muted: #47546b;
  --cream: #fff5dd;
  --yellow: #ffdb73;
  --gold: #755319;
  --white: #fff;
  --line: #d3dbe8;
  --light: #edf2f8;
  --radius: 1.15rem;
  --dark-muted: #c6d2e8;
  --focus: #0470bd;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.75 "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.27; }
h1, h2, h3, p, dd { overflow-wrap: anywhere; }
ul, ol { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:where(a, button, input, select, summary, [tabindex="0"]):focus-visible {
  outline: 3px solid #0965ac;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
section[id], #main { scroll-margin-top: 5.5rem; }
.wrap { width: min(1176px, calc(100% - clamp(32px, 7vw, 104px))); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 5;
  top: .6rem;
  left: .6rem;
  padding: .45rem 1rem;
  background: var(--white);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid #324363;
  background: var(--navy);
  color: var(--white);
}
.header-inner { display: flex; align-items: center; gap: clamp(.55rem, 2vw, 1.8rem); min-height: 72px; }
.brand {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  min-height: 44px;
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}
.brand small { font-size: .83em; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--yellow);
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1;
}
.main-nav {
  display: flex;
  margin-left: auto;
  gap: clamp(.75rem, 1.8vw, 1.55rem);
  font-weight: 700;
  font-size: .88rem;
}
.main-nav a, .login-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .login-link:hover { text-decoration: underline; }
.main-nav a[aria-current="location"], .mobile-nav a[aria-current="location"] {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: .4em;
}
.site-header a:focus-visible, .site-header summary:focus-visible { outline-color: var(--yellow); }
.mobile-nav { display: none; }
.login-link { flex: none; border: 1px solid #647598; border-radius: .58rem; padding: 0 .9rem; font-size: .85rem; font-weight: 800; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(2.7rem, 5.7vw, 5.75rem) 0 1.1rem;
  background:
    radial-gradient(ellipse at 88% 26%, #293e63 0%, transparent 60%),
    linear-gradient(155deg, #101b32 18%, #152744 100%);
  color: var(--white);
}
.hero-grid, .split, .cost-grid, .pricing-grid, .faq-grid, .contact-grid, .csv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
}
.hero-grid { align-items: center; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); }
.kicker { color: var(--gold); margin-bottom: .65rem; font-size: .87rem; font-weight: 800; letter-spacing: .06em; }
.hero h1 { font-size: clamp(2.35rem, 4.75vw, 4.45rem); font-weight: 700; line-height: 1.18; letter-spacing: -.055em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-lede { margin-top: 1.25rem; max-width: 29em; color: var(--dark-muted); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.85; }
.actions, .section-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .8rem; }
.hero .actions, .contact .actions { margin-top: 1.4rem; }
.button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .55rem .95rem;
  border-radius: .64rem;
  border: 1px solid transparent;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
}
.button-dark { background: var(--navy); color: var(--white); }
.button-dark:hover { background: #263659; }
.button-dark:disabled { background: #e0e5ef; color: #43516a; }
.button-outline { border-color: var(--navy); background: var(--white); color: var(--ink); }
.button-outline:hover, .button-text:hover { background: var(--light); }
.button-text, .text-link { background: transparent; color: var(--ink); text-decoration: underline; }
.text-link { padding-inline: 0; text-align: start; }
.hero-price { display: inline-flex; align-items: baseline; gap: .25rem; margin-top: 1rem; padding: .25rem .74rem; border: 1px solid #627292; border-radius: .6rem; font-size: .89rem; font-weight: 750; }
.hero-price strong { font-size: 1.4rem; color: var(--yellow); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.hero-points {
  display: flex;
  gap: .55rem 2rem;
  flex-wrap: wrap;
  margin-top: clamp(2.3rem, 4vw, 4rem);
  padding: .8rem 0 0;
  border-top: 1px solid #627292;
  list-style: none;
  font-size: .87rem;
  font-weight: 750;
}
.check-list li::before {
  content: "";
  display: inline-block;
  width: .38rem;
  height: .68rem;
  margin-right: .64rem;
  border: solid var(--gold);
  border-width: 0 .13rem .13rem 0;
  transform: rotate(42deg);
}
.product-window { position: relative; overflow: hidden; border: 1px solid #7084a7; border-radius: 1.25rem; background: #fff; color: var(--ink); box-shadow: 0 24px 65px #050a18a2; }
.window-bar, .window-foot, .window-title, .panel-heading, .demo-toolbar, .csv-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
}
.window-bar { padding: .62rem .95rem; background: var(--navy); color: #fff; font-size: .76rem; font-weight: 750; }
.window-brand { display: inline-flex; align-items: center; gap: .45rem; }
.window-brand > span { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: .28rem; background: var(--yellow); color: var(--navy); }
.window-main { padding: clamp(.65rem, 2.3vw, 1.35rem); }
.window-title p, .panel-heading p { color: var(--muted); font-size: .85rem; font-weight: 700; }
.window-title h2 { margin-top: .2rem; font-size: clamp(1.2rem, 2.7vw, 1.55rem); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-block: .9rem; }
.mini-stats > div { padding: .55rem .5rem; border-radius: .66rem; background: #eff3fa; }
.mini-stats dt { color: #46536c; font-size: .76rem; font-weight: 700; }
.mini-stats dd { font-size: clamp(1.05rem, 2.2vw, 1.7rem); font-weight: 850; line-height: 1.35; }
.mini-stats dd span { margin-left: .1rem; font-size: .76rem; }
.mini-rows, .demo-recipients { padding: 0; border-top: 1px solid var(--line); list-style: none; }
.mini-rows li, .demo-recipients li { display: flex; align-items: center; gap: .52rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.mini-rows li > span:nth-child(2), .demo-recipients li > span:first-child { min-width: 0; flex: 1; font-size: .89rem; font-weight: 750; overflow-wrap: anywhere; }
.mini-rows small, .demo-recipients small { display: block; font-size: .76rem; font-weight: 500; color: var(--muted); }
.avatar { flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #e9edf5; color: var(--navy); font-weight: 800; font-size: .78rem; }
.badge { display: inline-block; border-radius: 1rem; padding: .16rem .54rem; font-size: .76rem; font-weight: 800; line-height: 1.45; text-align: center; white-space: nowrap; }
.badge-ok { color: #174d3c; background: #ddf2e9; }
.badge-stop { color: #772d39; background: #f9e6eb; }
.badge-neutral { color: #394861; background: #e8edf5; }
.badge-wait { color: #654207; background: #fff0bf; }
.window-foot { margin-top: .8rem; color: var(--muted); font-size: .78rem; }
.mini-button { background: var(--navy); color: var(--white); padding: .28rem .55rem; border-radius: .35rem; font-weight: 750; }
.hero-figure figcaption { position: relative; margin-top: .65rem; color: var(--dark-muted); font-size: .8rem; text-align: right; }

.section { padding: clamp(3.75rem, 6.9vw, 6.65rem) 0; }
.section-cream { background: var(--cream); }
.section-navy { color: var(--white); background: var(--navy); }
.section-navy :where(a, button, input, select, [tabindex="0"]):focus-visible { outline-color: #d28b18; }
.section-navy .kicker { color: var(--yellow); }
.section-navy .section-head > p, .section-navy .section-lede { color: #e0e6f2; }
.section h2 { font-size: clamp(1.96rem, 3.42vw, 3.45rem); font-weight: 600; line-height: 1.28; letter-spacing: -.04em; }
.section h3 { font-size: 1.13rem; font-weight: 600; }
.section-head { align-items: end; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); margin-bottom: clamp(1.5rem, 3vw, 2.3rem); }
.section-head > p, .section-lede, .contact-grid > div > p:not(.kicker) { color: var(--muted); }
.section-lede, .contact-grid > div > p:not(.kicker) { margin-top: .85rem; }
.section-actions { margin-top: 1.25rem; }

.scenario-grid, .status-grid, .flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.scenario-grid article, .status-grid article, .flow-grid li {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.scenario-grid article > p, .status-grid article > p, .flow-grid li > p { margin-top: .55rem; color: var(--muted); font-size: .94rem; }
.scenario-grid .scenario-tip { border-top: 1px solid var(--line); margin-top: .95rem; padding-top: .68rem; color: var(--gold); font-size: .84rem; font-weight: 700; }
.scenario-tip strong { display: block; color: var(--ink); }
.comparison { margin-top: 1.55rem; padding: clamp(1rem, 2.5vw, 1.65rem); border-radius: var(--radius); background: var(--light); }
.comparison > h3 { margin-bottom: .7rem; }
.comparison-rows > div { display: grid; grid-template-columns: .33fr 1fr 1fr; gap: .75rem; border-top: 1px solid #cbd5e5; padding-block: .65rem; }
.comparison-rows dt { font-weight: 825; }
.comparison-rows dd { color: var(--muted); font-size: .9rem; }
.comparison-rows dd > span { display: block; color: var(--navy); font-size: .83rem; font-weight: 800; }

.flow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; }
.flow-grid li { border-color: #e3cea0; }
.step-number {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: .7rem;
  border-radius: 50%;
  background: #ffebad;
  color: #503b15;
  font-weight: 850;
  line-height: 1;
}
.start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.demo-box { background: var(--white); color: var(--ink); border: 1px solid #8fa3c8; border-radius: calc(var(--radius) + .25rem); overflow: clip; box-shadow: 0 23px 75px #020a1a70; }
.demo-toolbar { padding: .7rem clamp(.9rem, 3vw, 1.6rem); background: var(--light); }
.demo-toolbar > p { font-weight: 830; }
.demo-toolbar > p span { margin-left: .35rem; font-size: .82rem; font-weight: 650; color: var(--muted); }
.demo-toolbar label { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .875rem; font-weight: 750; }
.demo-toolbar select, .demo-inputs input, .cost-fields input {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #8290a7;
  background: var(--white);
  color: var(--ink);
  border-radius: .5rem;
  padding: .4rem .62rem;
  font-size: 1rem;
}
.demo-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .45rem .45rem 0; border-bottom: 1px solid var(--line); }
.demo-tabs button { min-height: 48px; border: 0; border-bottom: 3px solid transparent; background: var(--white); color: var(--muted); font-size: .9rem; font-weight: 800; }
.demo-tabs button:hover { background: var(--light); }
.demo-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: #845500; background: #fff1c9; }
.demo-tabs button:focus-visible { outline-offset: -4px; }
.demo-panel { padding: 1.3rem clamp(.9rem, 3vw, 1.6rem); }
.demo-panel:focus-visible { outline-offset: -4px; }
.demo-panel + .demo-panel { border-top: 1px solid var(--line); }
.panel-heading h3 { margin-top: .2rem; font-size: clamp(1.24rem, 2.2vw, 1.55rem); }
.panel-note { margin-top: .65rem; color: var(--muted); font-size: .925rem; }
.demo-recipients, .demo-message { margin-top: .8rem; }
.demo-recipients li { gap: .7rem; }
.demo-action, .review-confirm .button { margin-top: .75rem; }
.demo-inputs, .cost-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .85rem; }
.demo-inputs label, .cost-fields label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 750; }
.demo-inputs input, .cost-fields input { width: 100%; min-width: 0; }
.demo-message > div { display: grid; grid-template-columns: 3rem 1fr; padding: .55rem .65rem; background: var(--light); }
.demo-message dt { font-weight: 780; }
.demo-message > div + div { border-top: 1px solid var(--line); }
.review-confirm { margin-top: .8rem; }
.review-confirm > label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 760; }
.review-confirm input { width: 1.25rem; height: 1.25rem; accent-color: var(--navy); }
.result-stats { max-width: 29rem; }
.demo-disclaimer { padding: .7rem clamp(.9rem, 3vw, 1.6rem); border-top: 1px solid var(--line); background: #f3f5fa; color: var(--muted); font-size: .83rem; }
.csv-grid { gap: .9rem; }
.csv-sheet, .check-card, .cost-box, .contact-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.csv-caption { padding: .6rem .95rem; border-bottom: 1px solid var(--line); background: var(--light); border-radius: var(--radius) var(--radius) 0 0; }
.csv-caption a, .faq-list p a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 750; }
.csv-columns { padding-inline: .95rem; }
.csv-columns > div { display: grid; grid-template-columns: minmax(6.6rem, .45fr) 1fr; align-items: baseline; gap: .55rem; padding-block: .55rem; }
.csv-columns > div + div { border-top: 1px solid var(--line); }
.csv-columns dt span { font-size: .76rem; color: var(--muted); font-weight: 700; }
.csv-columns dd { color: var(--muted); font-size: .93rem; }
code { background: #edf1f8; border-radius: .24rem; padding: .08rem .27rem; font: .94em ui-monospace, monospace; }
.check-card, .cost-box, .contact-card { padding: clamp(1rem, 2.6vw, 1.55rem); }
.check-list { padding: 0; margin-top: .6rem; list-style: none; }
.check-list li { position: relative; padding-left: 1.4rem; margin-top: .35rem; }
.check-list li::before { position: absolute; left: .22rem; top: .36rem; }
.inline-details { margin-top: 1rem; border-bottom: 1px solid var(--line); }
.inline-details > p { color: var(--muted); margin: .15rem 0 .65rem; }

.status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.status-grid article { border-color: #e3cea0; }
.status-grid h3 { margin-top: .5rem; }
.callout { margin-top: 1.25rem; padding: .9rem 1rem .5rem; border-left: 3px solid #a66d11; background: #fffbf0; }
.callout p { color: var(--muted); }
.callout .text-link { min-height: 44px; }

.cost-grid { align-items: start; }
.cost-box { background: var(--light); }
.cost-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 .9rem; }
.cost-box .actions { gap: .2rem .45rem; }
.cost-box .button-text { padding-inline: .5rem; }
.cost-result { display: block; padding: .65rem .8rem; margin-top: .65rem; background: #e8eef9; border-radius: .5rem; font-size: .96rem; font-weight: 760; overflow-wrap: anywhere; }
.secondary-note { color: var(--muted); margin-top: .65rem; font-size: .9rem; }
.pricing-grid { align-items: center; }
.price-card { background: var(--navy); color: var(--white); border-radius: calc(var(--radius) + .3rem); padding: clamp(1.3rem, 3.8vw, 2.8rem); box-shadow: 0 22px 60px #64480830; }
.price-card .actions { margin-top: .9rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .24rem; font-weight: 800; }
.price strong { font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1.2; letter-spacing: -.065em; }
.price span { white-space: nowrap; }
.faq-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list p { margin: 0 0 .75rem; color: var(--muted); }
.faq-list p a { margin-left: .3rem; }
summary { display: flex; justify-content: space-between; align-items: center; gap: .65rem; cursor: pointer; min-height: 48px; padding: .48rem 0; list-style: none; font-weight: 780; line-height: 1.48; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: 0 0 .58rem;
  height: .58rem;
  margin-right: .2rem;
  border: solid var(--gold);
  border-width: 0 .12rem .12rem 0;
  transform: translateY(-.14rem) rotate(45deg);
}
details[open] > summary::after { transform: translateY(.14rem) rotate(225deg); }
.contact { position: relative; overflow: hidden; background: radial-gradient(ellipse at 78% 0%, #2b4168, transparent 67%), var(--navy); }
.contact-grid { align-items: center; }
.contact-card { color: var(--ink); border-color: #9babca; }
.contact-card p { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.site-footer { padding-block: 1.25rem; border-top: 1px solid #324363; background: var(--navy); color: var(--white); }
.footer-inner, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem 1rem; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .83rem; }
.footer-inner > small { color: var(--dark-muted); font-size: .8rem; }

@media (max-width: 950px) {
  .main-nav { gap: .75rem; }
  .cost-fields { grid-template-columns: 1fr; }
  .status-grid, .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 790px) {
  .header-inner { justify-content: space-between; min-height: 62px; }
  .main-nav { display: none; }
  .hero-grid, .split, .cost-grid, .pricing-grid, .faq-grid, .contact-grid, .csv-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { width: min(100%, 36rem); justify-self: center; }
  .section-head { gap: .7rem; margin-bottom: 1.15rem; }
  .scenario-grid, .start-grid { grid-template-columns: minmax(0, 1fr); }
  .comparison-rows > div { grid-template-columns: 1fr 1fr; }
  .comparison-rows dt { grid-column: 1 / -1; }
  .footer-inner { justify-content: flex-start; }
}

@media (max-width: 425px) {
  .wrap { width: calc(100% - 30px); }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 29px; height: 29px; }
  .login-link { padding-inline: .55rem; }
  .hero h1 { font-size: clamp(2rem, 8.1vw, 2.68rem); }
  .hero-points { gap: .4rem .9rem; }
  .avatar { display: none; }
  .mini-rows li > span:nth-child(2) { font-size: .83rem; }
  .demo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-inputs { grid-template-columns: 1fr; }
  .status-grid, .flow-grid { grid-template-columns: 1fr; }
  .csv-columns > div { grid-template-columns: 1fr; gap: .15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Presentation and navigation */
.brand-mark { background: var(--yellow); color: var(--navy); }
.hero::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(125deg, transparent 0 52px, #b2c7ee16 52px 53px, transparent 53px 105px);
  mask-image: linear-gradient(95deg, transparent 38%, #000 93%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--yellow);
  letter-spacing: .025em;
}

.hero-kicker::before, .kicker:not(.hero-kicker)::before {
  content: "";
  display: inline-block;
  flex: none;
  width: .72rem;
  height: .13rem;
  margin-right: .42rem;
  vertical-align: .28em;
  background: currentColor;
}

.hero-kicker::before { margin: 0; }
.hero h1 > span, .hero h1 > em, .section h2 > span { display: block; }
.section h2 > span { word-break: auto-phrase; text-wrap: pretty; }
.hero h1 > em { margin-top: .04em; }
.hero .actions { margin-top: 1.55rem; gap: .72rem; }

.button-accent { border-color: var(--yellow); background: var(--yellow); color: var(--navy); }
.button-accent:hover { border-color: #ffe7a3; background: #ffe7a3; }
.hero .button-outline, .contact .button-outline {
  border-color: #8294b7;
  background: transparent;
  color: var(--white);
}
.hero .button-outline:hover, .contact .button-outline:hover { background: #ffffff16; }
.hero a:focus-visible, .site-footer a:focus-visible { outline-color: var(--yellow); }

.hero-microcopy { margin-top: .58rem; color: var(--dark-muted); font-size: .86rem; }
.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-block: 0; }
.hero-points li + li { border-left: 1px solid #627292; }
.hero-points a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 50px;
  padding: .25rem .38rem;
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
}
.hero-points a::before {
  content: "";
  flex: none;
  width: .43rem;
  height: .43rem;
  border-radius: 50%;
  background: var(--yellow);
}
.hero-points a:hover { text-decoration: underline; }

.hero-figure { position: relative; isolation: isolate; }
.hero-figure::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: .9rem -.7rem 2rem .75rem;
  border: 1px solid #91a7cb75;
  border-radius: 1.25rem;
  background: #506b962e;
  transform: rotate(2.4deg);
  pointer-events: none;
}

.window-bar { border-bottom: 1px solid #435579; background: #172846; padding-block: .72rem; }
.window-main { padding-block: clamp(.8rem, 1.9vw, 1.35rem); }
.window-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .85rem;
  margin-top: .74rem;
  padding: .42rem .58rem;
  border-left: 3px solid #a07527;
  border-radius: .3rem;
  background: #f4f6fb;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  list-style: none;
}
.window-steps li + li::before {
  content: "";
  display: inline-block;
  width: .31rem;
  height: .31rem;
  margin: 0 .7rem .09rem 0;
  border: solid #7a889e;
  border-width: .1rem .1rem 0 0;
  transform: rotate(45deg);
}
.window-steps [aria-current] { color: var(--ink); font-weight: 850; }
.mini-stats dd { font-variant-numeric: tabular-nums; }
.product-window .mini-stats > :nth-child(2) { background: #fff0bd; }
.product-window .mini-stats > :nth-child(3) { background: #f1eaf0; }
.product-window .mini-rows li:nth-child(even) { background: #f8faff; }
.product-window .mini-button { border-radius: .45rem; }

.section-sand { background: #fffbf0; }
.section-mist { background: #eff3f8; }
.section-price { background: linear-gradient(128deg, #ffedb6, #ffdc78); }
.section-head > p { max-width: 39em; }
.section .kicker { margin-bottom: .75rem; font-size: .84rem; }
#workflow .flow-grid li, #getting-started .flow-grid li {
  position: relative;
  border: 0;
  border-top: 2px solid #ad8750;
  border-radius: 0 0 .75rem .75rem;
  background: #f3f6fc;
}
#workflow .flow-grid li:nth-child(3) { background: #fff0c9; }
#workflow .step-number, #getting-started .step-number {
  width: 2.15rem;
  height: 2.15rem;
  font-variant-numeric: tabular-nums;
  background: var(--navy);
  color: var(--white);
}
#workflow .flow-grid li:nth-child(3) .step-number { background: #795515; }
#workflow .section-actions, #getting-started .section-actions { border-top: 1px solid var(--line); padding-top: .85rem; }

#demo {
  background:
    radial-gradient(ellipse at 88% 12%, #263c62, transparent 62%),
    var(--navy);
}
.demo-toolbar { background: #e9eff8; border-bottom: 1px solid #bdcade; }
.demo-toolbar label { gap: .4rem .65rem; }
.demo-toolbar select { border-color: #667a9e; }
.demo-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  line-height: 1.38;
}
.demo-tabs button > span {
  color: #4c5f80;
  font: 750 .78rem system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.demo-tabs button[aria-selected="true"] > span { color: #704800; }
.demo-panel { padding-block: clamp(1.2rem, 2.7vw, 1.75rem); }
.demo-panel p:not(.panel-note) { line-height: 1.55; }
.demo-disclaimer { background: #eaf0f8; border-top-color: #bdcade; }

.scenario-grid article { border-color: #dad2bd; box-shadow: 0 10px 20px #2b24070d; }
.scenario-mark {
  position: relative;
  display: block;
  width: 2.45rem;
  height: 2.45rem;
  margin-bottom: .72rem;
  border-radius: .65rem;
  background: #ebf2ff;
  color: #263e65;
}
.scenario-mark::before, .scenario-mark::after {
  content: "";
  display: block;
  position: absolute;
  border-color: currentColor;
}
.mark-service::before { inset: .62rem .55rem; border: .11rem solid; border-radius: .18rem; }
.mark-service::after { width: .7rem; height: .12rem; left: .84rem; top: 1.16rem; background: currentColor; }
.mark-event { background: #ffefbc; color: #795515; }
.mark-event::before { inset: .66rem .54rem .49rem; border: .11rem solid; border-radius: .18rem; }
.mark-event::after { inset: .94rem .54rem auto; border-top: .11rem solid; }
.mark-material { background: #e1f1ef; color: #194b42; }
.mark-material::before { inset: .52rem .63rem; border: .11rem solid; border-radius: .16rem; }
.mark-material::after { inset: 1.02rem .88rem .99rem; border-block: .1rem solid; }
.comparison { background: #f1ead9; }
.comparison-rows dd:last-child { padding-inline-start: .5rem; border-left: 2px solid #aa843e; color: var(--ink); }

.csv-sheet { border-color: #9cacca; box-shadow: 0 10px 30px #10214617; }
.csv-caption { background: #172846; color: #fff; }
.file-tag { display: inline-block; margin-right: .35rem; padding: .12rem .35rem; border: 1px solid #a2b4d5; border-radius: .3rem; font: 800 .75rem system-ui, sans-serif; }
.csv-columns > div:nth-child(2n) { background: #f1f5fb; }
.csv-columns > div { padding-inline: .42rem; }
.check-card { border-color: #e4d6b7; background: #fffbef; }
.status-grid article { border-top: 3px solid #958267; }
.status-grid article:nth-child(1) { border-top-color: #37775f; }
.status-grid article:nth-child(2) { border-top-color: #a45768; }
.status-grid article:nth-child(3) { border-top-color: #647b9f; }
.status-grid article:nth-child(4) { border-top-color: #976715; }
.callout { border-radius: 0 .65rem .65rem 0; }

.cost-box { background: #fff; box-shadow: 0 12px 28px #15284615; }
.cost-result { border-left: 3px solid #41648f; background: #e8f0fc; font-variant-numeric: tabular-nums; }
.price-card .price { padding-block: .35rem .7rem; border-bottom: 1px solid #56698c; }
.price-card .price strong { color: var(--yellow); font-variant-numeric: tabular-nums; }
.price-card .text-link { color: var(--white); }
.price-card .check-list li::before { border-color: var(--yellow); }
.price-card h3 { color: var(--dark-muted); }
#pricing h2 > span:last-child { color: #67440f; }
.faq-list { overflow: hidden; padding-inline: clamp(.85rem, 2.4vw, 1.4rem); border: 1px solid #bdcadf; border-radius: var(--radius); background: #fff; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary:hover { color: #25588b; }
.faq-list summary:focus-visible { outline-offset: -2px; }
.contact-grid > div > p:not(.kicker) { color: var(--dark-muted); }
.contact-card { box-shadow: 0 18px 45px #060c1966; }
.contact-card a:focus-visible { outline-color: var(--focus); }

@media (max-width: 1040px) and (min-width: 791px) {
  .hero h1 { font-size: clamp(2.42rem, 4.55vw, 3.9rem); }
  .main-nav { gap: .65rem; }
}
@media (max-width: 790px) {
  .mobile-nav { display: block; position: relative; margin-left: auto; }
  .mobile-nav summary {
    min-height: 44px;
    gap: .38rem;
    padding: 0 .44rem;
    font-size: .8rem;
    font-weight: 780;
  }
  .mobile-nav summary::after { border-color: var(--yellow); }
  .mobile-nav nav {
    display: grid;
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    width: min(15rem, 64vw);
    max-height: calc(100dvh - 84px);
    overflow: auto;
    border: 1px solid #7589ad;
    border-radius: .7rem;
    padding: .3rem .72rem;
    background: var(--navy);
    box-shadow: 0 12px 40px #0b102662;
  }
  .mobile-nav nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .88rem; font-weight: 750; }
  .mobile-nav nav a + a { border-top: 1px solid #435579; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 1.65rem; }
}
@media (max-width: 425px) {
  .header-inner { gap: .29rem; }
  .brand { gap: .3rem; font-size: 1.03rem; }
  .brand-mark { width: 27px; height: 27px; }
  .login-link { font-size: .77rem; }
  .hero h1 { letter-spacing: -.04em; }
  .hero-points { gap: 0; font-size: .74rem; }
  .hero-points a { padding-inline: .21rem; }
  .hero-points a::before { display: none; }
  .hero .button { padding-inline: .65rem; font-size: .87rem; }
  .demo-tabs button { gap: .25rem; }
  .comparison-rows dd { overflow-wrap: anywhere; }
}

/* Movement follows reading and interaction. Layout and text remain available without it. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes enter-content {
    from { opacity: .55; transform: translateY(.72rem); }
    to { opacity: 1; transform: none; }
  }

  @keyframes enter-window {
    from { opacity: .64; transform: translateY(.85rem) scale(.985); }
    to { opacity: 1; transform: none; }
  }

  @keyframes mark-row {
    from { background-color: #ffe49c; }
  }

  @keyframes swap-panel {
    from { opacity: .65; transform: translateY(.24rem); }
    to { opacity: 1; transform: none; }
  }

  .hero-kicker, .hero h1, .hero-lede, .hero .actions { animation: enter-content 530ms cubic-bezier(.2,.72,.32,1) both; }
  .hero h1 { animation-delay: 60ms; }
  .hero-lede { animation-delay: 125ms; }
  .hero .actions { animation-delay: 180ms; }
  .product-window { animation: enter-window 740ms cubic-bezier(.2,.72,.32,1) 90ms both; }
  .product-window .mini-rows li:nth-child(2) { animation: mark-row 870ms ease-out 570ms; }

  [data-reveal].in-view:not(.reveal-group), .reveal-group.in-view > * {
    animation: enter-content 500ms cubic-bezier(.2,.72,.32,1) both;
  }
  .reveal-group.in-view > :nth-child(2) { animation-delay: 55ms; }
  .reveal-group.in-view > :nth-child(3) { animation-delay: 110ms; }
  .reveal-group.in-view > :nth-child(4) { animation-delay: 165ms; }

  .demo-tabs:not([hidden]) ~ .demo-panel:not([hidden]) { animation: swap-panel 220ms ease-out both; }
  .button { transition: background-color 165ms ease, border-color 165ms ease, transform 145ms ease; }
  .button:active:not(:disabled) { transform: translateY(1px); }

  @media (hover: hover) {
    .button:hover:not(:disabled) { transform: translateY(-2px); }
    .scenario-grid article { transition: box-shadow 180ms ease; }
    .scenario-grid article:hover { box-shadow: 0 13px 30px #2b240721; }
  }
}

@media (max-width: 365px) {
  .header-inner { gap: .22rem; }
  .brand { font-size: .94rem; }
  .brand-mark { width: 25px; height: 25px; font-size: 1.08rem; }
  .mobile-nav summary { gap: .26rem; padding-inline: .33rem; }
  .login-link { padding-inline: .43rem; }
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.system-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.system-card h3 { font-size: clamp(1.18rem, 2.5vw, 1.65rem); }
.system-card p { max-width: 31em; color: var(--muted); }
.system-card .button { margin-top: auto; }
.system-trial { background: var(--navy); color: var(--white); border-color: var(--navy); }
.system-trial p { color: var(--dark-muted); }
.system-trial a:focus-visible { outline-color: var(--yellow); }

@media (max-width: 700px) {
  .system-grid { grid-template-columns: minmax(0, 1fr); }
}
