:root {
  --bg: #1A1C20;
  --bg-soft: #23262B;
  --surface: #525661;
  --surface-raised: #5E6370;
  --text: #F0F2F5;
  --text-muted: #DDE1E8;
  --blue: #21ABCD;
  --blue-dark: #1789A4;
  --blue-light: #B2EDFA;
  --border: rgba(178, 237, 250, 0.16);
  --font-display: 'DM Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; padding: 0.75rem 1rem; border-radius: 8px; background: var(--blue); color: #101317; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { width: min(1180px, calc(100% - 40px)); height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.04em; }
.brand img { display: block; border-radius: 11px; box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
.site-header nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 700; }
.nav-link:hover { color: var(--blue-light); }

.button { min-height: 48px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.8rem 1.25rem; cursor: pointer; text-decoration: none; font-weight: 800; transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.98); }
.button:focus-visible, .nav-link:focus-visible, .text-link:focus-visible, .dialog-link:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.button-primary { background: var(--blue); color: #101317; box-shadow: 0 8px 24px rgba(33,171,205,0.22); }
.button-primary:hover { background: #39BAD8; box-shadow: 0 12px 30px rgba(33,171,205,0.3); }
.button-secondary { border: 1px solid var(--border); background: rgba(240,242,245,0.06); color: var(--text); }
.button-compact { min-height: 42px; padding: 0.65rem 1rem; }
.button-full { width: 100%; }

.hero { width: min(1180px, calc(100% - 40px)); min-height: calc(100svh - 84px); margin: 0 auto; padding: 72px 0 92px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 1.5rem; color: var(--blue-light); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: var(--blue); }
.hero h1 { max-width: 690px; margin: 0; font-family: var(--font-display); font-size: clamp(2.8rem, 4.8vw, 4.6rem); line-height: 0.93; letter-spacing: -0.065em; }
.hero h1 em { color: var(--blue-light); font-style: normal; }
.hero-lead { max-width: 610px; margin: 2rem 0 0; color: var(--text-muted); font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 0.6rem; color: var(--blue-light); font-weight: 800; text-decoration: none; }
.hero-note { margin: 1.25rem 0 0; color: var(--text-muted); font-size: 0.8rem; }

/* The hero explains the workflow; product imagery must be real app captures. */
.hero-routine { min-width: 0; padding: clamp(1.5rem, 3vw, 3rem); border: 1px solid var(--border); border-radius: 24px; background: var(--bg-soft); }
.hero-routine h2 { margin: 0 0 1.5rem; font-family: var(--font-display); font-size: 1.8rem; line-height: 1.2; }
.hero-routine ol { margin: 0; padding: 0; list-style: none; }
.hero-routine li { display: grid; gap: 0.4rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.hero-routine strong { color: var(--blue-light); }
.hero-routine li span { color: var(--text-muted); line-height: 1.6; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.value-strip { border-block: 1px solid var(--border); background: #15171A; }
.value-strip-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.value-strip p { max-width: 600px; margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2.3vw, 1.75rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; }
.value-words { flex: 0 0 auto; display: flex; align-items: center; gap: 1rem; color: var(--blue-light); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; }
.value-words i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

.story-section { padding-block: 128px; }
.section-intro { margin-bottom: 68px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: clamp(3rem, 10vw, 9rem); align-items: end; }
.section-heading h2, .workflow-copy h2, .reassurance-card h2, .closing-section h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.5rem, 5.4vw, 5.25rem); line-height: 0.98; letter-spacing: -0.06em; }
.section-heading h2 em, .workflow-copy h2 em, .reassurance-card h2 em, .closing-section h2 em { color: var(--blue-light); font-style: normal; }
.section-heading > p { margin: 0; color: var(--text-muted); line-height: 1.75; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.benefit-card { min-height: 370px; position: relative; padding: 2rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(145deg, rgba(94,99,112,0.16), rgba(26,28,32,0)); }
.benefit-number { position: absolute; top: 2rem; right: 2rem; color: rgba(178,237,250,0.5); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.benefit-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 5.5rem; border: 1px solid rgba(33,171,205,0.38); border-radius: 14px; background: rgba(33,171,205,0.11); color: var(--blue-light); font-size: 1.5rem; font-weight: 700; }
.benefit-card h3 { max-width: 420px; margin: 0 0 0.8rem; font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -0.04em; }
.benefit-card p { max-width: 500px; margin: 0; color: var(--text-muted); line-height: 1.7; }

.inside-section { padding-bottom: 128px; }
.inside-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(3rem, 10vw, 9rem); align-items: end; margin-bottom: 56px; }
.inside-intro h2 { max-width: 850px; margin: 0; font-family: var(--font-display); font-size: clamp(2.5rem, 5.4vw, 5.25rem); line-height: 0.98; letter-spacing: -0.06em; }
.inside-intro h2 em { color: var(--blue-light); font-style: normal; }
.inside-intro > p { margin: 0; color: var(--text-muted); line-height: 1.75; }
.screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.screen-card { min-width: 0; margin: 0; }
.screen-frame { position: relative; padding: 8px; overflow: hidden; border: 1px solid rgba(178,237,250,0.2); border-radius: 28px; background: #0E1013; box-shadow: 0 26px 64px rgba(0,0,0,0.34); }
.screen-frame::after { content: ''; position: absolute; inset: 8px; pointer-events: none; border: 1px solid rgba(240,242,245,0.08); border-radius: 20px; }
.screen-frame img { width: 100%; height: auto; display: block; border-radius: 20px; background: var(--bg); }
.screen-card figcaption { padding: 1.4rem 0.4rem 0; }
.screen-card figcaption > span { display: block; margin-bottom: 0.55rem; color: var(--blue-light); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.screen-card h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.04em; }
.screen-card p { margin: 0.7rem 0 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

.workflow-section { padding-block: 128px; background: var(--blue); color: #101317; }
.workflow-shell { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(450px, 1.2fr); gap: clamp(4rem, 11vw, 10rem); align-items: start; }
.workflow-section .eyebrow { color: #101317; }
.workflow-section .eyebrow span { background: #101317; }
.workflow-copy { position: sticky; top: 3rem; }
.workflow-copy h2 em { color: rgba(16,19,23,0.65); }
.workflow-copy > p:last-child { max-width: 500px; margin: 1.6rem 0 0; font-size: 1.05rem; line-height: 1.7; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(16,19,23,0.28); }
.workflow-list li { display: grid; grid-template-columns: 58px 1fr; gap: 1.2rem; padding: 2rem 0; border-bottom: 1px solid rgba(16,19,23,0.28); }
.workflow-list > li > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid rgba(16,19,23,0.45); border-radius: 50%; font-weight: 800; }
.workflow-list h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.035em; }
.workflow-list p { max-width: 560px; margin: 0; line-height: 1.65; }

.reassurance-section { padding-block: 128px; }
.reassurance-card { padding: clamp(2rem, 5vw, 5rem); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(4rem, 10vw, 9rem); border: 1px solid rgba(178,237,250,0.2); border-radius: 24px; background: radial-gradient(circle at 15% 20%, rgba(33,171,205,0.18), transparent 40%), var(--bg-soft); box-shadow: 0 30px 80px rgba(0,0,0,0.24); }
.reassurance-card h2 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); }
.reassurance-points { border-top: 1px solid var(--border); }
.reassurance-points p { display: grid; gap: 0.5rem; margin: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.reassurance-points strong { font-family: var(--font-display); font-size: 1.05rem; }
.reassurance-points span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

.closing-section { padding-block: 80px 140px; text-align: center; }
.closing-section .eyebrow { justify-content: center; }
.closing-section h2 { max-width: 1050px; margin-inline: auto; }
.closing-section > p:not(.eyebrow) { max-width: 650px; margin: 1.5rem auto 0; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.closing-actions { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.text-link-button { border: 0; background: transparent; cursor: pointer; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer-inner > p { margin: 0; color: var(--text-muted); font-size: 0.8rem; }
.footer-inner > p:last-child { text-align: right; }

.auth-dialog { width: min(470px, calc(100% - 32px)); max-height: min(760px, calc(100dvh - 32px)); margin: auto; padding: 0; overflow: auto; border: 1px solid rgba(178,237,250,0.25); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 36px 110px rgba(0,0,0,0.72); }
.auth-dialog::backdrop { background: rgba(8,10,12,0.78); backdrop-filter: blur(12px); }
.dialog-topline { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.4rem 0.9rem; }
.brand-dialog { font-size: 1rem; }
.dialog-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(240,242,245,0.08); color: var(--text); cursor: pointer; font-size: 1.75rem; line-height: 1; }
.dialog-close:focus-visible { outline: 3px solid var(--blue-light); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0.4rem 1.4rem 0; padding: 4px; border-radius: 10px; background: rgba(26,28,32,0.52); }
.auth-tab { min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; font-weight: 800; }
.auth-tab[aria-selected="true"] { background: var(--surface-raised); color: var(--text); box-shadow: 0 3px 10px rgba(0,0,0,0.24); }
.auth-tab:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 1px; }
.auth-panel { padding: 1.8rem 1.4rem 1.5rem; }
.dialog-eyebrow { margin: 0 0 0.55rem !important; color: var(--blue-light) !important; font-size: 0.72rem !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-panel h2 { margin: 0; font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.04em; }
.auth-panel > p { margin: 0.5rem 0 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.auth-form { display: grid; gap: 0.6rem; }
.auth-form label { margin-top: 0.35rem; font-size: 0.78rem; font-weight: 800; }
.auth-form label span { color: var(--text-muted); font-weight: 500; }
.auth-form input, .auth-form textarea { width: 100%; min-height: 50px; border: 1.5px solid rgba(178,237,250,0.16); border-radius: 9px; padding: 0 0.9rem; outline: none; background: #3E4047; color: var(--text); }
.auth-form textarea { min-height: 92px; padding-block: 0.8rem; resize: vertical; line-height: 1.45; }
.auth-form input[readonly] { color: var(--text-muted); background: rgba(62,64,71,0.7); }
.auth-form input:focus, .auth-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,171,205,0.2); }
.auth-form .button { margin-top: 0.7rem; }
.auth-error { margin-top: 0.35rem; padding: 0.7rem 0.8rem; border: 1px solid rgba(255,214,214,0.24); border-radius: 8px; background: rgba(224,82,82,0.1); color: #FFD6D6; font-size: 0.82rem; }
.dialog-link { min-height: 44px; margin-top: 0.7rem; display: inline-flex; align-items: center; color: var(--blue-light); font-size: 0.82rem; font-weight: 800; }
.dialog-link-button, .auth-back { border: 0; background: transparent; cursor: pointer; }
.dialog-link-button { width: 100%; display: flex; justify-content: flex-start; padding: 0.65rem 0; text-align: left; line-height: 1.4; white-space: normal; }
.auth-form + .dialog-link-button { margin-top: 1rem; }
.auth-back { min-height: 44px; margin: -0.65rem 0 0.35rem; padding: 0; color: var(--blue-light); font-size: 0.82rem; font-weight: 800; }
.auth-back:focus-visible, .dialog-link-button:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.household-choices { display: grid; gap: 0.75rem; }
.household-choice { min-height: 82px; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; border: 1.5px solid rgba(178,237,250,0.16); border-radius: 12px; background: var(--surface-raised); color: var(--text); text-align: left; cursor: pointer; }
.household-choice:hover { border-color: var(--blue); background: rgba(33,171,205,0.12); }
.household-choice:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.household-choice > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: rgba(33,171,205,0.14); color: var(--blue-light); font-size: 1.25rem; }
.household-choice div { display: grid; gap: 0.25rem; }
.household-choice strong { font-family: var(--font-display); font-size: 0.95rem; }
.household-choice small { color: var(--text-muted); font-size: 0.76rem; }
.auth-form .invite-code { text-align: center; text-transform: uppercase; letter-spacing: 0.25em; font-size: 1.25rem; font-weight: 800; }
.auth-message { margin-top: 0.35rem; padding: 0.75rem 0.8rem; border: 1px solid rgba(168,243,209,0.32); border-radius: 8px; background: rgba(105,229,177,0.1); color: #A8F3D1; font-size: 0.82rem; line-height: 1.45; }
.auth-message a { color: var(--blue-light); font-weight: 800; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy { max-width: 720px; }
  .section-heading, .inside-intro, .workflow-shell, .reassurance-card { grid-template-columns: 1fr; }
  .inside-intro { gap: 1.5rem; }
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .workflow-copy { position: static; }
  .workflow-shell { gap: 4rem; }
}

@media (max-width: 620px) {
  .site-header { width: min(100% - 32px, 1180px); height: 72px; }
  .site-header nav { gap: 0.5rem; }
  .nav-link { display: none; }
  .hero { width: min(100% - 32px, 1180px); min-height: auto; padding: 48px 0 64px; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .screen-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 0.5rem; }
  .text-link { justify-content: center; }
  .section-shell { width: min(100% - 32px, 1180px); }
  .value-strip-inner { min-height: 180px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 1.5rem; padding-block: 2rem; }
  .value-words { width: 100%; justify-content: space-between; gap: 0.5rem; }
  .story-section, .workflow-section, .reassurance-section { padding-block: 88px; }
  .inside-section { padding-bottom: 88px; }
  .section-intro { margin-bottom: 44px; }
  .section-heading { gap: 1.5rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 330px; padding: 1.5rem; }
  .benefit-icon { margin-bottom: 4.5rem; }
  .workflow-shell { gap: 3rem; }
  .workflow-list li { grid-template-columns: 46px 1fr; gap: 0.8rem; }
  .reassurance-card { gap: 3rem; padding: 1.5rem; }
  .closing-section { padding-block: 56px 100px; }
  .closing-actions { align-items: stretch; flex-direction: column; gap: 0.5rem; }
  .footer-inner { min-height: 150px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: 0.75rem; padding-block: 1.5rem; }
  .footer-inner > p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
