/* Since marketing site — Sunrise glass + Option 4 Plum–teal mesh bg (Option 1 home) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-top: #F8F4F9;
  --bg-bottom: #EEF6F6;
  --orb-a: #91307F;
  --orb-b: #0E7F8C;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(41, 13, 7, 0.08);
  --shadow: 0 8px 32px rgba(41, 13, 7, 0.08);
  --radius: 20px;
  --radius-inner: 14px;
  --radius-hero: 24px;
  --title: #290D07;
  --body: #4F3320;
  --caption: rgba(99, 64, 40, 0.9);
  --plum: #91307F;
  --plum-link: #902F7E;
  --teal: #0E7F8C;
  --teal-visited: #07606A;
  --parchment: #F5EDD6;
  --amber: #BA7512;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  min-height: 100vh;
  /* Option 4 — Plum–teal mesh / aurora (Milos approved Nov 6) */
  background:
    radial-gradient(ellipse 75% 60% at 88% 5%, rgba(145, 48, 127, 0.38) 0%, transparent 58%),
    radial-gradient(ellipse 65% 55% at 5% 92%, rgba(14, 127, 140, 0.36) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 52% 48%, rgba(245, 200, 154, 0.30) 0%, transparent 62%),
    radial-gradient(ellipse 48% 38% at 18% 18%, rgba(201, 151, 255, 0.24) 0%, transparent 52%),
    radial-gradient(ellipse 40% 35% at 72% 70%, rgba(14, 127, 140, 0.18) 0%, transparent 55%),
    linear-gradient(165deg, #F8F4F9 0%, #F2F7F7 50%, #EEF6F6 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Dual orbs removed — mesh wash replaces them */
body::before,
body::after {
  display: none;
  content: none;
  opacity: 0;
}

a {
  color: var(--plum-link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:visited { color: var(--teal-visited); }
a:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85);
}

.site-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.65rem 1.25rem;
  padding-top: max(0.65rem, env(safe-area-inset-top));
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 44px;
}
.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--title);
  text-decoration: none;
  line-height: 1;
  padding: 0.35rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.wordmark:visited { color: var(--title); }
.wordmark:hover { text-decoration: none; color: var(--plum); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  align-items: center;
}
.site-nav a {
  color: var(--body);
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
.site-nav a:visited { color: var(--body); }
.site-nav a:hover {
  color: var(--plum-link);
  text-decoration: none;
  background: rgba(145, 48, 127, 0.06);
}
.site-nav a[aria-current="page"] {
  color: var(--plum-link);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--plum);
  border-radius: 0;
  background: transparent;
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Draft banner */
.draft-banner {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(145, 48, 127, 0.18);
  border-radius: var(--radius-inner);
  color: var(--body);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Glass card */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* —— Home Option 1: Live Elapsed Hero —— */

/* Split hero: stack mobile (copy first), 2-col ≥768px */
.hero-split {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: center;
  }
}

.hero-copy {
  text-align: left;
}
.hero-copy h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 5.5vw, 2.35rem);
  color: var(--title);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--body);
  max-width: 36rem;
  margin: 0 0 1.5rem;
  line-height: 1.65;
}
.store-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}
.store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-inner);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--caption);
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(41, 13, 7, 0.2);
  cursor: default;
  user-select: none;
}
.store-cta[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.85;
}

/* Hero product card — visual anchor, radius 24, larger padding */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-product {
  border-radius: var(--radius-hero);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  position: relative;
}
@media (min-width: 768px) {
  .hero-product { padding: 2.5rem 2rem 2.25rem; }
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.hero-chip--milestone {
  background: rgba(14, 127, 140, 0.14);
  color: var(--teal);
}
.hero-counter {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  color: var(--plum-link);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.hero-counter-caption {
  font-size: 0.95rem;
  color: var(--caption);
  line-height: 1.45;
}

/* Mini cards under hero product — hide below ~480px */
.hero-minis {
  display: none;
  gap: 0.65rem;
}
@media (min-width: 480px) {
  .hero-minis {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
.hero-mini {
  border-radius: var(--radius-inner);
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}
.hero-mini-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero-mini-body {
  font-size: 0.85rem;
  color: var(--title);
  line-height: 1.35;
}
.hero-mini--countdown {
  background: var(--parchment);
  border-color: rgba(186, 117, 18, 0.25);
}
.hero-mini--countdown .hero-mini-label { color: #8A5A0A; }
.hero-mini--sobriety {
  background: rgba(61, 140, 99, 0.12);
  border-color: rgba(61, 140, 99, 0.25);
}
.hero-mini--sobriety .hero-mini-label { color: #2F6B4C; }

/* Use-case strip — static wrapping pills */
.usecase-section { margin-bottom: 1.5rem; }
.usecase-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.usecase-pills li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--body);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
}

.section {
  margin-bottom: 1.75rem;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 1rem;
  text-align: center;
}

.type-panel {
  padding: 1rem;
}
.type-panel .type-chip {
  background: rgba(255, 255, 255, 0.65);
}

/* Type chips */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  list-style: none;
}
@media (min-width: 520px) {
  .type-grid { grid-template-columns: repeat(4, 1fr); }
}
.type-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  border-radius: var(--radius-inner);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  text-align: center;
}
.type-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-inner);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}
.type-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--title);
  line-height: 1.3;
}

/* Features — one glass panel of horizontal rows; 3-col cards ≥640px */
.feature-panel {
  padding: 0.35rem 0;
  overflow: hidden;
}
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}
.feature-row:last-child { border-bottom: none; }
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-inner);
  background: rgba(145, 48, 127, 0.1);
  color: var(--plum-link);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}
.feature-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 0.25rem;
}
.feature-body p {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.6;
}
@media (min-width: 640px) {
  .feature-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    gap: 0;
  }
  .feature-row {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    border-right: 1px solid var(--glass-border);
    padding: 1.35rem 1.25rem;
    height: 100%;
  }
  .feature-row:last-child { border-right: none; }
}

.premium-panel,
.platforms-panel {
  padding: 1.35rem 1.35rem;
}
.premium-panel h2,
.platforms-panel h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 0.5rem;
}
.premium-panel p,
.platforms-panel p {
  font-size: 0.95rem;
  color: var(--body);
}
.premium-panel a { font-weight: 500; }

/* FAQ */
.faq-panel {
  padding: 0.25rem 0;
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--title);
  font-size: 0.98rem;
  padding: 1rem 1.25rem;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--plum-link);
  font-weight: 400;
  font-size: 1.15rem;
  padding-left: 0.75rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: -2px;
}
.faq-item p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.6;
}

/* —— Legal pages —— */
.legal-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 2.5rem;
  background: #FFFCFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (min-width: 640px) {
  .legal-card { padding: 2.5rem 2.5rem 3rem; }
}
.legal-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 0.25rem;
  font-family: var(--sans);
  font-style: normal;
}
.legal-card .app-name {
  color: var(--caption);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.legal-card .updated {
  color: var(--caption);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}
.legal-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.legal-card p {
  color: var(--body);
  margin-bottom: 0.75rem;
}
.legal-card ul {
  color: var(--body);
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-card li { margin-bottom: 0.35rem; }
.legal-card .divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 1.75rem 0;
}
.legal-card .legal-footer-note {
  color: var(--caption);
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* Site footer */
.site-footer {
  padding: 1.5rem 1.25rem 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.8;
}
.footer-inner a {
  color: var(--plum-link);
  padding: 0.25rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-sep { margin: 0 0.35rem; opacity: 0.5; }
