/* poolane.com: "Calm and refined" look, same tokens as the app (mobile/src/theme/tokens.ts). */
:root {
  --bg: #FBFAF7;
  --card: #FFFFFF;
  --navy: #13263D;
  --navy-deep: #0E1B2C;
  --brass: #C9A15B;
  --brass-ink: #8A6424;
  --ivory: #F6F1E7;
  --ink: #16202D;
  --muted: #5B6676;
  --line: #ECE6DA;
  --ok: #1E7A4F;
  --ok-soft: #E8F4EE;
  --on-soft: #FBF3E2;
  --on-ink: #8A6212;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(19, 38, 61, 0.08);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.8 'Noto Kufi Arabic', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[lang='en'] body { font-family: 'Inter', system-ui, sans-serif; line-height: 1.65; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.lat { font-family: 'Inter', system-ui, sans-serif; unicode-bidi: isolate; }
h1, h2, h3 { line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 247, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px 'Inter', sans-serif; color: var(--navy); }
.brand svg { width: 36px; height: 36px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--navy); }
.lang { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; background: var(--card); }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-inline-start: auto; } }

/* Hero */
.hero { background: radial-gradient(120% 120% at 80% 0%, #1F3A5C 0%, var(--navy) 45%, var(--navy-deep) 100%); color: var(--ivory); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-block: 72px 80px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brass); letter-spacing: 0.02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 700; }
.hero .sub { margin-top: 18px; font-size: 18px; color: #C9D3E0; max-width: 34em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { border: 1px solid rgba(246, 241, 231, 0.22); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #E4EAF2; }
.soon { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: #C9D3E0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 5px rgba(201, 161, 91, 0.18); flex: none; }
.route-art { width: 100%; height: auto; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; } .route-art { max-width: 420px; margin-inline: auto; } }

/* Sections */
section { padding-block: 76px; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--brass-ink); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); }
.section-head p { margin-top: 12px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--on-soft); color: var(--brass-ink); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.icon.ok { background: var(--ok-soft); color: var(--ok); }

/* Steps */
.steps-card h3 { font-size: 22px; margin-bottom: 18px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 11px; background: var(--navy); color: var(--brass); font: 700 15px 'Inter', sans-serif; display: grid; place-items: center; }
.steps b { display: block; color: var(--ink); }
.steps span { color: var(--muted); font-size: 16px; }
.steps-card.owner { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.steps-card.owner h3 { color: var(--brass); }
.steps-card.owner .steps li::before { background: var(--brass); color: var(--navy); }
.steps-card.owner .steps b { color: var(--ivory); }
.steps-card.owner .steps span { color: #C9D3E0; }

/* Safety band */
.band { background: var(--ivory); border-block: 1px solid var(--line); }
.list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.list li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.list b { color: var(--navy); }
@media (max-width: 760px) { .list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52em; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--brass-ink); font: 600 22px/1 'Inter', sans-serif; }
details[open] summary::after { content: '−'; }
details p { margin-top: 10px; color: var(--muted); }

/* Contact */
.contact { background: var(--navy); color: var(--ivory); border-radius: 28px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact h2 { font-size: clamp(24px, 3vw, 32px); }
.contact p { color: #C9D3E0; margin-top: 8px; }
.mail { font: 600 18px 'Inter', sans-serif; color: var(--navy); background: var(--brass); padding: 14px 24px; border-radius: 999px; text-decoration: none; direction: ltr; user-select: all; }

/* Footer */
footer { padding-block: 40px 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

/* Legal pages */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); color: var(--navy); }
.doc .meta { color: var(--muted); font-size: 15px; margin-top: 10px; }
.doc .note { margin-top: 22px; background: var(--on-soft); border-inline-start: 3px solid var(--brass); padding: 14px 18px; border-radius: 12px; font-size: 15px; color: var(--ink); }
.clauses { display: grid; gap: 14px; margin-top: 30px; }
.clause { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.clause h2 { font-size: 18px; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.clause p { margin-top: 8px; color: var(--ink); }
.tag { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.tag.for { background: var(--ok-soft); color: var(--ok); }
.tag.on { background: var(--on-soft); color: var(--on-ink); }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td { border-top: 1px solid var(--line); padding: 10px 6px; }
td:last-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

.notfound { padding-block: 120px; text-align: center; }
.notfound h1 { color: var(--navy); font-size: 34px; }
.notfound p { color: var(--muted); margin-top: 10px; }
.notfound a { display: inline-block; margin-top: 24px; color: var(--brass-ink); font-weight: 600; }

/* Call to action */
.cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 26px; font: inherit; font-weight: 700; font-size: 16px; color: var(--navy); background: var(--brass); border: 0; border-radius: 999px; padding: 13px 28px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 22px rgba(201, 161, 91, 0.28); }
.cta:hover { background: #D4AE6C; }
.cta:focus-visible, .field input:focus-visible, .field select:focus-visible, .kind input:focus-visible + span, .consent input:focus-visible { outline: 3px solid rgba(201, 161, 91, 0.55); outline-offset: 2px; }

/* Our story */
.story-intro { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px 56px; align-items: start; }
.story-intro .section-head { margin-bottom: 0; }
.story-text { display: grid; gap: 14px; color: var(--ink); font-size: 18px; }
.story-lead { margin: 40px 0 18px; font-weight: 700; color: var(--navy); font-size: 19px; }
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pain .was { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #9A4B3C; background: #F8ECE8; border-radius: 999px; padding: 3px 12px; margin-bottom: 14px; }
.pain .was::before { content: '✕'; font-size: 12px; }
.pain h3::before { content: '✓ '; color: var(--ok); }
.owner-note { margin-top: 18px; background: var(--navy); border-color: var(--navy); color: var(--ivory); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; align-items: start; }
.owner-note h3 { color: var(--brass); font-size: 22px; }
.owner-note p { color: #C9D3E0; }
.owner-note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.owner-note li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.owner-note li::before { content: '✓'; color: var(--brass); font-weight: 700; }
@media (max-width: 860px) { .story-intro, .pains, .owner-note { grid-template-columns: 1fr; } }

/* Interest form */
.join-band { background: var(--ivory); border-block: 1px solid var(--line); }
.join { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px 48px; align-items: start; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; position: relative; }
.kind { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kind legend { font-weight: 600; color: var(--navy); margin-bottom: 10px; padding: 0; }
.kind label { flex: 1 1 200px; cursor: pointer; position: relative; }
.kind input { position: absolute; inset: 0; opacity: 0; pointer-events: none; margin: 0; }
.kind span { display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; font-weight: 600; color: var(--muted); background: var(--bg); }
.kind input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--ivory); }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field span { font-size: 15px; font-weight: 600; color: var(--navy); }
.field input, .field select { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; width: 100%; min-width: 0; }
.field input::placeholder { color: #9AA3AF; }
.field input:user-invalid { border-color: #C2553F; }
.field input[dir='ltr'] { text-align: left; }
.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--ink); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--navy); }
.consent a { color: var(--brass-ink); font-weight: 600; }
.form-note { font-size: 14px; color: var(--muted); }
.form .cta { margin-top: 0; justify-self: start; }
.result h1 { font-size: clamp(26px, 4vw, 34px); }
.result p { max-width: 34em; margin-inline: auto; }
.result.thanks h1::before { content: '✓'; display: block; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 30px; line-height: 64px; }

.hero { padding-block: 0; }
section.flush { padding-top: 0; }
