/* Touchstone website. One local stylesheet, system fonts, no third parties (the only scripts are the model picker on the holder page and the chapter chips under the how-to video).
   Light: warm stone paper, near-black violet ink. Dark follows the system. Gold is used sparingly (marks, focus, the stone band). */

:root {
  color-scheme: light dark;
  --bg: #f3eee5;
  --bg-soft: #e9e2d5;
  --card: #fbf9f5;
  --card-hi: #ffffff;
  --ink: #16151b;
  --ink-2: #4a4752;
  --gold: #c38c2c;
  --accent: #7a5410; /* gold dark enough for text */
  --accent-deco: #9c6711; /* gold for lines and arrows */
  --stone: #16151b;
  --stone-ink: #f4f0e8;
  --btn-bg: #16151b;
  --btn-ink: #fbf9f5;
  --focus: #9a6a12;
  --ok: #1e7a3c;
  --warn: #8a5a00;
  --err: #b3261e;

  --radius: 20px;
  --radius-lg: 28px;
  --radius-btn: 16px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* illustration colours */
  --p-body: #16151b;
  --p-edge: transparent;
  --p-glass: #0b0a0e;
  --m-lid: #cdc6b8;
  --m-desk: #f6f2ea;
  --m-base: #b8b1a3;
  --m-bar: rgba(22, 21, 27, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121115;
    --bg-soft: #1b1a20;
    --card: #1e1d24;
    --card-hi: #2a2830;
    --ink: #f4f0e8;
    --ink-2: #bab6c0;
    --accent: #f2cb6c;
    --accent-deco: #f2cb6c;
    --stone: #27252e;
    --btn-bg: #f4f0e8;
    --btn-ink: #16151b;
    --focus: #f2cb6c;
    --ok: #6fd08c;
    --warn: #f2cb6c;
    --err: #ff8f86;

    --p-body: #0b0a0e;
    --p-edge: #4a4853;
    --p-glass: #050507;
    --m-lid: #3a3842;
    --m-desk: #17161b;
    --m-base: #4a4853;
    --m-bar: rgba(255, 255, 255, 0.1);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

:lang(ko) {
  word-break: keep-all;
}

body:lang(en) {
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

main:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

.muted {
  color: var(--ink-2);
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Development builds only: a value the owner still has to provide (release builds refuse these). */
.placeholder {
  padding: 0 6px;
  border-radius: 6px;
  background: #ffe08a;
  color: #16151b;
  font-weight: 700;
  outline: 2px dashed #b3261e;
}

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

.site-header {
  background: var(--bg);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand lang" "nav nav";
  align-items: center;
  gap: 2px 12px;
  padding-block: 10px 6px;
}

.brand {
  grid-area: brand;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 22.37%;
}

.brand-local {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 459px) {
  .brand-local {
    display: none;
  }
}

.lang-switch {
  grid-area: lang;
  display: inline-flex;
  gap: 2px;
  padding: 0;
  border-radius: 999px;
  background: var(--bg-soft);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-switch a[aria-current] {
  background: var(--card);
  color: var(--ink);
}

.site-nav {
  grid-area: nav;
  margin-inline: -8px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}

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

.site-nav a[aria-current="page"] {
  background: var(--card);
  color: var(--ink);
}

.site-nav a[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 420px) {
  .site-nav a {
    padding: 0 10px;
    font-size: 0.9rem;
  }
}

@media (min-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }

  .header-bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav lang";
    gap: 16px;
    padding-block: 10px;
  }

  .site-nav {
    margin-inline: 0;
    justify-self: center;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 24px;
  border: 0;
  border-radius: var(--radius-btn);
  font: 600 1rem/1.3 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 200ms ease-out;
}

.btn:active {
  transform: scale(0.97);
}

@media (max-width: 559px) {
  .actions .btn {
    flex: 1 1 100%;
    padding-inline: 18px;
  }
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--ink);
}

.btn.is-soon {
  background: var(--bg-soft);
  color: var(--ink-2);
  cursor: not-allowed;
}

.btn.is-soon:active {
  transform: none;
}

.soon {
  flex: none;
  padding: 3px 10px;
  white-space: nowrap;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 26%, var(--bg-soft));
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-block: clamp(20px, 6vw, 72px) clamp(16px, 4vw, 40px);
}

.hero-art {
  order: -1;
}

.app-icon {
  display: block;
  width: clamp(88px, 24vw, 200px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.37%;
  box-shadow: 0 14px 32px -12px rgba(22, 21, 27, 0.3);
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
  }

  .hero-art {
    order: 0;
    display: flex;
    justify-content: center;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.875rem, 5.6vw + 0.4rem, 3.5rem);
  font-weight: 800;
}

h1 > span {
  display: inline-block;
}

.lead {
  max-width: 36em;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1vw + 0.95rem, 1.25rem);
}

.note {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(28px, 6vw, 64px);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(20px, 4vw, 32px);
}

.section-head h2,
.cta-band h2 {
  font-size: clamp(1.5rem, 2.6vw + 0.8rem, 2.25rem);
  font-weight: 800;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--ink-2);
}

.section-foot {
  margin: 20px 0 0;
  color: var(--ink-2);
}

.page-head {
  padding-block: clamp(24px, 6vw, 64px) 8px;
}

.page-head > * {
  max-width: 44rem;
}

.page-head .lead {
  margin-top: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  margin: 14px 0 0;
  color: var(--ink-2);
}

.toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- flow (iPhone -> Mac -> browser) ---------- */

.flow {
  display: grid;
  gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  position: relative;
  padding: 14px 14px 22px;
  border-radius: var(--radius);
  background: var(--card);
}

.step-visual {
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.illus {
  display: block;
  width: 100%;
  height: auto;
}

.step-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 6px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--stone);
  color: #f2cb6c;
  font-size: 0.8rem;
  font-weight: 800;
}

.flow-step h3 {
  margin: 0 8px 8px;
  font-size: 1.25rem;
}

.flow-step p:last-child {
  margin: 0 8px;
  color: var(--ink-2);
}

/* the gold chevron between two steps: pointing down on phones, right on wide screens */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -32px;
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--accent-deco);
  border-bottom: 3px solid var(--accent-deco);
  border-radius: 3px;
  transform: translateX(-50%) rotate(45deg);
}

@media (min-width: 860px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .flow-step:not(:last-child)::after {
    left: auto;
    right: -34px;
    bottom: auto;
    top: 110px;
    transform: translateY(-50%) rotate(-45deg);
  }
}

.flow-return {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink-2);
}

.flow-return .icon {
  margin-top: 3px;
  color: var(--accent);
}

/* ---------- haptics ---------- */

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

@media (min-width: 760px) {
  .haptics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.haptic-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--card);
}

.haptic-card p {
  margin: 0;
}

.haptic-name {
  font-weight: 700;
}

.haptic-wave {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-block: 8px;
}

.h-base {
  stroke: var(--ink-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.25;
}

.h-tap {
  fill: var(--ink);
}

.h-hold {
  fill: var(--accent-deco);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.status .icon {
  width: 22px;
  height: 22px;
}

.status-ok .icon {
  color: var(--ok);
}

.status-uncertain .icon {
  color: var(--warn);
}

.status-error .icon {
  color: var(--err);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 14px 0;
}

/* ---------- cards ---------- */

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

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
}

.card h3 {
  margin: 14px 0 6px;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  color: var(--ink-2);
}

.card-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--accent);
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--card);
}

.callout p {
  margin: 0;
}

.callout-warn {
  background: color-mix(in srgb, var(--gold) 15%, var(--card));
}

.callout-icon {
  display: inline-flex;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.reqs {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .reqs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .reqs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reqs li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--card);
}

.reqs .card-icon {
  grid-row: span 2;
}

.reqs span:last-child {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* the stone band at the end of a page */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--stone);
  color: var(--stone-ink);
}

.cta-band::before {
  content: "";
  display: block;
  width: 88px;
  height: 5px;
  margin-bottom: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c38c2c, #f2cb6c 60%, rgba(255, 235, 178, 0));
}

.cta-band p {
  margin: 8px 0 0;
  color: #cfcad6;
}

.cta-band .btn-primary {
  background: #f4f0e8;
  color: #16151b;
}

.cta-band .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #f4f0e8;
}

.cta-band :focus-visible {
  outline-color: #f2cb6c;
}

/* ---------- how-to steps ---------- */

.steps,
.faq {
  max-width: 52rem;
}

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

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--card);
}

@media (min-width: 700px) {
  .step {
    gap: 24px;
    padding: 28px;
  }
}

@media (max-width: 699px) {
  /* phones: the badge sits beside the title and the text uses the full card width */
  .step {
    row-gap: 12px;
  }

  .step-body {
    display: contents;
  }

  .step-body > h3 {
    align-self: center;
    margin: 0;
  }

  .step-body > :not(h3) {
    grid-column: 1 / -1;
  }
}

.step-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--stone);
  color: #f2cb6c;
  font-weight: 800;
}

.step-body h3 {
  margin: 6px 0 10px;
  font-size: 1.25rem;
}

.step-body p {
  margin-bottom: 0.8em;
}

.step-body .actions {
  margin-block: 4px 16px;
}

.substeps {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.substeps li {
  margin-bottom: 0.4em;
}

.options {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.options > div {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.options dt {
  font-weight: 700;
}

.options dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

/* ---------- gestures ---------- */

.group-title {
  margin: 36px 0 14px;
  font-size: 1.125rem;
}

.gestures {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .gestures {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gesture {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--card);
}

.gesture > div {
  min-width: 0;
}

.gesture p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.gesture .g-title {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.glyph {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.g-dot {
  fill: var(--ink);
}

.g-ring {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.6;
  opacity: 0.75;
}

.g-dash {
  stroke-dasharray: 3 3;
}

.g-arrow {
  fill: none;
  stroke: var(--accent-deco);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.g-edge {
  fill: var(--ink-2);
  opacity: 0.55;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  background: var(--card);
}

.faq details:target {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2.5px solid var(--ink-2);
  border-bottom: 2.5px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 200ms ease-out;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.answer {
  padding: 0 20px 20px;
}

.answer > :last-child {
  margin-bottom: 0;
}

.answer ol,
.answer ul {
  margin: 0 0 0.8em;
  padding-left: 1.3em;
}

.answer li {
  margin-bottom: 0.4em;
}

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  max-width: 44rem;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
}

.contact-card h2 {
  margin-bottom: 8px;
  font-size: 1.375rem;
}

.contact-mail {
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.plain {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

/* ---------- privacy document ---------- */

.doc {
  padding-block: 8px 24px;
}

.doc > * {
  max-width: 46rem;
}

.doc h2 {
  margin: 2em 0 0.6em;
  font-size: 1.375rem;
}

.doc ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.5em;
}

.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 0.9em;
}

.doc > .table-wrap {
  max-width: none;
}

.table-wrap {
  margin: 1em 0 1.5em;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th {
  padding: 14px 18px;
  background: var(--bg-soft);
  font-weight: 700;
  text-align: left;
}

td {
  padding: 14px 18px;
  vertical-align: top;
}

tbody tr + tr td {
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

@media (max-width: 719px) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody tr {
    padding: 12px 0;
  }

  tbody tr + tr {
    border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  }

  tbody tr + tr td {
    border-top: 0;
  }

  td {
    padding: 6px 18px;
  }

  td::before {
    content: attr(data-label);
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
  }
}

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

.site-footer {
  margin-top: clamp(32px, 6vw, 72px);
  padding-block: 40px 56px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 800;
}

.footer-brand img {
  border-radius: 22.37%;
}

.site-footer ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-footer li a:hover {
  text-decoration: underline;
}

.footer-contact {
  margin: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.fineprint {
  margin: 28px 0 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ---------- root and 404 pages ---------- */

.chooser {
  display: grid;
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.chooser img {
  border-radius: 22.37%;
}

.chooser h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.chooser p {
  margin: 0;
}

.chooser-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* ---------- illustrations ---------- */

.i-shadow {
  fill: #16151b;
  opacity: 0.12;
}

.i-phone {
  fill: var(--p-body);
  stroke: var(--p-edge);
  stroke-width: 1.5;
}

.i-glass {
  fill: var(--p-glass);
}

.i-island {
  fill: #2d2b35;
}

.i-streak {
  fill: none;
  stroke: #d9a43c;
  stroke-width: 9;
  stroke-linecap: round;
}

.i-touch {
  fill: rgba(255, 255, 255, 0.16);
  transform-box: fill-box;
  transform-origin: center;
}

.i-touch-core {
  fill: rgba(255, 255, 255, 0.85);
}

.i-lid {
  fill: var(--m-lid);
}

.i-desk {
  fill: var(--m-desk);
}

.i-menubar {
  fill: var(--m-bar);
}

.i-menu-icon {
  fill: var(--ink);
}

.i-menu-dot {
  fill: var(--ink);
  opacity: 0.3;
}

.i-base {
  fill: var(--m-base);
}

.i-cursor {
  fill: var(--ink);
  stroke: var(--card-hi);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.i-window {
  fill: var(--card);
}

.i-titlebar {
  fill: var(--bg);
}

.i-dot-a,
.i-dot-b,
.i-dot-c {
  opacity: 0.85;
}

.i-dot-a {
  fill: #e5806f;
}

.i-dot-b {
  fill: #e8b94f;
}

.i-dot-c {
  fill: #7ccb8b;
}

.i-line {
  fill: var(--ink);
  opacity: 0.13;
}

.i-line.i-wrong {
  opacity: 0.26;
}

.i-squiggle {
  fill: none;
  stroke: var(--err);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-card {
  fill: var(--card-hi);
  stroke: var(--ink);
  stroke-opacity: 0.12;
  stroke-width: 1;
}

.i-card-icon {
  fill: var(--err);
}

.i-card-line {
  fill: var(--ink);
  opacity: 0.3;
}

.i-card-line.i-card-strong {
  opacity: 0.8;
}

.i-card-link {
  fill: var(--accent-deco);
}

/* ---------- motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bar-in {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ping {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.35);
  }
}

.hero-text > *,
.hero-art,
.flow-step,
.haptic-card {
  animation: rise 350ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

.hero-text > :nth-child(2) {
  animation-delay: 40ms;
}

.hero-text > :nth-child(3) {
  animation-delay: 80ms;
}

.hero-text > :nth-child(4) {
  animation-delay: 120ms;
}

.hero-text > :nth-child(5) {
  animation-delay: 160ms;
}

.h-bar {
  transform-box: fill-box;
  transform-origin: center;
  animation: bar-in 350ms var(--ease) both;
  animation-delay: calc(120ms + var(--i, 0) * 80ms);
}

.i-squiggle {
  stroke-dasharray: 100;
  animation: draw 900ms var(--ease) 500ms both;
}

.i-touch {
  animation: ping 1.8s var(--ease) 800ms 3;
}

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

  /* a short cross-fade instead of movement */
  .hero-text > *,
  .hero-art,
  .flow-step,
  .haptic-card {
    animation: fade 200ms ease-out both;
    animation-delay: 0s;
  }

  .h-bar,
  .i-squiggle,
  .i-touch {
    animation: none;
  }

  .i-squiggle {
    stroke-dasharray: none;
  }

  .btn,
  .site-nav a,
  .faq summary::after {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

/* ---------- trackpad holder picker ---------- */

.picker {
  display: grid;
  gap: 16px;
}

@media (min-width: 820px) {
  .picker {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: stretch;
    gap: 24px;
  }

  .picker-preview {
    order: 2;
  }
}

.picker-preview,
.picker-controls {
  border-radius: var(--radius);
  background: var(--card);
}

.picker-preview {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px 16px 12px;
}

.picker-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  display: block;
  transition: opacity 200ms ease-out;
}

.picker-preview img.is-changing {
  opacity: 0.35;
}

.picker-preview .fineprint {
  margin: 0;
  text-align: center;
}

.picker-controls {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 24px;
}

.field label,
.field legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select {
  width: 100%;
  min-height: 52px;
  padding: 10px 48px 10px 16px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--bg-soft);
  color: var(--ink);
  font: 600 1rem/1.3 var(--font);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select:focus-visible,
.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.seg {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.seg label {
  position: relative;
  display: block;
  margin: 0;
}

.seg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg span {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}

.seg input:checked + span {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.seg input:disabled {
  cursor: not-allowed;
}

.seg input:disabled + span {
  opacity: 0.4;
}

.hint {
  min-height: 3.2em;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.picker-controls .fineprint {
  margin: -8px 0 0;
}

.picker-controls .btn {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .picker-preview img,
  .seg span {
    transition: none;
  }
}

/* ---------- how-to video ---------- */

.video-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 18px 48px rgba(22, 21, 27, 0.18);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font: 600 0.95rem/1.2 var(--font);
  cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out, transform 150ms ease-out;
}

.chip:active {
  transform: scale(0.97);
}

.chip.is-current {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.chip:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .chip {
    transition: none;
  }
}
