/* TermPouch marketing site. Brand tokens from the app theme. */

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F9F6;
  --surface: #FFFFFF;
  --surface-variant: #EDF2ED;
  --ink: #1C302D;
  --muted: #52635E;
  --primary: #256B5B;
  --on-primary: #FFFFFF;
  --primary-container: #E5F0E8;
  --on-primary-container: #174A3D;
  --selected-nav: #D9EBDF;
  --outline: #7B8D83;
  --line: #D9E3DD;
  --focus: #225F8A;
  --pressed: #174A3D;
  --paper: #FFF8E8;
  --pouch: #D9EBDF;
  --overdue: #A32936;
  --overdue-bg: #FCECEF;
  --soon: #805006;
  --soon-bg: #FFF1D6;
  --done: #256B45;
  --done-bg: #E5F1E8;
  --pay-ink: #255F4D;
  --pay-bg: #E5F1EA;
  --form-ink: #4D5790;
  --form-bg: #EAEFFD;
  --event-ink: #225F8A;
  --event-bg: #E4EFF8;
  --font: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --r-xs: 7px;
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-card: 20px;
  --r-hero: 24px;
  --shadow: 0 16px 40px rgba(28, 48, 45, 0.08);
  --shadow-soft: 0 8px 24px rgba(28, 48, 45, 0.06);
  --wrap: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pressed); }
button { font: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(247, 249, 246, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo span {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo:hover { color: var(--ink); }

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle .icon-close { display: none; }
.btn.header-cta-mobile { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 8px 2px;
}
.site-nav a:hover { color: var(--primary); }
.header-cta { margin-left: 8px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}
.btn:hover { background: var(--pressed); border-color: var(--pressed); color: var(--on-primary); }
.btn-secondary {
  background: transparent;
  color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-container); color: var(--on-primary-container); border-color: var(--primary); }
.btn-light {
  background: var(--paper);
  color: var(--primary);
  border-color: var(--paper);
}
.btn-light:hover { background: #fff; color: var(--pressed); border-color: #fff; }
.btn-disabled,
.btn[aria-disabled="true"] {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-color: var(--primary-container);
  cursor: default;
  pointer-events: none;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.soon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
}


/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -20%;
  width: 55%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(217, 235, 223, 0.9), transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.15rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero .lead {
  margin-top: 18px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}
.hero .cta-row { margin-top: 28px; }
.hero-note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Phone mockup */
.device-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.device {
  width: min(100%, 340px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 14px 12px 18px;
}
.device-screen { padding: 4px 10px 8px; }
.device-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  padding: 2px 6px 10px;
}
.device-head .date {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.device-head h3 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: transparent;
}
.chip.on {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.gentle {
  background: var(--primary-container);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.gentle strong { display: block; font-size: 0.9375rem; }
.gentle span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.group-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  margin: 8px 0 8px;
}
.group-label span { color: var(--muted); font-weight: 600; }
.item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 7px;
}
.badge.pay { color: var(--pay-ink); background: var(--pay-bg); }
.badge.form { color: var(--form-ink); background: var(--form-bg); }
.badge.event { color: var(--event-ink); background: var(--event-bg); }
.state { font-size: 0.6875rem; font-weight: 800; }
.state.soon { color: var(--soon); }
.state.ok { color: var(--event-ink); }
.item-card h4 { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; }
.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.75rem;
}
.kid {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #52635E;
  background: #EDF1ED;
  border-radius: 7px;
  padding: 3px 7px;
}
.amount { font-weight: 800; font-size: 0.95rem; }
.due { color: var(--muted); margin-top: 6px; font-size: 0.75rem; }
.device-caption {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* Sections */
section { padding: 80px 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.section-head {
  max-width: 54rem;
  margin-bottom: 40px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
h1, h2 { text-wrap: balance; }
h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-head p {
  margin-top: 12px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-container);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.125rem;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step p { color: var(--muted); }

/* Features */
#features { background: var(--surface); }
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}
.icon-blob {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-container);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icon-blob svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feature p { color: var(--muted); font-size: 0.975rem; }
.coming {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-container);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

/* Privacy band */
.privacy {
  background: var(--primary);
  color: var(--paper);
  padding: 88px 0;
}
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.privacy .eyebrow { color: var(--pouch); }
.privacy h2 { color: var(--paper); }
.privacy .lead {
  margin-top: 16px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--pouch);
  max-width: 40rem;
}
.privacy a:not(.btn) { color: var(--paper); }
.privacy a:not(.btn):hover { color: #fff; }
.privacy .btn-light { color: var(--primary); }
.privacy .btn-light:hover { color: var(--pressed); }
.privacy .cta-row { margin-top: 28px; }
.privacy-points {
  list-style: none;
  display: grid;
  gap: 14px;
}
.privacy-points li {
  background: rgba(255, 248, 232, 0.08);
  border: 1px solid rgba(255, 248, 232, 0.16);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--paper);
  font-weight: 700;
}
.privacy-points li span {
  display: block;
  font-weight: 400;
  color: var(--pouch);
  margin-top: 4px;
  font-size: 0.9375rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 20px;
  justify-content: center;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}
.price-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--paper);
}
.price-card .plan {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card.featured .plan { color: var(--pouch); }
.price-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 6px;
}
.price-card .price {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.price-card.featured .price { color: var(--pouch); }
.price-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.price-card li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}
.price-card.featured li { color: var(--paper); }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.price-card.featured li::before { border-color: var(--paper); }
.price-note {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* FAQ */
#faq { background: var(--surface); }
.faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-inline: auto;
}
.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  list-style: none;
  padding: 16px 28px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.faq details p {
  color: var(--muted);
  padding: 0 0 18px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer .logo { margin-bottom: 12px; }
.site-footer p { color: var(--muted); max-width: 28rem; }
.site-footer h2 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover { color: var(--primary); }
.legal-line {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Legal / inner pages */
.page-hero {
  padding: 48px 0 24px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.page-hero .meta {
  margin-top: 12px;
  color: var(--muted);
}
.prose {
  max-width: 42rem;
  padding: 8px 0 88px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.7rem;
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 1.5rem 0 0.5rem;
}
.prose p + p { margin-top: 1rem; }
.prose ul, .prose ol {
  margin: 0.8rem 0 1rem 1.2rem;
  padding: 0;
}
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--primary); }

/* 404 */
.not-found {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.not-found h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.not-found p {
  margin: 14px auto 28px;
  color: var(--muted);
  max-width: 28rem;
  font-size: 1.125rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .privacy-grid,
  .features,
  .steps,
  .footer-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 36px 0 56px; }
  .hero-grid { gap: 40px; }
  .device { width: min(100%, 320px); }
  section { padding: 72px 0; }
  .privacy { padding: 72px 0; }
  .features, .steps { gap: 14px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
    margin: 0;
  }
  .site-nav a { padding: 12px 4px; }
  .header-cta { display: none; }
  .btn.header-cta-mobile { display: inline-flex; margin-top: 8px; width: 100%; }
  .nav-check:checked ~ .site-nav { display: flex; }
  .nav-check:checked + .nav-toggle .icon-open { display: none; }
  .nav-check:checked + .nav-toggle .icon-close { display: block; }
  .nav-check:focus-visible + .nav-toggle {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .hero h1 { font-size: 2.35rem; }
  .cta-row .btn,
  .cta-row .soon-pill { width: 100%; }
}

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

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;}
