/* Shared light surface; dark mode keeps the established palette. */
[hidden] { display: none !important; }
html[data-theme="light"] body {
  --bg: #fff;
  background-color: #fff;
  background-image: radial-gradient(ellipse 620px 600px at 0% 28%, #29d58b0c, transparent 75%), radial-gradient(ellipse 650px 650px at 100% 68%, #29d58b10, transparent 75%);
  background-attachment: fixed;
}
html[data-theme="light"] .site-header { background: #ffffffed; }
html[data-theme="light"] .hero { background: transparent; }
html .hero .hero-copy h1 { font-weight: 900; }
.login-main { padding: 28px 24px 64px; }
.login-content { max-width: 400px; }
.login-logo { width: 112px; height: 112px; border-radius: 28px; margin-bottom: 20px; }
.login-content h1 { font-size: 30px; letter-spacing: -.04em; margin-bottom: 7px; }
.login-tagline { font-size: 14px; margin-bottom: 14px; }
.google-sign-in { min-height: 48px; border-radius: 11px; font-size: 14px; padding: 12px 18px; }
.google-sign-in svg { width: 19px; height: 19px; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; margin: 20px 0 17px; }
.auth-divider:before, .auth-divider:after { content: ""; height: 1px; background: var(--line); flex: 1; }
.email-form { text-align: left; }
.email-form label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.email-form input { display: block; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); color: var(--text); font: 400 14px/1.5 var(--sans); }
.email-form input:focus { border-color: var(--green); outline: 2px solid #29d58b28; outline-offset: 2px; }
.password-field { margin-top: 13px; }
.password-input { position: relative; }
.password-input input { padding-right: 60px; }
.password-input button { position: absolute; right: 12px; top: 0; height: 48px; border: 0; background: none; color: var(--muted); font: 600 11px var(--sans); cursor: pointer; }
.password-help { font-size: 10px; color: var(--muted); margin: 5px 0 0; }
.auth-submit { width: 100%; min-height: 48px; border: 1px solid #29d58b; border-radius: 10px; background: #29d58b; color: #072416; font: 750 14px var(--sans); cursor: pointer; margin-top: 16px; transition: background .18s, transform .18s; }
.auth-submit:hover:not(:disabled) { background: #3be39c; transform: translateY(-1px); }
.auth-submit:disabled { opacity: .5; cursor: wait; }
.auth-forgot, .auth-back { border: 0; background: none; color: var(--green); padding: 0; font: 500 12px var(--sans); cursor: pointer; }
.auth-forgot { display: block; margin: 10px 0 0 auto; }
.auth-switch { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.auth-switch a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-back { margin-top: 18px; }
.login-content .continue-guest { min-height: 0; padding: 0; margin-top: 16px; border: 0; font-size: 11px; color: var(--muted); background: transparent; }
.login-fine-print { margin-top: 24px; font-size: 10px; }
.login-status { min-height: 0; margin-top: 12px; }
.login-status:empty { display: none; }
.login-status.is-error { color: #bc3535; }
.billing-card .plan-option { position: relative; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
@media (hover: hover) {
  .billing-card .plan-option:hover:not(:has(input:disabled)) { border-color: var(--green); background: #29d58b0b; transform: translateY(-3px); box-shadow: 0 7px 18px #1378420b; }
}
.billing-card .plan-option:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.billing-card .plan-option:has(input:checked) { box-shadow: 0 0 0 1px var(--green); }
.plan-savings { display: inline-block; color: var(--green); background: #29d58b13; border-radius: 5px; font: 750 9px/1.5 var(--sans); padding: 2px 5px; margin-left: 5px; white-space: nowrap; }
.savings-explainer { font-size: 10px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.review-avatar.avatar-one { background: url('assets/profile-noah.png') center 46% / cover; }
.review-avatar.avatar-two { background: url('assets/profile-emma.png') center 35% / cover; }
.review-avatar.avatar-three { background: url('assets/profile-deez.png') center 20% / cover; }
.review-avatar.avatar-four { background: url('assets/profile-luna.png') center 30% / cover; }
.insights-preview { margin: 80px auto; padding-top: 20px; padding-bottom: 20px; }
.insights-preview .insights-topline { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.insights-preview h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -.045em; }
.insights-preview p { color: var(--muted); margin: 0; font-size: 14px; max-width: 570px; }
.insights-link { color: var(--green); font-size: 13px; font-weight: 700; white-space: nowrap; }
.insights-feature { display: flex; justify-content: space-between; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: var(--surface); }
.insights-feature h3 { font-size: 23px; letter-spacing: -.035em; margin: 8px 0 10px; }
.insights-feature strong { font-size: 54px; letter-spacing: -.07em; line-height: 1; color: var(--green); white-space: nowrap; }
.insights-feature small { display: block; font-size: 10px; margin-top: 8px; color: var(--muted); }
.insights-kicker { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 700px) {
  .login-header { padding: 22px 24px; }
  .login-main { padding: 35px 24px 55px; }
  .login-logo { width: 96px; height: 96px; border-radius: 24px; margin-bottom: 20px; }
  .login-answer { opacity: .3; }
  .login-answers .answer-two, .login-answers .answer-five { display: none; }
  .insights-preview { margin: 50px auto; }
  .insights-preview .insights-topline, .insights-feature { display: block; }
  .insights-topline .insights-link { display: inline-block; margin-top: 15px; }
  .insights-feature { padding: 24px; }
  .insights-feature > div:last-child { margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-submit, .billing-card .plan-option { transition: none; transform: none !important; }
}

/* Brand accent shared by the landing, authentication and billing screens. */
html .billing-primary, html .auth-submit {
  background: var(--accent); border-color: var(--accent); color: #072416;
}
html .billing-primary:hover:not(:disabled), html .auth-submit:hover:not(:disabled) { background: var(--accent); filter: brightness(1.04); }
html[data-theme] :is(.auth-switch a, .auth-forgot, .auth-back, .login-fine-print a, .billing-small a, .billing-help a, .payment-account button, .payment-consent a) {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px;
}
.plan-savings { color: #072416; background: var(--accent); }
/* Keep small labels readable on white; the accent remains in their indicators. */
html[data-theme="light"] :is(.billing-eyebrow, .secure-label) { color: var(--text); }
html[data-theme="light"] .checkout-lock { background: var(--accent); color: #072416; }
html[data-theme] body.login-page {
  --landing-dot: #80918a55;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--landing-dot) .9px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  background-repeat: repeat;
  background-attachment: fixed;
}
html[data-theme="light"] body.login-page { --bg: #fafcfb; }
html[data-theme="dark"] body.login-page { --landing-dot: #b9c1bd42; }
.login-main:before { background: none; }
.login-answer i { background: var(--accent); color: #072416; }
/* A consistent, quiet dot grid on every page, with a CSS fallback for no JS. */
html[data-theme] body {
  --landing-dot: #80918a55;
  isolation: isolate;
  background-image: radial-gradient(circle, var(--landing-dot) .9px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  background-repeat: repeat;
  background-attachment: fixed;
}
html[data-theme="dark"] body { --landing-dot: #b9c1bd42; }
html[data-theme] body.has-interactive-dots { background-image: none; }
.background-dots { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }

/* Email confirmation guidance stays beside the form on either device. */
.email-confirmation { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.email-confirmation h2 { margin: 0 0 10px; font: 750 17px/1.3 var(--sans); }
.email-confirmation ol, .email-help ol { padding-left: 20px; margin: 10px 0; }
.email-confirmation li, .email-help li { margin: 8px 0; }
.email-confirmation p, .email-confirmation li, .email-help-content { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.email-confirmation p { color: var(--muted); margin: 12px 0; }
.confirmation-signin { width: 100%; border: 1px solid var(--accent); border-radius: 9px; padding: 12px; background: var(--accent); color: #072416; font: 700 13px/1.4 var(--sans); cursor: pointer; }
.confirmation-signin:disabled { opacity: .5; cursor: wait; }
.email-help { margin-top: 16px; text-align: left; }
.email-help summary { width: fit-content; color: var(--green); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.email-help-content { color: var(--muted); }
.email-help-content strong { color: var(--text); }
.email-help-content .auth-forgot { margin: 14px 0; text-align: left; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.email-help-content a { color: var(--green); text-decoration: underline; }
.email-help summary:focus-visible, .confirmation-signin:focus-visible, .email-help button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
