/* ============================================================
   Coleva — brand stylesheet
   Palette from the app's BrandTheme.swift (exact values).
   Display face: Fraunces (the brand's web serif).
   ============================================================ */

:root {
  --forest:   #1D3B2F;
  --forest-2: #152D24;
  --verdant:  #2D6A4F;
  --aqua:     #2AB5A0;
  --aqua-deep:#1E8C7C;
  --seafoam:  #74C7BC;
  --sage:     #5C8F6E;
  --sealite:  #A8DDD8;
  --earth:    #C4892A;
  --paper:    #F4F1EB;
  --paper-2:  #EDE8DE;
  --mist:     #D4EDE8;
  --muted:    #6B7B70;
  --ink:      #18271F;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-card: 18px;
  --shadow-card: 0 1px 2px rgba(24, 39, 31, 0.05), 0 8px 24px -12px rgba(24, 39, 31, 0.12);
  --shadow-phone: 0 24px 60px -18px rgba(13, 26, 20, 0.5);
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: var(--aqua-deep); }

::selection { background: var(--sealite); color: var(--ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verdant);
}

.on-dark .eyebrow, .eyebrow.light { color: var(--seafoam); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 235, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(24, 39, 31, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand .wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav .nav-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  opacity: 0.8;
}

.site-nav .nav-link:hover { opacity: 1; color: var(--verdant); }

@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-forest { background: var(--forest); color: var(--paper); }
.btn-forest:hover { background: var(--forest-2); transform: translateY(-1px); }

.btn-aqua { background: var(--aqua); color: var(--forest-2); }
.btn-aqua:hover { background: var(--seafoam); transform: translateY(-1px); }

.btn-ghost-light {
  color: var(--paper);
  border: 1px solid rgba(244, 241, 235, 0.35);
}
.btn-ghost-light:hover { border-color: var(--seafoam); color: var(--seafoam); }

.btn-small { padding: 9px 18px; font-size: 14px; }

/* App Store badge */
.appstore-badge { display: inline-block; transition: transform 0.15s ease, opacity 0.15s ease; }
.appstore-badge:hover { transform: translateY(-1px); opacity: 0.92; }
.appstore-badge svg { display: block; height: 52px; width: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(42, 181, 160, 0.16) 0%, rgba(42, 181, 160, 0) 60%),
    linear-gradient(170deg, var(--forest) 0%, var(--forest-2) 90%);
  color: var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: center;
  /* padding-top only — keep .container's horizontal 24px so the hero copy
     lines up with every section below it (mobile and desktop). */
  padding-top: 88px;
}

.hero-copy { padding-bottom: 88px; }

.hero h1 {
  color: var(--paper);
  font-size: clamp(40px, 5.2vw, 62px);
  margin: 18px 0 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--seafoam);
}

.hero .lede {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(244, 241, 235, 0.78);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero .trust-line {
  font-size: 14px;
  color: rgba(244, 241, 235, 0.55);
}

.hero .trust-line strong { color: var(--seafoam); font-weight: 600; }

.hero-phone {
  align-self: end;
  justify-self: center;
  margin-bottom: -1px; /* sit flush on the section edge */
}

/* Constellation doodle behind the hero */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 64px; }
  .hero-copy { padding-bottom: 48px; }
  .hero-phone { margin-top: 8px; }
}

/* ---------- Phone frame ---------- */

.phone {
  background: #0E1B15;
  border-radius: 52px;
  padding: 13px;
  box-shadow: var(--shadow-phone);
  width: min(340px, 82vw);
}

.phone img {
  border-radius: 40px;
  width: 100%;
  height: auto;
}

.phone.phone-crop {
  border-radius: 52px 52px 0 0;
  padding-bottom: 0;
  overflow: hidden;
}

.phone.phone-crop img {
  border-radius: 40px 40px 0 0;
  aspect-ratio: 1206 / 2100; /* trim the bottom of the shot */
  object-fit: cover;
  object-position: top;
}

.phone-sm { width: min(280px, 78vw); border-radius: 44px; padding: 11px; }
.phone-sm img { border-radius: 34px; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin: 14px 0 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--muted);
}

.on-dark .section-head h2 { color: var(--paper); }
.on-dark .section-head p { color: rgba(244, 241, 235, 0.7); }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: #FFFFFF;
  border: 1px solid rgba(24, 39, 31, 0.06);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.step .num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--forest-2);
  background: var(--mist);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 { font-size: 22px; margin-bottom: 10px; }

.step p { font-size: 15px; color: var(--muted); }

.step .example {
  margin-top: 16px;
  background: var(--mist);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--forest);
  font-style: italic;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Feature grid ---------- */

.features { background: var(--paper-2); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: #FFFFFF;
  border: 1px solid rgba(24, 39, 31, 0.06);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(24, 39, 31, 0.05), 0 16px 32px -12px rgba(24, 39, 31, 0.16);
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--aqua-deep);
}

.feature h3 { font-size: 19px; margin-bottom: 8px; }

.feature p { font-size: 14.5px; color: var(--muted); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Showcase ---------- */

.showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
  align-items: start;
}

.showcase-item { text-align: center; }

.showcase-item figcaption {
  margin-top: 20px;
}

.showcase-item figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.showcase-item figcaption span {
  font-size: 14.5px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .showcase-row { grid-template-columns: 1fr; gap: 56px; }
}

/* ---------- Privacy band ---------- */

.privacy-band {
  background:
    radial-gradient(80% 90% at 15% 100%, rgba(42, 181, 160, 0.12) 0%, rgba(42, 181, 160, 0) 60%),
    linear-gradient(200deg, var(--forest) 0%, var(--forest-2) 85%);
  color: var(--paper);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}

.privacy-list { list-style: none; display: grid; gap: 18px; }

.privacy-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  color: rgba(244, 241, 235, 0.85);
}

.privacy-list li strong { color: var(--paper); font-weight: 600; }

.privacy-list .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(42, 181, 160, 0.18);
  color: var(--seafoam);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Plus ---------- */

.plus-card {
  background: #FFFFFF;
  border: 1px solid rgba(42, 181, 160, 0.35);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.plus-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--aqua);
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.plus-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

.plus-head h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 10px; }

.plus-head .sub { color: var(--muted); max-width: 52ch; }

.plus-price-note { text-align: right; font-size: 14px; color: var(--muted); }

.plus-price-note strong { display: block; font-size: 16px; color: var(--ink); }

.perk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 28px;
}

.perk { display: flex; gap: 12px; align-items: flex-start; }

.perk .dot {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--mist);
  color: var(--aqua-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.perk strong { display: block; font-size: 15px; margin-bottom: 2px; }

.perk span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.free-note {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(24, 39, 31, 0.08);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--muted);
}

@media (max-width: 1000px) { .perk-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 720px) {
  .plus-card { padding: 32px 24px; }
  .plus-head { grid-template-columns: 1fr; align-items: start; }
  .plus-price-note { text-align: left; }
}

@media (max-width: 560px) { .perk-grid { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */

.final-cta { text-align: center; padding: 110px 0; }

.final-cta h2 { font-size: clamp(32px, 4vw, 48px); margin: 22px 0 14px; }

.final-cta p { color: var(--muted); font-size: 17px; margin-bottom: 34px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-2);
  color: rgba(244, 241, 235, 0.65);
  padding: 56px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.site-footer .wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--paper);
}

.site-footer .tagline { margin-top: 6px; font-size: 14px; }

.footer-links { display: flex; gap: 8px 26px; flex-wrap: wrap; }

.footer-links a {
  color: rgba(244, 241, 235, 0.8);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-links a:hover { color: var(--seafoam); }

.footer-legal {
  border-top: 1px solid rgba(244, 241, 235, 0.12);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(244, 241, 235, 0.45);
}

/* ============================================================
   Privacy policy page
   ============================================================ */

.policy-hero {
  background: linear-gradient(170deg, var(--forest) 0%, var(--forest-2) 90%);
  color: var(--paper);
  padding: 72px 0 64px;
}

.policy-hero h1 {
  color: var(--paper);
  font-size: clamp(34px, 4.4vw, 52px);
  margin: 16px 0 12px;
}

.policy-hero .dateline { color: rgba(244, 241, 235, 0.6); font-size: 15px; }

.policy-body { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }

.policy-body .tldr {
  background: var(--mist);
  border: 1px solid rgba(42, 181, 160, 0.3);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 48px;
  font-size: 16px;
  color: var(--forest);
}

.policy-body .tldr strong { color: var(--forest-2); }

.policy-body h2 {
  font-size: 27px;
  margin: 52px 0 16px;
  scroll-margin-top: 84px;
}

.policy-body h3 {
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 650;
  margin: 28px 0 8px;
}

.policy-body p { margin-bottom: 14px; font-size: 16px; color: #3A473F; }

.policy-body ul { margin: 0 0 14px 22px; }

.policy-body li { margin-bottom: 8px; font-size: 16px; color: #3A473F; }

/* Wide table scrolls inside its own container on narrow phones so no
   column is ever clipped, and the page body never scrolls sideways. */
.policy-body .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 8px;
}

.policy-body .permission-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

@media (max-width: 560px) {
  .policy-body .permission-table { min-width: 440px; }
}

.policy-body .permission-table th,
.policy-body .permission-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(24, 39, 31, 0.1);
  vertical-align: top;
}

.policy-body .permission-table th {
  font-weight: 650;
  color: var(--forest);
  background: var(--paper-2);
}

.policy-body .permission-table td:first-child { font-weight: 600; white-space: nowrap; }

@media (max-width: 640px) {
  .policy-body .permission-table td:first-child { white-space: normal; }
}
