/* ============================================================
   SermonTrack marketing site — MARKETABILITY.md §5.1 v1.
   Deliberately the same brand as the product's public archive page
   (public/archive.html + archiveShell() in server.js): the warm cream
   canvas, clay/sage/gold accents, Fraunces headings on Hanken Grotesk.
   Anyone who lands here and then sees the app should recognise it.

   Plain CSS, no build step, no framework — matching the repo's house
   style. One file; sections in the order the landing page uses them.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

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

:root{
  /* Lifted verbatim from public/archive.html so the two surfaces can never drift. */
  --paper:#f6f1e7; --paper2:#efe7d7; --ink:#23201a; --ink2:#5f584b;
  --line:#ddd2bd; --clay:#b4532a; --clay-d:#8e3f1d; --sage:#5a7053; --sage-l:#e6ecdf;
  --gold:#b8893a; --gold-d:#8a6217; --mute:#9a9183; --card:#fffdf8;
  /* The app's pine sidebar (public/css/app.css) — used for the dark bands. */
  --pine:#1d2b23; --pine-fg:#e8ede8; --pine-mut:#9cab9e;
  --shadow:0 1px 2px rgba(35,32,26,.06),0 8px 24px rgba(35,32,26,.07);
  --shadow-lg:0 1px 2px rgba(35,32,26,.06),0 18px 44px rgba(35,32,26,.10);
}

html{scroll-behavior:smooth}
body{
  font-family:'Hanken Grotesk',system-ui,-apple-system,sans-serif;
  color:var(--ink); line-height:1.55; -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(180,83,42,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(90,112,83,.07), transparent 60%),
    var(--paper);
  min-height:100vh;
}
h1,h2,h3,h4,.serif{font-family:'Fraunces',Georgia,serif;font-weight:600;letter-spacing:-.01em;line-height:1.14}
a{color:var(--clay-d)}
/* The screenshots carry width/height attributes so the page never reflows while
   they load — which means they also need height:auto, or the attribute height
   wins and every one of them renders stretched. */
img{max-width:100%;height:auto;display:block}
:focus-visible{outline:2.5px solid var(--clay);outline-offset:3px;border-radius:4px}

.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.narrow{max-width:760px}
.eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--gold-d)}
.lead{font-size:18.5px;color:var(--ink2)}
.center{text-align:center}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;z-index:99;background:var(--card);padding:10px 14px;border-radius:9px;box-shadow:var(--shadow)}

/* ---- masthead ---- */
.mast{padding:20px 0;position:sticky;top:0;z-index:20;background:rgba(246,241,231,.88);backdrop-filter:blur(9px);border-bottom:1px solid transparent;transition:border-color .2s}
.mast.scrolled{border-bottom-color:var(--line)}
.mast .wrap{display:flex;align-items:center;gap:22px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit;margin-right:auto}
.crest{width:38px;height:38px;border-radius:10px;background:linear-gradient(150deg,var(--clay),var(--clay-d));display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 auto;box-shadow:var(--shadow)}
.crest svg{width:21px;height:21px}
.brand b{font-family:'Fraunces',Georgia,serif;font-size:19px;font-weight:600;letter-spacing:-.01em}
.mnav{display:flex;align-items:center;gap:22px}
.mnav a{font-size:14.5px;font-weight:600;text-decoration:none;color:var(--ink2)}
.mnav a:hover{color:var(--ink)}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:11px;font-family:inherit;font-size:15px;font-weight:700;text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:transform .12s,box-shadow .12s,background .12s}
.btn.primary{background:var(--clay-d);color:#fff;box-shadow:var(--shadow)}
.btn.primary:hover{background:#7a3517;transform:translateY(-1px);box-shadow:var(--shadow-lg)}
.btn.ghost{background:var(--card);color:var(--ink);border-color:var(--line)}
.btn.ghost:hover{border-color:var(--mute)}
.btn.small{padding:9px 15px;font-size:14px;border-radius:9px}
.btn.wide{width:100%;justify-content:center}

/* ---- hero ---- */
.hero{padding:66px 0 10px;text-align:center}
.hero h1{font-size:clamp(38px,6.2vw,64px);margin:14px auto 0;max-width:15ch}
.hero h1 em{font-style:normal;color:var(--clay-d)}
.hero .lead{margin:20px auto 0;max-width:60ch;font-size:19.5px}
.hero .cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:28px}
.hero .note{margin-top:14px;font-size:13.5px;color:var(--mute)}

/* A shallow "app window" frame so a screenshot reads as software, not a photo. */
.frame{margin:44px auto 0;max-width:1120px;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg);overflow:hidden}
.frame .bar{display:flex;align-items:center;gap:7px;padding:11px 15px;background:var(--paper2);border-bottom:1px solid var(--line)}
.frame .bar i{width:10px;height:10px;border-radius:99px;background:#d6c8ae;display:block}
.frame .bar span{margin-left:8px;font-size:12px;font-weight:600;color:var(--mute);letter-spacing:.01em}
.frame img{width:100%;background:var(--paper)}
.shotcap{margin:12px auto 0;font-size:13.5px;color:var(--mute);text-align:center;max-width:70ch}
.frame.spaced{margin-top:46px}

/* ---- generic section ---- */
section{padding:74px 0}
.sechead{max-width:60ch;margin-bottom:38px}
.sechead.center{margin-left:auto;margin-right:auto;text-align:center}
.sechead h2{font-size:clamp(28px,3.6vw,38px);margin-top:10px}
.sechead p{margin-top:14px;font-size:17px;color:var(--ink2)}

/* ---- the problem: three cards ---- */
.cards3{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr));gap:20px}
.card{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:26px 24px;box-shadow:var(--shadow)}
.card .ic{width:40px;height:40px;border-radius:11px;background:var(--sage-l);color:var(--sage);display:flex;align-items:center;justify-content:center;font-size:19px;margin-bottom:14px}
.card h3{font-size:19.5px}
.card p{margin-top:9px;font-size:15px;color:var(--ink2)}

/* ---- alternating feature rows ---- */
.row{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:52px;align-items:center;margin-bottom:74px}
.row:last-child{margin-bottom:0}
/* Flipped rows put the text in the second column, so the column widths have to
   swap too — otherwise the screenshot lands in the narrow one. */
.row.flip{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.row.flip .rtext{order:2}
.row .step{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:99px;background:var(--clay-d);color:#fff;font-weight:700;font-size:14.5px;margin-bottom:14px}
.row h3{font-size:clamp(23px,2.7vw,29px)}
.row p{margin-top:13px;font-size:16.5px;color:var(--ink2)}
.ticks{margin-top:18px;display:flex;flex-direction:column;gap:9px}
.ticks li{list-style:none;padding-left:27px;position:relative;font-size:15.5px;color:var(--ink2)}
.ticks li:before{content:"✓";position:absolute;left:0;top:-1px;color:var(--sage);font-weight:700}

/* ---- feature grid ---- */
.grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(232px,1fr));gap:18px}
.feat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:21px 20px}
.feat h4{font-size:16.5px}
.feat p{margin-top:7px;font-size:14.5px;color:var(--ink2);line-height:1.5}
/* Same sage tile as .card .ic — monochrome glyphs from the app's own icon set,
   not emoji, so the grid reads as one typeface rather than eight stickers. */
.feat .fi{width:34px;height:34px;border-radius:9px;background:var(--sage-l);color:var(--sage);display:flex;align-items:center;justify-content:center;font-size:16px;margin-bottom:12px}

/* ---- pricing ---- */
.pricing{background:linear-gradient(180deg,rgba(239,231,215,.5),rgba(239,231,215,0))}
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;align-items:start}
.plan{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:28px 26px;box-shadow:var(--shadow);display:flex;flex-direction:column;height:100%}
.plan.best{border:2px solid var(--sage);box-shadow:var(--shadow-lg);position:relative}
.plan .tag{position:absolute;top:-13px;left:26px;background:var(--sage);color:#fff;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:5px 11px;border-radius:99px}
.plan h3{font-size:21px}
.plan .who{margin-top:6px;font-size:14px;color:var(--ink2);min-height:42px}
.plan .price{margin-top:18px;display:flex;align-items:baseline;gap:6px}
.plan .price b{font-family:'Fraunces',Georgia,serif;font-size:44px;font-weight:600;line-height:1}
.plan .price span{font-size:14.5px;color:var(--ink2);font-weight:600}
.plan .alt{margin-top:7px;font-size:13.5px;color:var(--mute)}
.plan ul{margin:20px 0 24px;display:flex;flex-direction:column;gap:9px}
.plan li{list-style:none;padding-left:25px;position:relative;font-size:14.5px;color:var(--ink2)}
.plan li:before{content:"✓";position:absolute;left:0;color:var(--sage);font-weight:700}
.plan li.off{color:var(--mute)}
.plan li.off:before{content:"—";color:var(--mute)}
.plan .btn{margin-top:auto}
.pricenote{margin-top:26px;font-size:14px;color:var(--ink2);text-align:center}
.pilotbar{margin-top:30px;background:var(--pine);color:var(--pine-fg);border-radius:15px;padding:24px 28px;display:flex;gap:20px;align-items:center;flex-wrap:wrap;box-shadow:var(--shadow)}
.pilotbar h3{font-size:20px;color:#fff}
.pilotbar p{margin-top:5px;font-size:14.5px;color:var(--pine-mut);max-width:62ch}
.pilotbar .btn{margin-left:auto;background:var(--gold);color:#20241f;border-color:var(--gold)}
.pilotbar .btn:hover{background:#cf9c45}

/* ---- signup ---- */
.signup{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:38px 34px;box-shadow:var(--shadow-lg)}
.field{margin-bottom:15px}
.field label{display:block;font-size:13.5px;font-weight:700;margin-bottom:6px}
.field input,.field select,.field textarea{
  width:100%;font-family:inherit;font-size:15.5px;color:var(--ink);
  background:var(--paper);border:1.5px solid var(--line);border-radius:10px;padding:11px 13px;outline:none;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--sage);background:#fff}
.field textarea{min-height:88px;resize:vertical}
.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.formnote{margin-top:14px;font-size:13px;color:var(--mute)}
.formmsg{margin-top:16px;padding:13px 15px;border-radius:11px;font-size:14.5px;font-weight:600;display:none}
.formmsg.ok{display:block;background:var(--sage-l);color:#33513c;border:1px solid #c3d5c4}
.formmsg.err{display:block;background:#f8e6dc;color:var(--clay-d);border:1px solid #e8c6b2}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---- FAQ ---- */
.faq{display:flex;flex-direction:column;gap:2px}
.faq details{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:0;margin-bottom:10px}
.faq summary{cursor:pointer;list-style:none;padding:17px 20px;font-weight:700;font-size:16px;display:flex;gap:14px;align-items:flex-start}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"+";margin-left:auto;color:var(--clay-d);font-weight:700;font-size:19px;line-height:1}
.faq details[open] summary:after{content:"–"}
.faq .a{padding:0 20px 18px;font-size:15.5px;color:var(--ink2)}
.faq .a p+p{margin-top:10px}

/* ---- closing band + footer ---- */
.band{background:var(--pine);color:var(--pine-fg);padding:66px 0;text-align:center}
.band h2{font-size:clamp(27px,3.6vw,38px);color:#fff}
.band p{margin:14px auto 0;max-width:56ch;color:var(--pine-mut);font-size:17px}
.band .btn.primary{background:var(--gold);color:#20241f;margin-top:26px}
.band .btn.primary:hover{background:#cf9c45}

.foot{padding:44px 0 56px;font-size:14px;color:var(--ink2);border-top:1px solid var(--line)}
.foot .cols{display:flex;gap:40px;flex-wrap:wrap;justify-content:space-between}
.foot .brand b{font-size:17px}
.foot .tag{margin-top:9px;font-size:13.5px;color:var(--mute);max-width:38ch}
.foot nav{display:flex;gap:26px;flex-wrap:wrap}
.foot nav a{text-decoration:none;font-weight:600}
.foot nav a:hover{text-decoration:underline}
.foot .fine{margin-top:30px;padding-top:20px;border-top:1px solid var(--line);font-size:12.5px;color:var(--mute);display:flex;gap:18px;flex-wrap:wrap;justify-content:space-between}

/* ============================================================
   Legal pages (privacy.html, terms.html) — one long readable column.
   Google's OAuth reviewer reads these; clarity beats decoration.
   ============================================================ */
.legal{padding:54px 0 20px}
.legal h1{font-size:clamp(32px,4.4vw,44px)}
.legal .dates{margin-top:14px;font-size:14px;color:var(--mute);font-weight:600}
.legal .summary{margin-top:26px;background:var(--card);border:1px solid var(--line);border-left:4px solid var(--sage);border-radius:13px;padding:20px 22px}
.legal .summary h2{font-size:16px;margin-bottom:9px}
.legal .summary ul{margin-left:19px;font-size:15px;color:var(--ink2);display:flex;flex-direction:column;gap:5px}
.legal .summary .fineprint{margin-top:10px;font-size:14px;color:var(--ink2)}
.toc{margin:30px 0 8px;background:var(--card);border:1px solid var(--line);border-radius:13px;padding:20px 22px}
.toc h2{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink2);font-family:inherit;font-weight:700}
.toc ol{margin:11px 0 0 20px;columns:2;column-gap:30px;font-size:14.5px}
.toc li{margin-bottom:5px;break-inside:avoid}
.toc a{text-decoration:none;font-weight:600}
.toc a:hover{text-decoration:underline}
.legal article{padding:14px 0 60px}
.legal article section{padding:26px 0 0;scroll-margin-top:86px}
.legal article h2{font-size:24px;margin-bottom:12px;padding-top:10px}
.legal article h3{font-size:17.5px;margin:20px 0 8px;font-family:inherit;font-weight:700}
.legal article p{margin-bottom:13px;font-size:16px;color:#332f27}
.legal article ul,.legal article ol{margin:0 0 14px 22px;font-size:16px;color:#332f27}
.legal article li{margin-bottom:7px}
.legal article table{width:100%;border-collapse:collapse;margin:6px 0 18px;font-size:14.5px}
.legal article th,.legal article td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
.legal article th{background:var(--paper2);font-weight:700}
.legal article code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13.5px;background:var(--paper2);padding:1.5px 5px;border-radius:5px}
.callout{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--clay);border-radius:12px;padding:18px 20px;margin:6px 0 18px}
.callout p:last-child{margin-bottom:0}
.tablewrap{overflow-x:auto}

/* An unfilled placeholder must be impossible to miss in review or in a browser. */
.fill{background:#fdeccd;border-bottom:2px dotted var(--gold-d);color:var(--gold-d);font-weight:700;padding:0 4px;border-radius:3px}

/* ---- responsive ---- */
@media(max-width:860px){
  .row{grid-template-columns:1fr;gap:26px;margin-bottom:56px}
  .row.flip .rtext{order:0}
  .toc ol{columns:1}
  .two{grid-template-columns:1fr}
  .pilotbar .btn{margin-left:0}
}
@media(max-width:620px){
  section{padding:56px 0}
  .hero{padding:44px 0 0}
  .mnav a.hide-sm{display:none}
  .signup{padding:26px 20px}
  .foot .cols{gap:26px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn{transition:none}
}
