/* Declyn: warm paper, deep fynbos ink, one decline-red accent. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f5f0e6;
  --paper-deep: #ebe2d0;
  --card: #fffdf8;
  --ink: #14231f;
  --ink-soft: #46524d;      /* 7.4:1 on paper */
  --line: #d8ccb4;
  --decline: #d9442b;       /* accent: large text / shapes */
  --decline-ink: #a8321d;   /* small text on paper (5.6:1) */
  --fynbos: #2c6a53;
  --sage: #dbe6d3;
  --sun: #f4c35a;
  --radius: 20px;
  --display: "Bricolage", "Trebuchet MS", sans-serif;
  --body: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
em { font-style: normal; color: var(--decline); }
.nowrap { white-space: nowrap; }
.sprite { position: absolute; }

:focus-visible { outline: 3px solid var(--fynbos); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top {
  max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.35rem/1 var(--display); letter-spacing: -0.03em; }
.brand-mark { width: 32px; height: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 700 1.0625rem/1 var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 rgba(20, 35, 31, .25);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #22372f; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--line); padding: 10px 0 2px; }
.link-arrow::after { content: " ↓"; }
.link-arrow:hover { border-color: var(--ink); }

.eyebrow {
  font: 700 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--fynbos);
  margin-bottom: 18px;
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 64px;
  display: grid; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); font-weight: 800; letter-spacing: -0.04em; }
.hero h1 em { position: relative; display: inline-block; }
.hero h1 em::after {
  /* hand-drawn underline */
  content: ""; position: absolute; left: 2%; right: 4%; bottom: -.08em; height: .14em;
  background: var(--decline); border-radius: 50%; transform: rotate(-1.5deg); opacity: .9;
  transform-origin: left; animation: draw .9s .5s cubic-bezier(.6,.1,.2,1) both;
}
.lede { font-size: clamp(1.15rem, 3.6vw, 1.35rem); color: var(--ink-soft); max-width: 34ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.hero-note { margin-top: 26px; font-size: .95rem; color: var(--ink-soft); }
.hero-note strong { color: var(--ink); }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--decline); transform: translateY(-1px); animation: pulse 2.4s infinite; }

/* Text slides in but is never invisible (keeps LCP instant if animations are paused). */
.hero-copy > * { animation: nudge .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .22s; }
.hero-copy > :nth-child(5) { animation-delay: .3s; }

/* phone */
.phone-wrap { margin: 0; justify-self: center; position: relative; animation: rise .9s .2s cubic-bezier(.2,.7,.2,1) both; }
.phone-wrap::before {
  /* sun disc behind the phone */
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); top: 8%; right: -14%; z-index: 0; opacity: .85;
}
.phone {
  position: relative; z-index: 1;
  width: min(300px, 78vw); aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(20,35,31,.45), inset 0 0 0 2px #2b3d37;
  transform: rotate(-3deg);
}
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #1d302a; color: #f5f0e6; }
.screen::before { /* notch */
  content: ""; position: absolute; top: 10px; left: 50%; width: 32%; height: 22px; border-radius: 12px;
  background: var(--ink); transform: translateX(-50%); z-index: 3;
}
.scene { position: absolute; inset: 0; padding: 64px 22px 26px; display: flex; flex-direction: column; opacity: 0; }

.scene-call { align-items: center; text-align: center; background: linear-gradient(180deg, #2a4a40, #1a2d27); animation: show-call 12s infinite; }
.call-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-top: 18px; }
.call-name { font: 700 2.2rem/1.1 var(--display); margin-top: 10px; }
.call-num { opacity: .7; }
.call-buttons { margin-top: auto; display: flex; justify-content: space-between; width: 100%; padding: 0 12px 18px; }
.call-btn { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; }
.call-btn svg { width: 28px; height: 28px; }
.decline { background: var(--decline); color: #fff; animation: press 12s infinite; }
.decline svg { transform: rotate(135deg); }
.accept { background: #3a9b6b; color: #fff; }

.scene-listen { background: var(--paper); color: var(--ink); align-items: center; text-align: center; animation: show-listen 12s infinite; }
.listen-mark { width: 54px; height: 54px; margin-top: 30px; }
.listen-title { font: 700 1.15rem/1.2 var(--display); margin-top: 18px; }
.wave { display: flex; gap: 5px; align-items: center; height: 46px; margin: 18px 0; }
.wave i { width: 6px; height: 100%; border-radius: 3px; background: var(--fynbos); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; background: var(--decline); }
.wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; }
.wave i:nth-child(6) { animation-delay: .5s; } .wave i:nth-child(7) { animation-delay: .6s; }
.listen-q { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }

.scene-sms { background: linear-gradient(180deg, #2a4a40, #1a2d27); gap: 12px; animation: show-sms 12s infinite; }
.sms-time { text-align: center; font-size: .8rem; opacity: .7; }
.sms { background: rgba(255, 253, 248, .96); color: var(--ink); border-radius: 18px; padding: 12px 14px; font-size: .9rem; line-height: 1.4; }
.sms-from { font: 700 .78rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--fynbos); margin-bottom: 6px; }
.scene-sms .sms { animation: pop-1 12s infinite; }
.scene-sms .sms-urgent { animation-name: pop-2; }
.sms-urgent b { color: var(--decline-ink); }
.phone-caption { position: relative; z-index: 1; text-align: center; margin-top: 22px; font-size: .95rem; color: var(--ink-soft); }

@keyframes show-call   { 0%, 27% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes press       { 0%, 18% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217,68,43,.6); } 21% { transform: scale(.88); box-shadow: 0 0 0 14px rgba(217,68,43,0); } 24%, 100% { transform: scale(1); } }
@keyframes show-listen { 0%, 28% { opacity: 0; transform: translateY(12px); } 31%, 55% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; } }
@keyframes show-sms    { 0%, 56% { opacity: 0; } 59%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop-1       { 0%, 59% { opacity: 0; transform: translateY(-14px) scale(.96); } 63%, 100% { opacity: 1; transform: none; } }
@keyframes pop-2       { 0%, 71% { opacity: 0; transform: translateY(-14px) scale(.96); } 75%, 100% { opacity: 1; transform: none; } }
@keyframes wave        { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes nudge       { from { transform: translateY(14px); } to { transform: none; } }
@keyframes rise        { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw        { from { transform: rotate(-1.5deg) scaleX(0); } to { transform: rotate(-1.5deg) scaleX(1); } }
@keyframes pulse       { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,68,43,.5); } 60% { box-shadow: 0 0 0 7px rgba(217,68,43,0); } }

/* ---------- sections ---------- */
section { scroll-margin-top: 16px; }
.section-title { font-size: clamp(2rem, 8vw, 3.4rem); letter-spacing: -0.035em; margin-bottom: 36px; }

.how, .benefits, .faq { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter); }
.how { border-top: 2px solid var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px 24px 28px; box-shadow: 6px 6px 0 var(--ink); }
.step:nth-child(2) { box-shadow: 6px 6px 0 var(--fynbos); }
.step:nth-child(3) { box-shadow: 6px 6px 0 var(--decline); }
.step-num { font: 800 3.4rem/1 var(--display); color: var(--decline); letter-spacing: -0.04em; }
.step h3 { font-size: 1.6rem; margin: 10px 0 10px; }
.step p { color: var(--ink-soft); }

.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 700 .9rem/1 var(--body); padding: 9px 13px; border-radius: 999px; border: 2px solid var(--ink); }
.chip-family { background: var(--sage); }
.chip-work { background: #dbe4ef; }
.chip-spam { background: var(--paper-deep); text-decoration: line-through; text-decoration-thickness: 2px; }
.chip-urgent { background: var(--decline-ink); border-color: var(--decline-ink); color: #fff; }

.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.benefit-list li { padding: 24px 0 26px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.benefit-list h3 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; }
.benefit-list h3::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--fynbos); flex: none; transform: rotate(45deg); }
.benefit-list li:nth-child(3) h3::before { background: var(--decline); }
.benefit-list p { color: var(--ink-soft); max-width: 52ch; }

/* family: dark band */
.family {
  background: var(--ink); color: var(--paper);
  padding: 72px var(--gutter);
  display: grid; gap: 36px;
  border-radius: 32px 32px 0 0;
}
.family > * { max-width: calc(var(--max) - 2 * 56px); }
.eyebrow-light { color: var(--sun); }
.family h2 { font-size: clamp(2rem, 8vw, 3.2rem); letter-spacing: -0.035em; max-width: 16ch; }
.family-copy p:not(.eyebrow) { margin-top: 20px; font-size: 1.15rem; color: #d9d6cc; max-width: 46ch; }
.family-card {
  background: var(--card); color: var(--ink); border-radius: 22px; padding: 18px 20px; max-width: 360px;
  transform: rotate(2deg); box-shadow: 10px 10px 0 var(--decline);
}

/* join */
.join { background: var(--sage); padding: 72px var(--gutter); display: grid; gap: 36px; }
.join > * { width: 100%; max-width: 560px; justify-self: center; }
.price { font-family: var(--display); line-height: .9; }
.price-amount { font-size: clamp(4.5rem, 22vw, 7.5rem); font-weight: 800; letter-spacing: -0.05em; color: var(--decline-ink); }
.price-per { font-size: 1.4rem; font-weight: 700; margin-left: 4px; }
.join h2 { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -0.035em; margin: 16px 0 14px; }
.join-intro p:last-child { color: #2e3b36; font-size: 1.1rem; }

.form { background: var(--card); border: 2px solid var(--ink); border-radius: 24px; padding: 26px 20px; box-shadow: 8px 8px 0 var(--ink); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; padding: 0; }
.field legend { margin-bottom: 7px; }
input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1.0625rem/1.2 var(--body); color: var(--ink);
  background: #fff; border: 2px solid #8d8778; border-radius: 12px; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2314231f' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
input:focus, select:focus { border-color: var(--ink); outline: 3px solid rgba(44,106,83,.35); outline-offset: 0; }
input::placeholder { color: #767061; }
[aria-invalid="true"] { border-color: var(--decline-ink) !important; }
.hint { font-size: .9rem; color: var(--ink-soft); }
.err { font-size: .92rem; color: var(--decline-ink); font-weight: 700; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px;
  border: 2px solid #8d8778; border-radius: 12px; background: #fff; font-weight: 700; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--fynbos); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: .98rem; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.check a { font-weight: 700; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { background: #fbe3dd; border: 2px solid var(--decline-ink); color: #7c2414; border-radius: 12px; padding: 12px 14px; font-weight: 700; }

.success { background: var(--card); border: 2px solid var(--ink); border-radius: 24px; padding: 32px 24px; box-shadow: 8px 8px 0 var(--fynbos); text-align: center; outline: none; }
.success-mark { width: 56px; height: 56px; margin: 0 auto 18px; animation: rise .5s both; }
.success h3 { font-size: 1.9rem; margin-bottom: 10px; }
.success p { color: var(--ink-soft); }

/* faq */
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-of-type { border-bottom: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 700 1.3rem/1.25 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 2rem/1 var(--display); color: var(--decline); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }

/* footer */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px;
  display: grid; gap: 18px; border-top: 2px solid var(--ink);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { font-weight: 700; text-underline-offset: 4px; padding: 6px 0; }
.made { color: var(--ink-soft); }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .step:nth-child(2) { margin-top: 36px; }
  .step:nth-child(3) { margin-top: 72px; }
  .benefit-list { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
  .family { grid-template-columns: 1.3fr 1fr; align-items: center; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .form { padding: 34px 32px; }
  .foot { grid-template-columns: auto 1fr auto; align-items: center; }
  .foot nav { justify-content: center; }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 48px; padding-bottom: 96px; }
  .join { grid-template-columns: 1fr 1fr; align-items: start; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .join-intro { position: sticky; top: 32px; }
  .join > * { max-width: none; }
  .join .success { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scene-sms, .scene-sms .sms { opacity: 1; }
  .hero h1 em::after { transform: rotate(-1.5deg); }
}

/* ---------- privacy page ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 32px var(--gutter) 72px; }
.legal h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); letter-spacing: -0.04em; margin-bottom: 12px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 36px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.legal p, .legal li { color: #2e3b36; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal .callout { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 18px 20px; margin-top: 24px; box-shadow: 5px 5px 0 var(--sun); }
