/* Launch Goblin — marketing site. House pattern: static HTML + one stylesheet.
   Brand tokens mirror the app's Theme.swift. */

:root {
  --bg: #0a0a12;
  --bg-elevated: #14141f;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --green: #59e673;        /* Theme.neonGreen */
  --green-deep: #73c759;   /* Theme.goblinGreen */
  --purple: #9469fa;       /* Theme.purple */
  --purple-deep: #5933b3;
  --red: #f24d6b;          /* Theme.roastRed */
  --gold: #ffd14d;         /* Theme.gold */
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.4);
  --radius: 26px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(10, 10, 18, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .appicon { border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav .link { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav .link:hover { color: var(--text); text-decoration: none; }
.btn-nav { background: var(--green); color: #06220c; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px; }
.btn-nav:hover { text-decoration: none; filter: brightness(1.08); }
@media (max-width: 640px) { .nav .link { display: none; } .nav .link.keep { display: inline; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 90%; background:
  radial-gradient(46% 55% at 72% 38%, rgba(105, 66, 200, 0.34), transparent 70%),
  radial-gradient(40% 50% at 18% 80%, rgba(60, 160, 80, 0.16), transparent 70%);
  pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.kicker { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -0.02em; }
.greentext { color: var(--green); }
.goldtext { color: var(--gold); }
.lede { color: var(--text-2); font-size: 19px; margin-top: 20px; max-width: 34em; }

.badge-row { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.appstore-badge img { height: 54px; width: auto; }
.btn { display: inline-block; border-radius: 999px; padding: 13px 26px; font-weight: 700; font-size: 16px; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: var(--text); }
.btn-ghost:hover { text-decoration: none; border-color: var(--green); color: var(--green); }
.btn-green { background: var(--green); color: #06220c; }
.btn-green:hover { text-decoration: none; filter: brightness(1.08); }

.trust-row { list-style: none; display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.trust-row li { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 14.5px; }
.trust-row svg { color: var(--green); flex: none; }

/* Phone imagery */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 10px 0 0; }
.phone-stage .glow { position: absolute; inset: 12% 18%; background: radial-gradient(closest-side, rgba(89, 230, 115, 0.16), transparent); filter: blur(30px); }
.phone { position: relative; width: min(320px, 78vw); border-radius: 44px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); overflow: hidden; background: #000; }
.phone.sm { width: min(300px, 74vw); }
.phone img { width: 100%; height: auto; }
.float-chip { position: absolute; background: var(--bg-elevated); border: 1px solid var(--card-border); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: 999px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.float-chip .accent { color: var(--green); }
.float-chip.a { top: 15%; left: 2%; }
.float-chip.b { bottom: 17%; right: 0; }
@media (max-width: 880px) { .float-chip { display: none; } }

/* Ribbon */
.ribbon { margin-top: 66px; border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); }
.ribbon-inner { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 15px 24px; color: var(--text-2); font-family: var(--font-display); font-size: 14.5px; }
.ribbon .dot { color: var(--green); }

/* ---------- Showcase rows ---------- */
.showcase { padding: 30px 0 10px; }
.showcase-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding: 58px 0; }
.showcase-row:nth-child(even) { direction: rtl; }
.showcase-row:nth-child(even) > * { direction: ltr; }
@media (max-width: 880px) { .showcase-row, .showcase-row:nth-child(even) { grid-template-columns: 1fr; direction: ltr; gap: 30px; } }
.showcase-row .media { position: relative; display: flex; justify-content: center; }
.showcase-row h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 14px; }
.showcase-row .body { color: var(--text-2); font-size: 17.5px; max-width: 32em; }
.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.feature-list li { display: flex; gap: 11px; align-items: baseline; font-size: 16px; }
.feature-list .fmark { color: var(--green); flex: none; font-size: 13px; }
.feature-list .t { color: var(--text-2); }

/* ---------- Feature grid ---------- */
.gridsec { padding: 76px 0 30px; text-align: center; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.015em; }
.lede-center { color: var(--text-2); max-width: 40em; margin: 16px auto 0; font-size: 17.5px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; text-align: left; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; padding: 24px 22px; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(89, 230, 115, 0.12); color: var(--green); margin-bottom: 15px; }
.feature h3 { font-family: var(--font-display); font-size: 17.5px; font-weight: 600; margin-bottom: 7px; }
.feature p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* ---------- Hero roast bubble ---------- */
.hero-roast { display: flex; align-items: flex-start; gap: 13px; margin-top: 26px; max-width: 34em; }
.hero-roast-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--card-border); object-fit: cover; padding: 5px; }
.hero-roast-bubble { position: relative; background: var(--bg-elevated); border: 1px solid var(--card-border); border-radius: 4px 18px 18px 18px; padding: 14px 18px; }
.hero-roast-bubble::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; background: var(--bg-elevated); border-left: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); transform: rotate(45deg); }
.hero-roast-bubble p { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.45; }
.hero-roast-bubble .punch { color: var(--green); }
.hero-roast-caption { margin-top: 7px; }
.hero-roast-bubble p.hero-roast-caption { font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--text-3); }

/* ---------- Roast quote ---------- */
.roastquote { text-align: center; padding: 90px 24px; }
.roastquote .quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; letter-spacing: -0.01em; max-width: 22em; margin: 0 auto; }
.roastquote .source { color: var(--text-3); margin-top: 18px; font-size: 15px; }

/* ---------- CTA ---------- */
.cta { padding: 10px 0 90px; }
.cta-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; background: linear-gradient(135deg, rgba(89, 230, 115, 0.1), rgba(148, 105, 250, 0.12)); border: 1px solid var(--card-border); border-radius: 34px; padding: 54px 54px 0; }
@media (max-width: 880px) { .cta-card { grid-template-columns: 1fr; padding: 40px 28px 0; } }
.cta-card h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.8vw, 42px); letter-spacing: -0.015em; margin-bottom: 14px; }
.cta-card p { color: var(--text-2); max-width: 30em; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.cta-media { display: flex; justify-content: center; align-items: flex-end; }
.cta-media .phone { border-radius: 40px 40px 0 0; border-bottom: none; box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.45); }
.cta-copy { padding-bottom: 54px; }
@media (max-width: 880px) { .cta-copy { padding-bottom: 8px; } }

/* ---------- Content pages (privacy / terms / support) ---------- */
main.content { padding: 60px 24px 90px; max-width: 780px; }
main.content h1 { font-size: clamp(34px, 4.6vw, 46px); margin-bottom: 8px; }
main.content .updated { color: var(--text-3); font-size: 15px; margin-bottom: 34px; }
main.content h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.01em; }
main.content h3 { font-family: var(--font-display); font-weight: 600; font-size: 18.5px; margin: 26px 0 8px; }
main.content p { color: var(--text-2); margin-bottom: 14px; }
main.content ul { color: var(--text-2); padding-left: 22px; margin-bottom: 14px; }
main.content li { margin-bottom: 9px; }
main.content strong { color: var(--text); }
.support-email { font-family: var(--font-display); font-size: 19px; font-weight: 600; }

.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--text); }
.faq details p { margin: 12px 0 2px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 44px 0 60px; text-align: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 8px; }
.foot-brand img { border-radius: 7px; }
.foot-brand:hover { text-decoration: none; }
.foot-tag { color: var(--text-3); font-size: 14.5px; margin-bottom: 16px; }
footer.site a { color: var(--text-2); font-size: 14.5px; }
footer.site a:hover { color: var(--green); }
.copyright { color: var(--text-3); font-size: 13px; margin-top: 18px; }

/* ---------- Reveal ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* ---------- In-app-browser escape modal ---------- */
.iab-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 10, 0.78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.iab-overlay[hidden] { display: none; }
.iab-card { position: relative; background: var(--bg-elevated); border: 1px solid var(--card-border); border-radius: 24px; padding: 34px 28px; max-width: 420px; text-align: center; }
.iab-card .iab-icon { margin: 0 auto 14px; border-radius: 12px; }
.iab-card h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.iab-copy { color: var(--text-2); font-size: 15.5px; margin-bottom: 22px; }
.iab-actions { display: grid; gap: 10px; }
.iab-actions .btn { width: 100%; border: none; cursor: pointer; font-family: var(--font-body); }
.btn-gold { background: var(--green); color: #06220c; }
.iab-close { position: absolute; top: 10px; right: 16px; background: none; border: none; color: var(--text-3); font-size: 26px; cursor: pointer; }
