/* =========================================
   AiReply — AI WhatsApp assistant for business
   Visual language: the conversation itself.
   Warm paper canvas, ink type, one solid violet brand colour,
   green only for "sent / delivered", amber only for "scheduled".
   ========================================= */

:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --card: #ffffff;
  --ink: #16151c;
  --ink-2: #2b2935;
  --muted: #625f6d;
  --line: rgba(22, 21, 28, 0.1);
  --line-2: rgba(22, 21, 28, 0.18);

  --brand: #5a45e8;
  --brand-hi: #6d5bf5;
  --brand-soft: #ece8ff;
  --sent: #1f9d5c;
  --bubble-out: #dff5e5;
  --amber: #c77a0a;
  --amber-soft: #fdf0d9;

  --night: #121119;
  --night-2: #1c1a26;
  --night-text: #eeecf5;
  --night-muted: #a19db2;
  --night-line: rgba(255, 255, 255, 0.1);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 16px;
  --r-lg: 26px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(22, 21, 28, 0.05), 0 18px 40px -22px rgba(22, 21, 28, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.85rem; color: var(--brand); margin-bottom: 16px; }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--sent); box-shadow: 0 0 0 4px rgba(31, 157, 92, 0.15); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 700; max-width: 18ch; }
.h2--center { text-align: center; margin: 0 auto; }
.h2--light { color: var(--night-text); }
.h3 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 56ch; margin-top: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border-radius: 999px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(0.97); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(90, 69, 232, 0.8); }
.btn--brand:hover { background: var(--brand-hi); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--line-light { border-color: var(--night-line); color: var(--night-text); }
.btn--line-light:hover { border-color: var(--night-text); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.nav.is-scrolled, .nav.menu-open { background: rgba(246, 243, 236, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; }
.brand__mark rect { fill: var(--brand); }
.brand__mark path { fill: #fff; }
.brand__mark .brand__spark { fill: var(--brand); }
.brand--light { color: var(--night-text); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__menu-cta { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line-2); background: transparent; border-radius: 12px; position: relative; cursor: pointer; margin-left: auto; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 140px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -8%; top: 4%; width: 52%; height: 88%; background: radial-gradient(closest-side, rgba(90, 69, 232, 0.12), transparent); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -0.04em; }
.hl { color: var(--brand); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.12em; background: currentColor; opacity: 0.25; border-radius: 4px; }
.hero__lede { font-size: 1.2rem; color: var(--muted); max-width: 48ch; margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__langs { margin-top: 28px; font-size: 0.92rem; color: var(--ink-2); }
.hero__langs span { color: var(--muted); margin-right: 6px; }

/* Phone */
.phone { margin: 0; justify-self: center; width: 100%; max-width: 400px; }
.phone__frame { background: #efe7dc; border-radius: 40px; border: 10px solid var(--ink); box-shadow: 0 50px 90px -40px rgba(22, 21, 28, 0.6), 0 0 0 1px rgba(0,0,0,0.05); overflow: hidden; height: 620px; display: flex; flex-direction: column; }
.phone__top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.phone__avatar { width: 38px; height: 38px; border-radius: 50%; background: #d7cbb6; color: #4a3f2b; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; flex: none; }
.phone__who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.phone__who b { font-size: 0.98rem; }
.phone__status { font-size: 0.78rem; color: var(--muted); }
.phone__tag { margin-left: auto; background: var(--brand-soft); color: var(--brand); padding: 5px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 500; white-space: nowrap; }
.chat { flex: 1; overflow: hidden; padding: 14px 12px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background-color: #efe7dc; background-image: radial-gradient(rgba(22,21,28,0.05) 1px, transparent 1px); background-size: 16px 16px; }
.day { align-self: center; background: rgba(255,255,255,0.8); color: var(--muted); padding: 3px 10px; border-radius: 8px; font-size: 0.68rem; }
.msg { max-width: 82%; padding: 8px 11px 6px; border-radius: 14px; font-size: 0.9rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,0.06); position: relative; }
.msg time { display: block; text-align: right; font-size: 0.66rem; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.msg--in { align-self: flex-start; background: var(--card); border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.msg--out time { color: #2f7a53; }
.src { display: inline-block; margin-top: 6px; background: rgba(90, 69, 232, 0.1); color: var(--brand); padding: 2px 7px; border-radius: 6px; font-size: 0.66rem; }
.file { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.6); border-radius: 10px; padding: 8px; }
.file__ic { width: 34px; height: 40px; border-radius: 6px; background: #d9493b; color: #fff; font-size: 0.6rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.file b { display: block; font-size: 0.82rem; font-weight: 600; }
.file small { color: var(--muted); font-size: 0.72rem; }
.sys { align-self: center; display: inline-flex; align-items: center; gap: 7px; background: var(--amber-soft); color: #7a4a05; padding: 6px 10px; border-radius: 10px; font-size: 0.68rem; text-align: center; max-width: 92%; }
.sys--team { background: var(--brand-soft); color: #3b2ab8; }
.sys__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.sys__dot--amber { background: var(--amber); }
.typing { align-self: flex-end; background: var(--bubble-out); border-radius: 14px; padding: 10px 13px; display: flex; gap: 4px; }
.typing--in { align-self: flex-start; background: var(--card); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #5b8f73; animation: blink 1s infinite; }
.typing--in i { background: #9a96a5; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
/* Conversation starts hidden and plays in; if app.js never runs, the head script reveals it (html.chat-static). */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.chat-static) .chat [data-t]:not(.is-in) { display: none; }
}
.chat [data-t].is-in { animation: msg-in .45s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.phone__cap { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); font-size: 0.7rem; padding: 0 8px; }
.replay { font: inherit; background: none; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--ink); }
.replay:hover { border-color: var(--ink); }

/* Sections */
.section { padding: clamp(84px, 11vw, 144px) 0; }

/* Problem: night section with lock screen */
.problem { background: var(--night); color: var(--night-text); border-radius: 44px; margin: 0 clamp(0px, 1.2vw, 16px); position: relative; z-index: 2; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.5); }
.problem .eyebrow { color: #a99cff; }
.problem .lede { color: var(--night-muted); }
.problem__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.pains { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pains li { border-top: 1px solid var(--night-line); padding-top: 12px; color: var(--night-muted); }
.pains b { color: var(--night-text); font-weight: 600; display: block; }
.lock { background: linear-gradient(170deg, #2a2640, #16141f 60%); border-radius: 36px; padding: 34px 18px 22px; border: 1px solid var(--night-line); max-width: 380px; justify-self: center; width: 100%; }
.lock__time { text-align: center; margin-bottom: 26px; }
.lock__clock { display: block; font-family: var(--font-display); font-size: 4rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.lock__date { color: var(--night-muted); font-size: 0.9rem; }
.notes { display: grid; gap: 8px; }
.note { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; background: rgba(255,255,255,0.1); backdrop-filter: blur(6px); border-radius: 16px; padding: 11px 14px; }
.note b { font-size: 0.88rem; }
.note span { grid-column: 1; color: var(--night-muted); font-size: 0.86rem; }
.note time { grid-row: 1; grid-column: 2; color: var(--night-muted); font-family: var(--font-mono); font-size: 0.7rem; }
.note--more { background: transparent; border: 1px dashed var(--night-line); text-align: center; }
.note--more span { grid-column: 1 / -1; }
.lock__cap { text-align: center; color: var(--night-muted); margin-top: 14px; font-size: 0.66rem; }

/* How: journey */
.journey { margin-top: 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.stop { position: relative; padding: 38px 20px 0 0; }
.stop::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--sent); }
.stop--end::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.stop__t { color: var(--muted); }
.stop h3 { font-size: 1.12rem; margin: 6px 0 8px; letter-spacing: -0.015em; }
.stop p { color: var(--muted); font-size: 0.93rem; }

/* Features */
.features { background: var(--paper-2); }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 80px); align-items: center; margin-top: clamp(56px, 8vw, 96px); }
.feat--flip .feat__copy { order: 2; }
.feat__n { color: var(--brand); }
.feat__copy .h3 { margin: 8px 0 12px; }
.feat__copy > p { color: var(--muted); font-size: 1.06rem; }
.ticks { margin-top: 20px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--sent); border-bottom: 2px solid var(--sent); transform: rotate(-45deg); }

.ui { background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ui__cap { color: var(--muted); margin-top: 14px; font-size: 0.68rem; }
.ui__search { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--brand); border-radius: 12px; padding: 12px 14px; font-weight: 500; box-shadow: 0 0 0 4px var(--brand-soft); }
.ui__search .mono { background: var(--brand); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 0.7rem; }
.hit { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.hit--dim { opacity: 0.65; }
.hit__file { color: var(--brand); font-size: 0.7rem; }
.hit p { margin-top: 4px; font-size: 0.93rem; color: var(--ink-2); }
mark { background: #fff1b8; color: inherit; padding: 0 3px; border-radius: 3px; }

.day24 { position: relative; height: 70px; border-radius: 12px; background: #f1f7f3; border: 1px solid var(--line); margin-top: 58px; }
.day24__quiet { position: absolute; top: 0; bottom: 0; left: var(--from); width: calc(var(--to) - var(--from)); background: repeating-linear-gradient(135deg, rgba(22,21,28,0.07) 0 6px, rgba(22,21,28,0.02) 6px 12px); }
.day24__quiet:first-child { border-radius: 12px 0 0 12px; }
.day24__quiet:nth-child(2) { border-radius: 0 12px 12px 0; }
.day24__pin { position: absolute; top: -2px; bottom: -2px; left: var(--at); width: 3px; border-radius: 3px; background: var(--muted); }
.day24__pin i { position: absolute; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 0.72rem; font-weight: 600; background: var(--card); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 8px; }
.day24__pin--in i { transform: translateX(-85%); }
.day24__pin--out { background: var(--sent); }
.day24__pin--out i { background: var(--bubble-out); border-color: rgba(31,157,92,0.35); color: #17643d; }
.day24__axis { display: flex; justify-content: space-between; color: var(--muted); margin-top: 8px; font-size: 0.68rem; }
.ui__legend { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 0.72rem; }
.sw { width: 18px; height: 12px; border-radius: 3px; }
.sw--quiet { background: repeating-linear-gradient(135deg, rgba(22,21,28,0.18) 0 4px, rgba(22,21,28,0.04) 4px 8px); }

.row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 11px 4px; }
.row + .row { border-top: 1px solid var(--line); }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; background: #e6ddcc; color: #4a3f2b; }
.av--2 { background: #d8e7f6; color: #24476b; }
.av--3 { background: #e5dcf6; color: #45307a; }
.row__main { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.row__main b { font-size: 0.95rem; }
.row__main span { color: var(--muted); font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill--sarah { background: var(--brand-soft); color: var(--brand); }
.pill--ai { background: var(--bubble-out); color: #17643d; }
.pill--ben { background: #e7eef6; color: #2c4f75; }
.note-int { margin-top: 10px; background: var(--amber-soft); border-left: 3px solid var(--amber); border-radius: 8px; padding: 10px 12px; font-size: 0.88rem; color: #5b3a06; }
.note-int .mono { display: block; font-size: 0.66rem; margin-bottom: 2px; color: #8a5a0b; }

.camp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.camp__head .mono { color: var(--muted); }
.camp__bar { height: 12px; background: var(--paper-2); border-radius: 999px; margin: 18px 0; overflow: hidden; }
.camp__bar i { display: block; height: 100%; width: var(--p); background: var(--sent); border-radius: 999px; }
.camp__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.camp__stats div { background: var(--paper); border-radius: 12px; padding: 12px; }
.camp__stats dt { color: var(--muted); font-size: 0.68rem; }
.camp__stats dd { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.camp__tpl { margin-top: 14px; color: var(--ink-2); background: var(--paper); padding: 10px 12px; border-radius: 10px; font-size: 0.74rem; }

.tools { margin-top: clamp(64px, 9vw, 110px); border-top: 1px solid var(--line-2); padding-top: 28px; }
.tools__label { color: var(--muted); }
.tools__list { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tools__list li { display: flex; flex-direction: column; gap: 4px; }
.tools__list b { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.02em; }
.tools__list span { color: var(--muted); font-size: 0.9rem; }

/* Before/after */
.ba__grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba__col { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.ba__col--before { background: var(--paper-2); }
.ba__col--after { background: var(--card); box-shadow: var(--shadow); border: 1.5px solid var(--brand); }
.ba__tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(22,21,28,0.08); margin-bottom: 18px; }
.ba__col--after .ba__tag { background: var(--brand); color: #fff; }
.ba__col li { padding: 12px 0; border-top: 1px solid var(--line); }
.ba__col--before li { color: var(--muted); }
.ba__col--after li { font-weight: 500; }

/* Use cases */
.uses { background: var(--paper-2); }
.uses__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.use { background: var(--card); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.use h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
.use p:last-child { color: var(--muted); font-size: 0.94rem; }
.bubble { align-self: flex-start; background: var(--paper); padding: 8px 12px; border-radius: 14px 14px 14px 4px; font-size: 0.9rem; color: var(--ink-2); }

/* Setup */
.setup__steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.setup__steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.setup__n { font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--brand); line-height: 1; letter-spacing: -0.04em; }
.setup__steps h3 { font-size: 1.25rem; margin: 12px 0 8px; letter-spacing: -0.02em; }
.setup__steps p { color: var(--muted); }

/* Under the hood + FAQ share the details pattern */
.hood { background: var(--card); }
.hood__list, .faq { margin-top: 40px; border-top: 1px solid var(--line-2); }
.hood__list details, .faq details { border-bottom: 1px solid var(--line-2); }
.hood__list summary, .faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.hood__list summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.hood__list summary h3, .faq summary h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.hood__list summary .mono { color: var(--muted); }
.hood__list summary::after, .faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; font-weight: 300; color: var(--brand); transition: transform .25s var(--ease); }
.hood__list details[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.hood__list summary:hover h3, .faq summary:hover h3 { color: var(--brand); }
.hood__list details p, .faq details p { color: var(--muted); padding-bottom: 24px; max-width: 70ch; }

/* Contact */
.contact { background: var(--night); color: var(--night-text); padding: clamp(84px, 10vw, 140px) 0; border-radius: 44px 44px 0 0; }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact__lede { color: var(--night-muted); font-size: 1.12rem; margin-top: 20px; max-width: 52ch; }
.contact__next { margin-top: 30px; display: grid; gap: 12px; }
.contact__next li { display: flex; gap: 14px; }
.contact__next .mono { color: #a99cff; padding-top: 3px; }
.contact__card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 12px; }
.contact__mail { text-align: center; color: var(--night-muted); padding: 8px; text-decoration: none; }
.contact__mail:hover { color: var(--night-text); }
.contact__by { color: var(--night-muted); font-size: 0.88rem; border-top: 1px solid var(--night-line); padding-top: 16px; margin-top: 4px; }
.contact__by b { color: var(--night-text); }

/* Footer */
.footer { background: var(--night); color: var(--night-muted); padding: 20px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; border-top: 1px solid var(--night-line); padding-top: 44px; }
.footer__desc { margin-top: 12px; font-size: 0.92rem; }
.footer__nap { font-style: normal; font-size: 0.92rem; line-height: 1.7; }
.footer__nap b, .footer__nap a { color: var(--night-text); }
.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__links a { text-decoration: none; font-size: 0.92rem; }
.footer__links a:hover { color: var(--night-text); }
.footer__base { margin-top: 36px; display: grid; gap: 8px; font-size: 0.68rem; line-height: 1.6; }

.mobile-cta { display: none; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; min-height: 54px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; align-items: center; justify-content: center; box-shadow: 0 16px 30px -12px rgba(22, 21, 28, 0.6); transform: translateY(160%); transition: transform .35s var(--ease); }
.mobile-cta.is-visible { transform: none; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .stop { padding: 0 0 28px 40px; }
  .stop::before { top: 4px; }
  .tools__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 70px 0 auto; flex-direction: column; gap: 0; margin: 0; background: rgba(246, 243, 236, 0.98); padding: 6px var(--gutter) 22px; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 14px 0; color: var(--ink); font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links .nav__menu-cta { display: block; border: 0; margin-top: 12px; text-align: center; background: var(--brand); color: #fff; border-radius: 999px; }

  .hero__inner, .problem__inner, .feat, .contact__inner { grid-template-columns: 1fr; }
  .feat--flip .feat__copy { order: 0; }
  .hero { padding: 116px 0 72px; }
  .phone__frame { height: 560px; }
  .ba__grid, .uses__grid, .setup__steps { grid-template-columns: 1fr; }
  .uses__grid { gap: 12px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .mobile-cta { display: flex; }
  .footer { padding-bottom: 100px; }
  .problem { border-radius: 28px; margin: 0; }
  .contact { border-radius: 28px 28px 0 0; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .pains { grid-template-columns: 1fr; }
  .phone__frame { border-width: 8px; border-radius: 32px; height: 540px; }
  .msg { font-size: 0.86rem; }
  .tools__list { grid-template-columns: 1fr; }
  .camp__stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .camp__stats dd { font-size: 1.1rem; }
  .ui { padding: 16px; }
  .day24__pin i { font-size: 0.66rem; }
}

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