/* Etta website. Shared by index.html (main + support) and privacy.html.
   Layout: a tall poster. The giant script logo sits behind the phones, then
   big-statement bands run down the app's warm gradient. Blue is kept for the
   parts that talk to you, as in the app. One deliberate look (always dark). */
:root {
  --warm-1: #3A0602;
  --warm-2: #9C1A0B;
  --warm-3: #FF7A1F;
  --blue-1: #071848;
  --blue-2: #1A4BC9;
  --blue-3: #45B8F6;
  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.5);
  --pale: #A9C6FF;
  --on-light: #2B0A05;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --glass-line: rgba(255, 255, 255, 0.16);
  --shadow: rgba(20, 2, 0, 0.35);

  /* Big type uses the app's own family at normal width: SF Pro on Apple devices. */
  --font-giant: -apple-system, BlinkMacSystemFont, "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --step-label: 13px;
  --step-body: 17px;
  --step-lede: clamp(21px, 2.2vw, 28px);
  --step-title: clamp(26px, 3vw, 36px);
  --step-h2: clamp(44px, 7.4vw, 104px);
  --step-poster: clamp(64px, 14vw, 220px);

  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { background: var(--warm-1); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: linear-gradient(180deg,
    var(--warm-1) 0%,
    var(--warm-2) 16%,
    #D8481A 36%,
    var(--warm-3) 50%,
    #D8481A 64%,
    var(--warm-2) 82%,
    var(--warm-1) 100%);
}

/* Film grain, like printed poster stock. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' fill='%23ffffff'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(72px, 11vw, 150px); }

.label {
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

h1, h2, h3 { text-wrap: balance; margin: 0; }

.h2 {
  font-size: var(--step-h2);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.lede {
  font-size: var(--step-lede);
  line-height: 1.32;
  letter-spacing: -0.01em;
  font-weight: 600;
  max-width: 30ch;
  margin: 0;
}
.lede .soft, .soft { color: var(--pale); }

.body-text { color: var(--ink-2); max-width: 62ch; margin: 0; }

/* ---------- Top bar ---------- */

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: calc(18px + env(safe-area-inset-top, 0px)) 12px;
  font-size: 14px;
  font-weight: 600;
}
.topbar .brand { justify-self: start; display: block; line-height: 0; }
.topbar .brand img { display: block; height: 30px; width: auto; }
.topbar .mid { color: var(--ink-2); }
.topbar .end { justify-self: end; display: flex; gap: 18px; align-items: center; }
.topbar .end a { text-decoration: none; color: var(--ink-2); }
.topbar .end a:hover { color: var(--ink); }
.pill-link {
  color: var(--on-light) !important;
  background: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- App Store button ---------- */

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 16px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px var(--shadow);
  transition: transform 0.2s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.8; line-height: 1.1; }
.store strong { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.store-note { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }

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

.hero { position: relative; overflow: hidden; }

.giant-wrap { text-align: center; padding-top: clamp(8px, 2vw, 24px); will-change: transform; }

.giant {
  display: inline-block;
  margin: 0;
  font-family: var(--font-giant);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  font-size: calc((100vw - 48px) / 5.7);
}
.giant > span { display: inline-block; animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.giant > span + span { animation-delay: 0.1s; }

/* The script logo, poster-sized. The phones cover its lower part. */
.hero { --logo-w: min(920px, 80vw); }
.giant-logo { margin: 0; line-height: 0; }
.giant-logo img {
  display: block;
  width: var(--logo-w);
  height: auto;
  margin: clamp(12px, 3vw, 40px) auto 0;
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.phones {
  position: relative;
  z-index: 1;
  display: block;
  width: min(600px, 74vw);
  margin: calc(var(--logo-w) * -0.27) auto 0;
  filter: drop-shadow(0 30px 50px var(--shadow));
  animation: lift 1.2s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 96px);
}

@keyframes rise { from { transform: translateY(35%); } to { transform: none; } }
@keyframes lift { from { transform: translateY(60px) rotate(-1.5deg); } to { transform: none; } }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  padding-block: 18px;
}
.ticker-track {
  display: flex;
  gap: 0.6em;
  width: max-content;
  align-items: center;
  font-size: clamp(30px, 4.4vw, 56px);
  /* Same spacing after the last icon as between items, so the loop is seamless. */
  padding-right: 0.6em;
  animation: ticker 48s linear infinite;
}
.ticker-track span {
  font-family: var(--font-giant);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
}
.ticker-track svg {
  width: 0.78em;
  height: 0.78em;
  flex: none;
  color: var(--ink);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Greeting manifesto ---------- */

.greeting {
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 6vw, 80px);
  box-shadow: 0 30px 60px var(--shadow);
}
.greeting p.big {
  margin: 0;
  font-size: clamp(32px, 5.6vw, 80px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pale);
  text-wrap: balance;
}
.greeting p.big b { color: var(--ink); font-weight: 700; }
.greeting .icon { width: 0.78em; height: 0.78em; vertical-align: -0.08em; }
.greeting .after {
  margin: clamp(24px, 3vw, 40px) 0 0;
  font-size: var(--step-lede);
  font-weight: 600;
  color: var(--ink);
  max-width: 40ch;
}
.greeting .stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--pale); }
.greeting .stats b { color: var(--ink); font-weight: 700; }

/* ---------- Dot demo ---------- */

.dots-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.dots-grid > * { min-width: 0; }
.dots-copy { display: grid; gap: 24px; }

.card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 32px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 24px 48px rgba(20, 2, 0, 0.18);
  transition: background 0.5s ease, border-color 0.5s ease;
  display: grid;
  gap: 18px;
}
.card.is-overdue {
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
  border-color: rgba(255, 255, 255, 0.24);
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.card-top .cadence { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--on-light);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); }
.card-name { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
/* Labels sit on the baseline of the big number, as in the app. */
.metric { display: flex; align-items: flex-end; align-items: last baseline; gap: 12px; }
.metric .mlabel { font-size: 13px; color: var(--ink-2); line-height: 1.2; white-space: pre-line; font-weight: 500; }
.metric .mbig {
  font-size: clamp(72px, 9vw, 112px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.metric .mbig.word { font-size: clamp(48px, 6vw, 72px); letter-spacing: -0.04em; }
.metric .mside { margin-left: auto; display: flex; align-items: flex-end; align-items: last baseline; gap: 8px; }
.metric .mside b { font-size: 32px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dot-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dot {
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.26);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.dot.on { background: var(--ink); box-shadow: none; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--glass-line);
  padding-top: 18px;
}
.card-foot .last { font-size: 13px; color: var(--ink-2); }
.card-foot .last b { display: block; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.done-btn {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--on-light);
  font: 600 13px/1.15 var(--font-text);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(20, 2, 0, 0.22);
  transition: transform 0.15s ease;
  flex: none;
}
.done-btn:active { transform: scale(0.92); }
.done-btn svg { width: 20px; height: 20px; }
.done-btn.is-done { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.step { display: grid; gap: 10px; align-content: start; }
.step .num {
  font-family: var(--font-giant);
  font-weight: 700;
  font-size: clamp(96px, 12vw, 168px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.step h3 { font-size: var(--step-title); letter-spacing: -0.025em; line-height: 1.1; }
.step p { margin: 0; color: var(--ink-2); }

/* ---------- Feature list ---------- */

/* ---------- Screenshot gallery ---------- */

.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gallery-nav { display: flex; gap: 10px; flex: none; }
.gallery-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border-radius: 50%; border: 1px solid var(--glass-line);
  background: var(--glass); color: var(--ink); cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.gallery-btn svg { width: 22px; height: 22px; }
.gallery-btn:hover:not(:disabled) { background: var(--glass-strong); }
.gallery-btn:disabled { opacity: 0.35; cursor: default; }

/* Full-bleed row whose first image lines up with the page content. */
.gallery {
  --edge: max(16px, calc((100% - 1240px) / 2 + 16px));
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  padding: clamp(32px, 5vw, 56px) var(--edge) 40px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: start; }
.gallery img {
  display: block;
  width: clamp(220px, 24vw, 320px);
  height: auto;
  border-radius: clamp(18px, 2.2vw, 28px);
  box-shadow: 0 24px 50px var(--shadow);
}
.gallery-section { padding-bottom: clamp(32px, 5vw, 64px); }

.features { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--glass-line); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px 48px;
  padding-block: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--glass-line);
  align-items: baseline;
}
.feature h3 { font-size: var(--step-title); letter-spacing: -0.025em; line-height: 1.1; }
.feature p { margin: 0; color: var(--ink-2); }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.plan {
  border-radius: 36px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  display: grid;
  gap: 18px;
  align-content: start;
}
.plan.featured {
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 60px var(--shadow);
}
.plan .price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; font-family: var(--font-giant); font-weight: 700; font-size: clamp(80px, 10vw, 140px); line-height: 0.85; letter-spacing: -0.02em; padding-bottom: 0.12em; }
.plan .price small { font-family: var(--font-text); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.plan .price-alt { margin: 0; font-size: 15px; font-weight: 600; color: var(--pale); }
.plan h3 { font-size: var(--step-title); letter-spacing: -0.025em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; transform: translateY(-2px); }

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

.privacy-band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.privacy-band .zero { font-family: var(--font-giant); font-weight: 700; font-size: clamp(180px, 30vw, 380px); line-height: 0.8; letter-spacing: -0.02em; }
.privacy-band .copy { display: grid; gap: 18px; }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- Support ---------- */

.support-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.support-grid > * { min-width: 0; }
.contact { display: grid; gap: 18px; margin-top: 24px; }
.email-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  user-select: all;
  overflow-wrap: anywhere;
}
.copy-btn {
  font: 600 14px var(--font-text);
  color: var(--on-light);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
}
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  padding: 20px 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---------- Final call & footer ---------- */

.finale { text-align: center; display: grid; justify-items: center; gap: 32px; }
.finale .poster {
  font-size: var(--step-poster);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
}
.finale .poster .soft { color: var(--pale); }

/* Logo on the left with the copyright on the right of the same row; the
   links sit below the logo. Same on every screen size. */
.footer {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--glass-line);
  font-size: 14px;
  color: var(--ink-2);
}
.footer-logo { display: block; height: 28px; width: auto; }
.footer .copy { text-align: right; }
.footer nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Privacy page ---------- */

.doc-hero { padding-block: clamp(40px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.doc-hero .giant { font-size: clamp(60px, 13vw, 200px); display: block; text-align: left; text-transform: none; }
.doc { display: grid; gap: 14px; max-width: 760px; padding-bottom: clamp(72px, 10vw, 120px); }
.doc .summary {
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
  border-radius: 32px;
  padding: clamp(24px, 4vw, 40px);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--pale);
}
/* Same weight as the home page greeting: bold, never heavier. */
.doc .summary b { color: var(--ink); font-weight: 700; }
/* Little line icons in the text, like the home page greeting. */
.nowrap { white-space: nowrap; }
.doc .summary .icon { width: 0.95em; height: 0.95em; vertical-align: -0.16em; }
.doc section {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  padding: 24px 26px;
}
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.doc p, .doc li { color: var(--ink-2); margin: 0; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.doc li::marker { font-size: 0.6em; }
.doc .meta { color: var(--ink-3); font-size: 14px; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .dots-grid, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .privacy-band { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar .mid, .topbar .end a:not(.pill-link) { display: none; }
  .hero { --logo-w: 88vw; }
  .phones { width: 94vw; margin-top: calc(var(--logo-w) * -0.2); }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .gallery-nav { display: none; }
  .gallery img { width: 62vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .giant > span, .giant-logo img, .phones { animation: none; }
  .ticker-track { animation: none; }
  .store, .done-btn, .card, .dot { transition: none; }
}
