/* ardo.life: Apple-like and quiet. System type, lots of white, the app's real screens in thin phone frames, and
   Ardo's aura as a soft glow behind them. Light only, like the app. */
:root {
  --ink: #131316; --ink-2: #4b4b55; --ink-3: #86868f; --bg: #ffffff; --bg-2: #f5f5f7; --line: rgba(19, 19, 22, 0.08);
  --aura: conic-gradient(from 0deg, #ffc915, #ffb07a, #eb64a0, #b428e6, #9aa0ff, #7ec4ff, #7fd9ee, #ffc915);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif; letter-spacing: -0.03em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 700; }
h1 span { color: var(--ink-3); }
h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 40px); }
.center { text-align: center; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); margin-top: 18px; }
.lede.center { margin-left: auto; margin-right: auto; max-width: 560px; }
.eyebrow { font-size: 17px; font-weight: 600; color: #eb64a0; margin-bottom: 12px; }
.small { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.78); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 0.5px var(--line); }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
.nav .nav-cta { color: #fff; background: var(--ink); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.nav .nav-cta:hover { color: #fff; opacity: 0.85; }
@media (max-width: 700px) { .nav nav a:not(.nav-cta) { display: none; } }

/* Phones: the app's real screen, the iOS status bar and the island on top. */
.phone { margin: 0; width: 300px; aspect-ratio: 440 / 956; border-radius: 52px; padding: 10px; background: #151518; box-shadow: 0 0 0 1px #2a2a2e, 0 40px 80px -20px rgba(19, 19, 22, 0.35); position: relative; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg-2); }
.phone .screen > img:not(.sb) { width: 100%; height: auto; }
.phone .sb { position: absolute; top: 0; left: 0; width: 100%; height: auto; z-index: 2; }
.phone .island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 30%; height: 3.1%; border-radius: 20px; background: #000; z-index: 3; }
.phone.mini { width: 210px; border-radius: 38px; padding: 7px; }
.phone.mini .screen { border-radius: 31px; }
.phone.mini .island { top: 7px; }

/* The aura: Ardo's colours, blurred soft. */
.glow { position: absolute; z-index: 0; border-radius: 50%; background: var(--aura); filter: blur(70px) saturate(1.05); opacity: 0.45; pointer-events: none; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 110px) 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: center; }
.hero-text .lede { max-width: 520px; }
.cta { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.cta.center { justify-content: center; margin-top: 40px; }
.note { font-size: 14px; color: var(--ink-3); }
.badge img { height: 50px; width: auto; }
.badge.big img { height: 56px; }
.hero-art { position: relative; height: 640px; }
.hero-art .phone { position: absolute; }
.hero-art .back { width: 270px; left: 8%; top: 60px; transform: rotate(-6deg); opacity: 0.96; }
.hero-art .front { width: 300px; right: 6%; top: 0; z-index: 2; }
.hero-glow { width: 520px; height: 520px; left: 50%; top: 52%; transform: translate(-50%, -50%); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-text .lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { height: 560px; max-width: 460px; margin: 10px auto 0; width: 100%; }
  .hero-art .back { width: 220px; left: 0; top: 70px; }
  .hero-art .front { width: 250px; right: 0; }
  .hero-glow { width: 380px; height: 380px; }
}

/* Strip of facts */
.strip { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 30px; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.strip b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.strip span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 700px) { .strip-in { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } }

/* Feature rows */
.row { padding: clamp(70px, 10vw, 130px) 0; }
.row:nth-of-type(even) { background: var(--bg-2); }
.row-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.row.flip .row-text { order: 2; }
.row-text .lede { max-width: 470px; }
.row-art { position: relative; display: grid; place-items: center; }
.row-art .phone { z-index: 1; }
.row-art .glow { width: 420px; height: 420px; }
.g1 { transform: rotate(40deg); } .g2 { transform: rotate(130deg); } .g3 { transform: rotate(220deg); } .g4 { transform: rotate(300deg); }
@media (max-width: 860px) {
  .row-in { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .row.flip .row-text { order: 0; }
  .row-text .lede { margin-left: auto; margin-right: auto; }
  .row-art .phone { width: 260px; }
  .row-art .glow { width: 320px; height: 320px; }
}

/* Tiles */
.tiles { padding: clamp(70px, 10vw, 120px) 0; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.tile { background: var(--bg-2); border-radius: var(--radius); padding: 28px 22px 26px; overflow: hidden; }
.tile-art { height: 300px; overflow: hidden; display: flex; justify-content: center; margin-bottom: 22px; mask-image: linear-gradient(to bottom, #000 72%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.tile p { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
@media (max-width: 960px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

/* Watch */
.watch { padding: clamp(70px, 10vw, 120px) 0; background: #000; color: #f5f5f7; }
.watch .lede { color: #a1a1aa; }
.watch-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.watch-art { display: flex; gap: 16px; justify-content: center; }
.wface { margin: 0; width: 170px; border-radius: 46px; padding: 10px; background: #1c1c1f; box-shadow: 0 0 0 1px #333, 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.wface img { border-radius: 36px; }
.wface:nth-child(2) { transform: translateY(-24px); }
@media (max-width: 860px) {
  .watch-in { grid-template-columns: 1fr; text-align: center; }
  .watch .lede { margin-left: auto; margin-right: auto; }
  .wface { width: 30%; border-radius: 30px; padding: 6px; }
  .wface img { border-radius: 24px; }
}

/* Privacy */
.privacy { padding: clamp(70px, 10vw, 120px) 0; }
.privacy-card { background: var(--bg-2); border-radius: 36px; padding: clamp(32px, 6vw, 64px); }
.privacy-card ul { list-style: none; padding: 0; margin: 34px 0 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; }
.privacy-card li { font-size: 17px; color: var(--ink-2); line-height: 1.45; }
.privacy-card li b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.link { color: #0066cc; text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
@media (max-width: 700px) { .privacy-card ul { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { padding: clamp(70px, 10vw, 120px) 0; background: var(--bg-2); }
.plans { display: flex; gap: 18px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.plan { position: relative; width: 300px; background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 1px 2px rgba(19, 19, 22, 0.04), 0 10px 30px rgba(19, 19, 22, 0.06); }
.plan.best { box-shadow: 0 0 0 2px var(--ink), 0 10px 30px rgba(19, 19, 22, 0.08); }
.plan b { font-size: 19px; }
.price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; margin-top: 10px; }
.price small { font-size: 17px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .sub { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.tag { position: absolute; top: -12px; right: 22px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }

/* FAQ and documents */
.faq { padding: clamp(70px, 10vw, 120px) 0; }
.faq h2 { margin-bottom: 34px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink-3); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--ink-2); }
.doc { padding: clamp(56px, 8vw, 96px) 0 100px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.doc p { color: var(--ink-2); margin-top: 12px; }
.doc .updated { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.doc a { color: #0066cc; }
.doc details summary { font-size: 17px; }

/* Final call */
.final { padding: clamp(80px, 12vw, 150px) 0; overflow: hidden; }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.final-in > *:not(.glow) { position: relative; z-index: 1; }
.final img { border-radius: 24px; box-shadow: 0 0 0 0.5px var(--line), 0 20px 50px -10px rgba(19, 19, 22, 0.25); }
.final-glow { width: 600px; height: 300px; top: 30%; left: 50%; transform: translateX(-50%); opacity: 0.3; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 48px; background: var(--bg-2); }
.foot .wrap { display: grid; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.foot-brand img { border-radius: 7px; }
.foot-brand span { color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }

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

/* ---------- Meet Ardo: the pinned opening (site/src/ardo-site.ts drives it) ---------- */
.story { position: relative; height: 430vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-glow { width: 70vmin; height: 70vmin; left: 50%; top: 40%; transform: translate(-50%, -50%); opacity: 0.42; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.38; } 50% { transform: translate(-50%, -50%) scale(1.12) rotate(40deg); opacity: 0.5; } }

/* Ardo himself: the live canvas, with a flat heart holding his place until the fur is drawn. */
.ardo-box { position: absolute; left: 0; top: 0; z-index: 1; will-change: transform; }
.ardo-host { position: absolute; inset: 0; }
.ardo-host > * { width: 100% !important; height: 100% !important; }
.ardo-flat { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.6s; }
.ardo-box.live .ardo-flat { opacity: 0; }
.js .story:not(.still) .ardo-box { width: min(62vw, 34vh, 340px); height: min(62vw, 34vh, 340px); transform: translate(calc(50vw - 50%), calc(30vh - 50%)); }
.js .story:not(.still) .ardo-box > .ardo-host { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2.5%; } }

.story-copy { position: absolute; left: 0; right: 0; z-index: 3; text-align: center; padding: 0 20px; will-change: transform, opacity; }
.js .story:not(.still) .story-copy { top: calc(30vh + min(31vw, 17vh, 170px) + 18px); }
.story-copy h1 { font-size: clamp(40px, 6vw, 72px); }
.story-copy .lede { max-width: 560px; margin-left: auto; margin-right: auto; }
.story-copy .cta { justify-content: center; margin-top: 26px; }

.story-phone { position: absolute; left: 0; top: 0; z-index: 2; will-change: transform; }
.js .story:not(.still) .story-phone { width: 300px; transform: translate(-999px, 110vh); }
.story-phone .phone { width: 100%; }
.story-screen { position: absolute; top: 0; left: 0; width: 100%; height: auto; opacity: 0; transition: opacity 0.55s ease; }
.story-screen.on { opacity: 1; }
.story-phone .screen > img.story-screen:first-of-type { position: relative; }

.caps { position: absolute; z-index: 3; pointer-events: none; }
.cap { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cap.on { opacity: 1; transform: none; }
.cap h2 { font-size: clamp(30px, 4vw, 54px); }
.cap p:last-child { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 20px); margin-top: 14px; max-width: 420px; }
@media (min-width: 900px) { .caps { left: max(5vw, calc(50vw - 560px)); width: min(38vw, 460px); top: 50%; transform: translateY(-50%); height: 260px; } }
@media (max-width: 899px) { .caps { left: 20px; right: 20px; top: 74px; height: 140px; text-align: center; } .cap p:last-child { display: none; } .cap .eyebrow { margin-bottom: 6px; } }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; font-size: 13px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-hint i { width: 1.5px; height: 22px; background: linear-gradient(var(--ink-3), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Still: reduced motion, or no script. Same content, laid out calmly. */
.story.still, html:not(.js) .story { height: auto; }
.story.still .stage, html:not(.js) .story .stage { position: relative; height: auto; overflow: visible; padding: 70px 0 40px; display: flex; flex-direction: column; align-items: center; }
.story.still .ardo-box, html:not(.js) .story .ardo-box { position: relative; width: 220px; height: 220px; transform: none; }
.story.still .story-copy, html:not(.js) .story .story-copy { position: relative; }
.story.still .story-phone, html:not(.js) .story .story-phone { position: relative; width: 280px; margin-top: 50px; transform: none; }
.story.still .caps, html:not(.js) .story .caps { position: relative; inset: auto; height: auto; transform: none; width: min(560px, 100% - 40px); text-align: center; margin-top: 40px; }
.story.still .cap, html:not(.js) .story .cap { position: relative; opacity: 1; transform: none; margin-bottom: 30px; }
.story.still .cap p:last-child, html:not(.js) .story .cap p:last-child { display: block; margin-left: auto; margin-right: auto; }
.story.still .scroll-hint, html:not(.js) .story .scroll-hint { display: none; }

/* The last call: a smaller Ardo above the words. */
.ardo-box.end { position: relative; width: 150px; height: 150px; }
.ardo-box.end .ardo-host { animation: float 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) { .story-glow, .ardo-host, .scroll-hint i { animation: none !important; } .story-screen, .cap { transition: none; } }
