/* Peptide Fuel 247, site styles v3.
   Type: Sora (headings and wordmark), Inter (body). Both self-hosted.
   One spacing scale (8 px base), six type sizes, one button style per level, one card style. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.v2.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces Fallback"; src: local("Georgia");
  size-adjust: 103.79%; ascent-override: 94.23%; descent-override: 24.57%; line-gap-override: 0%;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-var.v3.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.v2.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
/* Fallbacks sized close to the web fonts, so text does not jump when they load. */
@font-face {
  font-family: "Sora Fallback"; src: local("Arial");
  size-adjust: 112%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback"; src: local("Arial");
  size-adjust: 106.19%; ascent-override: 91.23%; descent-override: 22.72%; line-gap-override: 0%;
}

:root {
  /* Color */
  --bg: #f7f4ee;          /* warm cream page background */
  --surface: #ffffff;
  --sand: #efe9dc;        /* tinted sections */
  --desk: #e6dcc6;        /* the "desk" behind product shots */
  --ink: #0b1210;         /* dark sections */
  --text: #1d2523;
  --muted: #535e5a;
  --brand: #00875a;
  --brand-d: #006b48;
  --brand-l: #dcf1e7;
  --bright: #5fe0a8;      /* brand green on dark */
  --amber: #e8a23b;
  --border: #ded7c8;
  --border-dark: #26332e;
  --on-dark: #d3dcd7;
  --on-dark-muted: #a9b5af;
  --error: #b3261e;

  /* Type: exactly six sizes */
  --heading: "Fraunces", "Fraunces Fallback", Georgia, serif; --wordmark: "Sora", "Sora Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --t-sm: 0.875rem;                                   /* 14 px: captions, eyebrows, small print */
  --t-base: clamp(1.0625rem, 1.02rem + 0.15vw, 1.125rem); /* 17 to 18 px: body */
  --t-lg: 1.25rem;                                    /* 20 px: lede, card titles */
  --t-xl: 1.5rem;                                     /* 24 px: small headings, numbers */
  --t-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);    /* 28 to 40 px: section headings */
  --t-3xl: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);    /* 36 to 56 px: page headings, price */

  /* Space: 8 px base */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --section: var(--s6);
  --wrap: 1180px;

  /* Shape: one radius for cards, one for controls */
  --r-card: 16px;
  --r-small: 8px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(20, 30, 25, 0.06), 0 8px 24px rgba(20, 30, 25, 0.07);
  --shadow-paper: 0 2px 4px rgba(0, 0, 0, 0.12), 0 18px 40px rgba(0, 0, 0, 0.26);
  --btn-h: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: var(--t-base); line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
picture { display: block; }
picture img { display: block; width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; color: var(--ink); margin: 0 0 var(--s2); text-wrap: balance; }
h1 { font-size: var(--t-3xl); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: var(--t-2xl); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: var(--t-lg); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 var(--s2); max-width: 65ch; }
ul, ol { margin: 0 0 var(--s2); padding-left: 1.2em; max-width: 65ch; }
li { margin-bottom: var(--s1); }
strong { font-weight: 600; }
a { color: var(--brand-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a[href^="tel:"], .nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .price-box :focus-visible { outline-color: var(--bright); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s2); }
.narrow { max-width: 800px; }
.skip { position: absolute; left: var(--s2); top: -80px; z-index: 100; background: var(--surface); color: var(--ink); padding: var(--s1) var(--s2); border-radius: var(--r-small); font-weight: 600; }
.skip:focus { top: var(--s2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: rgba(11, 18, 16, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 64px; flex-wrap: wrap; }
.wordmark {
  display: inline-flex; align-items: center; gap: var(--s1); color: #fff; text-decoration: none;
  font-family: var(--heading); font-weight: 800; font-size: var(--t-lg); letter-spacing: -0.01em; white-space: nowrap;
  min-height: 44px;
}
.wordmark:hover { color: #fff; }
.wordmark svg { width: 30px; height: 24px; flex: none; }
.wordmark .n247 { color: var(--bright); }
.wm-text { white-space: nowrap; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s1); background: transparent; color: #fff; border: 1px solid #3a4944;
  border-radius: var(--r-pill); font: 600 var(--t-sm) var(--body); min-height: 44px; padding: 0 var(--s2); cursor: pointer;
}
.nav-toggle::before { content: ""; width: 14px; height: 10px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
.site-nav { width: 100%; padding: 0 0 var(--s2); display: none; }
.site-nav.open { display: block; }
@media (scripting: none) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
}
.site-nav ul { list-style: none; margin: 0; padding: 0; max-width: none; display: flex; flex-direction: column; }
.site-nav li { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-nav li:last-child { border-top: 0; }
.site-nav a { display: flex; align-items: center; min-height: 48px; color: #fff; text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bright); }
.site-nav a.btn { color: #fff; margin-top: var(--s1); justify-content: center; }

/* ---------- Buttons: primary, secondary, text link ---------- */
.btn, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: var(--btn-h); padding: 0 var(--s3); border-radius: var(--r-pill);
  font-family: var(--body); font-weight: 600; font-size: var(--t-base); line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; border: 2px solid var(--brand);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn { background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.dark .btn-secondary, .price-box .btn-secondary { color: #fff; border-color: #fff; }
.dark .btn-secondary:hover, .price-box .btn-secondary:hover { background: #fff; color: var(--ink); }
.dark a.btn { color: #fff; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--brand-d); text-decoration: none; }
.link::after { content: "\2192"; margin-left: 0.4em; transition: transform 0.15s ease; }
.link:hover { color: var(--ink); text-decoration: underline; }
.link:hover::after { transform: translateX(3px); }
.dark .link { color: var(--bright); }
.dark .link:hover { color: #fff; }
.cta-row { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2); margin-top: var(--s3); }
.cta-row .link { align-self: center; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.surface { background: var(--surface); }
.tint { background: var(--sand); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark a:not(.btn):not(.btn-secondary) { color: var(--bright); }
.eyebrow { font-family: var(--body); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-d); margin-bottom: var(--s2); }
.dark .eyebrow { color: var(--bright); }
.lede { font-size: var(--t-lg); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--muted); font-size: var(--t-sm); }
.dark .muted { color: var(--on-dark-muted); }
.section-head { max-width: 720px; margin-bottom: var(--s5); }
.section-head p:last-child { margin-bottom: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center p { margin-left: auto; margin-right: auto; }

.hero { padding: var(--s4) 0 var(--s6); background: radial-gradient(120% 90% at 85% 0%, #17362b 0%, var(--ink) 58%); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s5); align-items: center; }
.page-hero { padding: var(--s5) 0 var(--s6); background: radial-gradient(120% 110% at 90% 0%, #153126 0%, var(--ink) 60%); overflow: hidden; }
.page-hero p:last-child { margin-bottom: 0; }
.split { display: grid; gap: var(--s5); align-items: center; }
.split.top { align-items: start; }
.grid { display: grid; gap: var(--s3); }

/* ---------- Cards (one style everywhere) ---------- */
.card, .tile, .form-card, .note, .disclaimer-box, .booking, .cmp-card, .quote, .page-card, .flip-panel figure, .about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.card { padding: var(--s3); display: flex; flex-direction: column; }
.card h3 { margin-bottom: var(--s1); }
.card p { margin-bottom: 0; }
.card .tag { align-self: flex-start; margin-bottom: var(--s2); }
.card .link { margin-top: auto; padding-top: var(--s2); }
.card-feature { border-color: var(--ink); }
.chip { display: inline-block; background: var(--brand-l); color: var(--brand-d); font-size: var(--t-sm); font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); }
.chip-price { background: var(--ink); color: #fff; }
.dark .card, .dark .icon-card { background: #121c19; border-color: var(--border-dark); box-shadow: none; }
.dark .card p { color: var(--on-dark); }

.icon { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: flex; align-items: center; justify-content: center; margin-bottom: var(--s2); flex: none; }
.icon svg { width: 24px; height: 24px; }
.dark .icon { background: rgba(95, 224, 168, 0.12); color: var(--bright); }
.icon-cards { display: grid; gap: var(--s2); }
.icon-card { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s2); align-items: start; padding: var(--s3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); }
.icon-card .icon { margin: 0; }
.icon-card h3 { margin: 0 0 4px; padding-top: 2px; }
.icon-card p { margin: 0; font-size: var(--t-base); }
.dark .icon-card p { color: var(--on-dark); }

/* Product shots inside cards */
.shot { background: var(--desk); border-radius: 12px; padding: var(--s3) 0 0; overflow: hidden; aspect-ratio: 16 / 10; display: flex; justify-content: center; margin-bottom: var(--s3); }
.shot picture { width: 52%; transform: rotate(-3deg); }
.shot img { border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 14px 30px rgba(40, 35, 20, 0.22); }
.shot-dark { background: radial-gradient(120% 120% at 80% 0%, #1b3b30 0%, var(--ink) 70%); }

/* ---------- The binder on a desk (CSS 3D) ---------- */
.desk-scene { position: relative; width: min(100%, 520px); margin: 0 auto; aspect-ratio: 1 / 0.92; border-radius: 24px;
  background: radial-gradient(90% 80% at 30% 20%, #efe6d2 0%, var(--desk) 60%, #d8ccb2 100%); perspective: 1300px; overflow: hidden; }
.desk-scene .loose { position: absolute; width: 74%; right: -6%; bottom: 6%; transform: rotate(9deg); }
.desk-scene .loose img { border-radius: 4px; box-shadow: var(--shadow-paper); }
.binder3d { position: absolute; left: 10%; top: 9%; width: 56%; transform: rotateX(22deg) rotateZ(-7deg); transform-style: preserve-3d; }
.binder3d .cover { position: relative; z-index: 2; }
.binder3d .cover img { border-radius: 6px; box-shadow: 0 3px 0 #f4efe3, 0 6px 0 #e5ddca, 0 9px 0 #f4efe3, 0 12px 0 #d5cab1, 0 30px 50px rgba(40, 30, 10, 0.35); }
.binder3d .tab { position: absolute; z-index: 1; right: -9%; width: 13%; height: 9%; border-radius: 0 8px 8px 0; box-shadow: 0 4px 10px rgba(40, 30, 10, 0.2);
  font: 600 10px/1 var(--body); color: var(--ink); display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; writing-mode: vertical-rl; }
.binder3d .t1 { top: 18%; background: var(--bright); }
.binder3d .t2 { top: 30%; background: var(--amber); }
.binder3d .t3 { top: 42%; background: #fffdf8; }
.binder3d .t4 { top: 54%; background: #bfe8d3; }
.desk-scene .badge {
  position: absolute; left: 6%; bottom: 7%; z-index: 3; background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--t-sm);
  padding: var(--s1) var(--s2); border-radius: var(--r-pill); box-shadow: var(--shadow); display: flex; align-items: center; gap: var(--s1);
}
.desk-scene .badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }

/* Real pages laid on the desk (no drawings anywhere on the site) */
.stack { position: relative; aspect-ratio: 4 / 3.4; border-radius: 24px; overflow: hidden;
  background: radial-gradient(90% 80% at 30% 20%, #efe6d2 0%, var(--desk) 60%, #d8ccb2 100%); }
.stack .s-back { position: absolute; width: 46%; left: 8%; top: 9%; transform: rotate(-5deg); }
.stack .s-front { position: absolute; width: 70%; right: 5%; bottom: 9%; transform: rotate(3deg); }
.stack img, .framed img { border-radius: 4px; box-shadow: var(--shadow-paper); background: #fff; }
.framed { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(90% 80% at 30% 20%, #efe6d2 0%, var(--desk) 60%, #d8ccb2 100%); }
.framed picture { width: 46%; transform: rotate(-3deg); }

/* A phone with a short text thread, built in HTML so the words stay crisp */
.phone-mock { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(90% 80% at 30% 20%, #efe6d2 0%, var(--desk) 60%, #d8ccb2 100%); }
.pm-screen { width: 58%; height: 118%; margin-top: 22%; background: #fff; border: 7px solid #141b19; border-radius: 26px;
  padding: 12px 10px; box-shadow: var(--shadow-paper); display: flex; flex-direction: column; gap: 7px; }
.pm-head { display: flex; align-items: center; gap: 6px; font: 600 11px/1.2 var(--body); color: var(--ink); padding-bottom: 7px; border-bottom: 1px solid #eee; margin-bottom: 2px; }
.pm-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); flex: none; }
.pm-msg { margin: 0; max-width: 84%; padding: 7px 10px; border-radius: 14px; font: 400 11px/1.35 var(--body); }
.pm-msg.in { background: #ececec; color: #1d2523; align-self: flex-start; border-bottom-left-radius: 4px; }
.pm-msg.out { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

/* ---------- Comparison: Free 101 vs Free 102 vs Binder ---------- */
.cmp-table { display: none; }
.cmp-cards { display: grid; gap: var(--s2); }
.cmp-card { padding: var(--s3); }
.cmp-card h3 { margin-bottom: var(--s2); }
.cmp-card dl { margin: 0; display: grid; gap: var(--s2); }
.cmp-card dt { font-size: var(--t-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.cmp-card dd { margin: 0; }
.cmp-card .price-cell { font-family: var(--heading); font-weight: 700; font-size: var(--t-xl); color: var(--ink); }
.cmp-card.featured { border: 2px solid var(--brand); }
.cmp-table table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.cmp-table th, .cmp-table td { padding: var(--s2) var(--s3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table thead th { font-family: var(--heading); font-size: var(--t-lg); color: var(--ink); background: var(--sand); }
.cmp-table thead th.featured { background: var(--ink); color: #fff; }
.cmp-table tbody th { font-size: var(--t-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); width: 16%; }
.cmp-table td.featured { background: #f3faf6; }
.cmp-table .price-cell { font-family: var(--heading); font-weight: 700; font-size: var(--t-xl); color: var(--ink); }

/* ---------- Binder page flipper (tabs) ---------- */
.flip-tabs { display: flex; gap: var(--s1); overflow-x: auto; padding: 4px 4px var(--s2); margin: 0 -4px; scrollbar-width: none; }
.flip-tabs::-webkit-scrollbar { display: none; }
.flip-tab { flex: none; min-height: 44px; padding: 0 var(--s2); border-radius: var(--r-pill); border: 2px solid var(--border); background: var(--surface);
  font: 600 var(--t-sm) var(--body); color: var(--ink); cursor: pointer; }
.flip-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.flip-panel figure { margin: 0 0 var(--s3); padding: var(--s2); }
.flip-panel figure img { border-radius: var(--r-small); border: 1px solid var(--border); }
.flip-panel figcaption { margin-top: var(--s2); }
.flip-panel figcaption strong { display: block; color: var(--ink); font-family: var(--heading); font-size: var(--t-lg); margin-bottom: 4px; }
.flip-tabs { display: none; }
.js .flip-tabs { display: flex; }
.js .flip-panel figure { margin-bottom: 0; }

/* ---------- Sample pages grid ---------- */
.pages-grid { display: grid; gap: var(--s3); }
.page-card { margin: 0; padding: var(--s2); }
.page-card img { border-radius: var(--r-small); border: 1px solid var(--border); }
.page-card figcaption { margin-top: var(--s2); }
.page-card figcaption strong { display: block; color: var(--ink); font-family: var(--heading); font-size: var(--t-lg); margin-bottom: 4px; }
.sample-note { display: inline-flex; align-items: center; gap: var(--s1); background: #fdf0d9; color: #5a3d00; font-weight: 600; padding: var(--s1) var(--s2); border-radius: var(--r-pill); font-size: var(--t-sm); }
.sample-note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }

/* ---------- Timeline (How it works) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: var(--s4); position: relative; }
.timeline > li { position: relative; margin: 0; padding-left: 64px; }
.timeline > li::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: calc(-1 * var(--s4)); width: 2px; background: var(--border); }
.timeline > li:last-child::before { display: none; }
.timeline .num { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff;
  font-family: var(--heading); font-weight: 700; font-size: var(--t-lg); display: flex; align-items: center; justify-content: center; }
.timeline .step-visual { width: 100%; max-width: 280px; margin-bottom: var(--s2); }
.timeline .step-visual img { border-radius: var(--r-card); }
.timeline h3 { margin-bottom: var(--s1); padding-top: 10px; }
.timeline p { margin: 0; }

/* Long vertical path (How it works page) */
.steps { list-style: none; margin: 0; padding: 0; max-width: none; counter-reset: step; display: grid; gap: var(--s3); }
.steps > li { counter-increment: step; position: relative; padding-left: 64px; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--heading); font-weight: 700; font-size: var(--t-base);
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: 4px; padding-top: 8px; }
.steps p { margin-bottom: 0; }
.path > li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: -20px; width: 2px; background: var(--border); }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.9em; position: relative; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--brand-d); font-weight: 600; }
.dark .checks li::before, .price-box .checks li::before { color: var(--bright); }
.crosses li::before { content: "\00D7"; color: var(--muted); }

/* ---------- Price box (dark card, same shape as every card) ---------- */
.price-box { background: var(--ink); color: var(--on-dark); border: 1px solid var(--border-dark); border-radius: var(--r-card); padding: var(--s4) var(--s3); box-shadow: var(--shadow);
  background-image: radial-gradient(120% 80% at 100% 0%, #17362b 0%, rgba(11, 18, 16, 0) 60%); }
.price-box h2 { color: #fff; font-size: var(--t-xl); }
.price-box .shot { margin: 0 0 var(--s3); }
.price { font-family: var(--heading); font-size: var(--t-3xl); font-weight: 700; color: #fff; line-height: 1; margin-bottom: var(--s1); letter-spacing: -0.03em; }
.price-box .muted { color: var(--on-dark-muted); }
.price-table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s2); }
.price-table th, .price-table td { text-align: left; padding: var(--s2) 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table th { font-weight: 500; color: var(--text); }
.price-table td { text-align: right; padding-left: var(--s2); font-weight: 600; color: var(--ink); width: 42%; overflow-wrap: anywhere; font-feature-settings: "tnum" 1; }

.note { padding: var(--s3); border-left: 4px solid var(--brand); }
.note p:last-child { margin-bottom: 0; }
.disclaimer-box { padding: var(--s3); font-size: var(--t-sm); color: var(--muted); }
.disclaimer-box p { max-width: none; }
.disclaimer-box strong { color: var(--ink); }
.confirm { background: #fff1a8; color: #4a3b00; font-weight: 600; padding: 1px 6px; border-radius: 4px; }

/* ---------- Booking ---------- */
.booking { padding: var(--s4) var(--s3); }
.booking .grid { margin: var(--s3) 0; }
.scheduler-slot { border: 2px dashed var(--border); border-radius: var(--r-card); padding: var(--s3); text-align: center; color: var(--muted); background: var(--bg); }
.scheduler-slot p { margin: 0 auto; }
.scheduler-slot iframe { width: 100%; min-height: 640px; border: 0; }

/* ---------- Testimonials (shown only when real quotes are supplied) ---------- */
.quotes { display: grid; gap: var(--s3); }
.quote { margin: 0; padding: var(--s3); }
.quote blockquote { margin: 0 0 var(--s2); font-size: var(--t-lg); color: var(--ink); }
.quote figcaption { color: var(--muted); font-size: var(--t-sm); }

/* ---------- About ---------- */
.about-card { padding: var(--s3); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 56px; padding: var(--s2) var(--s5) var(--s2) 0; position: relative; list-style: none; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: var(--t-xl); font-weight: 400; color: var(--brand-d); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 var(--s3); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s3); }
.form-card { padding: var(--s3); color: var(--text); }
.form-card h2 { font-size: var(--t-xl); }
.dark .form-card h2 { color: var(--ink); }
.dark .form-card .muted { color: var(--muted); }
.dark .form-card a:not(.btn) { color: var(--brand-d); }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: var(--s1); font-size: var(--t-base); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid #848e8a; border-radius: var(--r-small); min-height: var(--btn-h); padding: 12px var(--s2); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--brand-d); box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.3); }
.field .bad { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-size: var(--t-sm); font-weight: 600; }
.field-error:not(:empty) { margin-top: var(--s1); }
.form .btn { width: 100%; }

.tile { display: block; text-decoration: none; padding: var(--s3); color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease; }
a.tile:hover { border-color: var(--ink); color: var(--text); transform: translateY(-2px); }
.tile strong { display: block; color: var(--ink); font-family: var(--heading); font-weight: 700; font-size: var(--t-xl); }

/* ---------- CTA panel ---------- */
.cta-panel { border-radius: var(--r-card); padding: var(--s5) var(--s3); background: radial-gradient(120% 120% at 90% 0%, #17362b 0%, var(--ink) 62%); box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 18em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: var(--s6) 0 var(--s4); font-size: var(--t-sm); border-top: 1px solid var(--border-dark); }
.site-footer p { max-width: none; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--bright); }
.footer-grid { display: grid; gap: var(--s4); margin-bottom: var(--s4); }
.footer-grid h2 { font-family: var(--body); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: var(--s1); }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-phone { font-family: var(--heading); font-size: var(--t-xl); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-plain { color: #fff; font-weight: 600; font-size: var(--t-base); margin-bottom: var(--s2); }
.footer-legal { border-top: 1px solid var(--border-dark); padding-top: var(--s3); line-height: 1.6; }

/* ---------- Sticky mobile bar ---------- */
.sticky-cta { display: none; }
.js .sticky-cta {
  display: flex; gap: var(--s1); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--s1) var(--s2) calc(var(--s1) + env(safe-area-inset-bottom));
  background: rgba(247, 244, 238, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform 0.3s ease; visibility: hidden;
}
.js .sticky-cta.show { transform: translateY(0); visibility: visible; }
.sticky-cta a { flex: 1; }
.has-sticky .site-footer { padding-bottom: 104px; }

/* ---------- Scroll reveal: fade and 12 px rise, 300 ms ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 620px) {
  .wrap { padding: 0 var(--s3); }
  .cta-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .form .btn { width: auto; justify-self: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .icon-cards.two { grid-template-columns: 1fr 1fr; }
  .pages-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .cmp-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  :root { --section: var(--s7); }
  .wrap { padding: 0 var(--s4); }
  .hero { padding: var(--s6) 0 var(--s7); }
  .page-hero { padding: var(--s6) 0; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 0 var(--s4); }
  .hero-grid > :first-child { grid-column: 1 / span 6; }
  .hero-grid > :last-child { grid-column: 7 / span 6; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: repeat(12, 1fr); gap: 0 var(--s4); }
  .split > :first-child { grid-column: 1 / span 6; }
  .split > :last-child { grid-column: 8 / span 5; }
  .split.wide-right > :first-child { grid-column: 1 / span 5; }
  .split.wide-right > :last-child { grid-column: 7 / span 6; }
  .split.even > :first-child { grid-column: 1 / span 6; }
  .split.even > :last-child { grid-column: 7 / span 6; }
  .form-card { padding: var(--s4); }
  .price-box { padding: var(--s5) var(--s4); }
  .booking { padding: var(--s5); }
  .cta-panel { padding: var(--s6); }
  .cmp-cards { display: none; }
  .cmp-table { display: block; }
  .pages-grid.three { grid-template-columns: repeat(3, 1fr); }
  .timeline.horizontal { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
  .timeline.horizontal > li { padding-left: 0; padding-top: 64px; }
  .timeline.horizontal > li::before { left: 56px; right: calc(-1 * var(--s4)); top: 23px; bottom: auto; width: auto; height: 2px; }
  .timeline.horizontal .num { top: 0; }
  .timeline.horizontal h3 { padding-top: 0; }
  .sticky-cta, .js .sticky-cta { display: none; }
  .has-sticky .site-footer { padding-bottom: var(--s4); }
}
@media (min-width: 1100px) {
  .nav-toggle, .js .nav-toggle { display: none; }
  .header-row { flex-wrap: nowrap; min-height: 72px; }
  .site-nav, .js .site-nav { display: block; width: auto; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--s3); }
  .site-nav li { border: 0; }
  .site-nav a { font-size: var(--t-sm); min-height: 44px; }
  .site-nav a.btn { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn-secondary, .tile, .js .sticky-cta, .link::after { transition: none; }
  .btn:hover, a.tile:hover, .link:hover::after { transform: none; }
}

/* Small helpers (no inline styles: the Content-Security-Policy blocks them) */
.gap-top { margin-top: var(--s5); }
.cta-row.centered { justify-content: center; }
/* Narrow card columns: icon sits above the text instead of beside it */
@media (min-width: 900px) {
  .icon-cards.two .icon-card, .grid-4 .icon-card { display: block; }
  .icon-cards.two .icon-card .icon, .grid-4 .icon-card .icon { margin-bottom: var(--s2); }
}
/* Every step visual has the same shape */
.timeline .step-visual { aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: #f4eedf; display: flex; align-items: center; justify-content: center; }
.timeline .step-visual > .framed, .timeline .step-visual > .phone-mock { width: 100%; height: 100%; }
/* Sample pages sit on the same desk-colored frame, whatever their shape */
.page-card .frame { aspect-ratio: 4 / 5; background: var(--desk); border-radius: var(--r-small); display: flex; align-items: center; justify-content: center; padding: var(--s2); }
.page-card .frame picture { width: 100%; }
.page-card .frame img { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 12px 24px rgba(40, 35, 20, 0.2); }
.footer-text { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 619px) { .page-card .frame { aspect-ratio: auto; } }

/* Version A: Fraunces headlines (weights 500 to 600), Sora for the wordmark only. */
.wordmark { font-family: var(--wordmark); }
h1, h2, h3, .price, .price-cell, .tile strong, .footer-phone, .cmp-table thead th,
.flip-panel figcaption strong, .page-card figcaption strong { font-weight: 500; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { letter-spacing: -0.028em; } h2 { letter-spacing: -0.022em; } h3 { font-weight: 600; letter-spacing: -0.012em; }
.price, .price-cell, .tile strong, .footer-phone { font-feature-settings: "lnum" 1, "tnum" 1; }

/* Call and text boxes: both numbers always stay on one line. When there is not room for the two
   boxes side by side at full size, they stack instead of one squeezing the other. */
.tile strong { white-space: nowrap; }
.grid-2.tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); }
/* Footer: two columns at tablet sizes (four were too tight between 620 and 640 px), four on wide screens. */
@media (min-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
