/* OurFold — marketing site design system. Warm, calm, reverent. Light theme by intent. */
:root{
  --paper:#f5efe4; --paper-2:#efe6d6; --card:#fffdf9; --line:#e7decd;
  --ink:#2b2721; --ink-2:#574d41; --muted:#8d8070; --faint:#b6a993;
  --sage:#5f7355; --sage-deep:#495a41; --sage-soft:#eef1e7;
  --gold:#a9823f;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --wrap:1080px; --radius:16px;
  --shadow:0 1px 2px rgba(43,39,33,.04), 0 8px 30px rgba(43,39,33,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--sans); font-size:17px; line-height:1.65;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{max-width:100%; display:block}
a{color:var(--sage-deep); text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{font-family:var(--serif); font-weight:600; line-height:1.15; color:var(--ink); letter-spacing:-.01em}
h1{font-size:clamp(2.1rem,5.5vw,3.5rem); margin:.2em 0 .3em}
h2{font-size:clamp(1.6rem,3.6vw,2.3rem); margin:0 0 .5em}
h3{font-size:1.22rem; margin:0 0 .35em}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 22px}
.narrow{max-width:720px}
.muted{color:var(--muted)}
.eyebrow{font-family:var(--sans); font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  font-size:.72rem; color:var(--sage); margin:0 0 .6em}

/* header */
header.site{position:sticky; top:0; z-index:50; background:rgba(245,239,228,.86);
  backdrop-filter:saturate(1.2) blur(10px); border-bottom:1px solid var(--line)}
.nav{display:flex; align-items:center; gap:18px; height:64px; max-width:var(--wrap); margin:0 auto; padding:0 22px}
.brand{display:flex; align-items:center; gap:9px; font-family:var(--serif); font-size:1.35rem; font-weight:600; color:var(--ink)}
.brand:hover{text-decoration:none}
.brand .mark{width:26px; height:26px; color:var(--sage)}
.nav .links{display:flex; gap:22px; margin-left:12px}
.nav .links a{color:var(--ink-2); font-size:.96rem; font-weight:500}
.nav .links a:hover{color:var(--sage-deep); text-decoration:none}
.nav .spacer{flex:1}
.btn{display:inline-flex; align-items:center; gap:8px; font-family:var(--sans); font-weight:600;
  font-size:.98rem; padding:11px 20px; border-radius:999px; cursor:pointer; border:1px solid transparent; transition:.15s}
.btn.primary{background:var(--sage); color:#fbf8f1}
.btn.primary:hover{background:var(--sage-deep); text-decoration:none}
.btn.ghost{background:transparent; color:var(--sage-deep); border-color:var(--line)}
.btn.ghost:hover{background:var(--card); text-decoration:none}
.btn.gold{background:var(--gold); color:#fdf9f1}
.btn.gold:hover{background:#8e6c33; text-decoration:none}
.btn.lg{padding:14px 26px; font-size:1.05rem}
.kofi-btn{display:inline-flex; align-items:center; gap:6px; font-family:var(--sans); font-weight:600;
  font-size:.92rem; padding:9px 16px; border-radius:999px; background:#72a4f2; color:#fff; transition:.15s}
.kofi-btn:hover{background:#5b8ee0; text-decoration:none}
.kofi-btn img{border-radius:2px}
.nav-toggle{display:none}

/* hero */
.hero{padding:clamp(52px,9vw,104px) 0 clamp(40px,6vw,72px); text-align:center}
.hero .narrow{margin:0 auto}
.hero .sub{font-size:clamp(1.05rem,2.4vw,1.32rem); color:var(--ink-2); margin:0 auto 1.6em; max-width:600px}
.cta-row{display:flex; gap:14px; justify-content:center; flex-wrap:wrap}
.trust{margin-top:22px; font-size:.9rem; color:var(--muted); text-align:center}

/* sections */
section{padding:clamp(44px,7vw,80px) 0}
section.tint{background:var(--paper-2)}
section.ink{background:#221f1a; color:#efe7d8}
section.ink h2,section.ink h3{color:#fbf5ea}
section.ink .muted{color:#b9ac99}
.center{text-align:center}
.lead{font-size:1.15rem; color:var(--ink-2); max-width:640px; margin:0 auto 2em}

/* cards */
.grid{display:grid; gap:20px}
.grid.c3{grid-template-columns:repeat(3,1fr)}
.grid.c2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow)}
.card .ic{width:34px; height:34px; color:var(--sage); margin-bottom:12px}
.card h3{font-family:var(--sans); font-weight:700; font-size:1.1rem}
.card p{margin:0; color:var(--ink-2); font-size:.98rem}
/* a card that ends in an action — giving, contact — carries the button at its foot */
.card .btn{margin-top:16px}
.card .eyebrow{margin-bottom:.35em}
.tag{display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:3px 9px; border-radius:999px; margin-top:12px}
.tag.on-device{background:var(--sage-soft); color:var(--sage-deep)}
.tag.optional{background:#f6efe1; color:var(--gold)}

/* feature rows — text only. These used to be text beside a screenshot; with the
   screenshots gone a full-width column would run far too long a line to read, so
   the row is capped to a comfortable measure and centred. */
.frow{max-width:720px; margin:0 auto}
.frow + .frow{margin-top:clamp(40px,6vw,72px)}

/* promise band */
.promise{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:6px}
.promise .p{padding:22px; border-radius:14px; background:var(--card); border:1px solid var(--line)}
.promise .p b{display:block; font-family:var(--serif); font-size:1.15rem; margin-bottom:4px}

/* faq */
.qa{max-width:760px; margin:0 auto}
.qa details{border-bottom:1px solid var(--line); padding:18px 4px}
.qa summary{font-weight:600; font-size:1.08rem; cursor:pointer; list-style:none; color:var(--ink)}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{content:"+"; float:right; color:var(--sage); font-size:1.3rem; line-height:1}
.qa details[open] summary::after{content:"\2013"}
.qa p{margin:.7em 0 0; color:var(--ink-2)}

/* callout */
.callout{background:var(--sage-soft); border:1px solid #dbe3d2; border-radius:var(--radius); padding:28px; text-align:center}

/* footer */
footer.site{background:#221f1a; color:#c9bca8; padding:52px 0 34px; margin-top:0}
footer.site a{color:#e4d9c6}
footer.site .cols{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:30px}
footer.site .brand{color:#fbf5ea}
footer.site h4{font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; color:#9c8f7c; margin:0 0 12px}
footer.site ul{list-style:none; margin:0; padding:0}
footer.site li{margin:0 0 9px}
footer.site .fine{margin-top:34px; padding-top:20px; border-top:1px solid #3a352d; font-size:.85rem; color:#8f8272; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}

/* prose (article-ish pages) */
.prose{max-width:720px; margin:0 auto}
.prose h2{margin-top:1.6em}
.prose ul{padding-left:1.2em} .prose li{margin:.35em 0; color:var(--ink-2)}

/* install button + status */
.btn .bic{width:19px; height:19px; flex:none}
.install-status{margin-top:12px; font-size:.9rem; color:var(--muted); min-height:1.4em}
section.ink .install-status{color:#b9ac99}

/* how-to-install columns */
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:34px; text-align:left}
.steps .s{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:22px}
.steps .s h4{font-family:var(--sans); font-size:.78rem; text-transform:uppercase; letter-spacing:.12em;
  color:var(--sage); margin:0 0 10px}
.steps .s ol{margin:0; padding-left:1.15em; color:var(--ink-2); font-size:.95rem}
.steps .s li{margin:.4em 0}

/* roadmap list — what is honestly not built yet */
.soonlist{display:grid; gap:12px; max-width:720px; margin:0 auto}
.soonlist .row{display:flex; gap:16px; align-items:flex-start; background:var(--card);
  border:1px solid var(--line); border-radius:14px; padding:18px 20px; text-align:left}
.soonlist .row b{display:block; font-family:var(--serif); font-size:1.1rem; font-weight:600}
.soonlist .row span{color:var(--ink-2); font-size:.95rem}
.tag.soon{background:#f6efe1; color:var(--gold); flex:none; margin-top:3px}

/* install instructions sheet */
.isheet-bg{position:fixed; inset:0; z-index:200; background:rgba(34,31,26,.55);
  display:flex; align-items:center; justify-content:center; padding:20px;
  animation:ifade .16s ease-out}
@keyframes ifade{from{opacity:0}to{opacity:1}}
.isheet{position:relative; background:var(--card); border-radius:var(--radius); border:1px solid var(--line);
  box-shadow:0 20px 60px rgba(43,39,33,.28); padding:30px; max-width:480px; width:100%;
  max-height:88vh; overflow:auto}
.isheet h3{font-family:var(--serif); font-size:1.4rem; margin:0 0 .6em; padding-right:26px}
.isheet ol{margin:0 0 1.1em; padding-left:1.2em; color:var(--ink-2)}
.isheet li{margin:.5em 0}
.isheet-note{font-size:.88rem; color:var(--muted); margin:0 0 1em}
.isheet-x{position:absolute; top:14px; right:16px; background:none; border:0; font-size:1.7rem;
  line-height:1; color:var(--faint); cursor:pointer; padding:0 4px}
.isheet-x:hover{color:var(--ink)}

@media(max-width:820px){
  .nav .links{display:none}
  .grid.c3,.grid.c2,.promise,footer.site .cols,.steps{grid-template-columns:1fr}
}

/* Give + Install already fight for room below this (see the phone-nav notes
   further down); the Ko-fi pill is a bonus next to Give, not a third
   must-fit action, so it drops rather than forcing the row to wrap. */
@media(max-width:600px){
  .nav .kofi-btn{display:none}
}

/* Phones. Give sits in the nav here too, not only in the footer — but Give plus
   Install plus the wordmark overflow a 360px-wide screen at full size, so the
   row is tightened rather than one of the two actions being dropped. */
@media(max-width:430px){
  .nav{gap:10px; padding:0 14px}
  .brand{font-size:1.2rem; gap:7px; flex:none}
  .brand .mark{width:23px; height:23px}
  /* flex:none and nowrap together: without them the row squeezes the buttons
     until "Install OurFold" breaks onto a second line and the bar grows tall.
     install.js rewrites that label at runtime, so this must hold for any text. */
  .nav .btn{padding:9px 14px; font-size:.9rem; gap:6px; white-space:nowrap; flex:none}
  .btn .bic{width:17px; height:17px}
}

/* Narrowest phones (iPhone SE and the like). Two nav actions plus the wordmark
   genuinely do not fit, so the wordmark drops to the mark alone — font-size:0
   collapses the bare text node next to the svg, which keeps its own explicit
   size. The mark still links home, and both actions survive, which is the point. */
@media(max-width:345px){
  .nav .brand{font-size:0; gap:0}
}
