/* Beryl: warm paper, ink, and Beryl's silver-grey (the app's light accent #6F7773). No web fonts, no trackers. */
:root {
  --bg: #f6f4ef; --panel: #fffdf9; --card: #efece5; --line: #e2ded5; --raised: #d8d4ca;
  --text: #1d1f1e; --text2: #4b4f4d; --text3: #868a87;
  --accent: #5d6662; --accent-hi: #3f4643; --accent-ink: #ffffff; --tint: #d3dad6;
  --mark: #fbe9a6;
  --bad: #b3402f; --good: #2f7a4a;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
p, li { color: var(--text2); }
strong { color: var(--text); font-weight: 600; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.wide { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

header.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: rgba(246,244,239,.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
header.top .wrap, header.top .wide { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand .mark { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
nav a { color: var(--text2); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--text); }

main { padding: 56px 0 72px; }
h1 { font: 600 clamp(34px, 6vw, 48px)/1.1 var(--serif); letter-spacing: -.015em; margin: 0 0 16px; }
h2 { font: 600 26px/1.2 var(--serif); margin: 56px 0 12px; }
h3 { font-size: 17px; margin: 28px 0 6px; }
.lead { font-size: 20px; color: var(--text2); max-width: 36em; }
.tag { display: inline-block; font: 500 13px var(--mono); color: var(--accent); border: 1px solid var(--raised);
  border-radius: 99px; padding: 3px 11px; margin-bottom: 20px; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 2px; }

.steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 56px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 99px;
  background: var(--tint); color: var(--accent-hi); font: 600 14px/26px var(--mono); text-align: center; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin-top: 18px; }
label { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin: 18px 0 6px; }
label .opt, .opt { color: var(--text3); font-weight: 400; }
input[type=email], input[type=text], textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; -webkit-appearance: none; appearance: none; }
input:focus, textarea:focus, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: var(--text3); }
textarea { min-height: 84px; resize: vertical; }
.hint { font-size: 14px; color: var(--text3); margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text2); margin-top: 22px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
button.primary { font: 600 16px/1 inherit; font-family: inherit; border-radius: 11px; padding: 13px 20px; cursor: pointer; border: 1px solid transparent;
  background: var(--text); color: var(--bg); margin-top: 24px; }
button.primary:hover { background: #000; }
button.primary[disabled] { opacity: .5; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 18px; padding: 12px 14px; border-radius: 10px; font-size: 15px; display: none; }
.msg.bad { display: block; background: rgba(179,64,47,.07); color: var(--bad); border: 1px solid rgba(179,64,47,.25); }
.msg.good { display: block; background: rgba(47,122,74,.07); color: var(--good); border: 1px solid rgba(47,122,74,.25); }
.updated { font: 14px var(--mono); color: var(--text3); }

.contact { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 8px 0; color: var(--text2); }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 14px; color: var(--text3); }
footer .wrap, footer .wide { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Home ---------- */
.home main { padding: 0; }
.hero { text-align: center; padding: 96px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -20% auto; height: 130%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 45% at 50% 20%, rgba(211,218,214,.9), transparent 70%); }
.eyebrow { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin: 0 0 18px; }
.big { font: 600 clamp(42px, 7.6vw, 78px)/1.03 var(--serif); letter-spacing: -.025em; margin: 0 auto 22px; max-width: 11em; }
.sub { font-size: clamp(18px, 2.3vw, 21px); max-width: 33em; margin: 0 auto; color: var(--text2); }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pill { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 99px; padding: 12px 22px; }
.pill.solid { background: var(--text); color: var(--bg); }
.pill.solid:hover { background: #000; color: var(--bg); }
.pill.line { border: 1px solid var(--raised); color: var(--text); }
.pill.line:hover { border-color: var(--text3); color: var(--text); }

.phone { width: 300px; max-width: 78vw; aspect-ratio: 1320 / 2868; border-radius: 46px; padding: 10px; background: #1c1d1c;
  box-shadow: 0 40px 80px -30px rgba(40,40,30,.45), 0 0 0 1px rgba(0,0,0,.2); margin: 0 auto; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #fff; }
.hero .phone { margin-top: 56px; }

section.band { padding: 90px 0; border-top: 1px solid var(--line); }
.center { text-align: center; }
.band h2 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.1; margin: 0 0 14px; }
.band .sub { margin: 0 auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .copy { order: 2; }
.split .copy h2 { text-align: left; }
.split .copy p { font-size: 18px; }
.split ul { padding-left: 20px; margin: 14px 0 0; }
.split li { margin: 8px 0; }

.quote { font: italic 400 clamp(22px, 3vw, 30px)/1.45 var(--serif); color: var(--text); max-width: 26em; margin: 0 auto; text-align: center; }
.quote cite { display: block; font: 500 14px var(--mono); font-style: normal; color: var(--text3); margin-top: 18px; }

.note-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(40,40,30,.35); }
.note-card .bar { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text3); }
.note-card pre { margin: 0; padding: 18px; font: 13.5px/1.65 var(--mono); color: var(--text2); white-space: pre-wrap; }
.note-card .k { color: var(--text3); } .note-card .h { color: var(--accent-hi); font-weight: 650; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.tile h3 { margin: 0 0 6px; font-size: 18px; }
.tile p { margin: 0; font-size: 15.5px; }

.cta { text-align: center; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .copy { order: 0; }
  .tiles { grid-template-columns: 1fr; }
  section.band { padding: 70px 0; }
  .hero { padding-top: 70px; }
}
@media (max-width: 520px) {
  nav a { margin-left: 14px; }
  main { padding-top: 36px; }
  .card { padding: 20px; }
}
