/* ClearShot landing. Tokens mirror ClearShot/Resources/DesignSystem/Theme.swift:
   darkroom canvas, safelight amber for Clean, teal for Keep one, glass chrome. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/onest-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/onest-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --canvas-top: #141723;
  --canvas-bottom: #101e2d;
  --ink: #000;
  --graphite: #1c1c1e;
  --amber: #ffae85;
  --accent: #ff9d69;
  --teal: #6bcab8;
  --text: #fff;
  --muted: rgba(255, 255, 255, .68);
  --faint: rgba(255, 255, 255, .46);
  --hairline: rgba(255, 255, 255, .09);
  --hairline-strong: rgba(255, 255, 255, .16);
  --glass: rgba(28, 30, 40, .55);

  --r-chip: 14px;
  --r-control: 18px;
  --r-card: 24px;
  --r-panel: 32px;

  --font: "Onest", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.22, .9, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--canvas-bottom) linear-gradient(180deg, var(--canvas-top) 0, var(--canvas-bottom) 60%, #0d1622 100%) no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--amber); color: #1a1208; font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 23, 35, .72);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.top__bar { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; text-decoration: none; }
.brand img { border-radius: 8px; width: 32px; height: 32px; }
.top__nav { display: none; margin-left: auto; gap: 4px; }
.top__nav a { padding: 8px 12px; border-radius: 999px; font-size: .9375rem; font-weight: 550; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.top__nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.top__get {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--text); color: #000;
  font-size: .875rem; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.top__get .apple { width: 13px; height: 16px; }
@media (min-width: 900px) { .top__nav { display: flex; } .top__get { margin-left: 8px; } }

/* ---------- App Store badge (drawn to Apple's black badge spec) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid #a6a6a6; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.badge:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 174, 133, .45); }
.badge .apple { width: 25px; height: 30px; flex: none; }
.badge__text { display: flex; flex-direction: column; line-height: 1; }
.badge__text small { font-size: .75rem; font-weight: 500; letter-spacing: .01em; }
.badge__text strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin-top: 3px; font-family: -apple-system, BlinkMacSystemFont, var(--font); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 72px; overflow: clip; }
.hero::before { /* safelight glow behind the viewfinder */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -320px; top: 40px;
  background: radial-gradient(closest-side, rgba(255, 157, 105, .22), rgba(255, 157, 105, .06) 55%, transparent 72%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.hero__title {
  font-size: clamp(2.75rem, 5.2vw + 1.2rem, 5.6rem);
  line-height: .96; letter-spacing: -.045em; font-weight: 760;
  max-width: 11ch;
}
.hero__lead { margin-top: 22px; font-size: clamp(1.125rem, .5vw + 1rem, 1.3125rem); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.get { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.get__note { font-size: .9375rem; color: var(--faint); max-width: 24ch; line-height: 1.4; }

/* Viewfinder */
.finder { margin: 0; width: 100%; max-width: 470px; justify-self: center; }
.finder__body {
  padding: 10px; border-radius: 34px; background: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline-strong), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -40px rgba(255, 157, 105, .35);
}
.finder .compare { border-radius: 25px; }
.deck { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 14px 8px 6px; }
.deck .pill { justify-self: start; }
.deck__place { justify-self: end; font-size: .8125rem; font-weight: 550; color: var(--faint); text-align: right; line-height: 1.25; }
.shutter {
  position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: transparent;
}
.shutter::before { /* liquid-metal ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, #fff6ef, var(--amber), #b98a73, #fff, var(--accent), #fff6ef);
  -webkit-mask: radial-gradient(circle, transparent 23px, #000 24px); mask: radial-gradient(circle, transparent 23px, #000 24px);
}
.shutter::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #f5f2ef; transition: transform .2s var(--ease); }
.shutter:hover::after { transform: scale(.94); }
.shutter:active::after { transform: scale(.86); }
.finder__hint { margin-top: 14px; text-align: center; font-size: .875rem; color: var(--faint); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--hairline-strong);
  font-size: .875rem; font-weight: 650; letter-spacing: -.005em; color: var(--text); line-height: 1.2;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

@media (min-width: 960px) {
  .hero { padding: 72px 0 112px; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; }
  .finder { justify-self: end; }
}

/* ---------- Before/after compare ---------- */
.compare {
  --pos: 50%;
  position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--r-card);
  background: var(--graphite); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  isolation: isolate;
}
.compare__layer, .compare__layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; cursor: grab; touch-action: none;
  background: rgba(20, 20, 24, .38); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 0 0 2px #fff, 0 6px 24px rgba(0, 0, 0, .35);
}
.compare__handle .ring { position: absolute; inset: 0; }
.compare__handle .ring::before, .compare__handle .ring::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border: solid #fff; border-width: 0 0 2px 2px;
}
.compare__handle .ring::before { left: 13px; transform: rotate(45deg); }
.compare__handle .ring::after { right: 13px; transform: rotate(-135deg); }
.compare__handle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 50%; }
.compare.is-dragging .compare__handle { cursor: grabbing; }
.tag {
  position: absolute; bottom: 14px; padding: 5px 10px; border-radius: 999px; pointer-events: none;
  font-size: .75rem; font-weight: 650; letter-spacing: .01em; color: #fff;
  background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .2s;
}
.tag--before { left: 14px; }
.tag--after { right: 14px; background: color-mix(in srgb, var(--accent) 30%, rgba(0, 0, 0, .5)); }
.compare.is-intro .compare__line, .compare.is-intro .compare__handle { transition: left 1.6s var(--ease); }
.compare.is-intro .compare__before { transition: clip-path 1.6s var(--ease); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2, .faq h2, .looks h2 { font-size: clamp(2.1rem, 2.6vw + 1.3rem, 3.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 720; }
.head p, .looks__copy > p { margin-top: 16px; font-size: 1.1875rem; color: var(--muted); max-width: 46ch; }
h3 { font-size: 1.1875rem; letter-spacing: -.015em; font-weight: 680; line-height: 1.25; }
@media (min-width: 960px) { .section { padding: 104px 0; } }

/* How it works */
.how { border-top: 1px solid var(--hairline); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; counter-reset: none; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--hairline-strong); }
.step__n {
  display: block; font-size: 3.5rem; line-height: 1; font-weight: 300; letter-spacing: -.04em;
  color: var(--amber); margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.step p { margin-top: 10px; color: var(--muted); max-width: 36ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Modes */
.modes__grid { display: grid; gap: 56px; }
.mode__text { padding: 22px 4px 0; max-width: 46ch; }
.mode__text h3 .pill { font-size: 1rem; padding: 7px 14px 7px 12px; }
.mode__text p { margin-top: 14px; color: var(--muted); }
.mode__text .mode__place { margin-top: 10px; font-size: .875rem; color: var(--faint); }
.mode .compare { box-shadow: 0 0 0 1px var(--hairline-strong), 0 30px 60px -30px rgba(0, 0, 0, .7); }
@media (min-width: 820px) {
  .modes__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .mode:nth-child(2) { margin-top: 72px; }
}

/* Looks */
.looks { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .28) 30%, rgba(0, 0, 0, .28) 70%, transparent); }
.looks__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.looks__picker {
  position: relative; margin: 32px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 8px;
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.looks__picker::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; width: 76px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center;
}
.chip picture { border-radius: var(--r-chip); overflow: hidden; box-shadow: 0 0 0 1px var(--hairline-strong); transition: box-shadow .2s, transform .2s var(--ease); }
.chip img { width: 76px; height: 95px; object-fit: cover; }
.chip span { display: block; margin-top: 8px; font-size: .8125rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.chip:hover picture { transform: translateY(-2px); }
.chip[aria-pressed="true"] picture { box-shadow: 0 0 0 2px var(--amber), 0 0 22px -4px rgba(255, 174, 133, .6); }
.chip[aria-pressed="true"] span { color: var(--text); }
.chip:focus-visible { outline: none; }
.chip:focus-visible picture { box-shadow: 0 0 0 3px var(--amber); }
.looks__preview { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.looks__preview picture { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 5; background: var(--graphite); box-shadow: 0 0 0 1px var(--hairline-strong), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.looks__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.looks__preview img.is-swapping { opacity: .55; }
.looks__preview figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; padding-inline: 4px; }
.looks__name { font-weight: 680; font-size: 1.0625rem; }
.looks__credit { font-size: .8125rem; color: var(--faint); }
.enhance { margin-top: 36px; display: flex; gap: 16px; align-items: flex-start; padding-top: 24px; border-top: 1px solid var(--hairline); max-width: 46ch; }
.enhance svg { width: 26px; height: 26px; flex: none; fill: var(--amber); margin-top: 1px; }
.enhance p { margin-top: 6px; color: var(--muted); }
@media (min-width: 960px) {
  .looks__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 80px; }
  .looks__picker { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .looks__preview { justify-self: end; }
}

/* Privacy */
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--hairline-strong); }
.promises li { padding: 26px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 8px; align-content: start; }
.promises h3 { font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); letter-spacing: -.025em; }
.promises p { color: var(--muted); max-width: 44ch; }
.more { margin-top: 28px; }
.more a { font-weight: 620; color: var(--amber); text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (min-width: 760px) {
  .promises { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .promises li { padding: 32px 0; }
}

/* Shots */
.shots { border-top: 1px solid var(--hairline); }
.shots__grid { display: grid; gap: 8px; }
.head--side { margin-bottom: 32px; }
.shots__note { font-size: .9375rem !important; color: var(--faint) !important; }
.ledger { margin: 0; border-top: 1px solid var(--hairline-strong); }
.ledger__row { padding: 24px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 6px; }
.ledger dt { font-size: 1.3125rem; font-weight: 680; letter-spacing: -.02em; }
.ledger dd { margin: 0; color: var(--muted); max-width: 48ch; }
.ledger__row--free dt { color: var(--amber); font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem); letter-spacing: -.03em; }
@media (min-width: 760px) {
  .ledger__row { grid-template-columns: minmax(0, 15rem) 1fr; gap: 32px; align-items: baseline; }
}
@media (min-width: 960px) {
  .shots__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
  .head--side { position: sticky; top: 110px; }
}

/* FAQ */
.faq__wrap { display: grid; gap: 32px; }
.faq__list { border-top: 1px solid var(--hairline-strong); }
.qa { border-bottom: 1px solid var(--hairline); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-size: 1.125rem; font-weight: 640; letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--amber); }
.qa__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hairline-strong); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: currentColor; transition: transform .25s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa p { padding: 0 0 24px; color: var(--muted); max-width: 62ch; }
@media (min-width: 960px) {
  .faq__wrap { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
}

/* Final CTA */
.final { position: relative; isolation: isolate; padding: 120px 0 128px; text-align: center; overflow: clip; border-top: 1px solid var(--hairline); }
.final::before { /* safelight: one warm glow behind the icon, fading out well inside the section */
  content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 50% 30%, rgba(255, 157, 105, .17) 0%, rgba(255, 157, 105, .09) 30%, rgba(255, 140, 90, .035) 55%, rgba(255, 140, 90, 0) 78%),
    radial-gradient(18rem 14rem at 50% 24%, rgba(255, 190, 150, .14), rgba(255, 190, 150, 0) 70%);
}
@media (max-width: 700px) {
  .final::before {
    background:
      radial-gradient(24rem 17rem at 50% 27%, rgba(255, 157, 105, .17) 0%, rgba(255, 157, 105, .08) 32%, rgba(255, 140, 90, .03) 58%, rgba(255, 140, 90, 0) 80%),
      radial-gradient(11rem 9rem at 50% 24%, rgba(255, 190, 150, .13), rgba(255, 190, 150, 0) 70%);
  }
}
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final__icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px -18px rgba(255, 157, 105, .55); }
.final h2 { margin-top: 28px; font-size: clamp(2.25rem, 3.6vw + 1.2rem, 4.25rem); line-height: 1; letter-spacing: -.04em; font-weight: 740; max-width: 15ch; }
.final p { margin: 18px 0 34px; font-size: 1.1875rem; color: var(--muted); }

/* Footer */
.foot { padding: 40px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); background: rgba(0, 0, 0, .25); }
.foot__top { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.brand--static img { width: 28px; height: 28px; border-radius: 7px; }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.foot__links a { font-size: .9375rem; font-weight: 550; line-height: 1.4; color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.foot__lang { display: flex; align-items: center; gap: 10px; font-size: .875rem; line-height: 1.4; color: var(--faint); }
.foot__lang select {
  appearance: none; -webkit-appearance: none; height: 38px; padding: 0 34px 0 14px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-opacity='.7' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--hairline-strong); color: var(--text); font-size: .875rem;
}
.foot__lang select option { background: #1c1f2b; }
.foot__bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hairline); display: grid; gap: 10px; }
.foot__made { font-size: .8125rem; color: var(--faint); line-height: 1.5; }
.foot__made a { color: var(--muted, inherit); text-decoration: underline; text-underline-offset: 2px; }
.foot__made a:hover { color: var(--accent, #FFAE85); }
.nf__foot { position: fixed; bottom: 20px; left: 0; right: 0; text-align: center; }
.foot__credits, .foot__legal { font-size: .8125rem; color: var(--faint); line-height: 1.5; max-width: 72ch; }
@media (min-width: 900px) {
  .foot__top { flex-direction: row; align-items: center; gap: 32px; }
  .foot__links { margin-left: auto; }
}

/* 404 */
.nf__main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; max-width: 640px; }
.nf__main .brand img { width: 40px; height: 40px; border-radius: 10px; }
.nf__main h1 { margin-top: 24px; font-size: clamp(2.5rem, 5vw + 1rem, 4rem); letter-spacing: -.04em; line-height: 1; }
.nf__main p { color: var(--muted); font-size: 1.125rem; }
.nf__back { color: var(--amber); font-weight: 620; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Locales ---------- */
h1, h2, h3, dt, summary { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
:lang(zh-Hans) body, body:lang(zh-Hans) {
  font-family: "Onest", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
}
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) dt { letter-spacing: 0; line-height: 1.2; }
:lang(zh-Hans) .hero__title { max-width: 9em; line-height: 1.12; font-weight: 700; }
:lang(zh-Hans) p, :lang(zh-Hans) dd { line-height: 1.7; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2 { word-break: keep-all; overflow-wrap: anywhere; }
