:root {
  --ink: #201a3a;
  --paper: #fffaf1;
  --white: #ffffff;
  --purple: #6c4cff;
  --purple-dark: #4b2fd1;
  --coral: #ff5f67;
  --yellow: #ffd84d;
  --mint: #8ee7cf;
  --pink: #ffb6d5;
  --blue: #86c9ff;
  --line: #ded7ef;
  --muted: #6f6884;
  --shadow: 0 18px 50px rgba(53, 35, 112, .13);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, input, select { font: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  width: min(1220px, calc(100% - 32px));
  min-height: 86px;
  margin: 12px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 20;
}
.brand { display: flex; gap: 10px; align-items: center; font-size: 1.35rem; font-weight: 900; text-decoration: none; letter-spacing: -.04em; }
.brand-mark { width: 42px; height: 42px; padding: 7px; color: var(--white); background: var(--purple); border: 2px solid var(--ink); border-radius: 14px; }
.brand-mark path, .brand-mark rect, .brand-mark circle { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: .94rem; font-weight: 750; }
.site-header nav > a { text-decoration: none; }
.inline-form { display: inline; }
.nav-button { border: 0; background: none; color: inherit; cursor: pointer; font-weight: 750; padding: 10px 0; }

.hero { min-height: 680px; display: grid; grid-template-columns: 1.03fr .97fr; gap: 50px; align-items: center; padding-block: 74px 80px; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; font-weight: 900; }
.eyebrow { padding: 8px 13px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
.live-dot { width: 9px; height: 9px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,95,103,.16); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: .98; letter-spacing: -.055em; }
.hero h1 { margin: 28px 0 25px; font-size: clamp(4.4rem, 8vw, 7.1rem); }
h1 em, h2 em { color: var(--coral); font-style: normal; }
.hero-lede { max-width: 620px; color: var(--muted); font-size: 1.18rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 50px; padding: 13px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 2px solid var(--ink); border-radius: 14px; font-weight: 900; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .16s, box-shadow .16s; }
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button-primary { color: var(--white); background: var(--purple); }
.button-quiet { background: var(--white); }
.button-disabled { opacity: .66; cursor: not-allowed; }
.button-disabled:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
.launch-note { max-width: 520px; margin-top: 18px; color: var(--muted); font-size: .88rem; }
.dev-login button { padding: 0; border: 0; color: var(--purple-dark); background: transparent; font-size: .78rem; font-weight: 800; text-decoration: underline; cursor: pointer; }

.hero-art { min-height: 500px; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art::before { content: ""; position: absolute; width: 430px; height: 430px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 48% 52% 58% 42%; transform: rotate(-7deg); }
.phone { width: 190px; height: 180px; position: absolute; z-index: 3; border: 3px solid var(--ink); border-radius: 35px; box-shadow: 10px 11px 0 var(--ink); }
.phone-purple { left: 3%; top: 22%; background: var(--purple); transform: rotate(-9deg); }
.phone-coral { right: 1%; bottom: 16%; background: var(--coral); transform: rotate(8deg); }
.handset { width: 165px; height: 51px; position: absolute; left: 9px; top: -28px; border: 3px solid var(--ink); border-radius: 28px 28px 17px 17px; background: var(--mint); }
.phone-coral .handset { background: var(--pink); }
.phone-face { height: 100%; display: grid; place-items: center; padding-top: 15px; color: var(--white); font-weight: 950; font-size: 1.3rem; }
.dial { width: 82px; height: 82px; border: 12px dotted var(--paper); border-radius: 50%; opacity: .9; }
.call-bubble { position: relative; z-index: 5; padding: 14px 20px; display: flex; flex-direction: column; line-height: .8; background: var(--white); border: 3px solid var(--ink); border-radius: 50%; transform: rotate(-5deg); box-shadow: 6px 6px 0 var(--ink); }
.call-bubble span { color: var(--coral); font-weight: 800; }.call-bubble strong { font-size: 1.7rem; }
.signal { position: absolute; z-index: 2; width: 38px; height: 38px; border: 7px solid var(--ink); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-45deg); }
.signal-one { top: 8%; left: 28%; }.signal-two { right: 20%; top: 12%; transform: rotate(45deg); }

.ticker { overflow: hidden; padding: 15px 0; color: var(--white); background: var(--ink); border-block: 2px solid var(--ink); white-space: nowrap; font-weight: 900; letter-spacing: .09em; }
.ticker div { width: max-content; animation: ticker 22s linear infinite; }.ticker span { margin: 0 24px; color: var(--yellow); }
@keyframes ticker { to { transform: translateX(-35%); } }

.section { padding-block: 110px; }
.section-heading { max-width: 680px; margin-bottom: 44px; }
.section-heading h2, .trust-statement h2, .playground-section h2 { margin: 16px 0 18px; font-size: clamp(3rem, 6vw, 5.2rem); }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { min-height: 350px; padding: 28px; position: relative; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--ink); }
.step-card.yellow { background: var(--yellow); }.step-card.mint { background: var(--mint); }.step-card.pink { background: var(--pink); }
.step-number { position: absolute; right: 24px; top: 22px; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); font-weight: 900; }
.step-icon { margin: 18px 0 66px; font-size: 3.2rem; }
.step-card h3 { margin-bottom: 16px; font-size: 2rem; }.step-card p { margin-bottom: 0; }

.playground-section { padding-block: 90px; color: var(--white); background: var(--purple); border-block: 3px solid var(--ink); }
.playground-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.kicker.light { color: var(--yellow); }.playground-section p { max-width: 520px; color: #ddd6ff; font-size: 1.1rem; }
.number-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.number-pad div { min-height: 140px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 2px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.number-pad div:nth-child(1) { color: var(--ink); background: var(--yellow); }.number-pad div:nth-child(2) { color: var(--ink); background: var(--mint); }.number-pad div:nth-child(3) { color: var(--ink); background: var(--pink); }.number-pad div:nth-child(4) { color: var(--ink); background: var(--blue); }
.number-pad strong { font-size: 2.7rem; letter-spacing: -.07em; }.number-pad span { font-weight: 800; }

.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.trust-list p { padding: 22px 0; display: grid; grid-template-columns: 42px 1fr; gap: 8px 18px; border-bottom: 1.5px solid var(--line); margin: 0; }
.trust-list p span { grid-row: 1 / 3; color: var(--coral); font-weight: 900; }.trust-list p strong { font-size: 1.15rem; }.trust-list p { color: var(--muted); }.trust-list p strong { color: var(--ink); }

.site-footer { padding: 32px max(20px, calc((100% - 1160px)/2)); display: flex; justify-content: space-between; gap: 30px; color: var(--muted); background: var(--white); border-top: 2px solid var(--ink); font-size: .86rem; }
.site-footer p { margin: 0; }

.page-hero { padding-block: 80px 40px; }.page-hero.compact { min-height: auto; }.page-hero h1 { margin: 24px 0 18px; font-size: clamp(3.4rem, 7vw, 6rem); }.page-hero > p { color: var(--muted); font-size: 1.1rem; }
.dashboard-grid, .party-layout { padding-bottom: 100px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.party-sidebar { display: grid; gap: 22px; }
.panel, .party-list, .directory { padding: 30px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h2, .list-heading h2 { margin: 14px 0 12px; font-size: 2rem; }.panel-icon { font-size: 2.4rem; }.panel > p { color: var(--muted); }
.stack-form { display: flex; flex-direction: column; gap: 10px; }.stack-form label { margin-top: 8px; font-weight: 850; }.stack-form label small { color: var(--muted); font-weight: 600; }
input { width: 100%; min-height: 52px; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; outline: none; }
input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(108,76,255,.15); }.stack-form .button { margin-top: 13px; }
.list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }.list-heading span { color: var(--muted); font-size: .85rem; }.list-heading h2 { margin-top: 0; }
.party-row, .member-row { min-height: 78px; padding: 13px 8px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; border-top: 1.5px solid var(--line); text-decoration: none; }
.party-avatar { width: 46px; height: 46px; display: grid; place-items: center; background: var(--mint); border: 2px solid var(--ink); border-radius: 14px; }.party-row:nth-child(3n) .party-avatar { background: var(--yellow); }.party-row:nth-child(3n+1) .party-avatar { background: var(--pink); }
.party-row strong, .party-row small, .member-row strong, .member-row small { display: block; }.party-row small, .member-row small { margin-top: 3px; color: var(--muted); }.row-arrow { font-size: 1.4rem; }
.empty-state { min-height: 180px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }.empty-state span { font-size: 2.5rem; }.empty-state p { margin: 10px 0 0; }
.back-link { display: block; width: fit-content; margin-bottom: 28px; color: var(--muted); font-weight: 800; text-decoration: none; }.party-title h1 { margin-bottom: 14px; }.party-meta { display: flex; gap: 10px; flex-wrap: wrap; }.party-meta span { padding: 7px 11px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.invite-panel form { margin: 24px 0; }.reveal-card { margin-top: 24px; padding: 18px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 16px; }.reveal-card strong, .reveal-card p { display: block; }.reveal-card input { margin: 10px 0; background: var(--white); }.reveal-card p { margin: 0; font-size: .78rem; }
.extension { width: 54px; height: 54px; display: grid; place-items: center; color: var(--white); background: var(--purple); border: 2px solid var(--ink); border-radius: 50%; font-weight: 950; }.status-dot { width: 12px; height: 12px; background: #20b77a; border: 2px solid var(--ink); border-radius: 50%; }
.status-dot.status-off { background: var(--muted); }
.member-details, .device-line { min-width: 0; display: block; }
.device-line { margin-top: 6px; }
.device-actions { position: relative; margin-top: 7px; }
.device-actions summary { width: fit-content; color: var(--purple-dark); cursor: pointer; font-size: .78rem; font-weight: 850; }
.device-action-card { margin-top: 8px; padding: 12px; display: grid; gap: 8px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; }
.device-action-card form { margin: 0; }
.device-action-card small { color: var(--muted); line-height: 1.4; }
.text-button { padding: 0; color: var(--purple-dark); background: none; border: 0; cursor: pointer; font-size: .82rem; font-weight: 850; text-decoration: underline; text-align: left; }
.danger-button { color: #b32635; }
.service-form { display: grid; gap: 12px; margin-top: 22px; }
.service-toggle { min-height: 76px; padding: 13px; display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; background: var(--paper); border: 1.5px solid var(--line); border-radius: 15px; cursor: pointer; }
.service-toggle input[type="checkbox"] { width: 24px; min-height: 24px; margin: 2px 0 0; accent-color: var(--purple); }
.service-toggle strong, .service-toggle small { display: block; }
.service-toggle strong { line-height: 1.35; }
.service-toggle small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.service-toggle:has(input:focus-visible) { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(108,76,255,.15); }
.service-toggle:has(input:disabled) { cursor: not-allowed; opacity: .68; }
.service-number { display: inline-grid; min-width: 42px; min-height: 28px; place-items: center; color: var(--white); background: var(--purple); border: 1.5px solid var(--ink); border-radius: 999px; font-family: ui-monospace, monospace; font-size: .82rem; }
.service-choice { padding-bottom: 3px; }
.weather-field { display: block; margin: 10px 3px 6px; font-size: .78rem; font-weight: 850; }
.resolved-place { display: block; margin: 6px 3px 0; color: var(--muted); }
.service-form .button { width: 100%; margin-top: 5px; }
.service-note { margin: 18px 0 0; padding-top: 16px; border-top: 1.5px solid var(--line); font-size: .78rem; }

.auth-page { background: linear-gradient(135deg, var(--paper) 0 52%, #ebe6ff 52% 100%); }
.auth-shell { min-height: 720px; padding-block: 70px 100px; display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: center; }
.auth-intro h1 { margin: 28px 0 24px; font-size: clamp(4rem, 7vw, 6.8rem); }
.auth-intro > p { max-width: 570px; color: var(--muted); font-size: 1.12rem; }
.auth-promise { width: fit-content; margin-top: 28px; padding: 14px 18px; display: flex; gap: 11px; align-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.auth-promise span { color: var(--purple); font-size: 1.4rem; }
.auth-panel { padding: 36px; box-shadow: 9px 9px 0 var(--ink); }
.auth-panel h2 { margin-bottom: 24px; }
.form-error { margin: 0 0 18px; padding: 13px 15px; color: #742431; background: #ffe3e7; border: 1.5px solid #e7a7ad; border-radius: 12px; font-weight: 750; }
.auth-switch { margin: 24px 0 0; color: var(--muted); text-align: center; font-size: .88rem; }
.auth-switch a, .auth-links a { color: var(--purple-dark); font-weight: 850; }
.auth-links { margin-top: 24px; padding-top: 20px; display: flex; justify-content: space-between; gap: 18px; border-top: 1.5px solid var(--line); font-size: .86rem; }
.recovery-shell { max-width: 840px; padding-block: 70px 110px; text-align: center; }
.recovery-shell h1 { margin: 28px 0 20px; font-size: clamp(3.2rem, 7vw, 5.7rem); }
.recovery-shell > p { max-width: 650px; margin-inline: auto; color: var(--muted); font-size: 1.08rem; }
.recovery-card { margin: 38px 0 22px; padding: 26px; text-align: left; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); }
.recovery-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.recovery-code-grid code { padding: 12px 14px; overflow-wrap: anywhere; color: var(--ink); background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 10px; font-size: .92rem; font-weight: 850; text-align: center; }
.recovery-card > p { margin: 22px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.recovery-next { margin-top: 26px; }

.join-shell { min-height: 720px; padding-block: 80px 100px; display: grid; grid-template-columns: 1fr 460px; gap: 80px; align-items: center; }.join-intro h1 { margin: 26px 0 22px; font-size: clamp(4rem, 8vw, 7rem); }.join-intro p { max-width: 500px; color: var(--muted); font-size: 1.15rem; }.join-panel { padding: 36px; }.fine-print { margin: 20px 0 0; text-align: center; font-size: .78rem; }
.setup-shell, .error-shell { max-width: 780px; padding-block: 80px 110px; text-align: center; }.success-burst, .error-phone { width: 82px; height: 82px; margin: 0 auto 24px; display: grid; place-items: center; color: var(--white); background: #20b77a; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 7px 7px 0 var(--ink); font-size: 2.5rem; font-weight: 950; }.setup-shell h1, .error-shell h1 { margin: 28px 0 22px; font-size: clamp(3rem, 7vw, 5.5rem); }.setup-shell > p, .error-shell > p { max-width: 620px; margin-inline: auto; color: var(--muted); font-size: 1.08rem; }
.setup-card { margin: 40px 0 24px; overflow: hidden; text-align: left; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); }.setup-card div { min-height: 74px; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1.5px solid var(--line); }.setup-card div:last-child { border-bottom: 0; }.setup-card span { color: var(--muted); font-size: .85rem; }.setup-card strong { font-family: ui-monospace, monospace; overflow-wrap: anywhere; text-align: right; }.setup-card .secret-value { background: var(--yellow); }.warning-card { padding: 18px; background: var(--pink); border: 2px solid var(--ink); border-radius: 16px; }.warning-card p { margin: 5px 0 0; }
.setup-guides { margin-top: 72px; text-align: left; }
.setup-guide-heading { max-width: 640px; margin-bottom: 26px; }
.setup-guide-heading h2 { margin: 10px 0 12px; font-size: clamp(2.5rem, 5vw, 4rem); }
.setup-guide-heading p { color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-grid article { padding: 20px; background: var(--white); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }
.guide-grid article > span { font-size: 2rem; }
.guide-grid h3 { margin: 14px 0 12px; font-size: 1.35rem; }
.guide-grid ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .88rem; }
.guide-grid li + li { margin-top: 8px; }
.emergency-note { margin-top: 28px; padding: 16px; color: #6b2430; background: #ffe9e9; border: 1.5px solid #e7a7ad; border-radius: 14px; text-align: left; font-size: .86rem; }
.setup-back { margin-top: 28px; }
.error-phone { background: var(--coral); }.error-shell .button { margin-top: 20px; }

@media (max-width: 850px) {
  .site-header { min-height: 72px; }.site-header nav > a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }.hero-art { min-height: 430px; }.hero-art::before { width: min(390px, 90vw); height: min(390px, 90vw); }
  .phone { width: 165px; height: 155px; }.handset { width: 142px; }.phone-purple { left: 3%; }.phone-coral { right: 2%; }
  .steps-grid, .playground-grid, .trust-grid, .dashboard-grid, .party-layout, .join-shell, .guide-grid, .auth-shell { grid-template-columns: 1fr; }.playground-grid, .trust-grid, .join-shell, .auth-shell { gap: 44px; }.join-shell, .auth-shell { padding-top: 60px; }.join-panel, .auth-panel { max-width: 560px; }
  .section { padding-block: 80px; }.site-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 26px, 1160px); }.site-header { width: calc(100% - 18px); padding-inline: 14px; }.site-header nav { gap: 12px; font-size: .82rem; }.site-header .github-link { display: none; }.brand { font-size: 1.1rem; }.brand-mark { width: 36px; height: 36px; }
  .hero { padding-block: 46px 60px; }.hero h1 { font-size: clamp(3.7rem, 18vw, 5.4rem); }.hero-lede { font-size: 1rem; }.hero-actions { align-items: stretch; flex-direction: column; }.button { width: 100%; }
  .hero-art { min-height: 350px; }.hero-art::before { height: 315px; }.phone { width: 135px; height: 135px; border-radius: 26px; }.handset { width: 116px; height: 44px; }.dial { width: 64px; height: 64px; }.call-bubble { padding: 10px 13px; }.call-bubble strong { font-size: 1.3rem; }
  .steps-grid { gap: 16px; }.step-card { min-height: 300px; }.step-icon { margin-bottom: 40px; }.number-pad { gap: 9px; }.number-pad div { min-height: 120px; padding: 16px; }.number-pad strong { font-size: 2.2rem; }
  .page-hero { padding-top: 60px; }.panel, .party-list, .directory, .join-panel, .auth-panel { padding: 22px; }.dashboard-grid, .party-layout { gap: 18px; }.join-intro h1, .auth-intro h1 { font-size: 4rem; }.auth-links { align-items: flex-start; flex-direction: column; }.recovery-code-grid { grid-template-columns: 1fr; }.recovery-card { padding: 18px; }
  .setup-card div { align-items: flex-start; flex-direction: column; gap: 5px; }.setup-card strong { text-align: left; }.site-footer { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.ticker div { animation: none; } * { transition: none !important; } }
