/* Cradle Clock website.
   Layout: one centred column; a live dial anchors the hero, and full-width night bands carry
   privacy and price. Dark first, like the app; follows the visitor's light setting.
   No web fonts, scripts or trackers are loaded from anywhere else: the site keeps the app's
   privacy promise. Type is Apple's rounded system face where available. */

:root {
  color-scheme: dark;
  --night: #1b1422;
  --dusk: #261c31;
  --raised: #33273f;
  --line: #45375a;
  --ink: #ebe3f1;
  --mist: #a999b9;
  --lilac: #c8a8f4;
  --lilac-ink: #22152f;
  --track: #2b2037;
  --band: #140f1a;
  --rose: #f4a9b8;
  --peach: #f7c59f;
  --lavender: #c3b1f2;
  --sky: #a3c9f5;
  --butter: #f1dd94;
  --mint: #a8e0c0;
  --chip-ink: #2a1b38;

  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.1rem);
  --radius: 22px;
  --col: 1080px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --night: #f5f1fa;
    --dusk: #fdfbff;
    --raised: #eee7f8;
    --line: #d8cbea;
    --ink: #2b1b47;
    --mist: #6a5a85;
    --lilac: #5a2ab8;
    --lilac-ink: #fbf8ff;
    --track: #e8e0f3;
    --band: #ece4f6;
    --rose: #f29bb0;
    --peach: #f5b885;
    --lavender: #b29df0;
    --sky: #8fbcf0;
    --butter: #ecd06f;
    --mint: #8fd4ae;
    --chip-ink: #2b1b47;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --night: #f5f1fa;
  --dusk: #fdfbff;
  --raised: #eee7f8;
  --line: #d8cbea;
  --ink: #2b1b47;
  --mist: #6a5a85;
  --lilac: #5a2ab8;
  --lilac-ink: #fbf8ff;
  --track: #e8e0f3;
  --band: #ece4f6;
  --rose: #f29bb0;
  --peach: #f5b885;
  --lavender: #b29df0;
  --sky: #8fbcf0;
  --butter: #ecd06f;
  --mint: #8fd4ae;
  --chip-ink: #2b1b47;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: calc(var(--col) + 2 * 24px);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.lede { font-size: var(--step-1); color: var(--mist); max-width: 34em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }

/* ---------- Header ---------- */
.site-head { padding-block: 22px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: flex; gap: 22px; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--mist); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 18px;
  font-family: var(--display); font-weight: 750; font-size: 1.05rem; text-decoration: none;
  background: var(--lilac); color: var(--lilac-ink);
}
.btn svg { width: 22px; height: 22px; }
.btn.soon { cursor: default; }
.price-line { font-size: .95rem; color: var(--mist); }
.price-line b { color: var(--ink); font-weight: 650; }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.dial-fig { margin: 0; display: grid; gap: 14px; justify-items: center; }
.dial { width: min(100%, 460px); height: auto; aspect-ratio: 1; overflow: visible; }
.dial .face { fill: var(--track); }
.dial .hubdisc { fill: var(--dusk); stroke: var(--line); stroke-width: 1.5; }
.dial .tick { stroke: var(--mist); stroke-width: 1.6; stroke-linecap: round; }
.dial .num { fill: var(--mist); font: 600 14px var(--body); text-anchor: middle; dominant-baseline: central; }
.dial .arc { stroke: var(--night); stroke-width: 1.5; }
.dial .seam { stroke: var(--mist); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .7; }
.dial .hand { stroke: var(--lilac); stroke-width: 3.5; stroke-linecap: round; }
.dial .handdot { fill: var(--lilac); }
.dial .hub-date { fill: var(--mist); font: 650 12px var(--body); letter-spacing: .08em; text-anchor: middle; }
.dial .hub-time { fill: var(--ink); font: 800 38px var(--display); text-anchor: middle; font-variant-numeric: tabular-nums; }
.dial .hub-hint { fill: var(--lilac); font: 650 13px var(--body); text-anchor: middle; }
.dial-fig figcaption { font-size: .9rem; color: var(--mist); text-align: center; max-width: 30em; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: .85rem; color: var(--mist); list-style: none; padding: 0; margin: 0; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 40em; }

/* The gesture: a real three-step sequence */
.gesture { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.gesture li { position: relative; padding: 26px 22px 24px; border-radius: var(--radius); background: var(--dusk); border: 1px solid var(--line); counter-increment: step; display: grid; gap: 8px; align-content: start; }
.gesture li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 1rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--lilac-ink); margin-bottom: 6px; }
.gesture p { color: var(--mist); }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.screen { margin: 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.phone { width: min(100%, 300px); border-radius: 44px; padding: 9px; background: #0d0911; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
.phone img { border-radius: 36px; width: 100%; height: auto; aspect-ratio: 1320 / 2868; object-fit: cover; }
.screen figcaption { display: grid; gap: 4px; max-width: 18em; }
.screen figcaption b { font-family: var(--display); font-size: var(--step-1); }
.screen figcaption span { color: var(--mist); font-size: .95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.feature p { color: var(--mist); font-size: 1rem; }
.chip { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: var(--chip-ink); }
.chip svg { width: 66%; height: 66%; }

/* Bands */
.band { background: var(--band); border-block: 1px solid var(--line); }
.privacy .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 15px; height: 8px; border-left: 3px solid var(--mint); border-bottom: 3px solid var(--mint); transform: rotate(-45deg); }
.label-card { border-radius: var(--radius); background: var(--dusk); border: 1px solid var(--line); padding: 26px; display: grid; gap: 12px; }
.label-card .big { font-family: var(--display); font-weight: 800; font-size: var(--step-2); }
.label-card p { color: var(--mist); }

/* Price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.price-card { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--dusk); display: grid; gap: 10px; align-content: start; }
.price-card.main { border-color: var(--lilac); }
.amount { font-family: var(--display); font-weight: 800; font-size: var(--step-3); font-variant-numeric: tabular-nums; }
.price-card p { color: var(--mist); }
.price-card .amount, .label-card .big { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 46em; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: var(--dusk); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding-block: 18px; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 700; color: var(--mist); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 20px; color: var(--mist); display: grid; gap: 10px; }

/* Footer */
.site-foot { padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--mist); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- Document pages (privacy, support) ---------- */
.doc { padding-block: 32px 80px; }
.doc .wrap { max-width: calc(46em + 48px); }
.doc header { display: grid; gap: 12px; margin-bottom: 36px; }
.doc h1 { font-size: var(--step-3); }
.doc h2 { font-size: var(--step-2); margin-top: 44px; margin-bottom: 12px; }
.doc h3 { margin-top: 26px; margin-bottom: 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: 8px; margin: 12px 0 0; }
.doc .summary { padding: 22px 24px; border-radius: var(--radius); background: var(--dusk); border: 1px solid var(--line); display: grid; gap: 10px; }
.doc .meta { color: var(--mist); font-size: .95rem; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--lilac); background: var(--dusk); }
.contact-card a.mail { font-family: var(--display); font-weight: 800; font-size: var(--step-1); text-decoration: none; color: var(--lilac); }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .privacy .wrap, .price { grid-template-columns: 1fr; }
  .hero { padding-block: 16px 56px; }
  .hero .wrap { gap: 36px; }
  .dial { width: min(100%, 380px); }
  .screens, .features, .gesture { grid-template-columns: 1fr; }
  .screens { gap: 44px; }
  .section { padding-block: 56px; }
}
@media (min-width: 861px) and (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
