/* DrawGestures Studio: tokens, components and site chrome. */

/* DrawGestures Studio tokens (from the design system's tokens.json). Light = Paper, dark = Graphite. */
:root, [data-theme="light"] {
  --paper: #f4f5f2; --paper-sheet: #ffffff; --paper-sunk: #e9ebe6;
  --rule: #d3d6cf; --rule-strong: #80857f;
  --graphite: #1d1e20; --graphite-soft: #565a5e;
  --sanguine: #b0442c; --sanguine-strong: #923520; --on-sanguine: #ffffff; --sanguine-wash: #f5e2dc;
  --pencil: #2d5fd0; --pencil-wash: #e1e9fb;
  --ochre: #765617; --ochre-wash: #f3ead6;
  --success: #25724a; --danger: #a8231a;
  --stage: #1b1c1e; --on-stage: #edeeea; --on-stage-soft: #a7abad; --stage-accent: #e8876d; --stage-on-accent: #2a120c;
  --shadow-sheet: 0 1px 0 rgba(29,30,32,0.05), 0 10px 30px -14px rgba(29,30,32,0.22);
  --shadow-lift: 0 2px 0 rgba(29,30,32,0.05), 0 18px 40px -16px rgba(29,30,32,0.3);
  --shadow-phone: 0 30px 60px -20px rgba(0,0,0,0.45);
}
[data-theme="dark"] {
  --paper: #18191b; --paper-sheet: #222326; --paper-sunk: #111214;
  --rule: #36383c; --rule-strong: #6b6f73;
  --graphite: #edeeea; --graphite-soft: #a7abad;
  --sanguine: #e8876d; --sanguine-strong: #f0a08a; --on-sanguine: #2a120c; --sanguine-wash: #3a2520;
  --pencil: #86a8ff; --pencil-wash: #1d2840;
  --ochre: #dcb766; --ochre-wash: #3a301a;
  --success: #6fcf98; --danger: #ff8f85;
  --stage: #0e0f10;
  --shadow-sheet: 0 1px 0 rgba(0,0,0,0.4), 0 12px 32px -14px rgba(0,0,0,0.7);
  --shadow-lift: 0 2px 0 rgba(0,0,0,0.4), 0 20px 44px -16px rgba(0,0,0,0.8);
  --shadow-phone: 0 30px 60px -20px rgba(0,0,0,0.8);
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px; --space-9: 112px;
  --radius-photo: 6px; --radius-control: 12px; --radius-sheet: 20px; --radius-pill: 999px;
  --font-display: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: Figtree, "Segoe UI", system-ui, sans-serif;
  --font-hand: Caveat, "Bradley Hand", "Segoe Print", cursive;
}
[data-theme] { background: var(--paper); color: var(--graphite); }

/* Page scaffolding */
.pg { font-family: var(--font-body); font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.band { padding-block: var(--space-9); }
.band--sunk { background: var(--paper-sunk); }
.band--tight { padding-block: var(--space-8); }
@media (max-width: 720px) { .band { padding-block: var(--space-8); } .wrap { padding-inline: 16px; } }
.stack-7 { display: grid; gap: var(--space-7); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }


/* DrawGestures Studio — component styles.
   Consumes only tokens.json custom properties. Class prefix: ds-.
   Ported from the "DrawGestures Studio" design system artifact. */

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

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


/* ---------- Motion tokens ----------
   Springs are described Apple's way: damping ratio + response (seconds).
   Tap-driven motion uses these CSS curves (sampled from the spring).
   Gesture-driven motion (drag, flick) runs a JS spring that starts from the
   on-screen value and inherits the pointer's release velocity. */
:root {
  /* settle: damping 1.0, response .35s. Default for anything that moves. No overshoot. */
  --ease-settle: linear(0, 0.067, 0.2, 0.351, 0.491, 0.611, 0.706, 0.782, 0.84, 0.883, 0.915, 0.939, 0.956, 0.969, 0.978, 0.985, 0.989, 0.992, 0.995, 0.996, 0.997, 0.998, 0.999, 0.999, 1);
  --dur-settle: 550ms;
  /* throw: damping .8, response .35s. Only after a flick or drag release. */
  --ease-throw: linear(0, 0.062, 0.203, 0.365, 0.525, 0.662, 0.775, 0.859, 0.92, 0.961, 0.988, 1.004, 1.011, 1.014, 1.014, 1.013, 1.01, 1.008, 1.006, 1.004, 1.003, 1.002, 1.001, 1, 1);
  --dur-throw: 520ms;
  --dur-press: 100ms;   /* press feedback, on pointer-down */
  --dur-fade: 180ms;    /* content swaps and the reduced-motion fallback */
  --press-scale: .97;
}

/* ---------- Type helpers ---------- */
.ds-display-xl, .ds-display, .ds-h1, .ds-h2, .ds-h3 {
  font-family: var(--font-display);
  color: var(--graphite);
  margin: 0;
  text-wrap: balance;
  }
.ds-display-xl { font-size: clamp(44px, 7vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.ds-display    { font-size: clamp(38px, 5.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.02em; }
.ds-h1         { font-size: clamp(34px, 4.4vw, 44px); line-height: 1.14; font-weight: 700; letter-spacing: -0.015em; }
.ds-h2         { font-size: clamp(28px, 3.4vw, 34px); line-height: 1.18; font-weight: 650; letter-spacing: -0.01em; }
.ds-h3         { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.ds-lead       { font-size: 20px; line-height: 31px; color: var(--graphite-soft); margin: 0; max-width: 60ch; text-wrap: pretty; }
.ds-body       { font-size: 17px; line-height: 28px; margin: 0; max-width: 68ch; }
.ds-small      { font-size: 15px; line-height: 23px; margin: 0; color: var(--graphite-soft); }
.ds-caption    { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--graphite-soft); margin: 0; }
.ds-num        { font-variant-numeric: tabular-nums; }
.ds-link       { color: var(--sanguine); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ds-link:hover { color: var(--sanguine-strong); }

/* ---------- Button ---------- */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 20px;
  min-height: 46px; padding: 8px 20px;
  border-radius: var(--radius-control);
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform var(--dur-press) ease-out;
}
.ds-btn svg { width: 18px; height: 18px; flex: none; }
.ds-btn:active { transform: scale(var(--press-scale)); }
.ds-btn--sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.ds-btn--lg { min-height: 56px; padding: 10px 26px; font-size: 17px; }
.ds-btn--full { width: 100%; white-space: normal; text-align: center; }
/* Official store badges (components/site/store-badge). Size with --store-h. */
.ds-store { display: inline-flex; height: var(--store-h, 46px); border-radius: 8px; transition: transform var(--dur-fade) ease; }
.ds-store:active { transform: scale(.97); }
.ds-store img { height: 100%; width: auto; display: block; }
.ds-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ds-btn--primary { background: var(--sanguine); color: var(--on-sanguine); }
.ds-btn--primary:hover { background: var(--sanguine-strong); }
.ds-btn--secondary { background: transparent; color: var(--graphite); border-color: var(--rule-strong); }
.ds-btn--secondary:hover { border-color: var(--graphite); background: var(--paper-sheet); }
.ds-btn--ghost { background: transparent; color: var(--sanguine); padding-inline: 10px; }
.ds-btn--ghost:hover { background: var(--sanguine-wash); color: var(--sanguine-strong); }
.ds-btn--stage { background: var(--stage-accent); color: var(--stage-on-accent); }
.ds-btn--stage:hover { filter: brightness(1.06); }
.ds-btn[disabled], .ds-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- Chip (interval preset / filter) ---------- */
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--rule);
  background: var(--paper-sheet); color: var(--graphite);
  font: 600 15px/20px var(--font-body); font-variant-numeric: tabular-nums;
  cursor: pointer; transition: border-color .15s, background-color .15s, transform var(--dur-press) ease-out;
}
.ds-chip:hover { border-color: var(--rule-strong); }
.ds-chip:active { transform: scale(var(--press-scale)); }
.ds-chip[aria-pressed="true"] { background: var(--sanguine); border-color: var(--sanguine); color: var(--on-sanguine); }
.ds-chip--stage { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--on-stage); }
.ds-chip--stage[aria-pressed="true"] { background: var(--stage-accent); border-color: var(--stage-accent); color: var(--stage-on-accent); }

/* ---------- Badge ---------- */
.ds-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font: 600 13px/18px var(--font-body);
}
.ds-badge--pro  { background: var(--ochre-wash); color: var(--ochre); }
.ds-badge--free { background: transparent; color: var(--graphite-soft); box-shadow: inset 0 0 0 1.5px var(--rule); }
.ds-badge--new  { background: var(--pencil-wash); color: var(--pencil); }
.ds-badge--save { background: var(--sanguine-wash); color: var(--sanguine-strong); }

/* ---------- Field ---------- */
.ds-field { display: grid; gap: 6px; }
.ds-field__label { font: 600 15px/20px var(--font-body); color: var(--graphite); }
.ds-field__hint  { font: 500 13px/18px var(--font-body); color: var(--graphite-soft); }
.ds-field__error { font: 600 13px/18px var(--font-body); color: var(--danger); display: flex; gap: 6px; align-items: center; }
.ds-input, .ds-select, .ds-textarea {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--rule-strong);
  background: var(--paper-sheet); color: var(--graphite);
  font: 400 16px/24px var(--font-body);
}
.ds-textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.ds-input::placeholder, .ds-textarea::placeholder { color: var(--graphite-soft); }
.ds-input:hover, .ds-select:hover { border-color: var(--graphite-soft); }
.ds-input:focus-visible, .ds-select:focus-visible, .ds-textarea:focus-visible { outline: 3px solid var(--pencil); outline-offset: 1px; border-color: var(--pencil); }
.ds-input[aria-invalid="true"] { border-color: var(--danger); }
.ds-select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--graphite-soft) 50%), linear-gradient(135deg, var(--graphite-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- Sheet ---------- */
.ds-sheet {
  background: var(--paper-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-sheet);
  padding: 32px;
}
@media (max-width: 640px) { .ds-sheet { padding: 24px; } }

/* ---------- Note (info / try-this callout) ---------- */
.ds-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--pencil-wash); color: var(--graphite); font-size: 15px; line-height: 23px; }
.ds-note svg { width: 20px; height: 20px; color: var(--pencil); margin-top: 2px; }
.ds-note strong { color: var(--graphite); }

/* ---------- Timer ring (signature) ---------- */
.ds-timer { position: relative; display: inline-grid; place-items: center; width: 168px; aspect-ratio: 1; max-width: 100%; }
.ds-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ds-timer__track { fill: none; stroke: var(--rule); stroke-width: 8; }
.ds-timer__arc { fill: none; stroke: var(--sanguine); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.ds-timer__time { font: 600 44px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--graphite); }
.ds-timer__label { position: absolute; bottom: 30%; font: 500 13px/18px var(--font-body); color: var(--graphite-soft); }
.ds-timer--stage .ds-timer__track { stroke: rgba(255,255,255,.12); }
.ds-timer--stage .ds-timer__arc { stroke: var(--stage-accent); }
.ds-timer--stage .ds-timer__time { color: var(--on-stage); }
.ds-timer--stage .ds-timer__label { color: var(--on-stage-soft); }
.ds-timer--sm { width: 72px; }
.ds-timer--sm .ds-timer__time { font-size: 20px; }
.ds-timer--sm .ds-timer__label { display: none; }
.ds-timer--sm .ds-timer__track, .ds-timer--sm .ds-timer__arc { stroke-width: 10; }

/* ---------- Pose frame (reference photo with timer) ---------- */
.ds-pose { position: relative; border-radius: var(--radius-photo); overflow: hidden; background: var(--paper-sunk); aspect-ratio: 3 / 4; max-width: 100%; }
.ds-pose img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ds-pose__timer { position: absolute; right: 12px; bottom: 12px; background: var(--stage); border-radius: var(--radius-pill); padding: 4px; }
.ds-pose__meta { position: absolute; left: 12px; bottom: 14px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--stage); color: var(--on-stage); font: 600 13px/18px var(--font-body); font-variant-numeric: tabular-nums; }

/* ---------- Pencil annotation ---------- */
.ds-annot { position: relative; display: inline-block; color: var(--pencil); font: 600 26px/28px var(--font-hand); }
.ds-annot svg { display: block; overflow: visible; }
.ds-annot path { fill: none; stroke: var(--pencil); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.ds-annot__line path { stroke-width: 3; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .ds-annot--draw path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: ds-draw 1.1s .3s cubic-bezier(.6,.1,.3,1) forwards; }
}
@keyframes ds-draw { to { stroke-dashoffset: 0; } }

/* ---------- Section head ---------- */
.ds-head { display: grid; gap: 16px; max-width: 720px; }
.ds-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Steps (a real sequence) ---------- */
.ds-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; counter-reset: step; }
.ds-step { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--graphite); counter-increment: step; }
.ds-step::before { content: counter(step); font: 600 15px/20px var(--font-display); color: var(--sanguine); font-variant-numeric: tabular-nums; }
.ds-step h3 { font: 600 20px/26px var(--font-display); margin: 0; letter-spacing: -0.01em; }
.ds-step p { margin: 0; font-size: 15px; line-height: 23px; color: var(--graphite-soft); }

/* ---------- Navbar ---------- */
.ds-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.ds-nav__inner { max-width: 1200px; margin: 0 auto; height: 68px; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.ds-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); font: 700 19px/1 var(--font-display); letter-spacing: -0.02em; }
.ds-nav__brand img { width: 30px; height: 30px; border-radius: 8px; }
.ds-nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.ds-nav__link { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--graphite-soft); font: 600 15px/20px var(--font-body); }
.ds-nav__link:hover { color: var(--graphite); background: var(--paper-sunk); }
.ds-nav__link[aria-current="page"] { color: var(--graphite); box-shadow: inset 0 -2px 0 var(--sanguine); border-radius: 0; }
.ds-nav__actions { display: flex; align-items: center; gap: 8px; }
.ds-nav__menu { display: none; }
@media (max-width: 860px) {
  .ds-nav__links, .ds-nav__actions .ds-btn--secondary { display: none; }
  .ds-nav__menu { display: inline-flex; }
  .ds-nav__inner { gap: 12px; justify-content: space-between; padding: 0 16px; }
}

/* ---------- Footer ---------- */
.ds-footer { background: var(--paper-sunk); border-top: 1px solid var(--rule); }
.ds-footer__inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px 32px; display: grid; gap: 48px; }
.ds-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.ds-footer__title { font: 600 14px/20px var(--font-body); color: var(--graphite); margin: 0 0 12px; }
.ds-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ds-footer__links a { color: var(--graphite-soft); text-decoration: none; font-size: 15px; line-height: 23px; }
.ds-footer__links a:hover { color: var(--sanguine); }
.ds-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .ds-footer__grid { grid-template-columns: 1fr 1fr; } .ds-footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Plan ---------- */
.ds-plan { display: grid; gap: 20px; align-content: start; }
.ds-plan--featured { border: 2px solid var(--ochre); position: relative; }
.ds-plan__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.ds-plan__top .ds-badge { white-space: nowrap; }
.ds-plan__name { font: 600 22px/28px var(--font-display); margin: 0; }
.ds-plan__price { display: flex; align-items: baseline; gap: 6px; }
.ds-plan__amount { font: 700 48px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ds-plan__per { color: var(--graphite-soft); font-size: 15px; }
.ds-plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 22px; }
.ds-plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.ds-plan__list svg { width: 20px; height: 20px; color: var(--sanguine); margin-top: 1px; }
.ds-plan__list li[data-off] { color: var(--graphite-soft); }
.ds-plan__list li[data-off] svg { color: var(--rule-strong); }

/* ---------- FAQ ---------- */
.ds-faq { border-top: 1px solid var(--rule); }
.ds-faq details { border-bottom: 1px solid var(--rule); }
.ds-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font: 600 18px/26px var(--font-body); }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after { content: "+"; font: 400 26px/26px var(--font-display); color: var(--sanguine); transition: transform .2s; }
.ds-faq details[open] summary::after { transform: rotate(45deg); }
.ds-faq__a { padding: 0 0 22px; color: var(--graphite-soft); max-width: 64ch; }

/* ---------- Guide card ---------- */
.ds-guide { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.ds-guide__img { border-radius: var(--radius-photo); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-sheet); border: 1px solid var(--rule); transition: border-color .15s; }
.ds-guide__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ds-guide:hover .ds-guide__img { border-color: var(--rule-strong); }
.ds-guide__title { font: 600 20px/26px var(--font-display); letter-spacing: -0.01em; margin: 0; }
.ds-guide:hover .ds-guide__title { color: var(--sanguine); }
.ds-guide__meta { font: 500 13px/18px var(--font-body); color: var(--graphite-soft); }

/* ---------- Quote (review) ---------- */
.ds-quote { margin: 0; display: grid; gap: 16px; align-content: start; }
.ds-quote blockquote { margin: 0; font: 500 19px/29px var(--font-body); color: var(--graphite); text-wrap: pretty; }
.ds-quote figcaption { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--graphite-soft); }
.ds-stars { color: var(--sanguine); letter-spacing: 2px; font-size: 14px; }

/* ---------- Stage band ---------- */
.ds-stage { background: var(--stage); color: var(--on-stage); }
.ds-stage .ds-h2, .ds-stage .ds-h3, .ds-stage .ds-display { color: var(--on-stage); }
.ds-stage .ds-lead, .ds-stage .ds-small { color: var(--on-stage-soft); }
.ds-phone { width: 260px; max-width: 100%; border-radius: 36px; padding: 8px; background: #000; box-shadow: var(--shadow-phone); }
.ds-phone img { display: block; width: 100%; border-radius: 29px; }

/* ---------- Sketch frame (never crops) ---------- */
.ds-sketch { position: relative; display: grid; place-items: center; aspect-ratio: var(--sketch-ratio, 3 / 4); max-width: 100%; background: var(--paper-sheet); border: 1px solid var(--rule); border-radius: var(--radius-photo); overflow: hidden; }
.ds-sketch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.ds-sketch--empty { border: 1.5px dashed var(--pencil); background: var(--paper-sheet); }
.ds-sketch__loa { position: absolute; inset: 12% 22%; width: auto; height: auto; }
.ds-sketch__loa path { fill: none; stroke: var(--pencil); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.ds-sketch__label { position: absolute; left: 12px; right: 12px; bottom: 10px; text-align: center; font: 600 20px/22px var(--font-hand); color: var(--pencil); }
/* screenshot frame: whole image, no crop */
.ds-shot { border-radius: var(--radius-photo); overflow: hidden; border: 1px solid var(--rule); background: var(--stage); aspect-ratio: 16 / 9; }
.ds-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Reduced motion: keep the feedback, drop the travel ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --ease-settle: ease; --ease-throw: ease; --dur-settle: var(--dur-fade); --dur-throw: var(--dur-fade); --press-scale: 1; }
  .ds-timer__arc { transition: none; }
}

/* =================================================================
   Site chrome added for the Laravel port
   ================================================================= */
html { scroll-padding-top: 84px; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-control); background: var(--graphite); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Wordmark: the pencil note ----------
   "draw" handwritten in pencil blue above a bold "Gestures" (Josefin Sans 700).
   Size it with font-size on .dg-wordmark; everything else is in em. */
.dg-wordmark { position: relative; display: inline-block; font: 700 1em/1 var(--font-display); letter-spacing: -0.01em; color: var(--graphite); padding-top: .42em; white-space: nowrap; }
.dg-wordmark__note { position: absolute; left: -.04em; top: -.02em; font: 600 .58em/1 var(--font-hand); letter-spacing: 0; color: var(--pencil); transform: rotate(-7deg); transform-origin: 0 100%; }
.ds-stage .dg-wordmark { color: var(--on-stage); }
.ds-stage .dg-wordmark__note { color: #86a8ff; }
.dg-lockup { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; color: var(--graphite); }
.dg-lockup img { width: 1.4em; height: 1.4em; border-radius: .36em; display: block; flex: none; }

/* ---------- Navbar additions ---------- */
.ds-nav__brand.dg-lockup { font-size: 24px; gap: 10px; }
.ds-nav__brand .dg-wordmark, .ds-footer__brand .dg-wordmark { padding-top: .5em; }
.ds-nav__brand .dg-wordmark__note, .ds-footer__brand .dg-wordmark__note { font-size: .72em; }
.ds-nav__brand.dg-lockup img { width: 30px; height: 30px; border-radius: 8px; }
.ds-nav__menu svg { width: 20px; height: 20px; }
.ds-nav__menu .dg-icon-close { display: none; }
.ds-nav__menu[aria-expanded="true"] .dg-icon-open { display: none; }
.ds-nav__menu[aria-expanded="true"] .dg-icon-close { display: block; }
.ds-nav__drawer { display: none; }
@media (max-width: 860px) {
  .ds-nav__drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-settle) var(--ease-settle); border-top: 1px solid transparent; }
  .ds-nav__drawer.is-open { grid-template-rows: 1fr; border-top-color: var(--rule); }
  .ds-nav__drawer > div { overflow: hidden; }
  .ds-nav__drawer ul { list-style: none; margin: 0; padding: 8px 16px 4px; display: grid; }
  .ds-nav__drawer li a { display: flex; align-items: center; min-height: 48px; color: var(--graphite); text-decoration: none; font: 600 17px/24px var(--font-body); border-bottom: 1px solid var(--rule); }
  .ds-nav__drawer li a[aria-current="page"] { color: var(--sanguine); }
  .ds-nav__drawer .row { padding: 16px; }
  .ds-nav__drawer .row .ds-btn { flex: 1; }
}
@media (max-width: 420px) { .ds-nav__actions .ds-btn--primary { display: none; } }
@media (max-width: 860px) { .ds-nav__actions .ds-btn.ds-nav__menu { display: inline-flex; min-width: 44px; min-height: 44px; padding: 0 12px; } }

/* ---------- Footer additions ---------- */
.ds-footer__brand { display: grid; gap: 14px; align-content: start; }
.ds-footer__brand .dg-lockup { font-size: 22px; }
.ds-footer__social { display: flex; gap: 8px; }
.ds-footer__social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-control); color: var(--graphite-soft); }
.ds-footer__social a:hover { color: var(--sanguine); background: var(--paper); }
.ds-footer__social svg { width: 20px; height: 20px; }

/* =================================================================
   Site motion (studio-motion.js). Only active when <html> has .js-motion,
   which the layout sets unless the visitor prefers reduced motion.
   ================================================================= */
:root { --ease-out-soft: cubic-bezier(.16, .84, .24, 1); --dur-reveal: 900ms; }

/* Scroll reveal: rise, fade, scale */
.js-motion [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity calc(var(--dur-reveal) * .8) var(--ease-out-soft), transform var(--dur-reveal) var(--ease-out-soft); transition-delay: calc(var(--i, 0) * 80ms); }
.js-motion [data-reveal="fade"] { transform: none; }
.js-motion [data-reveal="scale"] { transform: scale(.94); transform-origin: 50% 80%; }
.js-motion [data-reveal="tilt"] { transform: translate3d(0, 40px, 0) rotate(5deg); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Headlines: words rise out of a mask, one after another */
.dg-words .dg-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.dg-words .dg-w > span { display: inline-block; }
.js-motion .dg-words .dg-w > span { transform: translate3d(0, 105%, 0); transition: transform 1000ms var(--ease-out-soft); transition-delay: calc(var(--w, 0) * 70ms + var(--d, 0ms)); }
.js-motion .dg-words.is-in .dg-w > span { transform: none; }

/* Steps: the rule above each step draws left to right */
.js-motion .ds-step[data-reveal] { border-top-color: transparent; background: linear-gradient(var(--graphite), var(--graphite)) top left / 0% 2px no-repeat; transition-property: opacity, transform, background-size; transition-duration: calc(var(--dur-reveal) * .8), var(--dur-reveal), 1100ms; }
.js-motion .ds-step[data-reveal].is-in { background-size: 100% 2px; }

/* Screenshots settle in from a slight zoom */
.js-motion .ds-shot[data-reveal] img { transform: scale(1.06); transition: transform 1400ms var(--ease-out-soft); transition-delay: inherit; }
.js-motion .ds-shot[data-reveal].is-in img { transform: none; }

/* Hover life: cards and images lift toward you, buttons rise a touch */
.ds-guide, .ds-quote, .ds-plan, .dg-lift { transition: transform var(--dur-settle) var(--ease-settle), box-shadow var(--dur-settle) var(--ease-settle); }
@media (hover: hover) {
  .ds-btn:hover { transform: translateY(-1px); }
  .ds-btn:active { transform: scale(var(--press-scale)); }
  .ds-guide:hover, .dg-lift:hover { transform: translateY(-4px); }
  .ds-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .ds-shot { transition: box-shadow var(--dur-settle) var(--ease-settle), transform var(--dur-settle) var(--ease-settle); }
  .ds-shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}

/* Navbar: tucks away while you read down, returns as soon as you scroll up */
.ds-nav { transition: transform var(--dur-settle) var(--ease-settle), box-shadow var(--dur-settle) var(--ease-settle), background-color .2s; }
.ds-nav.is-scrolled { box-shadow: 0 8px 24px -18px rgba(29, 30, 32, .35); }
.ds-nav.is-tucked { transform: translate3d(0, -100%, 0); }

/* Reading progress for long pages (articles, legal) */
.dg-progress { position: fixed; left: 0; top: 0; z-index: 30; height: 3px; width: 100%; background: var(--sanguine); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .ds-nav.is-tucked { transform: none; }
  .dg-progress { display: none; }
}
