/* ==========================================================================
   Provident v2 — "Main Street" brand
   Warm, familiar, printed-paper feel. Built for owners, not tech people.
   Body type is Atkinson Hyperlegible, designed by the Braille Institute
   for maximum legibility.
   ========================================================================== */
:root {
  --cream: #faf6ee;
  --cream-2: #f2ebdd;
  --paper: #fffdf8;
  --navy: #1c2a44;
  --navy-2: #2b3c5c;
  --ink: #1f2430;
  --text: #333a48;
  --muted: #5a6170;
  --line: #e2d9c6;
  --red: #b8322a;          /* the red pen */
  --red-soft: #f6e0dc;
  --gold: #d99a1c;         /* legal-pad yellow accents */
  --pad: #fdf3c4;
  --pad-line: #c9d8ef;
  --green: #2f6b4f;
  --green-soft: #e1eee6;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 18px;
  --shadow: 0 2px 0 rgba(28, 42, 68, .04), 0 18px 40px -22px rgba(28, 42, 68, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 19px/1.65 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--navy); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.1; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.6rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.32rem); color: var(--text); max-width: 36em; }
.hand { font-family: var(--hand); font-weight: 600; color: var(--red); }
.kicker { font-family: var(--hand); font-size: 1.9rem; line-height: 1; color: var(--red); margin-bottom: 14px; display: inline-block; transform: rotate(-2deg); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 18px/1 var(--sans); padding: 19px 28px; border-radius: 12px;
  border: 2px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease; box-shadow: 0 4px 0 rgba(28,42,68,.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(28,42,68,.18); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.outline { background: transparent; color: var(--navy); box-shadow: none; }
.btn.outline:hover { background: var(--navy); color: #fff; }
.btn.sm { padding: 13px 18px; font-size: 16px; }
.btn svg { width: 20px; height: 20px; }

/* Top bar + header */
.topbar { background: var(--navy); color: #dfe5ef; font-size: 16px; }
.topbar .wrap { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; text-align: center; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 238, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.75rem; color: var(--navy); letter-spacing: .01em; }
.brand-sub { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 17px; color: var(--navy); }
.nav-links a:hover { color: var(--red); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 50px; height: 50px; border-radius: 12px; border: 2px solid var(--navy); background: transparent; color: var(--navy); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }
.call-btn { display: none; }
@media (max-width: 1040px) { .nav-links { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 1040px) {
  .mobile-menu { display: block; position: fixed; inset: 84px 0 0 0; background: var(--cream); padding: 20px var(--gutter) 40px; opacity: 0; pointer-events: none; transition: opacity .2s; overflow-y: auto; z-index: 49; }
  .menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
  .mobile-menu a.m-link { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { width: 100%; margin-top: 18px; }
}
@media (max-width: 640px) {
  .nav-cta .btn { display: none; }
  .call-btn { display: inline-flex; width: 50px; height: 50px; border-radius: 12px; background: var(--red); color: #fff; align-items: center; justify-content: center; }
  .call-btn svg { width: 22px; height: 22px; }
  .brand-sub { display: none; }
}

section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.head { margin-bottom: 48px; }
.head .lede { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: italic; color: var(--red); }
.hero .lede { margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; list-style: none; padding: 0; }
.trust-row li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 17px; }
.trust-row svg { width: 26px; height: 26px; color: var(--green); flex: none; }

.hero-photo { position: relative; padding: 0 0 60px 0; }
.hero-photo .ph { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; background: var(--cream-2); }
.hero-photo .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }
.pad {
  position: absolute; left: -36px; bottom: 0; width: min(330px, 78%);
  background: var(--pad); border-radius: 4px 4px 10px 10px; padding: 18px 22px 20px 30px;
  box-shadow: 0 20px 40px -18px rgba(28,42,68,.45), 0 2px 0 rgba(0,0,0,.05);
  transform: rotate(-3deg);
  background-image: linear-gradient(90deg, transparent 18px, #e8a6a0 18px, #e8a6a0 19.5px, transparent 19.5px), repeating-linear-gradient(transparent 0 33px, var(--pad-line) 33px 34px);
  background-position: 0 0, 0 44px;
}
.pad::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.06); transform: rotate(2deg); }
.pad h4 { font-family: var(--hand); font-size: 1.9rem; color: var(--navy); margin-bottom: 4px; line-height: 1.1; }
.pad ul { list-style: none; margin: 0; padding: 0; }
.pad li { font-family: var(--hand); font-size: 1.45rem; line-height: 34px; color: var(--navy-2); position: relative; padding-left: 28px; }
.pad li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border: 2px solid var(--navy-2); border-radius: 3px; }
.pad li.done::after { content: "✓"; position: absolute; left: 1px; top: -6px; font-size: 1.7rem; color: var(--red); font-family: var(--hand); }
.pad li.done span { position: relative; }
.pad li.done span::after { content: ""; position: absolute; left: -2px; right: -4px; top: 55%; height: 2.5px; background: var(--red); border-radius: 2px; transform-origin: left; transform: scaleX(var(--s, 1)) rotate(-1deg); transition: transform .5s ease; }
.pad li.todo span { font-weight: 700; }
@media (max-width: 960px) { .pad { left: 12px; } }
@media (max-width: 520px) { .hero-photo { padding-bottom: 120px; } .pad { width: 86%; } }
.js .pad li.done:not(.in) span::after { --s: 0; }
.js .pad li.done:not(.in)::after { opacity: 0; }
.pad li.done::after { transition: opacity .3s ease .4s; }

/* ---------- Sound familiar (photo trio) ---------- */
.familiar { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.polaroid { background: #fff; padding: 12px 12px 18px; border-radius: 6px; box-shadow: var(--shadow); margin: 0; transition: transform .25s ease; }
.polaroid:nth-child(1) { transform: rotate(-1.5deg); }
.polaroid:nth-child(2) { transform: rotate(1deg) translateY(10px); }
.polaroid:nth-child(3) { transform: rotate(-.5deg); }
.polaroid:hover { transform: rotate(0) translateY(-4px); }
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px; }
.polaroid figcaption { padding: 16px 6px 0; }
.polaroid b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--navy); line-height: 1.2; }
.polaroid span { display: block; margin-top: 6px; font-size: 17px; color: var(--muted); }
.ring-note { margin: 56px auto 0; max-width: 760px; text-align: center; font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-family: var(--serif); color: var(--navy); line-height: 1.35; }
.ring-note .hand { font-size: 1.15em; }

/* ---------- What is it (phone with texts) ---------- */
.what-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .what-grid { grid-template-columns: 1fr; } }
.plain-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.plain-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.plain-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.plain-list .ic svg { width: 24px; height: 24px; }
.plain-list b { display: block; color: var(--navy); font-size: 19px; }
.plain-list span { color: var(--muted); font-size: 17.5px; }

.phone { width: min(360px, 100%); margin: 0 auto; background: var(--navy); border-radius: 44px; padding: 14px; box-shadow: 0 30px 60px -24px rgba(28,42,68,.6); }
.screen { background: #f4f1ea; border-radius: 32px; overflow: hidden; }
.screen-top { background: #fff; padding: 22px 18px 14px; text-align: center; border-bottom: 1px solid #e7e1d4; }
.screen-top .av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); margin: 0 auto 6px; display: grid; place-items: center; }
.screen-top .av svg { width: 26px; height: 26px; }
.screen-top b { display: block; font-size: 15px; color: var(--ink); }
.screen-top small { font-size: 13px; color: var(--muted); }
.texts { padding: 18px 14px 22px; display: grid; gap: 12px; }
.sms { background: #fff; border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: 15.5px; line-height: 1.45; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.05); opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.sms.in { opacity: 1; transform: none; }
.sms .t { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sms b { color: var(--green); }
.sms.me { background: var(--navy); color: #fff; border-radius: 18px 18px 6px 18px; justify-self: end; max-width: 70%; }
.sms.me .t { color: #b8c3d6; }
@media (prefers-reduced-motion: reduce) { .sms { opacity: 1; transform: none; } }

/* ---------- Nostalgia band ---------- */
.band { padding: 0; background: var(--navy); color: #fff; overflow: hidden; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; } }
.band-photo { position: relative; min-height: 320px; }
.band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-copy { padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.band-copy h2 { color: #fff; }
.band-copy p { color: #d7deea; font-size: 1.2rem; margin-top: 20px; max-width: 30em; }
.band-copy .hand { color: var(--gold); font-size: 2rem; }

/* ---------- How it works ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
@media (max-width: 900px) { .steps3 { grid-template-columns: 1fr; } }
.step3 { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; position: relative; }
.step3 .num { font-family: var(--hand); font-size: 4rem; line-height: .8; color: var(--red); display: block; margin-bottom: 14px; }
.step3 h3 { margin-bottom: 10px; }
.step3 p { font-size: 18px; margin: 0; }
.step3 .who { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; }
.time-stamp { margin: 40px auto 0; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center; }
.stamp { border: 3px solid var(--red); color: var(--red); border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-2deg); }
.time-stamp p { margin: 0; font-size: 19px; color: var(--navy); }

/* ---------- To-do list (big legal pad) ---------- */
.todo-sec { background: var(--cream-2); }
.todo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .todo-grid { grid-template-columns: 1fr; } }
.bigpad { background: var(--pad); border-radius: 6px 6px 14px 14px; box-shadow: var(--shadow); position: relative; padding: 70px 28px 28px 64px;
  background-image: linear-gradient(90deg, transparent 44px, #e8a6a0 44px, #e8a6a0 46px, transparent 46px), repeating-linear-gradient(transparent 0 47px, var(--pad-line) 47px 48px);
  background-position: 0 0, 0 58px; }
.bigpad::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 34px; background: var(--red); border-radius: 6px 6px 0 0; opacity: .85; }
.bigpad ul { list-style: none; margin: 0; padding: 0; }
.bigpad li { min-height: 48px; display: grid; grid-template-columns: 1fr; padding: 6px 0; }
.bigpad .task { font-family: var(--hand); font-size: 1.75rem; line-height: 1.25; color: var(--navy); position: relative; display: inline; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.bigpad .task::before { content: "✓"; position: absolute; left: -38px; top: -4px; color: var(--red); font-size: 2rem; }
.bigpad .how { font-size: 16.5px; color: var(--text); margin-top: 2px; padding-bottom: 8px; }
@media (max-width: 520px) { .bigpad { padding: 60px 18px 22px 52px; } .bigpad .task { font-size: 1.5rem; } .bigpad .task::before { left: -32px; } }

/* ---------- Options compare ---------- */
.options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1040px) { .options { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }
.opt { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; }
.opt h3 { font-size: 1.45rem; margin-bottom: 6px; }
.opt .cost { font-weight: 700; color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.opt ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 17px; }
.opt li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.opt li::before { font-weight: 700; }
.opt li.y::before { content: "✓"; color: var(--green); }
.opt li.n::before { content: "✕"; color: var(--red); }
.opt .verdict { margin-top: auto; padding-top: 18px; font-family: var(--hand); font-size: 1.5rem; color: var(--red); line-height: 1.15; }
.opt.us { background: var(--navy); border-color: var(--navy); color: #e5eaf2; box-shadow: var(--shadow); position: relative; }
.opt.us h3 { color: #fff; }
.opt.us .cost { color: var(--gold); }
.opt.us li.y::before { color: #8fd0ad; }
.opt.us .verdict { color: var(--gold); }
.opt.us::before { content: "The easy choice"; position: absolute; top: -14px; left: 22px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; }

/* ---------- Calculator (receipt) ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.sliders { display: grid; gap: 28px; margin-top: 32px; }
.slider { display: grid; gap: 12px; font-weight: 700; color: var(--navy); font-size: 18px; }
.s-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.s-top output { font-family: var(--serif); font-size: 1.9rem; color: var(--red); white-space: nowrap; font-weight: 400; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; cursor: pointer; border: 0; padding: 0;
  background: linear-gradient(var(--navy), var(--navy)) 0 / var(--p, 50%) 100% no-repeat, var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.receipt { background: #fff; max-width: 420px; margin: 0 auto; padding: 34px 32px 40px; font-family: "Courier New", ui-monospace, monospace; color: var(--ink); box-shadow: var(--shadow); position: relative; transform: rotate(1.2deg);
  --z: radial-gradient(circle at 10px -4px, transparent 12px, #fff 13px); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(-45deg, transparent 10px, #fff 0) 0 0 / 20px 14px repeat-x, linear-gradient(45deg, transparent 10px, #fff 0) 0 0 / 20px 14px repeat-x; }
.receipt h4 { font-family: "Courier New", monospace; font-weight: 700; text-align: center; font-size: 18px; letter-spacing: .1em; color: var(--ink); }
.receipt .sub { text-align: center; font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; padding: 6px 0; border-bottom: 1px dashed #cfc8ba; }
.receipt .total { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 18px; font-weight: 700; text-align: center; }
.receipt .total b { font-size: 2.6rem; line-height: 1.1; color: var(--red); }
.receipt .note { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.receipt .btn { width: 100%; margin-top: 22px; font-family: var(--sans); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.svc .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 16px; }
.svc .ic svg { width: 28px; height: 28px; }
.svc h3 { font-size: 1.45rem; margin-bottom: 8px; }
.svc p { margin: 0; font-size: 17.5px; color: var(--text); }
.extras { margin-top: 28px; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--r); padding: 28px 30px; }
.extras h3 { margin-bottom: 14px; }
.extras ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 36px; }
@media (max-width: 720px) { .extras ul { grid-template-columns: 1fr; } }
.extras li { padding-left: 26px; position: relative; font-size: 17.5px; }
.extras li::before { content: "+"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.extras b { color: var(--navy); }

/* ---------- Who we help (photo tiles) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--navy); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(20,28,46,.85)); }
.tile figcaption { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; color: #fff; }
.tile b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.tile span { font-size: 16px; color: #dfe5ef; }

/* ---------- Promises ---------- */
.promises { background: var(--navy); color: #e5eaf2; }
.promises h2 { color: #fff; }
.promises .lede { color: #cfd7e4; }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .pr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .pr-grid { grid-template-columns: 1fr; } }
.pr { border: 1px solid #3a4b6c; border-radius: var(--r); padding: 26px; }
.pr svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 12px; }
.pr h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.pr p { margin: 0; color: #cfd7e4; font-size: 17.5px; }
.handshake { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 44px; flex-wrap: wrap; text-align: center; }
.handshake .hand { color: var(--gold); font-size: 2.1rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--paper); border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; max-width: 440px; box-shadow: var(--shadow); }
.portrait.mono { background: var(--navy); border: 0; color: #fff; align-content: center; gap: 10px; }
.portrait .mono-initials { font-family: var(--serif); font-size: clamp(5rem, 14vw, 8rem); line-height: 1; color: #fff; }
.portrait .mono-place { font-size: 17px; color: #dfe5ef; letter-spacing: .04em; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.about p { font-size: 18.5px; }
.signature { font-family: var(--hand); font-size: 2.6rem; color: var(--navy); line-height: 1; margin-top: 20px; }
.sig-sub { font-size: 16px; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; display: flex; flex-direction: column; }
.plan.feat { border: 3px solid var(--navy); box-shadow: var(--shadow); position: relative; }
.plan.feat::before { content: "Most popular"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-weight: 700; font-size: 15px; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.6rem; }
.plan .for { font-size: 16.5px; color: var(--muted); margin: 6px 0 16px; }
.plan .price { font-family: var(--serif); font-size: 3rem; color: var(--navy); line-height: 1; }
.plan .price small { font-family: var(--sans); font-size: 17px; color: var(--muted); }
.plan .then { font-size: 16.5px; color: var(--text); margin: 8px 0 20px; font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 17.5px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; }
.plan .btn { margin-top: auto; }
.price-note { text-align: center; margin-top: 28px; font-size: 17.5px; color: var(--text); }
.price-note b { color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin: 0 auto; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative; font-family: var(--serif); font-size: 1.4rem; color: var(--navy); line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--cream-2); color: var(--navy); display: grid; place-items: center; font-family: var(--sans); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; background: var(--navy); color: #fff; }
details .a { padding: 0 24px 22px; font-size: 18px; }
details .a p { margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
form.lead { padding: 30px; display: grid; gap: 18px; }
form.lead h3 { margin-bottom: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } form.lead { padding: 22px; } }
label { display: grid; gap: 8px; font-weight: 700; font-size: 17px; color: var(--navy); }
.opt-l { font-weight: 400; color: var(--muted); }
input:not([type=range]), select, textarea { font: 400 18px/1.4 var(--sans); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 100%; }
input:not([type=range]):focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(217,154,28,.25); }
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot small { font-size: 15px; color: var(--muted); max-width: 24em; }
@media (max-width: 560px) { .form-foot .btn { width: 100%; } }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 17px; }
.form-status.ok { display: block; background: var(--green-soft); color: var(--green); }
.form-status.err { display: block; background: var(--red-soft); color: var(--red); }
.side { display: grid; gap: 18px; }
.callcard { background: var(--red); color: #fff; border-radius: var(--r); padding: 30px; text-decoration: none; display: block; box-shadow: var(--shadow); }
.callcard small { font-size: 17px; font-weight: 700; color: #ffe1dc; }
.callcard b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); margin: 6px 0 8px; }
.callcard span { color: #ffe1dc; font-size: 17px; }
.sidecard { display: block; text-decoration: none; padding: 24px 26px; }
.sidecard small { font-size: 16px; font-weight: 700; color: var(--red); }
.sidecard b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--navy); margin: 4px 0; word-break: break-word; }
.sidecard span { color: var(--muted); font-size: 16.5px; }
a.sidecard:hover { border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfd7e4; padding: 72px 0 32px; font-size: 17px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid #3a4b6c; }
.foot-top h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 16em; }
.foot-top .hand { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-top: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h5 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: #9fb0cc; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #9fb0cc; }
.foot-base { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14.5px; color: #9fb0cc; }
.foot-base a { color: #cfd7e4; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.tb-short { display: none; }
@media (max-width: 640px) { .tb-long { display: none; } .tb-short { display: inline; } }

/* ---------- Five systems ---------- */
.pillar { margin-bottom: 40px; }
.pillar-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.pillar-head p { margin: 0; font-size: 18px; color: var(--text); }
.pill { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: 16px; padding: 9px 16px; border-radius: 999px; }
.pill.gold { background: var(--gold); color: var(--navy); }
.sys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .sys-grid { grid-template-columns: 1fr; } }
.sys { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.sys:hover { border-color: var(--navy); transform: translateY(-2px); }
.sys-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sys .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.sys .ic svg { width: 28px; height: 28px; }
.sys-n { font-family: var(--hand); font-size: 2rem; color: var(--line); line-height: 1; }
.sys h3 { font-size: 1.75rem; margin-bottom: 10px; }
.sys > p, .sys > div > p { font-size: 18px; }
.sys ul { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 8px; font-size: 17px; }
.sys ul li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.sys ul li::before { content: "✓"; color: var(--green); font-weight: 700; }
.offlist { margin: auto 0 0 !important; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 15.5px !important; font-weight: 700; color: var(--muted); }
.offlist s { display: block; font-family: var(--hand); font-weight: 600; font-size: 1.5rem; color: var(--navy); text-decoration-color: var(--red); text-decoration-thickness: 3px; margin-top: 2px; }
.sys.wide { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; }
@media (max-width: 900px) { .sys.wide { grid-template-columns: 1fr; } }
.sys.wide > div { display: flex; flex-direction: column; }
.va-list { margin: 0 !important; grid-template-columns: 1fr 1fr; gap: 14px 22px !important; align-content: center; }
@media (max-width: 560px) { .va-list { grid-template-columns: 1fr; } }
.va-list li { display: block !important; background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.va-list li::before { display: none; }
.va-list b { display: block; color: var(--navy); font-size: 17px; }
.va-list span { font-size: 15.5px; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }
.steps3.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .steps3.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps3.four { grid-template-columns: 1fr; } }
.hero .lede strong { color: var(--navy); }

/* Day-to-day flow */
.flow-sec { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow5 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.flow5::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 16px); }
.flow5 li { position: relative; text-align: center; padding: 0 6px; }
.flow5 .fn { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--hand); font-size: 2rem; position: relative; box-shadow: 0 0 0 6px var(--paper); }
.flow5 b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--navy); line-height: 1.2; margin-bottom: 6px; }
.flow5 span:last-child { font-size: 16.5px; color: var(--text); }
@media (max-width: 960px) {
  .flow5 { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .flow5::before { top: 28px; bottom: 110px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--red) 0 8px, transparent 8px 16px); }
  .flow5 li { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 26px; }
  .flow5 .fn { grid-row: span 2; margin: 0; }
}
.btn, .nav-links a, .brand-sub { white-space: nowrap; }
.nav-links { gap: 24px; }
@media (max-width: 1220px) { .nav-links { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 1220px) and (min-width: 1041px) {
  .mobile-menu { display: block; position: fixed; inset: 84px 0 0 0; background: var(--cream); padding: 20px var(--gutter) 40px; opacity: 0; pointer-events: none; transition: opacity .2s; overflow-y: auto; z-index: 49; }
  .menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
  .mobile-menu a.m-link { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { width: 100%; margin-top: 18px; }
}

/* ---------- AI help cards + topic pages ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .help-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .help-grid { grid-template-columns: 1fr; } }
.help-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.help-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.help-card h3 { font-size: 1.6rem; }
.help-card p { margin: 0; }
.help-card .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.help-card .more svg { width: 18px; height: 18px; }
.foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.page-hero h1 { max-width: 15em; }
.page-hero h1 em { font-style: italic; color: var(--red); }
.page-hero .lede { margin: 24px 0 32px; }
.crumbs { font-size: 16px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--navy); }
.area-line { margin-top: 28px; max-width: 46em; color: var(--muted); }
.topic-sec.alt { background: var(--cream-2); }
.topic-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .topic-points { grid-template-columns: 1fr; } }
.topic-points li { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.topic-points svg { flex: none; width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.topic-points b { display: block; font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
.topic-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .topic-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .topic-steps { grid-template-columns: 1fr; } }
.topic-steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.topic-steps .fn { font-family: var(--serif); font-size: 2rem; color: var(--red); line-height: 1; }
.topic-steps b { color: var(--navy); font-size: 1.1rem; }
.related-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a { display: inline-block; padding: 12px 18px; border: 2px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 700; text-decoration: none; }
.related-links a:hover { background: var(--navy); color: #fff; }
