/* Tiny Otter website — one stylesheet for every page.
   Colors follow apps/ios/TidyOtter/UI/Theme.swift: deep teal #1F6B66 is the one main color;
   yellow is only a small accent. Brownie's colors come from docs/UI_DESIGN.md. */

:root {
  --teal: #1f6b66;
  --teal-strong: #17524e;
  --teal-soft: #e3efed;
  --yellow: #f2c14e;
  --bg: #fbf8f3;          /* warm off-white, close to Brownie's cream */
  --surface: #ffffff;
  --text: #1f2a28;
  --muted: #55625f;
  --line: #e2ddd4;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 42, 40, .06), 0 8px 24px rgba(31, 42, 40, .06);
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #4fb3aa;
    --teal-strong: #7fcbc3;
    --teal-soft: #17302e;
    --bg: #121716;
    --surface: #1b2220;
    --text: #eef2f1;
    --muted: #a9b5b2;
    --line: #2c3633;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-strong); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--teal);
  background: var(--teal-soft); padding: 4px 12px; border-radius: 999px; margin: 0 0 16px;
}
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-art img {
  width: min(360px, 100%); margin: 0 auto; border-radius: 32px; box-shadow: var(--shadow);
}

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-block; background: var(--teal); color: #fff; font-weight: 600;
  padding: 14px 22px; border-radius: 14px; text-decoration: none;
}
.button:hover { background: var(--teal-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .button, .button:hover { color: #0d1312; } }
.button.secondary {
  background: transparent; color: var(--teal); border: 1.5px solid var(--teal);
}
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  padding: 13px 20px; border-radius: 14px; border: 1.5px dashed var(--line); color: var(--muted);
}
.small { font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 38em; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; counter-increment: step;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 12px;
  background: var(--teal); color: #fff; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #0d1312; } }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }

/* Features with screenshots */
.features { display: grid; gap: 28px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { margin: 0; }
.feature .phone {
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--surface); max-width: 280px; margin: 0 auto 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); }

/* Safety + privacy cards */
.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.card h3 { margin: 0 0 10px; font-size: 21px; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 6px 0; }
.card .mark { width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; display: inline-block; margin-right: 8px; }

/* Brownie */
.brownie { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .brownie { grid-template-columns: 220px 1fr; } }
.brownie img { width: 220px; border-radius: 28px; margin: 0 auto; }
.quote {
  font-size: 22px; font-weight: 600; margin: 0 0 8px; color: var(--teal);
}

/* Coming soon */
.soon-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.soon-list li {
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 14px; font-size: 15px;
}

/* Final call to action */
.closing { text-align: center; }
.closing img { width: 140px; border-radius: 24px; margin: 0 auto 20px; }
.closing .cta { justify-content: center; }

/* Text pages (privacy, terms, support) */
.page { padding: 40px 0 64px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); }
.page h2 { font-size: 24px; margin-top: 36px; }
.page h3 { font-size: 19px; margin-top: 24px; }
.page li { margin: 6px 0; }
.draft {
  background: color-mix(in srgb, var(--yellow) 22%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--yellow) 60%, var(--line));
  border-radius: 14px; padding: 14px 18px; margin: 0 0 28px; font-size: 15px;
}
.tbd { background: var(--teal-soft); border-radius: 6px; padding: 0 6px; font-size: .92em; }
details {
  border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 18px; margin: 12px 0;
}
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color .15s ease; }
}
