/* ─────────────────────────────────────────────────────────────────────────────────────────────────
   PlasterFlow — one stylesheet for every page of plasterflow.com AND the in-app help page.

   ⚠ This file is in cap-build.mjs EXTRA. It MUST stay there: help.html ships inside the Mac and
   iPhone bundles, so a stylesheet that isn't copied leaves the in-app help page unstyled on device
   while looking perfect in a browser. Same footgun as an unbundled <script src>, and scan-app.mjs
   now checks <link href> for exactly this. [[feedback_native_bundle_script_src]]

   ⚠ The palette is the APP's palette, deliberately. The site and the app were on two different
   greens until 6 Aug 2026 (site neon #66FF33, app lime #a3e635) and the page someone landed on did
   not match the app they then opened. Change a colour HERE and it changes everywhere — that is the
   point. Do not reintroduce hardcoded greys in a page. [[project_saas_one_palette_and_shots]]
   ───────────────────────────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0e100f;            /* = app --dark */
  --bg2: #181b19;           /* = app --card */
  --bg3: #1f2320;           /* = app --card2 */
  --ink: #f2f5f1;           /* = app --text */
  --mut: rgba(242,244,241,.62);
  /* .4 composited onto --bg is 3.56:1 — under the 4.5:1 AA floor for small text, and it was carrying
     real copy: the footer blurb, the copyright line, "Last updated", the breadcrumb and the hero's
     "£9.99 a month" note. .52 puts it at ~5.2:1. Caught by contrast-audit.mjs, not by eye. */
  --mut2: rgba(242,244,241,.52);
  --line: rgba(255,255,255,.11);   /* = app --border */
  --green: #a3e635;
  --green-txt: #a3e635;
  --green-dim: rgba(163,230,53,.12);
  --green-line: rgba(163,230,53,.42);
  --amber: #f6b73c;
  --red: #ef5a4c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green); color: #0e100f; }
h1, h2, h3, .disp { font-family: 'Fjalla One', system-ui, sans-serif; font-weight: 400; letter-spacing: .01em; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--green-txt); font-weight: 700; font-family: 'Lato', system-ui, sans-serif; }
.num { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 999; background: var(--green); color: #0e100f; padding: 10px 16px; border-radius: 10px; font-weight: 900; }

/* ── reveal on scroll ─────────────────────────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
/* Someone who has asked their OS for less motion gets the content, not the animation. Without this
   the whole page is invisible to them if the observer never fires. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── buttons ──────────────────────────────────────────────────────────────────────────────────── */
.btn { display: inline-block; font-family: 'Lato', system-ui, sans-serif; font-weight: 900; font-size: 15px; letter-spacing: .02em; border-radius: 999px; padding: 15px 30px; text-decoration: none; cursor: pointer; border: none; transition: transform .18s cubic-bezier(.16,1,.3,1), background .18s, border-color .18s, color .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn-green { background: var(--green); color: #0e100f; }
.btn-green:hover { background: #b8ee5f; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { font-size: 13.5px; padding: 11px 20px; }

/* ── nav ──────────────────────────────────────────────────────────────────────────────────────── */
.nav-wrap { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 1180px; z-index: 100; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(24,27,25,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 18px; padding: 11px 18px; }
.brand { font-family: 'Fjalla One', system-ui, sans-serif; font-size: 21px; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--green); }
.nav-links { display: flex; gap: 24px; font-size: 14.5px; font-weight: 700; }
.nav-links a { text-decoration: none; color: var(--mut); transition: color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); }
.nav-cta { font-size: 13.5px !important; padding: 10px 20px !important; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ── page hero (every page except the landing page) ───────────────────────────────────────────── */
.phero { padding: 148px 0 56px; background: radial-gradient(ellipse 70% 60% at 62% 0%, rgba(163,230,53,.08) 0%, transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.phero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; margin: 16px 0 18px; max-width: 18em; }
.phero p.lede { font-size: 19px; color: var(--mut); font-weight: 300; max-width: 40em; }
.phero p.lede b { color: var(--ink); font-weight: 700; }
.crumb { font-size: 13.5px; color: var(--mut2); font-weight: 700; letter-spacing: .02em; }
.crumb a { text-decoration: none; color: var(--mut); }
.crumb a:hover { color: var(--green); }
@media (max-width: 880px) { .phero { padding-top: 108px; } }

/* ── sections ─────────────────────────────────────────────────────────────────────────────────── */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-hd { max-width: 660px; margin-bottom: 48px; }
.sec-hd h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; margin-top: 14px; }
.sec-hd p { color: var(--mut); margin-top: 14px; font-weight: 300; font-size: 18px; }

/* ── prose (privacy, terms, long copy) ────────────────────────────────────────────────────────── */
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; color: var(--green-txt); }
.prose p, .prose li { color: var(--mut); font-size: 16.5px; }
.prose p { margin-bottom: 14px; }
.prose b, .prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--green-txt); }
.prose > p:first-of-type { font-size: 18px; }

/* ── bento tiles ──────────────────────────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--bg2); transition: border-color .25s, transform .25s cubic-bezier(.16,1,.3,1); }
.tile:hover { border-color: var(--green-line); transform: translateY(-3px); }
.tile h3 { font-size: 19px; margin-bottom: 9px; }
.tile p { font-size: 15px; color: var(--mut); line-height: 1.6; }
.tile p b { color: var(--ink); }
.tile p + p { margin-top: 10px; }
.tile-big { grid-column: span 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: center; }
.tile-big .shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tile-accent { background: linear-gradient(150deg, rgba(163,230,53,.14), rgba(163,230,53,.03)); border-color: var(--green-line); }
.tile a.more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 900; color: var(--green-txt); text-decoration: none; }
.tile a.more:hover { text-decoration: underline; }
@media (max-width: 880px) { .bento { grid-template-columns: 1fr 1fr; } .tile-big { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile-big { grid-column: span 1; } }

/* ── alternating step rows (how it works, feature pages) ──────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 30px 34px; }
.step.flip { grid-template-columns: 1fr 300px; }
.step.flip .step-media { order: 2; }
.step-no { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--green-dim); border: 1px solid var(--green-line); color: var(--green-txt); font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(21px, 2.4vw, 27px); margin: 14px 0 12px; }
.step p { color: var(--mut); font-size: 16px; }
.step p + p { margin-top: 12px; }
.step p b { color: var(--ink); }
.step ul { list-style: none; margin-top: 14px; }
.step ul li { position: relative; padding: 6px 0 6px 26px; color: var(--mut); font-size: 15.5px; }
.step ul li b { color: var(--ink); }
.step ul li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2.5px solid var(--green-txt); border-bottom: 2.5px solid var(--green-txt); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .step, .step.flip { grid-template-columns: 1fr; gap: 26px; padding: 26px 22px; }
  .step.flip .step-media { order: 0; }
}

/* ── phone + document frames ──────────────────────────────────────────────────────────────────── */
.phone { width: min(300px, 78vw); margin: 0 auto; border-radius: 38px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 90px rgba(4,20,2,.6), 0 0 0 8px rgba(255,255,255,.03); overflow: hidden; }
.phone img { width: 100%; }
.phone-tilt { transform: rotate(2.5deg); }
.shotframe { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(3,12,2,.5); background: #000; }
.cap { text-align: center; font-size: 12px; color: var(--mut2); margin-top: 12px; letter-spacing: .04em; }

/* ── callouts ─────────────────────────────────────────────────────────────────────────────────── */
.note { margin-top: 18px; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; border: 1px solid var(--green-line); background: var(--green-dim); color: #d8f2bd; }
.note b { color: var(--green-txt); }
.note.plain { border-color: var(--line); background: var(--bg3); color: var(--mut); }
.note.plain b { color: var(--ink); }

/* ── trust strip ──────────────────────────────────────────────────────────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.strip-in { display: flex; flex-wrap: wrap; gap: 10px 38px; justify-content: center; padding: 18px 24px; font-size: 14px; font-weight: 700; color: var(--mut); }
.strip-in span b { color: var(--green-txt); }

/* ── document gallery ─────────────────────────────────────────────────────────────────────────── */
.doc-row { display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.doc-row::-webkit-scrollbar { height: 8px; }
.doc-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }
.doc-card { flex: 0 0 250px; scroll-snap-align: start; }
.doc-card .frame { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 44px rgba(3,12,2,.5); transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s; }
.doc-card:hover .frame { transform: translateY(-4px); border-color: var(--green-line); }
.doc-card figcaption { font-size: 13.5px; font-weight: 700; color: var(--mut); margin-top: 10px; text-align: center; letter-spacing: .04em; }

/* ── pricing ──────────────────────────────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; }
.price-card { border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; background: var(--bg2); }
.price-card.hot { border-color: var(--green-line); background: linear-gradient(160deg, rgba(163,230,53,.1), rgba(163,230,53,.02)); position: relative; }
.price-tag { font-family: 'Fjalla One', system-ui, sans-serif; font-size: 46px; }
.price-tag small { font-family: 'Lato', system-ui, sans-serif; font-size: 15px; color: var(--mut); font-weight: 400; display: block; margin-top: 6px; }
.price-card ul { list-style: none; margin-top: 20px; }
.price-card li { font-size: 15px; color: var(--mut); padding: 7px 0 7px 26px; position: relative; }
.price-card li::before { content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 2.5px solid var(--green-txt); border-bottom: 2.5px solid var(--green-txt); transform: rotate(-45deg); }
.price-card.dull li::before { border-color: rgba(255,255,255,.25); }
.badge { position: absolute; top: -12px; left: 30px; background: var(--green); color: #0e100f; font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 5px 13px; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }

/* ── stats ────────────────────────────────────────────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--bg2); }
.stat-n { font-family: 'Fjalla One', system-ui, sans-serif; font-size: 38px; color: var(--green); line-height: 1; }
.stat-l { font-size: 14px; color: var(--mut); margin-top: 6px; }
@media (max-width: 780px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* ── table (comparisons, spec lists) ──────────────────────────────────────────────────────────── */
/* ⚠ `min-width: 0` is load-bearing, not tidying. A grid or flex item defaults to `min-width: auto`,
   which means it refuses to shrink below its content — so a 520px min-width table inside a .step
   column pushed the whole PAGE 179px wide on a 390px phone, and the body scrolled sideways instead
   of the table scrolling inside its own box. Caught by the horizontal-overflow check in the site
   screenshot pass; it is invisible on a desktop. */
.step > *, .tile > *, .step-media { min-width: 0; }
.tbl-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); }
table.spec { width: 100%; border-collapse: collapse; min-width: 520px; }
table.spec th, table.spec td { text-align: left; padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--line); }
table.spec th { font-family: 'Fjalla One', system-ui, sans-serif; font-weight: 400; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-txt); }
table.spec td { color: var(--mut); }
table.spec td:first-child { color: var(--ink); font-weight: 700; }
table.spec tr:last-child td { border-bottom: none; }

/* ── faq ──────────────────────────────────────────────────────────────────────────────────────── */
.faq-wrap { max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: 'Fjalla One', system-ui, sans-serif; font-size: 18.5px; position: relative; }
summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 20px; font-size: 24px; color: var(--green-txt); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--mut); padding: 0 0 24px; font-size: 16px; max-width: 44em; }
details p + p { padding-top: 0; margin-top: -12px; padding-bottom: 24px; }

/* ── closing CTA ──────────────────────────────────────────────────────────────────────────────── */
.beta { text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(163,230,53,.12) 0%, transparent 65%), var(--bg); border-top: 1px solid var(--line); }
.beta h2 { font-size: clamp(30px, 4.4vw, 50px); }
.beta p { color: var(--mut); max-width: 38em; margin: 18px auto 0; font-weight: 300; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.beta .ctas { justify-content: center; margin-top: 30px; }
.hero-note { font-size: 13px; color: var(--mut2); margin-top: 14px; }

/* ── footer ───────────────────────────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 52px 0 60px; font-size: 14px; color: var(--mut2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: 'Fjalla One', system-ui, sans-serif; font-weight: 400; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; }
footer a { color: var(--mut); text-decoration: none; }
footer a:hover { color: var(--green); }
.foot-btm { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
