/* Stashpad marketing site — shared design system.
   Palette comes from the app icon: warm sand, envelope cream, bill green, coin gold. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700&display=swap');

:root {
  --sand: #f6ecdd;
  --sand-raised: #efe1cb;
  --surface: #fffaf2;
  --ink: #2b2118;
  --ink-soft: #4a3d31;
  --muted: #7a6a5a;
  --green: #3f8a3c;
  --green-deep: #2a5e28;
  --green-tint: rgba(63, 138, 60, 0.10);
  --gold: #d99a1e;
  --gold-tint: rgba(217, 154, 30, 0.14);
  --line: rgba(74, 61, 49, 0.14);
  --line-strong: rgba(74, 61, 49, 0.28);
  --shadow: rgba(43, 33, 24, 0.12);
  --on-green: #fffaf2;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand: #17120d;
    --sand-raised: #211a13;
    --surface: #1d1711;
    --ink: #f3e9dc;
    --ink-soft: #dccdbb;
    --muted: #a8977f;
    --green: #7cc576;
    --green-deep: #a5dc9f;
    --green-tint: rgba(124, 197, 118, 0.12);
    --gold: #f0bd52;
    --gold-tint: rgba(240, 189, 82, 0.14);
    --line: rgba(243, 233, 220, 0.12);
    --line-strong: rgba(243, 233, 220, 0.24);
    --shadow: rgba(0, 0, 0, 0.45);
    --on-green: #17120d;
  }
}

:root[data-theme="dark"] {
  --sand: #17120d;
  --sand-raised: #211a13;
  --surface: #1d1711;
  --ink: #f3e9dc;
  --ink-soft: #dccdbb;
  --muted: #a8977f;
  --green: #7cc576;
  --green-deep: #a5dc9f;
  --green-tint: rgba(124, 197, 118, 0.12);
  --gold: #f0bd52;
  --gold-tint: rgba(240, 189, 82, 0.14);
  --line: rgba(243, 233, 220, 0.12);
  --line-strong: rgba(243, 233, 220, 0.24);
  --shadow: rgba(0, 0, 0, 0.45);
  --on-green: #17120d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.6 "Nunito Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.eyebrow { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6em; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--sand) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem "Fraunces", serif; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 22px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green); }
.nav-cta { margin-left: auto; }
@media (min-width: 880px) { .nav-links { display: flex; } .nav-cta { margin-left: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn[aria-disabled="true"] { opacity: 0.75; cursor: default; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 64px; } .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-shot { justify-self: center; width: min(320px, 78vw); border-radius: 40px; box-shadow: 0 30px 60px -20px var(--shadow); border: 1px solid var(--line); }

/* The sentence */
.sentence { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: grid; gap: 18px; }
@media (min-width: 760px) { .sentence { grid-template-columns: repeat(3, 1fr); padding: 36px; } }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold); font-weight: 700; margin-bottom: 10px; }

/* Sections */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.grid-3 { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--ink-soft); margin: 0; }

/* Glossary */
.glossary { display: grid; gap: 12px; }
@media (min-width: 680px) { .glossary { grid-template-columns: repeat(2, 1fr); } }
.term { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.term b { font-family: "Fraunces", serif; font-size: 1.1rem; display: block; }
.term .classic { color: var(--muted); font-size: 0.9rem; }

/* Nag scale */
.nag-scale { display: grid; gap: 10px; }
@media (min-width: 820px) { .nag-scale { grid-template-columns: repeat(5, 1fr); } }
.nag { padding: 16px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.nag b { display: block; margin-bottom: 4px; }
.nag:nth-child(5) { border-color: var(--gold); background: var(--gold-tint); }

/* Screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots img { flex: 0 0 auto; width: min(240px, 62vw); border-radius: 28px; border: 1px solid var(--line); scroll-snap-align: start; }
.shots.ipad img { width: min(440px, 84vw); border-radius: 22px; }

/* Pricing */
.pricing { display: grid; gap: 18px; }
@media (min-width: 820px) { .pricing { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.plan.pro { border: 2px solid var(--green); }
.plan ul { padding-left: 1.2em; margin: 0 0 1em; }
.plan li { margin-bottom: 0.35em; }
.price-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.price { padding: 8px 14px; border-radius: 999px; background: var(--green-tint); font-weight: 700; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Legal / doc pages */
.doc { max-width: 760px; padding: 48px 16px 72px; margin: 0 auto; }
.doc h2 { font-size: 1.4rem; margin-top: 1.6em; }
.doc .meta { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { padding: 48px 0 32px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: var(--ink); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }
