/* philform's website. Fonts are self-hosted (SIL Open Font License), so no
   visitor's browser talks to a font service. Palette after the extension:
   one green on white and soft grey, sumi charcoal text, gold for rewards. */
@font-face { font-family: "Nunito"; src: url(/fonts/nunito.woff2) format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f6;
  --fg: #1f2329;
  --muted: #5d6570;
  --line: #e6e9ec;
  --card: #ffffff;
  --win: #06c755;
  --win-dark: #04a246;
  --accent: #04873b;
  --accent-edge: #036a2e;
  --accent-text: #04873b;
  --sun: #ffc800;
  --sun-edge: #d9a400;
  --amber: #f59e0b;
  --shadow: 0 1px 2px rgba(20, 30, 25, .04), 0 8px 24px rgba(20, 30, 25, .06);
  --shadow-big: 0 2px 4px rgba(20, 30, 25, .04), 0 24px 60px rgba(20, 30, 25, .12);
  --round: "Nunito", ui-rounded, "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111417;
    --bg-soft: #171b1f;
    --fg: #eef0f3;
    --muted: #a3aab4;
    --line: #262b31;
    --card: #181c21;
    --accent-text: #3ddc7f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-big: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--round); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* --- Phil (src/common/phil.js) ------------------------------------------------ */
.phil { width: 100%; height: 100%; overflow: visible; }
.phil-eyes { transform-box: fill-box; transform-origin: center; }
.phil-glow { transform-box: fill-box; transform-origin: center; animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-color-scheme: dark) { .phil-stalk { stroke: #d6d7e6; } }
.phil-calm .phil-eyes { animation: blink 4.6s 1.6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.12); } }
.phil-running .phil-body { animation: bob .23s cubic-bezier(.45, 0, .55, 1) infinite; }
.phil-running .phil-foot { animation: step .46s linear infinite; }
.phil-running .phil-foot-r { animation-delay: -.23s; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes step { 0% { transform: translate(4px, 0); } 50% { transform: translate(-4px, 0); } 75% { transform: translate(0, -3px); } 100% { transform: translate(4px, 0); } }

/* --- buttons: chunky, on a darker ledge -------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  font: 800 16px/1 var(--round); letter-spacing: .01em; text-decoration: none; color: #fff; background: var(--accent);
  border: 0; border-radius: 14px; box-shadow: 0 4px 0 var(--accent-edge); cursor: pointer; margin-bottom: 4px;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-edge); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-big { height: 58px; padding: 0 28px; font-size: 18px; border-radius: 16px; }
.btn-small { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; box-shadow: 0 3px 0 var(--accent-edge); }
.btn-ghost { color: var(--fg); background: var(--card); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.btn-ghost:active { box-shadow: 0 0 0 var(--line); }
.btn-light { color: var(--fg); background: var(--card); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
:focus-visible { outline: 3px solid var(--win); outline-offset: 3px; border-radius: 8px; }

/* --- nav --------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100vw - 1160px) / 2));
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-phil { width: 34px; height: 34px; }
.wordmark { font: 800 22px/1 var(--round); letter-spacing: -0.03em; }
.wordmark span { color: var(--accent-text); }
.wordmark.small { font-size: 15px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* --- hero -------------------------------------------------------------------- */
.hero { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 72px 16px 56px; }
.hero-glow { position: absolute; inset: -120px -20% auto; height: 640px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 320px at 70% 40%, rgba(6, 199, 85, .16), transparent 70%),
              radial-gradient(420px 260px at 18% 30%, rgba(255, 200, 0, .12), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--accent-text); background: rgba(6, 199, 85, .1); border: 1px solid rgba(6, 199, 85, .25); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 4px rgba(6, 199, 85, .2); }
h1 { font-size: clamp(42px, 5.2vw, 66px); line-height: 1.02; font-weight: 900; margin: 22px 0 20px; }
h1 em { font-style: normal; color: var(--accent-text); position: relative; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .06em; height: .16em; border-radius: 999px; background: var(--sun); opacity: .55; z-index: -1; }
.lede { font-size: 19px; color: var(--muted); max-width: 33em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 14px; }
.fine { font-size: 14px; color: var(--muted); }

/* the demo: a browser window and Phil's popup */
.demo { position: relative; padding: 0 0 40px 0; }
.window { border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-big); overflow: hidden; transform: rotate(-1deg); }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.lights i:nth-child(2) { background: #ffbd2e; }
.lights i:nth-child(3) { background: #28c941; }
.url { flex: 1; font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-body { padding: 20px 22px 24px; }
.job-title { font: 800 20px/1.2 var(--round); }
.job-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.form { display: grid; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.field b { display: block; min-height: 34px; padding: 7px 10px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg);
  font-weight: 500; font-size: 13px; color: var(--fg); transition: border-color .25s, box-shadow .25s, background .25s; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.field-long b { min-height: 76px; white-space: normal; line-height: 1.45; }
.field b.filled { border-color: var(--win); box-shadow: 0 0 0 3px rgba(6, 199, 85, .15); background: rgba(6, 199, 85, .04); }
.field b.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--win); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.popup { position: absolute; right: -18px; bottom: 0; width: 236px; padding: 14px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-big); transform: rotate(1.5deg); }
.popup-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.popup-phil { width: 24px; height: 24px; }
.popup-state { position: relative; height: 56px; }
.popup-state > * { position: absolute; inset: 0; transition: opacity .3s, transform .3s; }
.popup-fill { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border: 0; border-radius: 12px;
  font: 800 14px/1 var(--round); color: #fff; background: var(--accent); box-shadow: 0 4px 0 var(--accent-edge); }
.popup-fill svg { width: 15px; height: 15px; fill: currentColor; }
.popup-fill.pressed { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-edge); }
.popup-progress { padding-top: 26px; opacity: 0; }
.popup-progress .runner { position: absolute; top: 0; left: 0; width: 26px; height: 26px; transition: left .4s ease; }
.track { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(var(--win), var(--win-dark)); transition: width .4s ease; }
.popup-reward { display: flex; align-items: center; gap: 10px; opacity: 0; transform: scale(.9); }
.reward-phil { width: 46px; height: 46px; flex: none; }
.popup-reward small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.popup-reward strong { font: 900 26px/1.1 var(--round); color: var(--accent-text); }
.popup[data-stage="filling"] .popup-fill { opacity: 0; }
.popup[data-stage="filling"] .popup-progress { opacity: 1; }
.popup[data-stage="done"] .popup-fill { opacity: 0; }
.popup[data-stage="done"] .popup-reward { opacity: 1; transform: none; animation: hop .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes hop { 0% { transform: translateY(10px) scale(.8); } 60% { transform: translateY(-6px) scale(1.04); } 100% { transform: none; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .popup { right: 8px; }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; }
  .window { transform: none; }
  .popup { right: 4px; width: 210px; }
  .hero-ctas .btn { width: 100%; }
}

/* --- logo strip ---------------------------------------------------------------- */
.strip { max-width: 1160px; margin: 0 auto; padding: 24px 16px 8px; text-align: center; }
.strip p { font-size: 14px; color: var(--muted); font-weight: 500; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin: 14px 0 0; padding: 0;
  font: 800 20px/1.4 var(--round); color: color-mix(in srgb, var(--fg) 45%, transparent); letter-spacing: -0.01em; }
.strip .plus { color: var(--accent-text); }

/* --- sections ---------------------------------------------------------------------- */
.section { max-width: 1160px; margin: 0 auto; padding: 96px 16px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; font-weight: 900; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 800; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step h3 { margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: 16px; }
.step-n { position: absolute; top: 18px; left: 18px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 900 15px/1 var(--round); color: #fff; background: var(--accent); box-shadow: 0 3px 0 var(--accent-edge); }
.step-art { height: 150px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; gap: 14px; overflow: hidden; }
.doc { width: 70px; height: 92px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); padding: 12px 10px; display: grid; gap: 7px; align-content: start; box-shadow: var(--shadow); }
.doc i { height: 5px; border-radius: 3px; background: var(--line); }
.doc i.short { width: 60%; }
.arrow { width: 26px; height: 2px; background: var(--muted); position: relative; opacity: .5; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
.chips { display: grid; gap: 6px; }
.chips span { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(6, 199, 85, .12); color: var(--accent-text); }
.art-click { position: relative; }
.mini-btn { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-radius: 12px; font: 800 14px/1 var(--round); color: #fff;
  background: var(--accent); box-shadow: 0 4px 0 var(--accent-edge); }
.mini-btn svg { width: 14px; height: 14px; fill: currentColor; }
.cursor { position: absolute; left: 58%; top: 56%; width: 18px; height: 22px; background: var(--fg);
  clip-path: polygon(0 0, 0 78%, 26% 60%, 44% 100%, 58% 94%, 40% 56%, 72% 56%); animation: tap 2.4s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translate(18px, 16px); } 40%, 60% { transform: none; } 50% { transform: scale(.9); } }
.art-check { flex-direction: column; gap: 10px; }
.lines { display: grid; gap: 8px; width: 150px; }
.lines i { height: 16px; border-radius: 6px; border: 2px solid var(--win); background: var(--card); }
.lines i.guess { border-color: var(--amber); }
.submit { font: 800 13px/1 var(--round); padding: 9px 18px; border-radius: 10px; color: var(--fg); background: var(--card); border: 2px solid var(--fg); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card-wide { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.card-wide h3 { font-size: 28px; margin-top: 0; }
.card-green { background: linear-gradient(135deg, rgba(6, 199, 85, .1), rgba(6, 199, 85, .02) 60%), var(--card); border-color: rgba(6, 199, 85, .25); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(6, 199, 85, .12); color: var(--accent-text); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map { display: grid; grid-template-columns: 1fr 34px auto; gap: 12px 6px; align-items: center; font-size: 15px; }
.map-q { padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.map-to { height: 2px; background: var(--win); position: relative; }
.map-to::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--win); border-right: 2px solid var(--win); transform: rotate(45deg); }
.map-a { padding: 10px 14px; border-radius: 12px; font-weight: 700; background: rgba(6, 199, 85, .12); color: var(--accent-text); border: 1.5px solid var(--win); }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .card-wide { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .card-wide { grid-column: span 1; } .map { grid-template-columns: 1fr 22px auto; font-size: 13px; } }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 28px;
  background: var(--bg-soft); border: 1px solid var(--line); }
.calc-copy p:not(.kicker) { color: var(--muted); margin-top: 16px; }
.calc-box { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 18px; }
.slider { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.slider span { display: flex; justify-content: space-between; }
.slider b { font: 800 17px/1 var(--round); color: var(--fg); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: var(--line); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--win); box-shadow: 0 2px 0 var(--win-dark); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--win); box-shadow: 0 2px 0 var(--win-dark); cursor: grab; }
input[type="range"]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--win); }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.calc-out div { padding: 14px 12px; border-radius: 14px; background: var(--bg-soft); text-align: center; }
.calc-out small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.calc-out strong { font: 900 24px/1.2 var(--round); font-variant-numeric: tabular-nums; }
.calc-out .green { color: var(--accent-text); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; padding: 28px 18px; gap: 28px; } }
@media (max-width: 460px) { .calc-out { grid-template-columns: 1fr; } .calc-box { padding: 20px; } }

/* pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.price { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-main { border: 2px solid var(--win); box-shadow: 0 6px 0 var(--win-dark), var(--shadow-big); }
.badge { position: absolute; top: -14px; left: 32px; padding: 4px 12px; border-radius: 999px; font: 800 13px/1.4 var(--round); color: #3d2b00; background: var(--sun); box-shadow: 0 2px 0 var(--sun-edge); }
.price-name { font-weight: 700; color: var(--muted); }
.price-big { font: 900 56px/1.05 var(--round); margin-top: 8px; letter-spacing: -0.03em; }
.price-big small { font-size: 20px; color: var(--muted); font-weight: 800; letter-spacing: 0; }
.price-sub { color: var(--accent-text); font-weight: 700; margin-bottom: 20px; }
.price ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.price li { position: relative; padding-left: 28px; font-size: 16px; }
.price li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(6, 199, 85, .15); }
.price li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 8px; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 720px) { .prices { grid-template-columns: 1fr; } }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 24px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.trust-grid div { background: var(--card); padding: 28px; display: grid; gap: 6px; }
.trust-grid strong { font: 800 19px/1.3 var(--round); }
.trust-grid span { color: var(--muted); font-size: 15px; }
.trust-grid a { color: var(--accent-text); font-weight: 600; }
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative; font: 800 18px/1.35 var(--round); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 26px; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { color: var(--muted); padding-bottom: 20px; font-size: 16px; }
.faq a { color: var(--accent-text); font-weight: 600; }

/* final */
.final { padding-bottom: 96px; }
.final-card { position: relative; text-align: center; padding: 64px 24px 56px; border-radius: 32px; overflow: hidden;
  background: radial-gradient(500px 240px at 50% 0%, rgba(255, 200, 0, .22), transparent 70%), linear-gradient(160deg, #06c755, #04873b);
  color: #fff; box-shadow: var(--shadow-big); }
.final-phil { display: block; width: 92px; height: 92px; margin: 0 auto 18px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18)); }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .88); margin-top: 12px; }
.final .phil-stalk { stroke: #25282f; }
.waitlist, .install { max-width: 560px; margin: 0 auto; }
.waitlist-row { display: flex; gap: 10px; margin-top: 24px; }
.waitlist input[type="email"] { flex: 1; min-width: 0; height: 54px; padding: 0 18px; border-radius: 14px; border: 0; font: 500 17px var(--body);
  color: #1f2329; background: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.waitlist input[type="email"]::placeholder { color: #8a9099; }
.waitlist .btn { height: 54px; color: #3d2b00; background: var(--sun); box-shadow: 0 4px 0 var(--sun-edge); }
.waitlist .btn:active { box-shadow: 0 0 0 var(--sun-edge); }
.waitlist .btn:disabled { opacity: .7; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-note { font-size: 14px; }
.form-note.ok { font-weight: 700; color: #fff !important; }
.form-note.err { font-weight: 700; color: #fff3c4 !important; }
.preview { margin-bottom: 36px; }
.final .preview-note { font-size: 14px; margin-top: 10px; }
.final .preview-note a { color: #fff; text-decoration: underline; }
.final .waitlist { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .25); }
.install-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.install .btn { color: #1f2329; background: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
@media (max-width: 560px) { .waitlist-row { flex-direction: column; } .waitlist .btn { width: 100%; } }

/* footer */
.foot { max-width: 1160px; margin: 0 auto; padding: 40px 16px 48px; border-top: 1px solid var(--line); display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--muted); font-size: 15px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.foot nav { display: flex; gap: 24px; }
.foot nav a { text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--fg); }

/* --- support and other text pages ---------------------------------------------- */
.doc-page { max-width: 1000px; margin: 0 auto; padding: 56px 16px 80px; }
.doc-hero { position: relative; text-align: center; display: grid; justify-items: center; gap: 14px; margin-bottom: 48px; }
.doc-hero .kicker { margin: 0; }
.doc-phil { width: 84px; height: 84px; }
.doc-title { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; font-weight: 900; margin: 0; }
.doc-hero .lede { margin: 0 auto 8px; text-align: center; }
.contact { max-width: 100%; }
.contact svg { fill: none; }
@media (max-width: 480px) { .contact { font-size: 15px; padding: 0 16px; } }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-grid .card p { color: var(--muted); font-size: 16px; }
.doc-grid .card p + p { margin-top: 10px; }
.doc-grid a, .foot a { color: var(--accent-text); }
.doc-h { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.doc-faq { margin-top: 56px; }
.doc-faq .doc-h { text-align: center; margin-bottom: 18px; }
@media (max-width: 760px) { .doc-grid { grid-template-columns: 1fr; } }

/* the terms: one readable column */
.legal { max-width: 760px; }
.legal .doc-title { margin: 6px 0 8px; }
.legal > .fine { margin-bottom: 28px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 10px 0; }
.legal a { color: var(--accent-text); font-weight: 600; }
.legal .kicker { color: var(--accent-text); margin: 0; }

/* --- scroll reveal ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
