/* TinySaur — marketing site
   Palette from Roomy/UI/Theme.swift. Light by default, dark via prefers-color-scheme. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f3;          /* quiet alternate surface */
  --ink: #10261a;
  --ink-2: #3e4d43;
  --ink-3: #5c6b61;            /* dimmed statement text, 5.6:1 on white */
  --line: rgba(16, 38, 26, .12);
  --sky: #bfe0f5;
  --sky-deep: #9ccbe9;
  --sun: #ff8a4c;
  --forest: #2f6b4a;
  --meadow: #4b814f;
  --sprout: #93c468;
  --lime: #ddf36b;
  --meadow-fill: #f2f6ef;
  --link: #2f6b4a;
  --control-bg: #10261a;
  --control-ink: #f2f7f3;
  --control-ink-2: #b7c4bb;
  --bar: rgba(255, 255, 255, .72);
  --frame: #1c1f1d;
  --frame-edge: #3b403d;
  --shadow: 0 40px 80px -30px rgba(16, 38, 26, .35), 0 18px 36px -18px rgba(16, 38, 26, .25);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 14vw, 180px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a130e;
    --bg-soft: #111c16;
    --ink: #f2f7f3;
    --ink-2: #b7c4bb;
    --ink-3: #8e9c93;
    --line: rgba(242, 247, 243, .14);
    --sky: #13283a;
    --sky-deep: #0e2030;
    --sun: #f07a3c;
    --forest: #21503a;
    --meadow: #3a6b41;
    --sprout: #55793f;
    --lime: #c6dd55;
    --meadow-fill: #16211b;
    --link: #8fd19c;
    --control-bg: #142a1e;
    --bar: rgba(10, 19, 14, .72);
    --frame: #050706;
    --frame-edge: #2f3532;
    --shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 18px 36px -18px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- navigation bar: translucent material ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar nav { display: flex; gap: 4px; }
.bar nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-2); text-decoration: none; font-size: .875rem; border-radius: 10px;
}
.bar nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 55%, color-mix(in srgb, var(--sky) 70%, var(--sky-deep)) 100%);
  text-align: center;
  overflow: hidden;
  padding-top: clamp(56px, 9vw, 112px);
}
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter); }
.hero-icon {
  width: clamp(64px, 7vw, 88px); height: auto; margin: 0 auto clamp(20px, 2.5vw, 28px);
  border-radius: 22.5%;
  box-shadow: 0 10px 24px -10px rgba(16, 38, 26, .45);
}
.hero h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
}
.hero-lede {
  margin: clamp(16px, 2vw, 24px) auto 0;
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--ink-2);
}

/* "Coming soon" — a quiet, non-interactive mark, not a fake button */
.soon { margin-top: clamp(28px, 3.5vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.soon-mark {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 14px;
  background: var(--ink); color: var(--bg);
  font-size: 1rem; font-weight: 600; letter-spacing: -.01em;
}
.soon-mark::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 28%, transparent);
}
.soon-note { font-size: .9375rem; color: var(--ink-2); }

/* stage: hills, dino and the phone rising out of them */
.hero-stage {
  position: relative;
  --pw: clamp(250px, 30vw, 380px);
  margin-top: clamp(48px, 6vw, 80px);
  height: calc(var(--pw) * 1.68);
}
.hills { position: absolute; inset: 0; z-index: auto; }
.hill-back, .hill-mid { z-index: 0; }
.hill { position: absolute; border-radius: 50% 50% 0 0 / 100% 100% 0 0; bottom: -2px; }
.hill-back  { background: var(--sprout); left: -12%; width: 70%; height: 46%; }
.hill-mid   { background: var(--meadow); right: -16%; width: 74%; height: 58%; }
.hill-front { background: var(--forest); left: -8%; width: 116%; height: 20%; z-index: 3; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-stage::after { /* soft sun */
  content: ""; position: absolute; z-index: 0;
  width: clamp(90px, 11vw, 160px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sun);
  left: clamp(6%, 12vw, 16%); top: 2%;
}
.hero-dino {
  position: absolute; z-index: 1;
  width: clamp(120px, 15vw, 210px);
  right: max(4%, calc(50% - min(39vw, 520px)));
  bottom: 44%;
  filter: drop-shadow(0 18px 18px rgba(16, 38, 26, .22));
}
.phone-hero {
  position: absolute; z-index: 2; left: 50%; transform: translateX(-50%);
  top: 0;
  width: var(--pw);
}

/* ---------- device frame (CSS only) ---------- */
.phone {
  margin: 0;
  position: relative;
  padding: 2.6%;
  border-radius: 14.5% / 6.7%;
  background: var(--frame);
  box-shadow:
    inset 0 0 0 1.5px var(--frame-edge),
    inset 0 0 0 4px var(--frame),
    0 0 0 1px rgba(0, 0, 0, .06),
    var(--shadow);
}
.phone img, .phone picture { border-radius: 12.4% / 5.7%; width: 100%; }
.phone picture img { border-radius: inherit; }
.phone::before { /* side button */
  content: ""; position: absolute; right: -2px; top: 24%; width: 3px; height: 9%;
  background: var(--frame-edge); border-radius: 0 2px 2px 0;
}

/* ---------- statement ---------- */
.statement {
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--section) var(--gutter);
}
.statement p {
  font-size: clamp(1.875rem, 4.6vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 600;
  color: var(--ink-3);
  max-width: 22ch;
}
.statement strong { color: var(--ink); font-weight: 600; }

/* ---------- shared section type ---------- */
.feature h2, .tile h2, .control h2, .privacy h2, .faq h2, .closing h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.lead {
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -.018em;
  color: var(--ink-2);
  font-weight: 500;
}

/* ---------- videos feature ---------- */
.feature {
  background: var(--bg-soft);
  padding: var(--section) var(--gutter) clamp(72px, 9vw, 120px);
}
.feature-in {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 120px); align-items: center;
}
.feature-copy .lead { margin-top: 28px; max-width: 30ch; }
.phone-lg { width: min(100%, 360px); justify-self: center; }

.facts {
  max-width: var(--wrap); margin: clamp(72px, 9vw, 120px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(24px, 4vw, 56px);
}
.facts div { border-top: 1px solid var(--line); padding-top: 24px; }
.facts dt { font-weight: 600; font-size: 1.1875rem; letter-spacing: -.02em; }
.facts dd { margin: 8px 0 0; color: var(--ink-2); }

/* ---------- screenshots + live photos ---------- */
.duo {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(12px, 2vw, 24px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px);
}
.tile {
  position: relative; overflow: hidden;
  border-radius: clamp(24px, 3vw, 36px);
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: clamp(560px, 60vw, 760px);
}
.tile-meadow { background: var(--meadow-fill); }
.tile-sky { background: var(--sky); }
.tile h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.tile-copy p { margin: 16px auto 0; max-width: 32ch; color: var(--ink-2); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.4; }
.phone-tile {
  width: min(78%, 320px);
  margin-top: auto; padding-bottom: 0;
  transform: translateY(18%);
  margin-bottom: -6%;
}
.tile-copy { margin-bottom: clamp(40px, 5vw, 56px); }

/* ---------- you stay in control ---------- */
.control {
  margin-top: clamp(80px, 10vw, 140px);
  background: var(--control-bg); color: var(--control-ink);
  padding: var(--section) var(--gutter);
  overflow: hidden;
}
.control-in {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); align-items: center;
}
.control h2 { color: var(--control-ink); }
.control .lead { color: var(--control-ink); margin-top: 28px; }
.control-copy p:not(.lead) { color: var(--control-ink-2); margin-top: 20px; max-width: 40ch; }
.pair { display: flex; justify-content: center; gap: clamp(16px, 2.5vw, 28px); }
.phone-md { width: min(46%, 260px); --frame: #050706; --frame-edge: #343a37; box-shadow: inset 0 0 0 1.5px var(--frame-edge), inset 0 0 0 4px var(--frame), 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.7); }
.phone-offset { margin-top: 18%; }

/* ---------- privacy ---------- */
.privacy {
  max-width: 900px; margin: 0 auto;
  padding: var(--section) var(--gutter);
  text-align: center;
}
.privacy-dino { width: clamp(140px, 16vw, 200px); margin: 0 auto 28px; }
.privacy .lead { margin: 28px auto 0; max-width: 34ch; }
.privacy .more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-size: 1.125rem; font-weight: 500; }
.more::after { content: "\203A"; margin-left: 6px; font-size: 1.3em; line-height: 1; }

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--line);
  max-width: 880px; margin: 0 auto;
  padding: var(--section) var(--gutter);
}
.faq h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: clamp(32px, 4vw, 48px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding: 18px 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 24px 0; max-width: 62ch; }

/* ---------- closing ---------- */
.closing {
  background: var(--bg-soft);
  text-align: center;
  padding: var(--section) var(--gutter);
}
.closing img { width: clamp(96px, 10vw, 128px); margin: 0 auto 28px; border-radius: 22.5%; box-shadow: 0 16px 32px -14px rgba(16, 38, 26, .45); }
.closing h2 { font-size: clamp(2.5rem, 6vw, 4rem); }
.closing p { margin-top: 12px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); color: var(--ink-2); font-weight: 500; letter-spacing: -.02em; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.foot-in {
  max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -10px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot p a { color: var(--ink); }
.foot .copy { width: 100%; color: var(--ink-3); }

/* ---------- text pages (privacy, support) ---------- */
.doc-head {
  max-width: 760px; margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--gutter) clamp(32px, 4vw, 48px);
}
.doc-head h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; }
.doc-head p { margin-top: 16px; font-size: clamp(1.1875rem, 2vw, 1.375rem); color: var(--ink-2); letter-spacing: -.018em; }
.doc {
  max-width: 760px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}
.doc h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem); letter-spacing: -.03em; line-height: 1.15;
  margin: 2.2em 0 .6em; padding-top: 1.4em; border-top: 1px solid var(--line);
}
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { font-size: 1.1875rem; letter-spacing: -.02em; margin: 1.8em 0 .4em; }
.doc p + p, .doc ul + p { margin-top: 1em; }
.doc ul { padding-left: 1.2em; margin: 1em 0; }
.doc li { margin-bottom: .45em; }
.doc .meta { color: var(--ink-3); font-size: .9375rem; margin-bottom: 1.5em; }
.doc a { overflow-wrap: anywhere; }
.contact {
  background: var(--bg-soft); border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
}
.contact h2 { margin: 0 0 .5em; padding: 0; border: 0; }
.doc .faq-list { margin-top: 8px; }
.doc details { border-bottom: 1px solid var(--line); }
.doc details:first-of-type { border-top: 1px solid var(--line); }
.doc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 60px; padding: 16px 0;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em;
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.doc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.doc details p { color: var(--ink-2); padding: 0 32px 22px 0; }

/* ---------- scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .feature-in, .control-in { grid-template-columns: 1fr; }
  .feature-copy, .control-copy { text-align: center; max-width: 600px; margin: 0 auto; }
  .feature-copy .lead, .control-copy p { margin-left: auto; margin-right: auto; }
  .facts { grid-template-columns: 1fr; max-width: 560px; }
  .duo { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .hero-dino { bottom: 30%; }
}
@media (max-width: 640px) {
  .bar nav a:not(:last-child) { display: none; }
  .hero-stage { --pw: 250px; }
  .hero-dino { display: none; }
  .hero-stage::after { width: 72px; left: 4%; top: 6%; }
  .hill-front { left: -30%; width: 160%; height: 18%; }
  .statement p { font-size: 1.75rem; }
  .phone-tile { width: 76%; }
  .pair { gap: 12px; }
  .phone-md { width: 48%; }
  .faq details p, .doc details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .faq summary::after, .doc summary::after { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: var(--ink); --ink-3: var(--ink); --line: currentColor; }
}
@media print {
  .bar, .hero-stage, .closing { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
