/* Wrist Trainer — product site
 *
 * Visual system rebuilt against keep.com/appIntro's real composition:
 * a near-black cinematic canvas (#060609), white display type capped at
 * weight 600, one coral accent used only for data and labels, fixed-height
 * banner scenes with the phone rising from the bottom edge, floating data
 * cards over real screenshots, and a single white rhythm-break band before
 * the footer — exactly the black → white → black cadence appIntro uses.
 *
 * Load-bearing contracts (asserted by website/tests/website.test.mjs — never
 * move or duplicate them):
 *   .phone.phone-real / ::before / img — the real phone-case pixels ship
 *     untouched: no padding, border, radius, background or shadow on that
 *     wrapper, and the image keeps its intrinsic aspect.
 *   The single @media (max-width: 767px) block near the end of this file
 *     carries the .hero / .hero-copy / .store-row / .hero-visual mobile
 *     values, and no later 767px block may shadow it (the 390px block sits
 *     right after it, also by contract).
 *   :focus-visible stays a bare selector.
 *   .guide-button-secondary and .guide-related .guide-button-secondary keep
 *     their two contrast treatments for the static guide pages; guide pages
 *     render as a light sheet on the dark desk, so --ink/--surface stay
 *     light-theme tokens.
 */

:root {
  /* Dark stage (homepage) */
  --void: #060609;
  --panel: #121218;
  --panel-2: #1b1b22;
  --text: #f5f5f7;
  --text-soft: rgb(235 235 245 / 66%);
  --text-mute: rgb(235 235 245 / 42%);
  --line: rgb(255 255 255 / 14%);
  --line-soft: rgb(255 255 255 / 8%);
  --accent: #ff7c5b;
  --accent-strong: #ff9d7e;
  --accent-grad: linear-gradient(180deg, #ffb08f 0%, #ff7c5b 58%, #f0532c 100%);
  --focus-ring: #ffa47f;

  /* Light tokens (guide sheets + the white FAQ band) */
  --paper: #ffffff;
  --paper-2: #f4f4f7;
  --surface: #f4f4f7;
  --ink: #17171d;
  --ink-soft: #5a5a66;
  --ink-mute: #93939f;
  --line-light: #e7e7ee;
  --accent-deep: #c2410c;

  --radius: 16px;
  --gutter: 80px;
  --maxw: 1440px;
  color-scheme: dark;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--void);
  font-family: "PingFang SC", Inter, "SF Pro Text", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 span,
h2 span {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: #1d0904;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 120;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------- layout -- */

.wrap-inner {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: clamp(96px, 11vw, 160px);
}

.section-tint {
  background: rgb(255 255 255 / 2.5%);
}

.section-head {
  max-width: 900px;
}

.section-head-centered {
  margin-inline: auto;
  max-width: 760px;
  text-align: center;
}

/* ----------------------------------------------------------- typography -- */

.eyebrow {
  display: block;
  margin-bottom: 24px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(36px, 3.7vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.016em;
}

h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.para-info {
  margin-top: 22px;
  color: var(--text);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.5;
}

.para-text {
  max-width: 500px;
  margin-top: 26px;
  color: var(--text-soft);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
}

.section-head-centered .para-text {
  margin-inline: auto;
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(6 6 9 / 80%);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px) saturate(1.4);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
}

.brand-type strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-type small {
  display: block;
  color: var(--text-mute);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.language-picker {
  display: none;
}

.has-js .language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-picker svg {
  width: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: var(--text-mute);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.language-picker select {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
}

.language-picker select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.header-cta {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #221007;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease;
}

.header-cta:hover {
  background: #ff916f;
}

.menu-button {
  display: none;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  min-height: 100vh;
  padding-block: clamp(72px, 9vw, 120px) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: clamp(40px, 5vw, 80px);
  min-height: clamp(560px, 74vh, 760px);
}

.hero-copy {
  min-width: 0;
  align-self: center;
  padding-bottom: clamp(48px, 8vh, 110px);
}

.hero-lede,
.hero-copy .para-text {
  max-width: 500px;
}

.store-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: fit-content;
  margin-top: 44px;
}

.store-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 22px 0 18px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 14px;
  background: rgb(255 255 255 / 7%);
  color: var(--text);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.store-button:hover {
  background: rgb(255 255 255 / 13%);
  transform: translateY(-1px);
}

.store-button[aria-disabled="true"] {
  border-color: var(--line-soft);
  background: transparent;
  color: var(--text-mute);
  cursor: not-allowed;
}

.store-button[aria-disabled="true"]:hover {
  background: transparent;
  transform: none;
}

.store-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.store-logo-apple {
  fill: currentColor;
}

.store-button-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.store-button-copy em {
  display: block;
  color: var(--text-mute);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.store-button:not([aria-disabled="true"]) .store-button-copy em {
  color: rgb(255 255 255 / 64%);
}

.privacy-note {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 30px;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
}

.privacy-dot {
  color: var(--accent);
  font-size: 9px;
  line-height: 1;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 540px;
}

/* Specificity note: these must out-rank the .phone.phone-real contract rule
 * (0,2,0), which sets position:relative — hence the three-class selectors. */
.phone.phone-real.phone-hero {
  position: absolute;
  right: clamp(8px, 6vw, 96px);
  bottom: 0;
  z-index: 2;
  width: clamp(232px, 20vw, 302px);
}

.phone.phone-real.phone-hero-secondary {
  position: absolute;
  right: clamp(210px, 25vw, 372px);
  bottom: clamp(48px, 7vw, 112px);
  z-index: 1;
  width: clamp(152px, 13vw, 202px);
}

.phone-hero img,
.phone-hero-secondary img {
  filter: drop-shadow(0 32px 64px rgb(0 0 0 / 55%));
}

/* Floating data cards — the Keep grammar: real numbers, quiet chips. */
.float-card {
  position: absolute;
  z-index: 3;
  padding: 14px 18px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  background: rgb(16 16 22 / 88%);
  box-shadow: 0 20px 44px rgb(0 0 0 / 45%);
  backdrop-filter: blur(8px);
}

.float-card strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.float-card span {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
}

.float-bar {
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  overflow: hidden;
}

.float-bar::after {
  content: "";
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-grad);
}

.float-count {
  top: 5%;
  right: clamp(244px, 27vw, 402px);
}

.float-angle {
  top: 40%;
  right: clamp(-8px, 1.4vw, 44px);
}

.float-hold {
  bottom: 12%;
  right: clamp(258px, 30vw, 448px);
}

/* CONTRACT: the real phone-case pixels ship untouched. */
.phone.phone-real {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.phone.phone-real::before {
  display: none;
  content: none;
}

.phone.phone-real img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------- capabilities (#features) -- */

.features-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(48px, 5vw, 88px);
  align-items: start;
  margin-top: 72px;
}

.spec-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  padding-block: 28px;
  border-top: 1px solid var(--line-soft);
}

.spec-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.spec-list h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.spec-list p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.chart-card {
  padding: 34px 32px 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.chart-card h3 {
  font-size: 18px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 128px;
  margin-block: 30px 26px;
}

.chart-bars i {
  flex: 1;
  border-radius: 6px;
  background: var(--accent-grad);
}

.chart-bars i:nth-child(1) { height: 34%; }
.chart-bars i:nth-child(2) { height: 58%; }
.chart-bars i:nth-child(3) { height: 42%; }
.chart-bars i:nth-child(4) { height: 74%; }
.chart-bars i:nth-child(5) { height: 52%; }
.chart-bars i:nth-child(6) { height: 88%; }
.chart-bars i:nth-child(7) { height: 46%; }
.chart-bars i:nth-child(8) { height: 100%; }
.chart-bars i:nth-child(9) { height: 66%; }

.chart-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* --------------------------------------------------- interface (#showcase) -- */

.showcase {
  overflow: hidden;
}

.filmstrip {
  display: flex;
  gap: clamp(24px, 2.6vw, 44px);
  margin-top: 80px;
  padding-inline: var(--gutter) 0;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%);
}

.strip-item {
  flex: 0 0 clamp(226px, 19vw, 302px);
  margin: 0;
  scroll-snap-align: center;
}

.strip-item img {
  filter: drop-shadow(0 26px 52px rgb(0 0 0 / 50%));
}

.strip-item figcaption {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.strip-item figcaption span:first-child {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.strip-item figcaption span:last-child {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}

/* -------------------------------------------------------- scope (#ecosystem) -- */

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}

.scope-grid > div {
  padding: 30px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.scope-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scope-grid h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.scope-grid p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* ----------------------------------------------------------------- steps -- */

.support {
  border-top: 1px solid var(--line-soft);
  padding-bottom: 0;
}

.support-block + .support-block {
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line-soft);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.step-list li > span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.step-list h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.step-list p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.use-note {
  max-width: 66ch;
  margin-top: 64px;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.7;
}

/* -------------------------------------------------- white band (#faq) -- */

.section-light {
  margin-top: clamp(88px, 10vw, 140px);
  padding-block: clamp(80px, 9vw, 128px);
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

.section-light .eyebrow {
  color: var(--accent-deep);
}

.section-light .para-text {
  color: var(--ink-soft);
}

.section-light :focus-visible {
  outline-color: var(--accent-deep);
}

.section-light ::selection {
  background: var(--accent);
  color: #1d0904;
}

.faq-list {
  margin-top: 56px;
  border-top: 1px solid var(--line-soft);
}

.faq-list details {
  border-bottom: 1px solid var(--line-soft);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--text-mute);
  font-size: 20px;
  font-weight: 300;
  transition: color 180ms ease;
}

.faq-list details[open] summary::after {
  content: "−";
  color: var(--accent-strong);
}

.faq-list details p {
  max-width: 68ch;
  margin-bottom: 26px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.faq-list details a {
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 1px solid rgb(255 124 91 / 34%);
}

.section-light .faq-list,
.section-light .faq-list details {
  border-color: var(--line-light);
}

.section-light .faq-list summary::after {
  color: var(--ink-mute);
}

.section-light .faq-list details[open] summary::after {
  color: var(--accent-deep);
}

.section-light .faq-list details p {
  color: var(--ink-soft);
}

.section-light .faq-list details a {
  color: var(--accent-deep);
  border-bottom-color: rgb(194 65 12 / 34%);
}

.guide-links {
  margin-top: 88px;
  padding-top: 48px;
  border-top: 1px solid var(--line-soft);
}

.guide-links h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.guide-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.guide-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.guide-links-list a:hover {
  border-color: var(--accent);
  background: var(--panel);
}

.guide-links-list a span:last-child {
  color: var(--accent-strong);
}

.section-light .guide-links {
  border-color: var(--line-light);
}

.section-light .guide-links h3 {
  color: var(--ink);
}

.section-light .guide-links-list a {
  border-color: var(--line-light);
  color: var(--ink);
}

.section-light .guide-links-list a:hover {
  border-color: var(--accent-deep);
  background: var(--surface);
}

.section-light .guide-links-list a span:last-child {
  color: var(--accent-deep);
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  padding-block: 72px 64px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-mute);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px 48px;
  align-items: start;
}

.footer-brand p {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}

/* ---------------------------------------------------------------- reveal -- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

html.has-js .reveal {
  transition: opacity 620ms ease, transform 620ms ease;
}

html.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------- guide pages -- */

/* Guide pages render as a light sheet on the dark desk: header and footer
 * live on the void, the article itself is a white rounded sheet. */

.guide-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  width: min(1040px, calc(100% - 40px));
  min-height: 72px;
  margin-inline: auto;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: auto;
}

.guide-nav a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.guide-nav a:hover {
  color: var(--accent-strong);
}

#guide-main {
  width: min(1040px, calc(100% - 32px));
  margin-block: 16px 64px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 64px) 72px;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

#guide-main :focus-visible {
  outline-color: var(--accent-deep);
}

.guide-hero {
  padding-block: 24px 32px;
}

.guide-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.guide-lede {
  max-width: 60ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.7;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.guide-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.guide-button:hover {
  transform: translateY(-1px);
}

.guide-button:focus-visible,
.guide-nav a:focus-visible,
.guide-footer a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

#guide-main .guide-button:focus-visible,
#guide-main .guide-nav a:focus-visible,
#guide-main .guide-footer a:focus-visible {
  outline-color: var(--accent-deep);
}

.guide-button-primary {
  background: var(--ink);
  color: var(--paper);
}

/* CONTRACT: secondary buttons are the quieter dark chip — light mint text on
 * --ink-soft keeps them readable next to the solid --ink primary. */
.guide-button-secondary {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--surface);
}

/* CONTRACT: inside .guide-related they sit on a light surface instead. */
.guide-related .guide-button-secondary {
  background: var(--surface);
  border-color: var(--line-light);
  color: var(--ink);
}

.guide-section {
  padding-block: 40px;
}

.guide-section h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.guide-section > p {
  max-width: 62ch;
  color: var(--ink-soft);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.guide-card {
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.guide-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.guide-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.guide-card-index {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.guide-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.guide-checklist {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.guide-checklist strong {
  color: var(--ink);
  font-weight: 600;
}

.guide-note {
  margin-block: 40px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.guide-note h2 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.guide-note p {
  max-width: 66ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.guide-related {
  border-top: 1px solid var(--line-light);
}

.guide-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-mute);
  font-size: 13px;
}

.guide-footer p {
  margin: 0;
}

.guide-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-left: auto;
}

.guide-footer a {
  color: var(--text-soft);
  text-decoration: none;
}

.guide-footer a:hover {
  color: var(--accent-strong);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1279px) {
  :root {
    --gutter: 48px;
  }

  .hero-inner {
    min-height: 0;
  }

  .features-body {
    grid-template-columns: 1fr;
  }

  .chart-card {
    max-width: 560px;
  }

  .scope-grid {
    gap: 16px;
  }
}

@media (max-width: 1023px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    align-self: start;
    padding-bottom: 0;
  }

  .hero-visual {
    order: 2;
    min-height: 480px;
  }

  .phone.phone-real.phone-hero {
    right: 4%;
    width: clamp(220px, 34vw, 280px);
  }

  .phone.phone-real.phone-hero-secondary {
    right: auto;
    left: 4%;
    width: clamp(150px, 24vw, 196px);
  }

  .float-count {
    right: auto;
    left: 0;
  }

  .float-hold {
    right: auto;
    left: 2%;
  }

  .spec-list,
  .step-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-nav {
    gap: 20px;
  }

  .guide-grid,
  .guide-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    padding-block: 56px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: calc(100vw - 24px);
  }

  .hero-copy .store-row {
    width: min(100%, 252px);
  }

  .hero-visual {
    min-height: 410px;
    margin-top: 56px;
  }

  .para-text {
    margin-top: 22px;
    font-size: 17px;
  }

  .float-card {
    display: none;
  }

  .spec-list,
  .scope-grid,
  .step-list {
    margin-top: 48px;
    gap: 32px;
  }

  .section {
    padding-block: 72px;
  }

  .section-light {
    margin-top: 72px;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 14px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span[aria-hidden] {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--text);
  }

  .site-nav {
    order: 3;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 12px 0 0;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    padding-block: 12px;
  }

  .has-js .language-picker {
    justify-content: center;
    margin-top: 6px;
  }

  .header-cta {
    padding: 0 16px;
    font-size: 12px;
  }

  .filmstrip {
    padding-inline: var(--gutter);
    margin-top: 48px;
  }

  .strip-item {
    flex: 0 0 clamp(160px, 46vw, 200px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .guide-header {
    padding-block: 16px 0;
  }

  .guide-nav {
    margin-left: 0;
  }
}

@media (max-width: 390px) {
  .hero-visual {
    min-height: 350px;
  }

  .phone.phone-real.phone-hero {
    width: min(186px, 54vw);
  }

  .phone.phone-real.phone-hero-secondary {
    width: min(130px, 38vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
