/* ForgotLess — calm, senior-simple design */
:root {
  --bg: #F3F8F6;
  --card: #FFFFFF;
  --ink: #17332E;
  --muted: #58756F;
  --teal: #0E7C6B;
  --teal-dark: #0A5C50;
  --teal-soft: #E3F1ED;
  --sky: #2F7FD0;
  --warn: #B34A24;
  --warn-bg: #FBEEE5;
  --line: #DCE8E3;
  --radius: 16px;
  --teal-deep: #08473E;
  --shadow-sm: 0 2px 8px rgba(23,51,46,.07);
  --shadow-md: 0 10px 30px rgba(23,51,46,.10);
  --shadow-lg: 0 18px 50px rgba(23,51,46,.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

html { scroll-behavior: smooth; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 44px; margin: 12px 0 16px; }
h2 { font-size: 30px; margin: 0 0 12px; }
.section-sub { color: var(--muted); font-size: 20px; max-width: 640px; }
.center { text-align: center; margin-top: 28px; }
.fine { font-size: 16px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.wordmark { font-weight: 800; font-size: 24px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 22px;
}
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 18px; }
.site-nav a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal); color: #fff;
  border: none; border-radius: 14px;
  padding: 14px 26px; font-size: 19px; font-weight: 700;
  text-decoration: none; cursor: pointer; text-align: center;
  min-height: 56px;
}
.btn:hover { background: var(--teal-dark); }
.btn-big { padding: 17px 34px; font-size: 21px; }
.btn-small { padding: 10px 18px; font-size: 17px; min-height: 44px; }
.btn-block { display: block; width: 100%; margin-top: 14px; }
.btn-ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); }
button.linklike { background: none; border: none; padding: 0; color: var(--sky); font-size: inherit; text-decoration: underline; cursor: pointer; }

/* Hero — premium gradient panel */
.hero {
  margin-top: 28px; border-radius: 28px;
  padding: 68px 32px 60px; text-align: center;
  background:
    radial-gradient(560px 300px at 50% -60px, rgba(14,124,107,.20), transparent 70%),
    radial-gradient(440px 280px at 88% 115%, rgba(47,127,208,.10), transparent 70%),
    linear-gradient(180deg, #EAF5F1 0%, #F1F8F6 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.eyebrow {
  display: inline-block; font-size: 16px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-dark);
  background: var(--teal-soft); border-radius: 999px; padding: 8px 18px; margin: 0;
}
.hero h1 { font-size: 52px; max-width: 700px; margin-left: auto; margin-right: auto; }
.lede { font-size: 22px; color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust-line { margin-top: 22px; color: var(--muted); font-size: 17px; }

/* Cards & sections */
#why, #how, #pricing, #faq { padding: 44px 0; }
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 24px; }
.diff-card, .card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.diff-card h3 { font-size: 21px; margin: 10px 0 8px; }
.diff-card p { color: var(--muted); margin: 0; font-size: 18px; }
.diff-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark);
  font-weight: 800; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 22px; }
.step p { color: var(--muted); margin: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 24px; }
.price-grid.mini { grid-template-columns: 1fr 1fr; }
.price-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-align: center;
  display: flex; flex-direction: column; gap: 8px;
}
.price-card.featured { border: 3px solid var(--teal); }
.plan-tag {
  align-self: center; background: var(--teal); color: #fff; font-size: 15px; font-weight: 700;
  border-radius: 999px; padding: 5px 16px; margin: 0;
}
.price-card h3 { margin: 4px 0 0; font-size: 22px; }
.price { font-size: 44px; font-weight: 800; margin: 0; color: var(--teal-dark); }
.price span { font-size: 19px; font-weight: 400; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 8px 0 16px; text-align: left; }
.price-card ul li { padding: 7px 0 7px 32px; position: relative; font-size: 18px; }
.price-card ul li::before { content: "✓"; position: absolute; left: 4px; color: var(--teal); font-weight: 800; }
.price-card .btn { margin-top: auto; }

.waitlist {
  margin-top: 26px; background: var(--teal-soft);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.waitlist h3 { margin-top: 0; }
.waitlist form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 14px; }
.faq-item h3 { margin: 0 0 6px; font-size: 21px; }
.faq-item p { margin: 0; color: var(--muted); }

/* App view */
.app-wrap { max-width: 720px; padding-top: 20px; padding-bottom: 60px; }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.back-link { color: var(--teal); font-weight: 700; text-decoration: none; font-size: 19px; }
.pro-badge {
  background: var(--teal); color: #fff; font-weight: 800; font-size: 15px;
  letter-spacing: 0.08em; border-radius: 999px; padding: 6px 16px;
}
.dash-card, .savings-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-align: center; margin-bottom: 18px;
}
.savings-card { background: var(--teal-soft); border-color: var(--teal); }
.dash-label { margin: 0; color: var(--muted); font-size: 18px; }
.dash-big { font-size: 56px; font-weight: 800; margin: 6px 0; color: var(--ink); }
.dash-big span { font-size: 22px; font-weight: 400; color: var(--muted); }
.dash-big.savings { color: var(--teal-dark); }
.dash-sub { margin: 0; color: var(--muted); font-size: 18px; }

.radar {
  background: var(--warn-bg); border: 2px solid var(--warn);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px;
}
.radar h3 { margin: 0 0 10px; font-size: 22px; }
.radar-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; flex-wrap: wrap;
}
.radar-item strong { font-size: 19px; }
.radar-item .fine { margin: 0; }
.radar-actions { display: flex; gap: 10px; }

.app-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.app-section-head h2 { margin: 0; font-size: 26px; }

.sub-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px;
}
.sub-card.canceled { opacity: 0.85; }
.sub-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sub-name { font-size: 22px; font-weight: 800; margin: 0; }
.sub-cost { font-size: 24px; font-weight: 800; color: var(--teal-dark); margin: 0; }
.sub-cost small { font-size: 16px; font-weight: 400; color: var(--muted); }
.sub-meta { color: var(--muted); font-size: 17px; margin: 6px 0 0; }
.renew-badge {
  display: inline-block; font-size: 15px; font-weight: 700;
  background: var(--warn-bg); color: var(--warn);
  border-radius: 999px; padding: 4px 14px; margin-left: 8px;
}
.sub-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.sub-actions .btn { flex: 1 1 150px; padding: 12px 16px; font-size: 18px; min-height: 52px; }
.btn-danger-ghost { background: transparent; color: var(--warn); border: 2px solid var(--warn); }
.btn-danger-ghost:hover { background: var(--warn-bg); }
.empty-note {
  background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 30px; text-align: center; color: var(--muted); font-size: 19px;
}

.form-card h2 { margin-top: 0; }
.form-card label { display: block; font-weight: 700; margin: 16px 0 6px; font-size: 18px; }
.form-card input, .form-card select {
  width: 100%; font-size: 20px; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  min-height: 58px;
}
.form-card input:focus, .form-card select:focus { outline: 3px solid var(--teal-soft); border-color: var(--teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.upgrade-card { border: 3px solid var(--teal); text-align: center; margin-top: 22px; }
.upgrade-card h2 { margin-top: 0; }

/* Modals */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(23, 51, 46, 0.55);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
  padding: 30px 26px 36px; position: relative;
}
.modal-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 40px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 8px;
}
.guide-steps { padding-left: 24px; font-size: 20px; }
.guide-steps li { margin-bottom: 12px; }
.guide-note {
  background: var(--warn-bg); border-left: 5px solid var(--warn);
  padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 18px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 50px; color: var(--muted); }
.site-footer .fine { max-width: 700px; }
.footer-links { margin: 14px 0; }
.footer-links a, .footer-links .linklike { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-links .linklike:hover { text-decoration: underline; }

/* Privacy modal */
.privacy-list { list-style: none; padding: 0; margin: 0 0 18px; }
.privacy-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.privacy-list li:last-child { border-bottom: none; }

/* Chatbot widget */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%; border: none;
  background: var(--teal); color: #fff; font-size: 30px; line-height: 1;
  box-shadow: 0 8px 24px rgba(14,124,107,.35); cursor: pointer;
}
.chat-fab:hover { background: var(--teal-dark); }
.chat-panel {
  position: fixed; right: 20px; bottom: 94px; z-index: 60;
  width: min(380px, calc(100vw - 40px)); max-height: min(560px, calc(100vh - 130px));
  background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(23,51,46,.25);
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  background: var(--teal); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.chat-head strong { display: block; font-size: 18px; }
.chat-sub { font-size: 14px; opacity: .85; }
.chat-head .modal-x { color: #fff; }
.chat-msgs { padding: 14px; overflow-y: auto; flex: 1; min-height: 160px; }
.chat-bubble {
  max-width: 88%; padding: 10px 14px; border-radius: 16px;
  margin-bottom: 10px; font-size: 17px; line-height: 1.45;
}
.chat-bubble.bot { background: var(--teal-soft); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--teal); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-chips { padding: 0 14px 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip {
  border: 2px solid var(--teal); background: #fff; color: var(--teal-dark);
  border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 600; cursor: pointer;
}
.chat-chip:hover { background: var(--teal-soft); }
.chat-input { display: flex; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; font-size: 17px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; min-width: 0;
}
.chat-input .btn { padding: 12px 18px; }

/* Waitlist inputs (landing + modal) */
.waitlist input[type="email"] {
  font-size: 20px; padding: 14px 18px; border: 2px solid var(--line);
  border-radius: 12px; min-width: 260px; min-height: 58px;
}

@media (min-width: 700px) {
  .modal { align-items: center; padding: 20px; }
  .modal-card { border-radius: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  h1 { font-size: 36px; }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  .dash-big { font-size: 44px; }
  .site-nav a:not(.btn) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .price-grid.mini { grid-template-columns: 1fr; }
}

/* ================= PREMIUM POLISH (senior-simple safe) ================= */

/* Headline marker highlight */
.hero h1 .hl {
  background: linear-gradient(transparent 60%, rgba(14,124,107,.30) 60%, rgba(14,124,107,.30) 96%, transparent 96%);
  white-space: nowrap;
}

/* Hero stat strip */
.hero-stats {
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px; padding-top: 26px;
  border-top: 1px solid rgba(14,124,107,.18);
}
.hero-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.hero-stats strong {
  font-size: 32px; font-weight: 800; color: var(--teal-dark);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.hero-stats span { font-size: 16px; color: var(--muted); }

/* Refined cards: soft shadows + gentle hover lift */
.diff-card, .card, .step, .price-card, .faq-item, .sub-card,
.dash-card, .savings-card, .waitlist {
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover: hover) {
  .diff-card:hover, .step:hover, .price-card:hover, .faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14,124,107,.35);
  }
}

/* Buttons: depth + press feedback */
.btn {
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:not(.btn-ghost) { box-shadow: 0 4px 14px rgba(14,124,107,.28); }
.btn:not(.btn-ghost):hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(14,124,107,.34); }
.btn:not(.btn-ghost):active { transform: translateY(0); box-shadow: 0 2px 8px rgba(14,124,107,.25); }
.btn-ghost:hover { transform: translateY(-1px); }

/* Wordmark badge: gradient */
.wordmark-badge {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: 0 4px 10px rgba(14,124,107,.30);
}
.site-header { box-shadow: 0 2px 12px rgba(23,51,46,.06); }

/* Featured pricing card stands out */
.price-card.featured {
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, #F2FAF7 100%);
}

/* Section rhythm + anchor offset under sticky header */
#why, #how, #pricing, #faq { padding: 60px 0 10px; scroll-margin-top: 88px; }
#why .eyebrow, #how .eyebrow, #pricing .eyebrow, #faq .eyebrow { margin-bottom: 14px; }

/* Stable number widths on the dashboard */
.dash-big { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Savings card: gentle celebratory gradient */
.savings-card {
  background: linear-gradient(180deg, #E7F4F0 0%, var(--teal-soft) 100%);
  border: 2px solid rgba(14,124,107,.45);
}

/* Radar: a touch more presence */
.radar { box-shadow: var(--shadow-sm); }

/* Modal entrance */
.modal-card { animation: rise .22s ease; box-shadow: var(--shadow-lg); }
@keyframes rise {
  from { transform: translateY(26px); opacity: .55; }
  to { transform: translateY(0); opacity: 1; }
}

/* Chat button: soft hover */
.chat-fab { transition: transform .15s ease, background-color .15s ease; }
.chat-fab:hover { transform: scale(1.07); }

/* Footer: gradient accent bar */
.site-footer { border-top: none; position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal) 40%, #8FC7B8 70%, var(--teal-deep));
  border-radius: 0 0 4px 4px;
}

/* Toast + form errors */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 200; max-width: min(560px, calc(100vw - 40px));
  background: var(--teal-deep); color: #fff;
  font-size: 18px; font-weight: 600; line-height: 1.45;
  padding: 16px 22px; border-radius: 16px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.toast[hidden] { display: none; }
.form-error {
  color: var(--warn); font-weight: 700; font-size: 18px;
  margin: 12px 0 0; text-align: center;
}
.form-error[hidden] { display: none; }

/* Keyboard focus visibility */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 8px;
}

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

@media (max-width: 560px) {
  .hero { margin-top: 16px; border-radius: 22px; padding: 52px 22px 44px; }
  .hero h1 { font-size: 42px; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 27px; }
}
