/* safepool.io: the landing page. Tokens mirror the app's theme (app/src/theme): Azure on white, Nunito. */

@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-extrabold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --white: #FFFFFF;
  --ink: #0E1726;
  --ink-2: #3A4556;
  --muted: #5B6475;
  --azure-25: #F6FAFF;
  --azure-50: #EEF5FF;
  --azure-100: #DCEBFF;
  --azure-300: #85B8FF;
  --azure-500: #1A7DFF;
  --azure-600: #0758CC;
  --azure-650: #0A63E0;
  --azure-700: #0A48A3;
  --surface: #F6F8FB;
  --track: #E3E7EF;
  --field: #C4CAD4;
  --error: #C42032;
  --error-soft: #FFB3BC;
  --ok-bg: #E7F6EF;
  --ok: #0F7653;
  --warn-bg: #FFF1E0;
  --warn: #8A4B00;
  --shadow-soft: 0 2px 6px rgba(14, 23, 38, 0.06), 0 8px 20px rgba(14, 23, 38, 0.06);
  --shadow-card: 0 16px 36px rgba(14, 23, 38, 0.14), 0 2px 6px rgba(14, 23, 38, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--azure-500); outline-offset: 3px; }

.page { overflow-x: hidden; overflow-x: clip; }

/* Header and hero */

.hero-bg { background: linear-gradient(to bottom, var(--azure-50) 0%, var(--azure-25) 60%, var(--white) 100%); }

.nav { max-width: 1200px; margin: 0 auto; padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--azure-700); }
.brand-mark { position: relative; width: 36px; height: 36px; flex: none; }
.brand-mark-shadow { position: absolute; left: 2px; top: 2px; width: 32px; height: 32px; border-radius: 16px; box-shadow: 0 5px 10px rgba(7, 88, 204, 0.18), 0 1px 3px rgba(14, 23, 38, 0.12); }
.brand-mark svg { position: absolute; left: 0; top: 0; }
.brand-name { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.01em; }
.nav-cta { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 22px; background: var(--white); color: var(--azure-700); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-soft); }

.hero { max-width: 1200px; margin: 0 auto; padding: 56px 24px 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px 48px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--white); color: var(--azure-700); font-size: 14px; font-weight: 700; box-shadow: 0 0 0 1px var(--azure-100); }
.pill-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--azure-500); }
.hero-title { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.hero-lede { margin: 0; max-width: 480px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); text-wrap: pretty; }

/* Waitlist form, in the hero and in the closing band */

.wl { width: 100%; max-width: 500px; margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.wl-form { display: flex; flex-direction: column; gap: 10px; }
.wl-label { padding-left: 22px; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink-2); }
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-input { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 22px; border-radius: 28px; border: 1.5px solid var(--field); background: var(--white); font-family: inherit; font-size: 17px; color: var(--ink); }
.wl-input::placeholder { color: #8A93A3; }
.wl-input:focus-visible { outline: 3px solid rgba(26, 125, 255, 0.35); outline-offset: 2px; }
.wl-input[aria-invalid="true"] { border-color: var(--error); }
.wl-input[aria-invalid="true"]:focus-visible { outline-color: rgba(196, 32, 50, 0.25); }
.wl-submit { flex: 1 0 auto; height: 56px; padding: 0 28px; border: 0; border-radius: 28px; background: var(--azure-600); color: var(--white); font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(7, 88, 204, 0.22); }
.wl-submit:disabled { cursor: progress; opacity: 0.75; }
.wl-error { margin: 0; padding-left: 22px; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--error); }
.wl-error svg { flex: none; }
.wl-note { margin: 0; padding-left: 22px; font-size: 14px; line-height: 20px; color: var(--muted); }
.wl-done { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--azure-100), 0 10px 24px rgba(14, 23, 38, 0.06); }
.wl-check { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.wl-done-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-done-title { font-size: 17px; line-height: 22px; font-weight: 800; }
.wl-done-title:focus { outline: none; }
.wl-done-body { font-size: 15px; line-height: 21px; color: var(--muted); overflow-wrap: anywhere; }
.wl-again { align-self: flex-start; height: 44px; padding: 0 22px; border: 0; background: transparent; color: var(--azure-700); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
/* The hidden field people never see; a bot that fills it is answered like anyone else. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.wl--band .wl-label { color: var(--white); }
.wl--band .wl-input { border: 2px solid var(--white); }
.wl--band .wl-input[aria-invalid="true"] { border-color: var(--error-soft); }
.wl--band .wl-submit { background: var(--white); color: var(--azure-600); font-weight: 800; box-shadow: 0 10px 24px rgba(4, 30, 74, 0.25); }
.wl--band .wl-error { color: var(--white); }
.wl--band .wl-done { box-shadow: none; }
.wl--band .wl-again { color: var(--white); }
.wl--band :focus-visible { outline-color: var(--white); }
.wl--band .wl-input:focus-visible { outline-color: rgba(255, 255, 255, 0.55); }

/* The phone in the hero: decoration with one label for screen readers */

.art-wrap { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.art { position: relative; width: 100%; max-width: 440px; height: 640px; }
.art-badge { position: absolute; right: -44px; top: -12px; width: 220px; height: 220px; }
.art-badge-shadow { position: absolute; left: 11px; top: 11px; width: 198px; height: 198px; border-radius: 99px; box-shadow: 0 26px 48px rgba(7, 88, 204, 0.20), 0 4px 10px rgba(14, 23, 38, 0.10); }
.art-badge svg { position: absolute; left: 0; top: 0; }

.phone { position: absolute; left: 50%; top: 24px; width: 292px; height: 600px; margin-left: -146px; padding: 10px; border-radius: 48px; background: var(--ink); box-shadow: 0 40px 80px rgba(7, 88, 204, 0.22), 0 12px 24px rgba(14, 23, 38, 0.16); }
.phone-screen { position: relative; width: 100%; height: 100%; padding: 0 16px; border-radius: 38px; background: var(--white); overflow: hidden; }
.phone-top { padding-top: 34px; display: flex; justify-content: space-between; }
.phone-btn { width: 36px; height: 36px; border-radius: 18px; background: var(--white); box-shadow: 0 8px 18px rgba(14, 23, 38, 0.10), 0 2px 5px rgba(14, 23, 38, 0.06); display: flex; align-items: center; justify-content: center; }
.phone-btn--ink { color: var(--ink); }
.phone-caption { margin-top: 22px; text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); }
.phone-total { margin-top: 2px; display: flex; justify-content: center; align-items: baseline; color: var(--azure-500); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.phone-total-unit { font-size: 20px; line-height: 24px; margin-right: 4px; }
.phone-total-int { font-size: 40px; line-height: 44px; }
.phone-total-cents { font-size: 20px; line-height: 24px; }
.phone-sub { text-align: center; font-size: 11px; line-height: 15px; color: var(--muted); }
.phone-pools { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.pool { border-radius: 18px; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pool-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 800; }
.num { font-variant-numeric: tabular-nums; }
.pool-meta { font-size: 11px; line-height: 15px; color: var(--muted); }
.pool-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pool-due { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 10.5px; font-weight: 800; }
.pool-track { display: flex; gap: 3px; }
.pool-track span { flex: 1; height: 5px; border-radius: 3px; background: var(--track); }
.pool-track .on { background: var(--azure-500); }
.pool-track .now { background: var(--azure-300); }
.phone-actions { position: absolute; left: 16px; right: 16px; bottom: 22px; display: flex; gap: 8px; }
.phone-action { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: var(--azure-50); color: var(--azure-700); font-size: 12px; font-weight: 700; }
.phone-action--primary { background: var(--azure-600); color: var(--white); }

.note-card { position: absolute; left: 0; top: 44px; width: 252px; padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.97); box-shadow: var(--shadow-card); display: flex; align-items: flex-start; gap: 10px; }
.note-icon { flex: none; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(to bottom, #3D91FF, var(--azure-650)); display: flex; align-items: center; justify-content: center; }
.note-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.note-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.note-app { font-weight: 800; color: var(--ink); }
.note-body { font-size: 13px; line-height: 18px; color: var(--ink); }

.nudge-card { position: absolute; right: 0; bottom: 95px; width: 244px; padding: 10px 10px 10px 12px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 10px; }
.nudge-avatar { flex: none; width: 36px; height: 36px; border-radius: 18px; background: var(--azure-50); color: var(--azure-700); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.nudge-copy { flex: 1; min-width: 0; font-size: 13px; line-height: 17px; }
.nudge-name { font-weight: 800; }
.nudge-meta { color: var(--muted); }
.nudge-btn { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--azure-600); color: var(--white); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; }

/* Como funciona */

.how { max-width: 1200px; margin: 0 auto; padding: 24px 24px 0; display: flex; flex-direction: column; gap: 28px; }
.how-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.01em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: 28px; background: var(--surface); }
.card-icon { width: 52px; height: 52px; border-radius: 26px; background: var(--white); color: var(--azure-600); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(7, 88, 204, 0.10); }
.card-title { margin: 8px 0 0; font-size: 20px; line-height: 25px; font-weight: 800; }
.card-body { margin: 0; font-size: 16px; line-height: 23px; color: var(--muted); }

/* Closing band */

.band-wrap { max-width: 1200px; margin: 0 auto; padding: 96px 24px 0; }
.band { position: relative; overflow: hidden; border-radius: 40px; background: linear-gradient(160deg, var(--azure-650) 0%, var(--azure-700) 100%); padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px; color: var(--white); }
.band-mark { position: absolute; right: -90px; top: -110px; }
.band-copy { position: relative; flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.band-title { margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.band-lede { margin: 0; max-width: 460px; font-size: 18px; line-height: 26px; color: var(--azure-50); text-wrap: pretty; }
.band .wl { position: relative; flex: 1 1 380px; min-width: 0; margin-top: 0; max-width: none; }

/* Footer */

.foot { max-width: 1200px; margin: 0 auto; padding: 48px 24px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14px; line-height: 20px; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--azure-700); font-weight: 700; text-decoration: none; }

/* 404 */

.lost-page { min-height: 100vh; }
.lost { max-width: 560px; margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.lost-title { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.lost-body { margin: 0; font-size: 18px; line-height: 26px; color: var(--muted); }
.lost-home { height: 52px; padding: 0 26px; display: inline-flex; align-items: center; border-radius: 26px; background: var(--azure-600); color: var(--white); font-size: 16px; font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: no-preference) {
  .wl-submit, .nav-cta, .lost-home { transition: transform 120ms ease; }
  .wl-submit:active:not(:disabled), .nav-cta:active, .lost-home:active { transform: scale(0.98); }
}

/* Política de privacidade (/privacidade): long-form text on the landing page's tokens. */

.legal { max-width: 760px; margin: 0 auto; padding: 32px 24px 64px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.legal-title { margin: 0 0 24px; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.legal h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--azure-700); font-weight: 700; }
.legal-table { margin: 0 0 16px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--track); text-align: left; vertical-align: top; }
.legal th { color: var(--ink); font-weight: 800; background: var(--surface); }
.foot-legal { min-height: 44px; display: inline-flex; align-items: center; margin-left: 8px; color: var(--azure-700); font-weight: 700; text-decoration: none; }
.wl-note a { color: var(--azure-700); font-weight: 700; }
