/* Goaldyn site — one stylesheet shared by every page. Palette mirrors the app's golden theme
   (icon gold #E0A800, accent #D99E00 light / #F5C542 dark, warm off-white paper, near-black ink). */
:root {
  color-scheme: light dark;
  --gold: #E0A800; --accent: #D99E00; --accent-2: #C58C00; --accent-ink: #141210;
  --bg: #FAF8F3; --surface: #FFFFFF; --surface-2: #FDFBF6;
  --ink: #141210; --ink-mid: #4A4638; --ink-soft: #7A7466;
  --line: #EAE4D6; --line-soft: #F1ECE0;
  --glass: rgba(255, 253, 248, 0.72);
  --chip-bg: rgba(224, 168, 0, 0.10); --chip-line: rgba(224, 168, 0, 0.28);
  --glow: rgba(224, 168, 0, 0.32); --wash: rgba(224, 168, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(30, 24, 10, 0.05);
  --shadow-md: 0 12px 32px rgba(30, 24, 10, 0.09);
  --shadow-lg: 0 30px 70px rgba(30, 24, 10, 0.16);
  --radius: 18px; --radius-lg: 26px; --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #F5C542; --accent-2: #E0A800;
    --bg: #141210; --surface: #1E1B17; --surface-2: #242019;
    --ink: #F5F1E8; --ink-mid: #C9C2B3; --ink-soft: #A69F90;
    --line: #2C2823; --line-soft: #241F1A;
    --glass: rgba(24, 21, 17, 0.68);
    --chip-bg: rgba(245, 197, 66, 0.10); --chip-line: rgba(245, 197, 66, 0.26);
    --glow: rgba(245, 197, 66, 0.24); --wash: rgba(245, 197, 66, 0.10);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* soft ambient warmth top-left + top-right */
  background-image:
    radial-gradient(60rem 40rem at 12% -8%, rgba(224, 168, 0, 0.08), transparent 60%),
    radial-gradient(50rem 34rem at 100% 0%, rgba(224, 168, 0, 0.05), transparent 55%);
  background-repeat: no-repeat;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* focus visibility (accessibility) */
:where(a, button, .btn, .badge, .ghost-link):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}

/* inline SVG icons (replace emoji) — color inherits the gold accent */
.icon-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-solid { fill: var(--accent); stroke: none; }

/* prose pages (privacy, support) */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.prose h1 { color: var(--accent); font-size: 2rem; margin-top: 0; }
.prose h2 { margin-top: 1.8em; font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink-mid); }
.prose strong { color: var(--ink); }
.muted { color: var(--ink-soft); font-size: 0.9em; }

/* ── floating glass nav ─────────────────────────────────────── */
.nav {
  position: sticky; top: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 12px 0 4px; padding: 9px 10px 9px 16px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-mid); text-decoration: none; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.btn, .nav-links a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 14px var(--glow); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 8px 22px var(--glow); }
.badge { display: inline-block; transition: transform .2s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 54px; width: auto; }

/* ── hero ───────────────────────────────────────────────────── */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 60px 0 40px; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
/* atmospheric background: two corner washes, full-bleed so the gradient spans
   the whole screen width instead of only the centered content column */
.hero-bg {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 6%, var(--wash), transparent 70%),
    radial-gradient(55% 65% at 6% 100%, var(--wash), transparent 70%);
}
.hero-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow-md); }
.hero-eyebrow { margin: 20px 0 6px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); line-height: 1.02; margin: 0 0 14px; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tag { font-size: 1.3rem; color: var(--ink); font-weight: 500; margin: 0 0 16px; max-width: 30ch; }
.hero .sub { color: var(--ink-mid); max-width: 50ch; margin: 0 0 28px; font-size: 1.02rem; }
.hero .cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero .fine { color: var(--ink-soft); font-size: 0.88rem; margin-top: 16px; }
.ghost-link { color: var(--ink-mid); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: color .2s ease, gap .2s ease; }
.ghost-link:hover { color: var(--accent); gap: 9px; }

/* trust chips */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  color: var(--ink-mid); background: var(--chip-bg); border: 1px solid var(--chip-line);
}
.chip svg { width: 14px; height: 14px; flex: none; }

/* hero visual: phone + ambient glow + floating pills */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual .glow {
  position: absolute; inset: -8% -4% 4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  filter: blur(18px);
}
.phone {
  position: relative; z-index: 1;
  border-radius: 44px; border: 10px solid #17140f; background: #000;
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 300px; margin: 0 auto;
}
.phone img { display: block; }
.float-pill {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 14px; font-size: 0.86rem; font-weight: 600;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.float-pill svg { width: 15px; height: 15px; flex: none; }
.pill-1 { top: 13%; left: -2%; }
.pill-2 { bottom: 16%; right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .float-pill { animation: floaty 5s ease-in-out infinite; }
  .pill-2 { animation-delay: -2.5s; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── sections ───────────────────────────────────────────────── */
section { padding: 64px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; color: var(--accent); font-weight: 700; margin: 0; }
h2.title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 8px 0 14px; letter-spacing: -0.02em; font-weight: 800; line-height: 1.1; }
.lede { color: var(--ink-mid); max-width: 60ch; margin: 0 0 34px; font-size: 1.05rem; }

/* sub-page header (Features, etc.) — echoes the hero's watermark background */
.page-hero { position: relative; text-align: center; padding: 64px 0 8px; }
.page-hero > :not(.hero-bg) { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; margin: 8px 0 14px; }
.page-hero .lede { margin-left: auto; margin-right: auto; }

/* "See all features →" style link */
.section-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-weight: 600; text-decoration: none; color: var(--accent); transition: gap .2s ease; }
.section-link:hover { gap: 11px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--chip-line); }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 16px; line-height: 1;
  border-radius: 14px; background: linear-gradient(140deg, var(--chip-bg), rgba(224,168,0,0.02));
  border: 1px solid var(--chip-line);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 7px; font-size: 1.1rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-mid); font-size: .97rem; }

/* screenshot strip */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 22px;
  overflow-x: auto; padding: 10px 4px 20px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.shot { scroll-snap-align: center; text-align: center; margin: 0; }
.shot img { border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.shot figcaption { margin-top: 14px; color: var(--ink-mid); font-size: .95rem; font-weight: 500; }

/* privacy block */
.privacy {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.privacy::before {
  content: ""; position: absolute; top: -40%; right: -12%; width: 380px; height: 380px; z-index: 0;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); filter: blur(10px); pointer-events: none;
}
.privacy > * { position: relative; z-index: 1; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; color: var(--ink-mid); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px; font-size: 0.8rem; font-weight: 800;
  color: var(--accent-ink); background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 6px var(--glow);
}

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 24px; border-radius: var(--radius-lg); color: #201a08;
  background:
    radial-gradient(40rem 20rem at 20% -30%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(30rem 20rem at 90% 130%, rgba(140,98,0,0.35), transparent 60%),
    linear-gradient(135deg, #F0BE24, #E0A800 45%, #C58C00);
  box-shadow: var(--shadow-md);
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { margin: 0 0 26px; color: #4a3a08; font-weight: 500; }
.cta-band .badge:hover { transform: translateY(-2px); }

/* footer */
footer { padding: 40px 0 56px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-mid); text-decoration: none; margin-right: 18px; transition: color .2s ease; }
footer a:hover { color: var(--accent); }

/* scroll reveal — hidden state is gated behind html.js so the page degrades
   to fully visible if JavaScript never runs (no-js, script error, etc.) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .grid.is-visible .card:nth-child(2) { transition-delay: .06s; }
.js .grid.is-visible .card:nth-child(3) { transition-delay: .12s; }
.js .grid.is-visible .card:nth-child(4) { transition-delay: .06s; }
.js .grid.is-visible .card:nth-child(5) { transition-delay: .12s; }
.js .grid.is-visible .card:nth-child(6) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 36px; padding: 40px 0 24px; }
  .hero .tag, .hero .sub, .hero .trust-row, .hero .cta { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero .tag { max-width: none; }
  .hero-icon { margin: 0 auto; }
  .float-pill { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; padding: 32px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  section { padding: 48px 0; }
  .grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
  footer { flex-direction: column; gap: 10px; }
}
