/* ============================================================
   Dino Do List — shared styles
   Green theme · light-mode default · no frameworks
   ============================================================ */

:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-darker: #166534;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(22, 163, 74, 0.22);
  --shadow-lg: 0 12px 32px rgba(22, 163, 74, 0.28);
  --radius: 14px;
  --radius-lg: 20px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .dino { font-size: 1.5rem; line-height: 1; }
.brand .brand-name b { color: var(--green); }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  display: inline-block; padding: 8px 13px; border-radius: 10px;
  color: var(--ink-soft); font-weight: 600; font-size: 0.94rem;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--green-50); color: var(--green-dark); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--green-dark); background: var(--green-100); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green); color: #fff !important;
  font-weight: 700; font-size: 0.92rem;
  padding: 9px 16px; border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .06s ease;
}
.nav-cta:hover { background: var(--green-dark); text-decoration: none; }
.nav-cta:active { transform: translateY(1px); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; color: var(--ink);
}
.nav-toggle .bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle .bars span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 20px 16px; display: none;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-cta { justify-content: center; margin-top: 6px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; cursor: pointer; border: 2px solid transparent;
  border-radius: 14px; line-height: 1.2;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .75; cursor: default; }

.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled:hover { background: var(--green); }

.btn-lg {
  font-size: 1.28rem; padding: 20px 40px; border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.btn-lg .icon { width: 26px; height: 26px; }

.btn-md { font-size: 1.05rem; padding: 14px 28px; }

.btn-ghost {
  background: transparent; color: var(--ink-soft); border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--green-200); }

.btn-link { background: none; border: none; padding: 0; color: var(--green-dark); font-weight: 600; cursor: pointer; }

/* Pulsing attention ring on the big CTA */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35), var(--shadow-lg); }
  70% { box-shadow: 0 0 0 14px rgba(22, 163, 74, 0), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0), var(--shadow-lg); }
}
.btn-lg.pulse { animation: pulse-ring 2.4s ease-out infinite; }

/* ---------- Hero ---------- */
#download { scroll-margin-top: 80px; }
.hero {
  padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-50); color: var(--green-darker);
  border: 1px solid var(--green-200); border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; padding: 6px 14px; margin-bottom: 22px;
}
.hero .mascot { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; }
.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 3.6rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; color: var(--ink);
}
.hero h1 .accent { color: var(--green); }
.hero .lede {
  color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 560px; margin: 18px auto 0;
}
.hero-actions {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 32px;
}
.hero-hint { font-size: 0.9rem; color: var(--muted); min-height: 1.4em; margin-top: 4px; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 0.9rem; }
.hero-notes span { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes .dot { color: var(--green); font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15;
}
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.06rem; }
.eyebrow {
  display: inline-block; color: var(--green-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; margin-bottom: 10px;
}

/* Feature cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.section--alt .card { background: #fff; }
.card .icon {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: 12px; font-size: 1.5rem; margin-bottom: 14px;
}
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Feature list (features page) */
.feature-row {
  display: grid; grid-template-columns: 60px 1fr; gap: 22px;
  padding: 26px 0; border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .icon {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: 14px; font-size: 1.7rem;
}
.feature-row h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 4px; }
.feature-row p { color: var(--muted); }

/* Steps (how it works) */
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  padding: 24px 0;
}
.step .num {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-weight: 800; font-size: 1.25rem;
  border-radius: 50%; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 48px 32px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { color: #dcfce7; margin: 10px auto 24px; max-width: 480px; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { background: var(--green-50); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Prose (privacy/about) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 26px 0 8px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.page-hero { padding: 56px 0 8px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.page-hero h1 .accent { color: var(--green); }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin: 14px auto 0; }

/* ---------- iOS modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.5);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }
.modal ol { margin: 0 0 18px 20px; color: var(--ink-soft); }
.modal li { margin-bottom: 10px; }
.modal .ios-icon { display: inline-flex; align-items: center; justify-content: center; }
.modal-close {
  width: 100%; padding: 12px; border-radius: 12px; border: none;
  background: var(--green); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.modal-close:hover { background: var(--green-dark); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 48px 0 32px; margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 10px; max-width: 300px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ink-soft); font-size: 0.94rem; }
.footer-col a:hover { color: var(--green-dark); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 22px; color: var(--muted); font-size: 0.86rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--green-dark); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-24 { margin-bottom: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
