:root {
  --bg: #F7F9FC;
  --surface: #EEF2F7;
  --raised: #FFFFFF;
  --ink: #14213D;
  --muted: #4A5670;
  --blue: #006DC6;
  --blue-700: #004E93;
  --orange: #FE7D03;
  --orange-700: #A55101;
  --accent: var(--orange);
  --accent-ink: #14213D;
  --field-blue: #E4F1FC;
  --field-orange: #FFEAD6;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-text: 'Manrope', system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(1.625rem, 1rem + 1.9vw, 2.875rem);
  --step-display: clamp(2.75rem, 1rem + 5vw, 5.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --nav-h: 4.5rem;
  --radius: 0px;
  --card-radius: 18px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
.display { font-family: var(--font-display); font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; }
.head { font-size: var(--step-head); line-height: 1.08; letter-spacing: -0.025em; }
.nums { font-variant-numeric: tabular-nums; }
p { max-width: 62ch; text-wrap: pretty; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: var(--radius); text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button-small { min-height: 2.5rem; padding: 0 1.1rem; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; text-decoration-thickness: 2px; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link[aria-current="true"] { text-decoration-color: var(--orange); }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #FF9532; }
  .link:hover { text-decoration-color: currentColor; }
}

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; height: var(--nav-h); display: flex; align-items: center; gap: 2rem; padding-inline: var(--margin); background: var(--bg); }
.wordmark { margin-right: auto; display: block; transition: opacity var(--t-hover) ease; }
.wordmark img { height: 2.1rem; width: auto; }
.wordmark:active { opacity: 0.8; }
.nav nav { display: flex; gap: 1.75rem; font-size: 0.9375rem; font-weight: 600; }

/* rail: stacked by default, sideways when the screen allows */
.rail { position: relative; padding-top: var(--nav-h); }
.snap { display: none; }
.panel { position: relative; padding-inline: var(--margin); }

/* hero */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.hero-copy { grid-column: 1 / -1; padding-top: 3rem; }
.hero-lead { margin-top: 1.5rem; max-width: 44ch; }
.hero-copy .button { margin-top: 2rem; }
.hero-photo { grid-column: 1 / -1; margin-top: 3rem; }
.hero-photo svg { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.hero-photo figcaption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--muted); }
.hero-stage { grid-column: 1 / -1; margin-top: 3rem; margin-inline: calc(var(--margin) * -1); background: var(--blue); padding: 5.5rem var(--margin) 2rem; display: flex; justify-content: center; clip-path: polygon(0 0, 2.5rem 0, 4.5rem 3.25rem, 7.5rem 0, 100% 0, 100% 100%, 0 100%); }

/* simulation */
.sim { padding-top: 5rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.sim-side { grid-column: 1 / -1; }
.sim-text { margin-top: 1.5rem; max-width: 46ch; }
.sim-stats { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.sim-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; }
.sim-stats dt { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.sim-stats dd { white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: var(--step-head); line-height: 1; color: var(--blue-700); }
.sim-stage { grid-column: 1 / -1; position: relative; margin-top: 2rem; margin-inline: calc(var(--margin) * -1); height: 46rem; overflow: hidden; background: var(--surface); }
.media { position: absolute; inset: 0; opacity: 0; transition: opacity 420ms ease; }
.media.is-on { opacity: 1; }
.media svg { width: 100%; height: 100%; }
.media.is-on svg { animation: drift 18s var(--ease-in-out) infinite alternate; }
.sheet { position: absolute; left: 1rem; top: 1.5rem; bottom: 1.5rem; width: min(35rem, calc(100% - 2rem)); display: flex; flex-direction: column; }

/* features: cards */
.features { background: var(--surface); margin-top: 5rem; padding-block: 4rem; }
.feat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.feat-head p { color: var(--muted); }
.cards { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { display: flex; flex-direction: column; gap: 0.5rem; min-height: 0; overflow: hidden; padding: 1.4rem; background: var(--raised); border-radius: var(--card-radius); transition: transform var(--t-hover) var(--ease-out); }
.card h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
.card p { font-size: 1rem; line-height: 1.45; }
.card-ui { padding-top: 0.75rem; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; overflow: hidden; }
.card-blue { background: var(--blue); color: #FFFFFF; }
.card-orange { background: var(--field-orange); }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-3px); } }

/* pricing */
.pricing { padding-top: 5rem; }
.price-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.price-head p { color: var(--muted); }
.price-cards { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 14px; }
.price-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.5rem; background: var(--raised); border-radius: var(--card-radius); min-height: 0; transition: transform var(--t-hover) var(--ease-out); }
.price-card h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pc-badge { flex: none; padding: 0.2rem 0.6rem; border-radius: 999px; background: #E4F7EC; color: #137A44; font-size: var(--step-small); font-weight: 700; }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; margin-top: 0.35rem; }
.pc-fig { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 2.5vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--blue-700); white-space: nowrap; }
.pc-old { font-size: var(--step-body); font-weight: 600; color: #4A5670; text-decoration-thickness: 2px; white-space: nowrap; }
.pc-per { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.pc-note { font-size: var(--step-small); color: var(--muted); }
.price-list { margin: 0.9rem 0 1.25rem; display: grid; gap: 0.45rem; font-size: 0.9375rem; line-height: 1.35; }
.price-list li { position: relative; padding-left: 1.6rem; }
.price-list li::before { content: ''; position: absolute; left: 0; top: 0.12em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--field-blue); }
.price-list li::after { content: ''; position: absolute; left: 0.38rem; top: 0.32em; width: 0.28rem; height: 0.52rem; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pc-btn { margin-top: auto; width: 100%; }
.price-card-main { background: var(--blue); color: #FFFFFF; }
.price-card-main .pc-fig, .price-card-main .pc-per, .price-card-main .pc-note, .price-card-main .pc-old { color: #FFFFFF; }
.price-card-main .pc-badge { background: #FFFFFF; color: #137A44; }
.price-card-corp .pc-fig { font-size: clamp(1.5rem, 2vw, 2.1rem); color: var(--ink); }
.price-card-corp .pc-note { color: var(--ink); font-size: 0.9375rem; line-height: 1.4; }
.price-card-main .price-list li::before { background: rgba(255, 255, 255, 0.2); }
.price-card-main .price-list li::after { border-color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) { .price-card:hover { transform: translateY(-3px); } }

/* footer */
.foot { --foot-bg: #DDE3EA; margin: 4rem calc(var(--margin) * -1) 0; padding: 2rem var(--margin); background: var(--foot-bg); display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center; }
.foot-brand { justify-self: start; display: block; }
.foot-brand img { height: 6.5rem; width: auto; transition: transform var(--t-hover) var(--ease-out); }
.foot-col { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-line { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.2; }
.foot-legal { font-size: var(--step-small); }
.foot-cta { justify-self: start; display: inline-flex; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem 1rem 1.5rem; background: var(--orange); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); white-space: nowrap; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.foot-cta:active { transform: scale(0.98); }
.arrow { width: 2rem; height: 2rem; flex: none; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .foot-cta:hover { background: #FF9532; }
  .foot-cta:hover .arrow { transform: translate(4px, -4px); }
  .foot-brand:hover img { transform: scale(1.03); }
}

/* ---------- interface fragments ---------- */
[data-ui] { font-family: var(--font-text); color: var(--ink); }
[data-ui].app { background: #F7F9FC; border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(10, 20, 45, 0.45); }
[data-ui] p { max-width: none; }
[data-ui] .app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
[data-ui] .app-caption { font-size: 13px; color: #4A5670; font-weight: 500; }
[data-ui] .app-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
[data-ui] .app-avatar { width: 38px; height: 38px; border-radius: 50%; background: #E4F1FC; color: #004E93; font-weight: 700; display: grid; place-items: center; font-size: 15px; flex: none; }
[data-ui] .app-avatar.sm { width: 32px; height: 32px; font-size: 13px; }
[data-ui] .app-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
[data-ui] .app-card { background: #FFFFFF; border: 1px solid #E1E7EF; border-radius: 14px; padding: 12px 14px; min-width: 0; }
[data-ui] .app-label { font-size: 13px; font-weight: 600; color: #4A5670; }
[data-ui] .app-big { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
[data-ui] .app-of { font-size: 15px; color: #5B6477; font-weight: 500; letter-spacing: 0; }
[data-ui] .app-up { font-size: 13px; color: #137A44; font-weight: 600; }
[data-ui] .app-bar { height: 6px; border-radius: 3px; background: #EEF2F7; overflow: hidden; margin-top: 8px; }
[data-ui] .app-bar span { display: block; height: 100%; background: #006DC6; border-radius: 3px; transition: width 500ms var(--ease-out); }
[data-ui] .app-conn { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-top: 6px; white-space: nowrap; }
[data-ui] .app-conn b { color: #137A44; font-weight: 600; margin-left: auto; padding-left: 6px; }
[data-ui] .app-feed-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
[data-ui] .app-h { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
[data-ui] .app-linkish { font-size: 13px; font-weight: 700; color: #006DC6; }
[data-ui] .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
[data-ui] .dot-tp { background: #A55101; }
[data-ui] .dot-wh { background: #7E8793; }
[data-ui] .dot-vf { background: #006DC6; }
[data-ui] .chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: #EEF2F7; font-size: 13px; font-weight: 600; white-space: nowrap; }
[data-ui] .chip.chip-strong { background: #14213D; color: #FFFFFF; }
[data-ui] .ok { font-size: 13px; font-weight: 700; color: #137A44; background: #E4F7EC; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
[data-ui] .wait { font-size: 13px; font-weight: 700; color: #7A4A0A; background: #FFEFDA; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
[data-ui] .late { font-size: 13px; font-weight: 700; color: #9F2A30; background: #FDE8E9; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
[data-ui] .feed-row { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 10px; }
[data-ui] .feed-row + .feed-row { border-top: 1px solid #EEF2F7; }
[data-ui] .feed-row:first-child { background: #F4F9FE; }
[data-ui] .feed-main { display: flex; flex-direction: column; min-width: 0; }
[data-ui] .feed-main b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-ui] .feed-main small, [data-ui] .feed-time { font-size: 13px; color: #5B6477; }
[data-ui].home { width: min(600px, 100%); align-self: center; }

[data-ui].sheet { padding: 20px; }
[data-ui] .sheet-head { padding-bottom: 12px; }
[data-ui] .sheet-count { background: #FFFFFF; border: 1px solid #E1E7EF; border-radius: 14px; padding: 12px 14px; }
[data-ui] .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
[data-ui] .roll { margin-top: 10px; background: #FFFFFF; border: 1px solid #E1E7EF; border-radius: 14px; padding: 4px 8px; flex: 0 1 auto; min-height: 0; overflow: hidden; }
[data-ui] .roll:empty { display: none; }
[data-ui] .roll .feed-row { grid-template-columns: auto 1fr auto; }
[data-ui] .roll-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
[data-ui] .roll-chip { align-self: flex-start; margin: 3px 0; height: 22px; }
[data-ui] .roll-empty, [data-ui] .roll-done { margin-top: 10px; font-size: 14px; padding: 12px 14px; border-radius: 14px; }
[data-ui] .roll-empty { color: #4A5670; background: #FFFFFF; border: 1px solid #E1E7EF; }
[data-ui] .roll-done { color: #137A44; background: #E4F7EC; font-weight: 700; flex: none; }

[data-ui].mini { width: 100%; padding: 12px; border-radius: 14px; box-shadow: none; background: #F7F9FC; font-size: 13px; }
.card-blue [data-ui].mini { background: #FFFFFF; }
.card-orange [data-ui].mini { background: #FFFFFF; }
[data-ui] .mini-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
[data-ui] .mini-muted, [data-ui] .mini-time { color: #5B6477; font-variant-numeric: tabular-nums; }
[data-ui] .mini-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-ui] .seg { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; margin: 10px 0 2px; }
[data-ui] .seg span { display: block; height: 100%; }
[data-ui] .s-vf { background: #006DC6; }
[data-ui] .s-wh { background: #7E8793; }
[data-ui] .s-tp { background: #A55101; }
[data-ui] .s-free { background: #E1E7EF; }
[data-ui].log li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px; padding: 7px 0; }
[data-ui].log li + li, [data-ui].bill li + li { border-top: 1px solid #E9EEF4; }
[data-ui].bill li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; }
[data-ui] .field-ui { position: relative; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #E1E7EF; border-radius: 10px; padding: 7px 12px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-ui] .field-ui small { font-size: 13px; color: #5B6477; font-weight: 500; }
[data-ui] .check { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: #1AA35B; }
[data-ui] .check::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
[data-ui] .segmented { display: flex; gap: 3px; margin-top: 8px; background: #E9EEF4; border-radius: 10px; padding: 3px; }
[data-ui] .segmented span { flex: 1; text-align: center; padding: 6px 2px; border-radius: 8px; font-weight: 600; color: #4A5670; }
[data-ui] .segmented .on { background: #FFFFFF; color: #004E93; font-weight: 700; }
[data-ui] .bar-row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; padding: 5px 0; }
[data-ui] .bar-row .seg { margin: 0; }
[data-ui] .bar-label { font-weight: 600; white-space: nowrap; }
[data-ui] .bar-num { text-align: right; color: #5B6477; font-variant-numeric: tabular-nums; }
[data-ui].week { display: flex; gap: 6px; }
[data-ui].week span { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; background: #006DC6; color: #FFFFFF; font-weight: 700; }

@keyframes row-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  [data-ui] .feed-row.is-new { animation: row-in 420ms var(--ease-out); }
}

/* ---------- sideways mode ---------- */
@media (min-width: 1000px) and (min-height: 600px) {
  html.is-rail { scroll-snap-type: y mandatory; scrollbar-width: none; }
  html.is-rail::-webkit-scrollbar { display: none; }
  .is-rail .rail { height: calc(4 * 100svh); padding-top: 0; }
  .is-rail .snap { display: block; position: absolute; left: 0; width: 1px; height: 100svh; scroll-snap-align: start; }
  .is-rail .snap:nth-child(1) { top: 0; }
  .is-rail .snap:nth-child(2) { top: 100svh; }
  .is-rail .snap:nth-child(3) { top: 200svh; }
  .is-rail .snap:nth-child(4) { top: 300svh; }
  .is-rail .rail-view { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .is-rail .track { display: flex; height: 100%; will-change: transform; }
  .is-rail .panel { flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; margin: 0; }

  :root {
    --step-display: clamp(2.75rem, min(5.2vw, 9.2svh), 5.5rem);
    --col: calc((100% - 2 * var(--margin) - 11 * var(--gutter)) / 12);
  }

  .is-rail .hero { grid-template-rows: auto 1fr; }
  .is-rail .hero-copy { grid-column: 1 / 7; grid-row: 1; padding-top: max(var(--nav-h) + 1.5rem, 14svh); }
  .is-rail .hero-lead { max-width: 36ch; }
  .is-rail .hero-photo { grid-column: 1 / 6; grid-row: 2; margin-top: 2.5rem; margin-bottom: var(--margin); display: flex; flex-direction: column; min-height: 0; }
  .is-rail .hero-photo svg { flex: 1; min-height: 0; height: 100%; aspect-ratio: auto; }
  .is-rail .hero-stage { grid-column: auto; grid-row: auto; position: absolute; left: calc(var(--margin) + var(--col) * 6 + var(--gutter) * 6); right: 0; top: var(--nav-h); bottom: 0; margin: 0; padding: 4.5rem 2rem 1.5rem; align-items: center; clip-path: polygon(0 0, 3.5rem 0, 6.5rem 4rem, 9.5rem 0, 100% 0, 100% 100%, 0 100%); }

  .is-rail .sim { padding-top: calc(var(--nav-h) + 5svh); align-content: start; }
  .is-rail .sim-side { grid-column: 1 / 6; }
  .is-rail .sim-stage { grid-column: auto; grid-row: auto; position: absolute; top: calc(var(--nav-h) + 1svh); bottom: 0; right: 0; left: calc(var(--margin) + var(--col) * 6 + var(--gutter) * 6); height: auto; margin: 0; }
  .is-rail .sheet { left: 3rem; top: 3rem; bottom: 2rem; width: min(35rem, calc(100% - 5rem)); }

  .is-rail .features { display: flex; flex-direction: column; margin: 0; padding-top: calc(var(--nav-h) + 2svh); padding-bottom: 1.5rem; }
  .is-rail .cards { flex: 1; min-height: 0; margin-top: 1.25rem; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
  .is-rail .card { padding: clamp(1rem, 2.4svh, 1.5rem); }
  .is-rail .card-a { grid-column: 1 / 6; }
  .is-rail .card-b { grid-column: 6 / 10; }
  .is-rail .card-c { grid-column: 10 / 13; }
  .is-rail .card-d { grid-column: 1 / 4; }
  .is-rail .card-e { grid-column: 4 / 9; }
  .is-rail .card-f { grid-column: 9 / 13; }

  .is-rail .pricing { display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 2svh); }
  .is-rail .price-cards { flex: 1; min-height: 0; margin: 1.25rem 0 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .is-rail .price-card { padding: clamp(1rem, 2.6svh, 1.5rem); overflow: hidden; }
  .is-rail .hero h1 { font-size: min(var(--step-display), 4.6vw); }
  .is-rail .foot { margin: 0 calc(var(--margin) * -1); padding: clamp(0.75rem, 2svh, 1.25rem) var(--margin); height: clamp(8.5rem, 20svh, 12rem); grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: clamp(1.5rem, 3vw, 3.5rem); }
  .is-rail .foot-brand img { height: clamp(6rem, 15svh, 9.5rem); }
}

@media (min-height: 600px) and (max-height: 760px) and (min-width: 1000px) {
  .is-rail .price-list { gap: 0.2rem; margin: 0.5rem 0 0.75rem; font-size: 0.875rem; }
  .is-rail .price-card:not(.price-card-corp) .pc-note { display: none; }
  .is-rail .price-card-corp .pc-note { font-size: 0.875rem; line-height: 1.35; }
  .is-rail .price-card-corp .pc-per { display: none; }
  .is-rail .card p { font-size: 0.95rem; line-height: 1.4; }
  .is-rail .card h3 { font-size: 1.125rem; }
  [data-ui].home .feed-row:nth-child(4) { display: none; }
}

@media (min-width: 700px) and (max-width: 999.98px), (min-width: 1000px) and (max-height: 599.98px) {
  .hero-copy { grid-column: 1 / 11; padding-top: 4rem; }
  .hero-photo { grid-column: 1 / 7; }
  .sheet { left: 3rem; top: 3rem; bottom: 3rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card-a, .card-e { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr 1fr; }
  .price-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 699.98px) {
  :root { --step-display: clamp(2rem, 9.4vw, 2.75rem); --step-head: 1.5rem; }
  .nav nav { display: none; }
  .wordmark img { height: 1.6rem; }
  .hero-stage { padding-inline: 0.75rem; }
  [data-ui].home { padding: 12px; }
  [data-ui] .app-kpis { grid-template-columns: 1fr 1fr; }
  [data-ui] .app-partners { grid-column: 1 / -1; }
  [data-ui].home .feed-row { grid-template-columns: auto 1fr auto; }
  [data-ui].home .feed-row .chip, [data-ui].home .feed-time { display: none; }
  [data-ui].sheet { padding: 14px; }
  [data-ui] .roll .feed-row { grid-template-columns: auto 1fr; }
  [data-ui] .roll-meta { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .sim-stats dd { font-size: 2rem; }
}

@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }

/* ---------- motion ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), color var(--t-hover) ease; transition-delay: calc(var(--d, 0) * 75ms), calc(var(--d, 0) * 75ms), 0ms; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .card[data-reveal].is-in { transition: opacity 700ms var(--ease-out), transform var(--t-hover) var(--ease-out); }
  .js .shutter[data-reveal] { opacity: 1; transform: none; transition: none; }
  .is-rail .shutter[data-reveal] { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out) 500ms; }
  .is-rail .shutter[data-reveal] svg { transform: scale(1.12); transition: transform 1500ms var(--ease-soft) 500ms; }
  .is-rail .shutter[data-reveal].is-in { clip-path: inset(0); }
  .is-rail .shutter[data-reveal].is-in svg { transform: none; }
  .js .hero-stage { animation: stage-in 1000ms var(--ease-out) 450ms backwards; }
  .js .hero-stage [data-ui] { animation: rise 900ms var(--ease-out) 700ms backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes stage-in { from { transform: translateY(40px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .media svg { animation: none; }
  .media { transition: none; }
}
