/* Public pages. Colors match the planner (app/app/css/app.css). */

@font-face {
  font-family: "Syne";
  src: url("/app/fonts/Syne.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/app/fonts/Outfit.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e8f1ee;
  --bg-deep: #0f2f2a;
  --surface: #f7fbf9;
  --surface-2: #dceae5;
  --text: #122824;
  --text-2: #3d5650;
  --text-3: #6a817a;
  --border: #c5d7d1;
  --accent: #1b7a6c;
  --accent-hover: #15685c;
  --accent-text: #ffffff;
  --now: #ff5c38;
  --sky: #2bb39a;
  --shadow: 0 1px 2px rgb(15 47 42 / 0.06), 0 10px 28px rgb(15 47 42 / 0.08);
  --radius: 8px;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Same split as the planner: system dark unless data-theme forces one side.
   Keep the two token blocks the same. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a3330;
    --bg-deep: #122824;
    --surface: #223f3a;
    --surface-2: #2b4a44;
    --text: #d0e0db;
    --text-2: #a8bfb8;
    --text-3: #93aaa3;
    --border: #3e5c55;
    --accent: #8fb8ad;
    --accent-fill: #1e5248;
    --accent-hover: #2a6358;
    --accent-text: #d0e0db;
    --sky: #8fb8ad;
    --now: #d9a89c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.22), 0 10px 28px rgb(0 0 0 / 0.2);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a3330;
  --bg-deep: #122824;
  --surface: #223f3a;
  --surface-2: #2b4a44;
  --text: #d0e0db;
  --text-2: #a8bfb8;
  --text-3: #93aaa3;
  --border: #3e5c55;
  --accent: #8fb8ad;
  --accent-fill: #1e5248;
  --accent-hover: #2a6358;
  --accent-text: #d0e0db;
  --sky: #8fb8ad;
  --now: #d9a89c;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.22), 0 10px 28px rgb(0 0 0 / 0.2);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background:
    radial-gradient(1200px 520px at 85% -10%, rgb(43 179 154 / 0.22), transparent 60%),
    radial-gradient(900px 480px at -5% 20%, rgb(255 92 56 / 0.1), transparent 55%),
    linear-gradient(180deg, #dceae5 0%, var(--bg) 28%, var(--bg) 100%);
  background-attachment: fixed;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background:
      radial-gradient(1000px 480px at 90% -5%, rgb(143 184 173 / 0.07), transparent 55%),
      radial-gradient(800px 420px at -10% 15%, rgb(217 168 156 / 0.04), transparent 50%),
      linear-gradient(180deg, #203b36 0%, var(--bg) 36%);
    background-attachment: fixed;
  }
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(1000px 480px at 90% -5%, rgb(143 184 173 / 0.07), transparent 55%),
    radial-gradient(800px 420px at -10% 15%, rgb(217 168 156 / 0.04), transparent 50%),
    linear-gradient(180deg, #203b36 0%, var(--bg) 36%);
  background-attachment: fixed;
}

a { color: var(--accent); }
a:hover { text-decoration: none; }

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  padding: 6px 10px;
  background: var(--surface);
  border-radius: var(--radius);
  transform: translateY(-150%);
}
.skip:focus { transform: none; z-index: 3; }

.site-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding: calc(12px + env(safe-area-inset-top)) 24px 12px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand img { width: 22px; height: 22px; display: block; }
.site-nav { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.site-nav a:not(.button) { color: var(--text-2); text-decoration: none; font-size: 14px; }
.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] { color: var(--text); }

.button {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { background: var(--surface-2); text-decoration: none; transform: translateY(-1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Padding, not a narrower width: .narrow used to set width: 100% and wipe
   out the side inset on the Google, pricing, privacy, and terms blocks. */
.wrap {
  width: min(1088px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}
.narrow { max-width: 768px; }

/* ---- Hero: one composition, brand first ---- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgb(15 47 42 / 0.04) 0%, transparent 42%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgb(15 47 42 / 0.035) 18px 19px
    );
  pointer-events: none;
  animation: loft-drift 28s linear infinite;
}
@keyframes loft-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 120px 40px; }
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  width: min(1088px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}
.hero-copy { max-width: 34rem; }
.hero-brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: var(--bg-deep);
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-brand { color: var(--sky); }
}
:root[data-theme="dark"] .hero-brand { color: var(--sky); }
.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.03em;
  animation: rise 700ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.subhead {
  margin: 0 0 22px;
  color: var(--text-2);
  font-size: 1.1rem;
  max-width: 28em;
  animation: rise 700ms 140ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.lede { margin: 0 0 22px; max-width: 42em; color: var(--text-2); }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  animation: rise 700ms 200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fine { margin: 0; color: var(--text-3); font-size: 13px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.shot { margin: 0; animation: rise 800ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.shot-frame {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f7fbf9;
  border: 1px solid rgb(15 47 42 / 0.12);
  box-shadow:
    0 1px 2px rgb(15 47 42 / 0.06),
    0 18px 44px rgb(15 47 42 / 0.14);
  isolation: isolate;
}
.shot-chrome {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #e7f0ec;
  border-bottom: 1px solid #c5d7d1;
}
.shot-dots { display: flex; gap: 5px; }
.shot-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5d7d1;
}
.shot-dots span:nth-child(1) { background: #ff5c38; }
.shot-dots span:nth-child(2) { background: #2bb39a; }
.shot-dots span:nth-child(3) { background: #1b7a6c; }
.shot-address {
  justify-self: center;
  padding: 2px 12px;
  border-radius: 999px;
  background: #f7fbf9;
  border: 1px solid #d5e4de;
  color: #5d7872;
  font-size: 12px;
  line-height: 1.5;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 800;
}
@media (prefers-color-scheme: dark) {
  .shot-frame {
    border-color: rgb(232 243 239 / 0.16);
    box-shadow:
      0 1px 2px rgb(0 0 0 / 0.4),
      0 18px 48px rgb(0 0 0 / 0.45);
  }
}
.shot-caption {
  margin: 10px 0 0;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

.intro {
  padding: 8px 0 40px;
}
.intro p {
  margin: 0;
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 42em;
}

.features { padding: 12px 0 48px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  margin: 0;
  padding: 8px 0 4px;
  background: transparent;
  border: none;
  border-top: 2px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 0;
  box-shadow: none;
}
.feature h2 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

.band {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.band h2, .block h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.band p, .block p { margin: 0; color: var(--text-2); }
.band a, .doc a { color: var(--accent); }

.block { padding: 40px 0; }
.pricing h2 { font-size: 1.4rem; }
.pricing p { margin: 8px 0 0; font-size: 17px; color: var(--text); }

.cta {
  position: relative;
  padding: 56px 0 72px;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 20% 10% auto;
  height: 180px;
  background: radial-gradient(ellipse at center, rgb(43 179 154 / 0.2), transparent 70%);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta::before {
    background: radial-gradient(ellipse at center, rgb(143 184 173 / 0.08), transparent 70%);
  }
  :root:not([data-theme="light"]) .button.primary,
  :root:not([data-theme="light"]) .button.primary:hover {
    background: var(--accent-fill);
    border-color: var(--accent-fill);
    color: var(--accent-text);
  }
  :root:not([data-theme="light"]) .button.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }
  :root:not([data-theme="light"]) .shot-frame svg { filter: saturate(0.78); }
}
:root[data-theme="dark"] .cta::before {
  background: radial-gradient(ellipse at center, rgb(143 184 173 / 0.08), transparent 70%);
}
:root[data-theme="dark"] .button.primary,
:root[data-theme="dark"] .button.primary:hover {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--accent-text);
}
:root[data-theme="dark"] .button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
:root[data-theme="dark"] .shot-frame svg { filter: saturate(0.78); }
.cta h2 {
  position: relative;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}
.cta .actions { justify-content: center; }
.cta .account { margin: 4px 0 0; color: var(--text-2); }

.site-foot {
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  text-align: center;
}
.site-foot a { color: var(--text-2); }
.site-foot a:hover { color: var(--text); }

/* privacy.html and terms.html */
body.doc { background: var(--bg); }
.doc main { padding-top: 32px; padding-bottom: 64px; line-height: 1.55; font-size: 15px; }
.doc h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 4px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.doc h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 28px 0 8px;
  letter-spacing: -0.02em;
}
.doc p { margin: 0 0 12px; }
.doc .muted { color: var(--text-3); font-size: 13px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc code { font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-brand, .hero h1, .subhead, .actions, .shot,
  .button { animation: none; transition: none; }
}
