/* Fengshui, Inc. — direction: The product performs · type: Stack Sans · colour: Stone and blueprint */

:root {
  --bg: #dfdedb;
  --surface: #d3d2ce;
  --paper: #ecebe8;
  --ink: #26251e;
  --muted: #5f5d55;
  --accent: #2456d6;
  --accent-strong: #1a43b0;
  --accent-ink: #ffffff;

  --ui-bg: #f4f4f2;
  --ui-line: #dcdad4;
  --ui-soft: #efeeea;

  --font-display: "Stack Sans Headline", system-ui, sans-serif;
  --font-text: "Stack Sans Text", system-ui, sans-serif;

  /* five sizes */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem);
  --step-display: clamp(2.25rem, 0.9rem + 5.2vw, 5rem);

  --margin: clamp(1.25rem, 2.8vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 13vw, 12rem);

  --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;
}

/* ---------- reset ---------- */
*, *::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; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
mark { background: #c9d6f7; color: inherit; padding: 0 0.15em; }

h1, h2, h3 { font-weight: 300; font-family: var(--font-display); letter-spacing: -0.022em; line-height: 1.05; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.display { font-size: var(--step-display); }
.head { font-size: var(--step-head); }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; white-space: nowrap; font-weight: 500; 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 1rem; font-size: var(--step-small); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent); }
}

/* ---------- bar ---------- */
.bar { display: flex; align-items: center; gap: 2rem; padding-block: 1.75rem 0; position: relative; z-index: 2; }
.wordmark { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.bar__nav { display: flex; gap: 1.75rem; font-size: var(--step-small); }
.bar__nav a { text-decoration-color: transparent; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); min-height: max(100svh, 880px); padding-top: clamp(4rem, 9vh, 6.5rem); }
.hero__copy { grid-column: 1 / 8; position: relative; z-index: 1; }
.hero h1 { max-width: 12ch; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.hero__lead { margin-top: 1.5rem; max-width: 38ch; }
.hero .button { margin-top: 2rem; }

.stage { grid-column: 5 / -1; margin-right: calc(var(--margin) * -1); margin-top: 3rem; background: var(--accent); padding: 104px 0 0 56px; overflow: hidden; align-self: end; height: 600px;
  clip-path: polygon(clamp(140px, 16%, 240px) 0, 100% 0, 100% 100%, 0 100%, 0 72px, calc(clamp(140px, 16%, 240px) - 72px) 72px, calc(clamp(140px, 16%, 240px) - 72px) 0); }
@media (min-width: 1000px) {
  .hero { grid-template-rows: auto 1fr; }
  .stage { grid-row: 1 / 3; align-self: end; margin-top: 0; height: calc(58% + 0px); min-height: 540px; position: relative; }
  .hero__copy { grid-row: 1; }
}

/* ---------- the app fragment (product conventions inside data-ui) ---------- */
.app { width: 620px; background: var(--ui-bg); border-radius: 22px 22px 0 0; color: var(--ink); font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; min-height: 640px; }
.app__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px 16px; }
.app__title { font-family: var(--font-display); font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.app__sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.app__chip { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--ink); color: var(--ui-bg); }
.app__body { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 0 24px 20px; align-items: start; }
.app__plan { background: #ffffff; border-radius: 12px; padding: 10px; border: 1px solid var(--ui-line); /* taste-skill-ignore: product UI */ }
.findings { display: grid; gap: 6px; }
.finding { display: block; width: 100%; padding: 12px 14px; border-radius: 12px; background: #ffffff; border: 1px solid var(--ui-line); /* taste-skill-ignore: product UI */ transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease; }
.finding__row { display: flex; gap: 10px; align-items: baseline; }
.finding__t { font-weight: 500; font-size: 14px; }
.finding__more { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; padding-left: 0; }
.finding[aria-expanded="false"] .finding__more { display: none; }
.finding[aria-expanded="true"] { border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .finding:hover { background: var(--ui-soft); } }
.finding:active { transform: scale(0.99); }
.tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; font-size: 13px; color: var(--muted); padding: 12px 8px 26px; border-top: 1px solid var(--ui-line); /* taste-skill-ignore: iOS tab bar */ }
.tabbar .is-on { color: var(--accent); font-weight: 500; }

.tag { flex: none; display: inline-block; font-size: 13px; line-height: 1.3; padding: 2px 8px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.tag--measured { background: #e3e2de; color: var(--ink); }
.tag--tradition { background: #dde6fb; color: #1a43b0; }
.tag--claim { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px #c9c7c0; /* taste-skill-ignore: product UI outline tag */ }
.tag--suggest { background: var(--accent); color: #fff; }
.tag--you { background: #26251e; color: #f7f6f3; }

/* ---------- try: the live room ---------- */
.try { padding-top: var(--section); display: grid; justify-items: center; }
.try__intro, .try__hint { width: min(100%, 1040px); }
.try__intro p { margin-top: 0.75rem; max-width: 46ch; }
.demo { width: min(100%, 1040px); margin-top: 2.5rem; display: grid; grid-template-columns: 62fr 38fr; background: var(--ui-bg); border-radius: 18px; overflow: hidden; font-size: 14px; }
.demo__view { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.demo__plan svg { width: 100%; height: auto; }
.reading { display: grid; gap: 10px; }
.read { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.45; }
.read--claim { color: var(--muted); }
.demo__controls { background: var(--ui-soft); padding: 18px 20px 20px; display: flex; flex-direction: column; }
.ctl { display: flex; justify-content: space-between; align-items: center; min-height: 52px; gap: 12px; border-bottom: 1px solid var(--ui-line); /* taste-skill-ignore: iOS settings rows */ }
.ctl--stack { flex-direction: column; align-items: stretch; justify-content: center; padding-block: 10px; gap: 8px; }
.ctl__name { font-size: 14px; font-weight: 500; }
.seg { display: flex; background: #e2e1dc; border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 36px; font-size: 13px; border-radius: 8px; text-align: center; color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.seg button[aria-pressed="true"] { background: #ffffff; color: var(--ink); font-weight: 500; }
.seg button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .seg button[aria-pressed="false"]:hover { color: var(--ink); } }
.switch { width: 46px; height: 28px; border-radius: 99px; background: #c9c7c0; position: relative; flex: none; transition: background-color var(--t-ui) ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.demo__link { margin-top: auto; padding-top: 20px; font-size: 14px; }
.try__hint { margin-top: 1.25rem; color: var(--muted); font-size: var(--step-small); }

/* ---------- how: pinned stage ---------- */
.how { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.how__steps { grid-column: 1 / 6; }
.how__step { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.how__step:first-of-type { min-height: 70vh; }
.how__say { font-size: var(--step-head); color: var(--muted); transition: color var(--t-ui) ease; }
.how__step p { margin-top: 0.75rem; max-width: 40ch; color: var(--muted); transition: color var(--t-ui) ease; }
.how__step.is-active .how__say, .how__step.is-active p { color: var(--ink); }
.how__stagewrap { grid-column: 7 / -1; }
.how__stage { position: sticky; top: 14vh; aspect-ratio: 1; max-width: 560px; background: var(--ink); border-radius: 20px; overflow: hidden; color: #f7f6f3; }
.hs { position: absolute; inset: 0; padding: 32px; opacity: 0; transition: opacity 420ms ease, transform 600ms var(--ease-out); transform: translateY(12px); display: flex; flex-direction: column; justify-content: center; }
.how__stage:not([data-state]) .hs--1, .how__stage[data-state="1"] .hs--1, .how__stage[data-state="2"] .hs--2, .how__stage[data-state="3"] .hs--3 { opacity: 1; transform: none; }
.scan__room { width: 100%; }
.scan__hint { font-size: 14px; color: #c9d6f7; margin-top: 8px; }
.scan__list { margin-top: 14px; display: grid; gap: 2px; font-size: 14px; }
.scan__list li { display: flex; justify-content: space-between; padding: 8px 12px; background: #34332b; border-radius: 8px; }
.scan__list li span:last-child { color: #c9c7c0; }
.hs--2 { background: var(--ui-bg); color: var(--ink); }
.hs__plan svg { width: 100%; max-height: 420px; margin-inline: auto; }
.hs__cap { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; max-width: none; }
.hs--3 { background: var(--ui-bg); color: var(--ink); }
.reading--how { gap: 14px; }
.reading--how .read { font-size: 14px; background: #fff; border-radius: 12px; padding: 14px; }

/* ---------- the handscroll ---------- */
.scroll { padding-top: var(--section); }
.scroll__frame { overflow: hidden; height: clamp(320px, 52vw, 760px); }
.scroll__img { width: 112%; max-width: none; height: 100%; object-fit: cover; object-position: 30% 50%; }
.scroll figcaption { margin-top: 0.75rem; }
.scroll__text { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.statement { grid-column: 5 / -1; font-family: var(--font-display); font-weight: 300; font-size: var(--step-head); line-height: 1.2; letter-spacing: -0.015em; max-width: 36ch; }

/* ---------- the five tabs ---------- */
.scales { margin-top: var(--section); padding-block: clamp(4rem, 8vw, 7rem); background: var(--surface); }
.scales__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.scales__head h2 { font-size: var(--step-head); }
.scales .muted, .contact-field .muted { color: #514f48; }
.scales__body { margin-top: 56px; display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: start; }
.tabs { display: grid; gap: 6px; position: sticky; top: 2rem; }
.tabs [role="tab"] { display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: 10px 16px; background: var(--bg); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.tabs [role="tab"] span { font-weight: 500; }
.tabs [role="tab"] small { font-size: 13px; color: var(--muted); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tabs [role="tab"][aria-selected="true"] small { color: #c9c7c0; }
@media (hover: hover) and (pointer: fine) { .tabs [role="tab"][aria-selected="false"]:hover { background: var(--paper); } }
.panel + .panel { margin-top: 4rem; }
.js .panel + .panel { margin-top: 0; }
.panel__pic img { width: 100%; height: clamp(220px, 26vw, 380px); object-fit: cover; }
.panel__pic figcaption { margin-top: 0.5rem; }
.panel__q { margin-top: 1.75rem; font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.bands { margin-top: 1.75rem; display: grid; gap: 4px; }
.bands li { display: grid; grid-template-columns: minmax(150px, 22%) 1fr auto; align-items: center; gap: 20px; min-height: 76px; padding: 12px 20px; background: var(--bg); }
.bands li:nth-child(even) { background: var(--paper); }
.band__t { font-weight: 500; }
.band__n { color: var(--ink); }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .panel:not([hidden]) .bands li { animation: band-in 520ms var(--ease-out) both; }
  .js .panel:not([hidden]) .bands li:nth-child(2) { animation-delay: 60ms; }
  .js .panel:not([hidden]) .bands li:nth-child(3) { animation-delay: 120ms; }
  .js .panel:not([hidden]) .bands li:nth-child(4) { animation-delay: 180ms; }
  .js .panel:not([hidden]) .bands li:nth-child(5) { animation-delay: 240ms; }
  .js .panel:not([hidden]) .panel__pic img { animation: pic-in 900ms var(--ease-soft) both; }
}
@keyframes band-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes pic-in { from { opacity: 0.4; transform: scale(1.04); } }
.panel__pic { overflow: hidden; }

/* ---------- careful: small proof beside text ---------- */
.careful { padding-top: var(--section); padding-left: max(var(--margin), 22vw); }
.mods { margin-top: 64px; display: grid; gap: clamp(64px, 8vw, 112px); }
.mod { display: grid; grid-template-columns: 360px 260px; gap: 24px; align-items: start; }
.mod__pane { background: var(--ui-bg); border-radius: 14px; padding: 16px; display: grid; gap: 8px; font-size: 14px; }
.mini { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ui-line); /* taste-skill-ignore: product UI */ border-radius: 10px; padding: 10px 12px; }
.mini__t { font-weight: 500; }
.mini__v { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini--soft { background: transparent; }
.mini--soft .mini__t { font-weight: 400; }
.mini__quote { font-size: 14px; padding: 4px 4px 2px; max-width: none; }
.mini--del { justify-content: center; color: #b3261e; background: #fff; }
.sw { margin-left: auto; width: 46px; height: 28px; border-radius: 99px; background: #c9c7c0; position: relative; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.sw--on { background: var(--accent); }
.sw--on::after { transform: translateX(18px); }
.mod__text h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-body); letter-spacing: 0; line-height: 1.3; }
.mod__text p { margin-top: 0.6rem; }

/* ---------- letter ---------- */
.letter { margin-top: var(--section); padding: clamp(5rem, 10vw, 9rem) var(--margin); background: var(--accent); }
.sheet { max-width: 640px; margin-inline: auto; background: var(--paper); padding: 60px 60px 0; }
.sheet__seal { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.sheet__body { margin-top: 28px; }
.sheet__body p { line-height: 1.6; }
.sheet__body p + p { margin-top: 1.1em; }
.sheet__sign { font-family: var(--font-display); font-size: var(--step-lead) !important; margin-top: 2rem !important; }
.sheet__body .small { margin-top: 0.2rem !important; font-size: var(--step-small); }
.sheet__strip { margin: 48px -60px 0; padding: 24px 60px; background: #f6f5f2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}

/* ---------- contact ---------- */
.contact-field { margin-top: 200px; background: var(--surface); }
.contact { padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(5rem, 9vw, 8rem); max-width: 560px; margin-inline: auto; box-sizing: content-box; }
.contact__prompt { font-family: var(--font-text); font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.3; }
.contact__form { margin-top: 28px; position: relative; }
.contact__field { width: 100%; height: 64px; border: 0; background: #f4f4f2; padding: 0 72px 0 20px; font-size: var(--step-body); border-radius: 0; }
.contact__field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); /* taste-skill-ignore: focus ring */ }
.contact__go { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.contact__go:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .contact__go:hover { background: var(--accent-strong); } }
.contact__note { margin-top: 16px; }
.contact__rows { margin-top: 72px; display: grid; gap: 14px; font-size: var(--step-small); }
.contact__rows div { display: grid; grid-template-columns: 110px 1fr; }
.contact__rows dt { color: var(--muted); }
.credits { margin-top: 72px; }
.credits a { color: inherit; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 1rem; padding-top: 4rem; padding-bottom: 30px; font-size: var(--step-small); }
.foot__links { display: flex; gap: 24px; }
.foot__end { justify-self: end; }

/* ---------- motion ---------- */
@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 + 120ms); }
  .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); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* signature: the stage opens like a shutter, the screen inside settles */
  .js .shutter-stage { animation: shutter 1100ms var(--ease-in-out) 250ms both; }
  .js .shutter-stage .app { animation: settle 1500ms var(--ease-soft) 250ms both; transform-origin: 0 0; }
  .js .mods .mod[data-reveal] .mod__pane { transform: translateY(16px); opacity: 0; transition: opacity 700ms var(--ease-out) 80ms, transform 900ms var(--ease-out) 80ms; }
  .js .mods .mod.is-in .mod__pane { transform: none; opacity: 1; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll__img { animation: unroll linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes shutter { from { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%, 0 100%, 0 100%, 0 100%); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes unroll { from { transform: translateX(0); } to { transform: translateX(-10.7%); } }

/* ---------- tablet and phone ---------- */
@media (max-width: 999px) {
  .bar__nav { display: none; }
  .hero { display: block; min-height: 0; padding-top: 3rem; }
  .stage { margin-top: 3rem; margin-inline: calc(var(--margin) * -1); height: 620px; padding: 40px 0 0 24px;
    clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 40px, 32px 40px, 32px 0); }
  .hs { padding: 20px; }
  .scroll__text { display: block; }
  .demo { grid-template-columns: 1fr; }
  .careful { padding-left: var(--margin); }
}
@media (max-width: 999px) {
  /* no pinning on small screens: each statement is followed by its own state of the screen */
  .how { display: flex; flex-direction: column; }
  .how__steps, .how__stagewrap, .how__stage { display: contents; }
  .how__steps > h2 { order: 0; margin-bottom: 1rem; }
  .how__step { min-height: 0; order: 1; margin-top: 3rem; }
  .how__step:first-of-type { min-height: 0; }
  .how__step .how__say, .how__step p { color: var(--ink); }
  .how__step[data-how-step="2"] { order: 3; }
  .how__step[data-how-step="3"] { order: 5; }
  .hs { position: relative; inset: auto; opacity: 1 !important; transform: none !important; margin-top: 1.25rem; border-radius: 20px; order: 2; }
  .hs--1 { background: var(--ink); color: #f7f6f3; }
  .hs--2 { order: 4; }
  .hs--3 { order: 6; }
}
@media (max-width: 760px) {
  .display { font-size: clamp(2.25rem, 9.4vw, 3.5rem); }
  .stage { height: 560px; padding: 40px 0 0 16px; }
  .app { width: 560px; }
  .app__body { grid-template-columns: 1fr; }
  .app__plan { display: none; }
  .demo__view { grid-template-columns: 1fr; padding: 20px; }
  .demo__plan { aspect-ratio: 4 / 3; display: grid; place-items: center; }
  .demo__plan svg { height: 100%; width: auto; }
  .ctl { min-height: 52px; }
  .scales__head { flex-direction: column; align-items: stretch; }
  .scales__body { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .tabs { grid-template-columns: repeat(5, 1fr); gap: 4px; top: 0; z-index: 1; background: var(--surface); padding-block: 8px; margin-block: -8px; }
  .tabs [role="tab"] { min-height: 52px; padding: 8px 4px; align-items: center; }
  .tabs [role="tab"] small { display: none; }
  .bands li { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 16px; gap: 4px 12px; }
  .band__t { grid-column: 1; }
  .bands .tag { grid-column: 2; grid-row: 1; }
  .band__n { grid-column: 1 / -1; }
  .mod { grid-template-columns: 1fr; gap: 16px; }
  .mods { gap: 64px; }
  .letter { padding-inline: 0; }
  .sheet { padding: 40px 24px 0; }
  .sheet__strip { margin: 40px -24px 0; padding: 20px 24px; }
  .contact-field { margin-top: 140px; }
  .contact__rows div { grid-template-columns: 1fr; gap: 2px; }
  .contact__rows { gap: 20px; }
  .foot { grid-template-columns: 1fr; gap: 8px; padding-top: 3rem; }
  .foot__end { justify-self: start; }
  .statement { font-size: 1.375rem; }
}

/* ---------- inner pages: privacy, terms, support ---------- */
.doc { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: 4rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.doc__head { grid-column: 1 / 6; }
.doc__head h1 { font-size: clamp(2.25rem, 1rem + 4vw, 4.5rem); }
.doc__head p { margin-top: 1rem; }
.doc__body { grid-column: 6 / -1; max-width: 68ch; }
.doc__body h2 { font-size: var(--step-lead); margin-top: 3rem; line-height: 1.2; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body p, .doc__body li { margin-top: 0.9rem; }
.doc__body ul { list-style: disc; padding-left: 1.2rem; }
.doc__body .lede { font-size: var(--step-lead); line-height: 1.4; margin-top: 0; }
.doc__body a { text-underline-offset: 0.18em; }
.doc__card { margin-top: 2rem; background: var(--paper); padding: 28px 32px; }
.doc__card dl { display: grid; gap: 12px; }
.doc__card div { display: grid; grid-template-columns: 110px 1fr; }
.doc__card dt { color: var(--muted); }
@media (max-width: 860px) {
  .doc { display: block; }
  .doc__body { margin-top: 2.5rem; }
  .doc__card div { grid-template-columns: 1fr; }
}
