/* tidlark.com — tokens follow DESIGN.md §2 (canvas, surfaces, accent, aurora gradients, radii, soft shadows). */
:root {
  color-scheme: light dark;
  --canvas: #F1F2F6;
  --canvas-tint: #E9EBF3;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.62);
  --surface-sunken: #F5F6FA;
  --surface-inverse: #111114;
  --stroke: rgba(15, 18, 40, 0.08);
  --stroke-glass: rgba(255, 255, 255, 0.70);
  --text: #0E0F14;
  --text-2: #4F5363;          /* DESIGN text-secondary darkened slightly for 4.5:1 on canvas */
  --text-3: #6B6F80;
  --on-inverse: #FFFFFF;
  --accent: #5B5CF0;
  --accent-ink: #4344D6;      /* accent used as text: ≥ 4.5:1 on white and canvas */
  --accent-soft: rgba(91, 92, 240, 0.12);
  --positive: #1A9963;
  --warning: #B9530C;
  --aurora-cool: linear-gradient(135deg, #8EC5FF 0%, #A78BFA 50%, #F0ABFC 100%);
  --aurora-warm: linear-gradient(135deg, #FFD08A 0%, #FF9A6B 50%, #F472B6 100%);
  --aurora-holo: linear-gradient(120deg, #A5F3FC 0%, #C4B5FD 35%, #FBCFE8 70%, #FDE68A 100%);
  --progress: linear-gradient(90deg, #A78BFA, #F472B6, #FB923C);
  --shadow-1: 0 1px 2px rgba(15, 18, 40, 0.04), 0 4px 12px rgba(15, 18, 40, 0.04);
  --shadow-2: 0 2px 4px rgba(15, 18, 40, 0.04), 0 12px 32px rgba(15, 18, 40, 0.08);
  --shadow-3: 0 24px 64px rgba(15, 18, 40, 0.14);
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  /* section tiles (DESIGN §2.3a) */
  --t-overview-bg: linear-gradient(#F0EAFE, #E5DAFD); --t-overview: #6B45D8;
  --t-storage-bg: linear-gradient(#E7F0FE, #D9E7FD); --t-storage: #2363D1;
  --t-apps-bg: linear-gradient(#E2F6F4, #D2EFEC); --t-apps: #0E7C78;
  --t-perf-bg: linear-gradient(#FFEFE2, #FFE3CF); --t-perf: #B9530C;
  --t-protect-bg: linear-gradient(#E4F6EA, #D5F0DF); --t-protect: #1C7D45;
  --t-cloud-bg: linear-gradient(#E3F4FD, #D3ECFB); --t-cloud: #136FA8;
  --t-neutral-bg: linear-gradient(#EEEFF3, #E4E5EB); --t-neutral: #5E6272;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0C0D10;
    --canvas-tint: #131418;
    --surface: #1A1B20;
    --surface-glass: rgba(40, 42, 50, 0.55);
    --surface-sunken: #121317;
    --surface-inverse: #F4F1E6;
    --stroke: rgba(255, 255, 255, 0.08);
    --stroke-glass: rgba(255, 255, 255, 0.14);
    --text: #F5F5F7;
    --text-2: #B4B7C3;
    --text-3: #8C8F9C;
    --on-inverse: #111114;
    --accent-ink: #A9AAFF;
    --accent-soft: rgba(124, 125, 255, 0.16);
    --positive: #4FD69A;
    --warning: #F8B07A;
    --shadow-1: none; --shadow-2: none; --shadow-3: 0 24px 64px rgba(0, 0, 0, 0.5);
    --t-overview-bg: linear-gradient(#2D2546, #251E3B); --t-overview: #B9A2FA;
    --t-storage-bg: linear-gradient(#1D2A44, #18233A); --t-storage: #8DB8F8;
    --t-apps-bg: linear-gradient(#17322F, #132A28); --t-apps: #6FD3CB;
    --t-perf-bg: linear-gradient(#3A2718, #312014); --t-perf: #F8B07A;
    --t-protect-bg: linear-gradient(#18301F, #14291B); --t-protect: #7DD69C;
    --t-cloud-bg: linear-gradient(#162C3A, #132532); --t-cloud: #7CC8F2;
    --t-neutral-bg: linear-gradient(#24252B, #1F2025); --t-neutral: #A3A6B3;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 650; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--r-pill); z-index: 20; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid var(--stroke);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-pill); }
.nav a:hover { color: var(--text); background: var(--surface-sunken); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: var(--shadow-1); }
@media (max-width: 720px) {
  .site-header .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .nav a { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
  .nav .btn { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--r-pill);
  font: 600 16px/1.2 var(--font); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--surface-inverse); color: var(--on-inverse); box-shadow: var(--shadow-2); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 32px rgba(91, 92, 240, 0.28); }
.btn-accent:hover { background: #4C4DE6; }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); border: 1px solid var(--stroke); }
.nav .btn { min-height: 36px; padding: 7px 16px; font-size: 14px; color: var(--on-inverse); }
.nav .btn:hover { background: var(--surface-inverse); color: var(--on-inverse); }
.btn svg { width: 18px; height: 18px; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--stroke); font-size: 13px; font-weight: 600; color: var(--text-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }

/* Sections */
main { display: block; }
section { padding: 72px 0; }
@media (max-width: 600px) { section { padding: 48px 0; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 680px; }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

/* Cards */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); border: 1px solid var(--stroke); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 70vw; max-width: 900px; aspect-ratio: 1; left: 50%; top: -30%;
  transform: translateX(-30%); background: var(--aurora-cool); filter: blur(120px); opacity: .35; border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 .soft { background: var(--aurora-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: light) { .hero h1 .soft { background: linear-gradient(135deg, #C2410C, #DB2777); -webkit-background-clip: text; background-clip: text; } }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.hero .facts { font-size: 14px; color: var(--text-2); }

/* App mockup (CSS only, stands in for a screenshot) */
.mock {
  background: var(--surface-glass); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--stroke-glass); border-radius: var(--r-xl); box-shadow: var(--shadow-3);
  padding: 14px; display: grid; grid-template-columns: 150px 1fr; gap: 12px; min-height: 360px; position: relative;
}
.mock .lights { position: absolute; top: 14px; left: 18px; display: flex; gap: 7px; }
.mock .lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.mock .lights i:nth-child(2) { background: #FEBC2E; } .mock .lights i:nth-child(3) { background: #28C840; }
.mock-side { padding: 34px 6px 6px; display: flex; flex-direction: column; gap: 4px; }
.mock-side span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-2); padding: 6px 8px; border-radius: var(--r-pill); }
.mock-side span b { width: 18px; height: 18px; border-radius: 6px; flex: none; }
.mock-side span.on { background: var(--surface-inverse); color: var(--on-inverse); }
.mock-main { display: grid; gap: 10px; align-content: start; }
.mock-hero { border-radius: var(--r-lg); padding: 18px; background: var(--aurora-holo); color: #14121F; position: relative; overflow: hidden; }
.mock-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); }
.mock-hero .lbl { font-size: 12px; font-weight: 600; opacity: .75; }
.mock-hero .num { font: 650 40px/1 var(--font-display); letter-spacing: -.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.mock-hero .num small { font-size: 18px; opacity: .65; }
.mock-hero .note { font-size: 12px; opacity: .8; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-card { background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; border: 1px solid var(--stroke); }
.mock-card .lbl { font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.mock-card .val { font: 650 20px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.mock-card .bar { height: 6px; border-radius: 99px; background: var(--surface-sunken); margin-top: 8px; overflow: hidden; }
.mock-card .bar i { display: block; height: 100%; width: 62%; background: var(--progress); border-radius: 99px; }
.mock-list { background: var(--surface); border-radius: var(--r-md); padding: 6px 12px; border: 1px solid var(--stroke); }
.mock-list div { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--stroke); }
.mock-list div:last-child { border-bottom: 0; }
.mock-list .ck { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; }
.mock-list .ck.on { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.mock-list .sz { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mock-lark { position: absolute; left: -28px; bottom: -34px; width: 110px; filter: drop-shadow(0 10px 20px rgba(15,18,40,.12)); }
@media (max-width: 520px) { .mock { grid-template-columns: 1fr; } .mock-side { display: none; } .mock-main { padding-top: 22px; } .mock-lark { width: 80px; left: auto; right: -6px; bottom: -52px; } }

/* Principles strip */
.principles .card { padding: 22px; }
.principles h3 { font-size: 17px; margin-bottom: 6px; }
.principles p { font-size: 15px; color: var(--text-2); margin: 0; }
.icon-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.icon-tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.t-overview { background: var(--t-overview-bg); color: var(--t-overview); }
.t-storage { background: var(--t-storage-bg); color: var(--t-storage); }
.t-apps { background: var(--t-apps-bg); color: var(--t-apps); }
.t-perf { background: var(--t-perf-bg); color: var(--t-perf); }
.t-protect { background: var(--t-protect-bg); color: var(--t-protect); }
.t-cloud { background: var(--t-cloud-bg); color: var(--t-cloud); }
.t-neutral { background: var(--t-neutral-bg); color: var(--t-neutral); }

/* Features */
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15.5px; }
.feature ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.feature li { margin: 4px 0; }
.feature .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-sunken); border-radius: var(--r-pill); padding: 3px 10px; margin-top: 10px; }

/* Steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 24px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-inverse); color: var(--on-inverse); font-weight: 700; font-size: 14px;
}
.steps p { color: var(--text-2); font-size: 15.5px; margin: 0; }

/* Screenshot slots */
.shot { margin: 0; }
.shot .slot {
  aspect-ratio: 16 / 10; border-radius: var(--r-lg); border: 2px dashed var(--stroke); background: var(--surface-sunken);
  display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: 14px; padding: 16px;
}
.shot img { display: block; width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.shot figcaption { font-size: 14px; color: var(--text-2); margin-top: 10px; }

/* Pricing */
.price-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 32px; background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow-2); }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--progress); }
.price { font: 650 64px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 8px 0; }
.price .cur { font-size: 28px; vertical-align: 22px; color: var(--text-2); margin-right: 2px; }
.price .unit { font-size: 17px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: 6px; }
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235B5CF0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pricing-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .pricing-split { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 0 22px; box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--text-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--text-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.band { border-radius: var(--r-xl); padding: 48px 32px; text-align: center; background: var(--aurora-holo); color: #14121F; position: relative; overflow: hidden; }
.band p { color: #3A3650; }
.band .btn-primary { background: #111114; color: #fff; }
.band .btn-ghost { background: rgba(255,255,255,.7); color: #111114; border-color: rgba(17,17,20,.08); }
.band .lark { width: 96px; margin: 0 auto 8px; display: block; }

/* Prose pages (legal, support) */
.page-head { padding: 56px 0 24px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.prose th { color: var(--text-2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.callout { background: var(--accent-soft); border-radius: var(--r-md); padding: 16px 20px; margin: 20px 0; }
.callout.draft { background: color-mix(in srgb, #F2A93B 16%, transparent); }
.callout p:last-child { margin-bottom: 0; }
kbd, .key { font: 600 13px/1 var(--font); background: var(--surface); border: 1px solid var(--stroke); border-bottom-width: 2px; border-radius: 6px; padding: 3px 7px; }
.path { font-weight: 600; color: var(--text); }
code { font: 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-sunken); padding: 2px 6px; border-radius: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--stroke); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text); }

/* Footer */
.site-footer { margin-top: 48px; padding: 40px 0 48px; border-top: 1px solid var(--stroke); font-size: 14px; color: var(--text-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.site-footer nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; }
.site-footer nav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 4px; font-weight: 700; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin: 6px 0; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand { font-size: 17px; margin-bottom: 8px; }
.site-footer .brand svg { width: 28px; height: 28px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lark: gentle idle float, still with Reduce Motion (DESIGN §7 "play, then rest") */
@keyframes lark-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.lark-anim .lark-bird { animation: lark-bob 3.2s ease-in-out 3; transform-origin: 50% 85%; }
