/* Goldfish — thegoldfish.app
   Night: the app icon's navy. Paper and card: the app's own grouped background and card surface.
   Ink colours are the app's EventColor.ink shades (light: shade 3, dark: shade 0). */

:root {
  --night: #1b2132;
  --night-deep: #0c0f18;
  --night-text: #f4f5fa;
  --night-muted: #a9afc4;
  --goldfish: #ff9f2e;

  --paper: #f2f2f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6c6c72;
  --hairline: rgba(0, 0, 0, 0.06);
  --rule: rgba(60, 60, 67, 0.18);
  --disc: #f2f2f7;
  --link: #0071e3;

  --ink-red: #a4123f;
  --ink-orange: #c73e1d;
  --ink-green: #0e7a5a;
  --ink-blue: #3f2dbf;
  --ink-purple: #6a1b9a;
  --ink-teal: #0b6fa4;
  --ink-pink: #9c1d5c;

  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #98989f;
    --hairline: rgba(255, 255, 255, 0.08);
    --rule: rgba(235, 235, 245, 0.18);
    --disc: #98989d;
    --link: #4aa3ff;
    --ink-red: #ff8a7a;
    --ink-orange: #ffd08a;
    --ink-green: #97e08c;
    --ink-blue: #74d0ff;
    --ink-purple: #ce8cff;
    --ink-teal: #7ff0e1;
    --ink-pink: #ffa4c9;
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000000;
  --card: #1c1c1e;
  --text: #f5f5f7;
  --muted: #98989f;
  --hairline: rgba(255, 255, 255, 0.08);
  --rule: rgba(235, 235, 245, 0.18);
  --disc: #98989d;
  --link: #4aa3ff;
  --ink-red: #ff8a7a;
  --ink-orange: #ffd08a;
  --ink-green: #97e08c;
  --ink-blue: #74d0ff;
  --ink-purple: #ce8cff;
  --ink-teal: #7ff0e1;
  --ink-pink: #ffa4c9;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--link); text-underline-offset: 0.15em; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font: 700 20px/1 var(--rounded);
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.site-header nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.site-header nav a { color: inherit; opacity: 0.8; text-decoration: none; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; }

/* Dark mode toggle, on the header's night background in every theme. Shows the moon while light, the sun while dark. */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: var(--night-text);
  cursor: pointer;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.18); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, .theme-toggle[aria-pressed="true"] .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }

/* ---------- Hero (the icon's night) ---------- */

.hero {
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(46, 155, 255, 0.22), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  color: var(--night-text);
  padding-bottom: clamp(56px, 9vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(24px, 6vw, 72px);
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(30, 123, 255, 0.35);
  margin-bottom: 28px;
}

.hero h1 {
  font: 800 clamp(44px, 7vw, 80px)/0.98 var(--rounded);
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero .lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--night-muted);
  max-width: 30em;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}
.badge svg { width: 26px; height: 26px; flex: none; }
.badge small { display: block; font-size: 11px; opacity: 0.75; }
.badge strong { display: block; font: 600 19px/1.1 var(--sans); letter-spacing: -0.01em; }
.badge[aria-disabled="true"] { cursor: default; }

.hero .note { margin: 14px 0 0; font-size: 14px; color: var(--night-muted); }

/* ---------- Live timeline (mirrors the app's cards) ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 420px;
  justify-self: center;
  width: 100%;
}

.month {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night-muted);
  margin: 0 0 10px 6px;
}

.ev {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  color: var(--text);
  border-radius: 26px;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 14px 40px rgba(0, 0, 0, 0.28);
  padding: 18px 20px;
  min-height: 92px;
}

.disc {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--disc);
  font-size: 24px;
  line-height: 1;
}

.ev-body { flex: 1; min-width: 0; }
.ev-title { font: 600 17px/1.2 var(--rounded); margin: 0; }
.ev-date { font-size: 13px; color: var(--muted); margin: 3px 0 0; }
.ev-date b { color: var(--ink); font-weight: 700; }

.ev-count {
  flex: none;
  text-align: right;
  color: var(--ink);
  font-family: var(--rounded);
  line-height: 1;
}
.ev-count .n { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.ev-count .u { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; }
.ev-count .only { font-size: 26px; font-weight: 700; }

.ev--hero {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  border-radius: 30px;
  padding: 22px;
  min-height: 208px;
}
.ev-top, .ev-bottom { display: flex; align-items: center; gap: 14px; }
.ev-bottom { align-items: flex-end; }
.ev--hero .up-next {
  font: 700 12px/1 var(--rounded);
  letter-spacing: 0.14em;
  color: var(--ink);
}
.ev--hero .ev-title { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.ev--hero .ev-date { font-size: 15px; margin-top: 6px; }
.ev--hero .ev-count .n { font-size: 76px; letter-spacing: -0.04em; }
.ev--hero .ev-count .u { font-size: 17px; font-weight: 500; color: var(--muted); }
.ev--hero .ev-count .only { font-size: 54px; }

/* Gap connector: hairline broken by the day count, like TimelineGap. */
.gap {
  position: relative;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--night-muted);
}
.gap::before,
.gap::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.28);
}
.gap-month {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gap::before { top: 0; }
.gap::after { bottom: 0; }

.ink-red { --ink: var(--ink-red); }
.ink-orange { --ink: var(--ink-orange); }
.ink-green { --ink: var(--ink-green); }
.ink-blue { --ink: var(--ink-blue); }
.ink-purple { --ink: var(--ink-purple); }
.ink-teal { --ink: var(--ink-teal); }
.ink-pink { --ink: var(--ink-pink); }

/* One orchestrated moment: the timeline settles in on load. */
@media (prefers-reduced-motion: no-preference) {
  .timeline > li {
    animation: settle 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms + 150ms);
  }
  @keyframes settle {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
  }
}

/* ---------- Features ---------- */

.features { padding-block: clamp(64px, 10vw, 128px) clamp(32px, 6vw, 64px); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(72px, 11vw, 140px); }
.feature:nth-child(even) .phone { order: 2; }

.feature h2 {
  font: 700 clamp(30px, 4vw, 44px)/1.08 var(--rounded);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.feature p { color: var(--muted); margin: 0 0 14px; max-width: 34em; text-wrap: pretty; }
.feature p q { color: var(--text); font-style: normal; }

.phone {
  justify-self: center;
  width: min(100%, 320px);
  padding: 10px;
  border-radius: 54px;
  background: #1d1d1f;
  box-shadow:
    inset 0 0 0 2px #3a3a3c,
    0 30px 60px -20px rgba(16, 24, 48, 0.35),
    0 12px 24px -12px rgba(16, 24, 48, 0.25);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 44px;
  background: var(--paper);
}

/* ---------- Extras ---------- */

.extras { padding-block: clamp(48px, 8vw, 96px); }
.extras h2 {
  font: 700 clamp(26px, 3.2vw, 34px)/1.1 var(--rounded);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.extras dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px 40px;
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.extras dt { font: 600 17px/1.3 var(--rounded); margin: 0 0 4px; }
.extras dt span { margin-right: 6px; }
.extras dd { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Privacy promise (back to night) ---------- */

.promise {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  color: var(--night-text);
  padding: clamp(64px, 10vw, 120px) 0;
}
.promise h2 {
  font: 800 clamp(36px, 6vw, 64px)/1.02 var(--rounded);
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 14em;
  text-wrap: balance;
}
.promise p { color: var(--night-muted); max-width: 36em; margin: 0 0 18px; font-size: 18px; }
.promise a { color: var(--goldfish); font-weight: 600; }

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

.site-footer {
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: inherit; }

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

.doc-header { background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%); color: var(--night-text); }
.doc-header .title { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.doc-header h1 { font: 800 clamp(36px, 6vw, 56px)/1.05 var(--rounded); letter-spacing: -0.03em; margin: 0 0 10px; }
.doc-header p { margin: 0; color: var(--night-muted); }

.doc { max-width: 68ch; padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.doc .summary {
  font-size: 19px;
  line-height: 1.5;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 22px 24px;
  margin: 0 0 40px;
}
.doc h2 { font: 700 24px/1.2 var(--rounded); letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .phone { order: 0; }
  .feature .phone { order: 0; }
  .feature > div { order: -1; }
  .timeline { justify-self: stretch; max-width: 460px; }
}

@media (max-width: 420px) {
  .site-header nav { gap: 14px; }
  .ev--hero .ev-title { font-size: 24px; }
  .ev--hero .ev-count .n { font-size: 64px; }
  .ev { padding: 16px; gap: 12px; }
  .phone { border-radius: 46px; padding: 8px; }
  .phone img { border-radius: 38px; }
}
