/* NewsFly marketing site. Colours are the app's default palette (Slate &
   Coral, apps/mobile/src/theme/palettes.ts); type is the app's Inter. No
   third-party requests: fonts are served from /site/fonts. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/site/fonts/Inter_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/site/fonts/Inter_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/site/fonts/Inter_700Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/site/fonts/Inter_800ExtraBold.woff2") format("woff2"); }

:root {
  --ink: #11161c;
  --ink-2: #19202a;
  --ink-3: #232c38;
  --line-ink: rgba(255, 255, 255, 0.1);
  --on-ink: #f6f7f8;
  --muted-ink: #a9b1bd;
  --paper: #fbfaf8;
  --paper-2: #f2efe9;
  --line-paper: #e2dfd8;
  --text: #11161c;
  --muted: #555d69;
  --coral: #ff6b4a;
  --coral-deep: #e0492e;
  --coral-text: #b5391b; /* coral that passes contrast on paper */
  --teal: #0e7c86;
  --radius: 20px;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: calc(760px + 2 * var(--pad)); }
.center { text-align: center; justify-content: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--coral); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 12px; }

/* Signed-in / signed-out variants. site.js sets data-signed-in on <html>
   when the app's session token is in this browser. */
.signed-in { display: none !important; }
html[data-signed-in] .signed-in { display: inline-flex !important; }
html[data-signed-in] .signed-out { display: none !important; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: #ff7f62; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink); background: rgba(255, 255, 255, 0.06); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-3); }

/* ── header ──────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(17, 22, 28, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-ink); color: var(--on-ink); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 7px; color: var(--on-ink); text-decoration: none; flex-shrink: 0; }
.logo .wordmark { margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: 12px; margin-right: auto; }
.nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--on-ink); background: rgba(255, 255, 255, 0.06); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-ink); border-radius: 999px; }
.lang a { min-width: 38px; padding: 6px 10px; border-radius: 999px; color: var(--muted-ink); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.lang a[aria-current] { background: var(--on-ink); color: var(--ink); }
.menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--on-ink); align-items: center; justify-content: center; cursor: pointer; }
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: var(--coral); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 35%; height: 120%; background: radial-gradient(closest-side, rgba(255, 107, 74, 0.2), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(32px, 6vw, 80px); padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
.eyebrow { margin-bottom: 18px; color: var(--coral); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.hero-pub h1 { font-size: clamp(36px, 5.2vw, 60px); }
.lead { margin-top: 22px; max-width: 34em; color: var(--muted-ink); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 20px; color: var(--muted-ink); font-size: 14px; }

/* the phone */
.phone { justify-self: center; width: min(300px, 78vw); }
.phone-screen { position: relative; aspect-ratio: 300 / 620; border-radius: 44px; border: 10px solid #05070a; outline: 1px solid rgba(255, 255, 255, 0.14); background: var(--ink-2); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; }
.phone figcaption { margin-top: 14px; color: var(--muted-ink); font-size: 12px; text-align: center; }
/* the "photo": an evening street drawn with gradients */
.shot { position: absolute; inset: 0; background: linear-gradient(180deg, #27364a 0%, #5b4a57 34%, #d9785a 44%, #f2a66f 52%, #2a2f3a 52.5%, #171c24 100%); }
.shot i { position: absolute; bottom: 47.5%; background: #1b222d; }
.shot i:nth-child(1) { left: 0; width: 26%; height: 30%; }
.shot i:nth-child(2) { left: 24%; width: 20%; height: 19%; background: #222b38; }
.shot i:nth-child(3) { right: 0; width: 34%; height: 36%; }
.shot i:nth-child(4) { left: 12%; right: 20%; bottom: 43%; height: 8%; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, #ff6b4a 0 46%, #f6f7f8 46% 60%, #c9422a 60%); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.phone-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 18, 0.55) 0%, transparent 22%, transparent 50%, rgba(10, 13, 18, 0.94) 72%); }
.phone-top, .rail, .story { position: absolute; z-index: 1; color: #fff; }
.phone-top { top: 18px; left: 14px; right: 14px; display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(17, 22, 28, 0.55); font-size: 12px; font-weight: 700; }
.chip-on { background: #fff; color: var(--ink); }
.chip b { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 10px; }
.rail { right: 12px; bottom: 39%; display: grid; gap: 12px; }
.rail span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: rgba(17, 22, 28, 0.5); }
.story { left: 16px; right: 16px; bottom: 18px; }
.story-meta { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.78); font-size: 11px; font-weight: 600; }
.tag { padding: 3px 8px; border-radius: 6px; background: var(--coral); color: var(--ink); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.story-h { margin-top: 8px; font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.story-p { margin-top: 6px; color: rgba(255, 255, 255, 0.82); font-size: 12.5px; line-height: 1.4; }
.story-src { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: rgba(255, 255, 255, 0.82); font-size: 11.5px; }
.story-src strong { color: #fff; }
.dots { display: inline-flex; }
.dots i { width: 18px; height: 18px; margin-left: -6px; border-radius: 999px; border: 2px solid #12161c; background: var(--teal); }
.dots i:first-child { margin-left: 0; background: var(--coral); }
.dots i:last-child { background: #c9ced6; }
.story-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; height: 38px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 13px; font-weight: 800; }

/* the publisher flow */
.flow { display: grid; gap: 14px; }
.flow li { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line-ink); border-radius: var(--radius); background: var(--ink-2); }
.flow li + li::before { content: ""; position: absolute; left: 43px; top: -15px; width: 2px; height: 15px; background: var(--coral); }
.flow-ic { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--ink-3); color: var(--coral); }
.flow-ic-brand { background: #0b0e13; }
.flow strong { display: block; font-size: 17px; line-height: 1.3; }
.flow div span { display: block; margin-top: 2px; color: var(--muted-ink); font-size: 14px; line-height: 1.4; }

/* ── sections ────────────────────────────────────────────────────────── */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-paper { background: var(--paper); }
.sec-tint { background: var(--paper-2); }
.sec-ink { background: var(--ink); color: var(--on-ink); }
.sec-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 19px; }
.sec-ink .sec-head p { color: var(--muted-ink); }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.pillars-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.pillars article { padding-top: 20px; border-top: 2px solid var(--text); }
.num { display: block; margin-bottom: 14px; color: var(--coral-text); font-size: 14px; font-weight: 800; letter-spacing: 0.06em; }
.num::before { content: "0"; }
.pillars p, .steps p { margin-top: 10px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 28px; border: 1px solid var(--line-ink); border-radius: var(--radius); background: var(--ink-2); }
.card .icon { margin-bottom: 18px; color: var(--coral); }
.card p { margin-top: 8px; color: var(--muted-ink); font-size: 16px; }
.card-paper { border-color: var(--line-paper); background: #fff; }
.card-paper .icon { color: var(--coral-text); }
.card-paper p { color: var(--muted); }

.steps { display: grid; gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 800; }
.steps-ink li::before { background: var(--coral); color: var(--ink); }
.steps-ink p { color: var(--muted-ink); }

.band { background: var(--coral); color: var(--ink); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.band .eyebrow { margin-bottom: 10px; color: var(--ink); opacity: 0.75; }
.band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.band p:not(.eyebrow) { margin-top: 10px; max-width: 34em; font-size: 18px; font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split .sec-head { margin-bottom: 0; }
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line-paper); font-weight: 600; line-height: 1.45; }
.checks .icon { flex-shrink: 0; margin-top: 2px; color: var(--teal); }

.faq { border-top: 1px solid var(--line-paper); }
.faq details { border-bottom: 1px solid var(--line-paper); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--coral-text); font-size: 26px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 40px 24px 0; color: var(--muted); }
.faq a { color: var(--coral-text); font-weight: 600; }
#faq h2 { margin-bottom: 28px; }

.final { text-align: center; }
.final .mark { margin: 0 auto 24px; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .btn-primary { margin-top: 32px; }
.final .cta-row .btn { margin-top: 0; }

/* ── footer ──────────────────────────────────────────────────────────── */
.foot { background: #0b0e13; color: var(--muted-ink); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.foot-brand p { margin-top: 14px; max-width: 22em; }
.foot-col h2 { margin-bottom: 12px; color: var(--on-ink); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.foot-col a { display: block; padding: 5px 0; text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--on-ink); }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line-ink); font-size: 13px; }

/* ── lock screen ─────────────────────────────────────────────────────── */
.lock { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: 20px var(--pad); background: var(--ink); color: var(--on-ink); overflow: hidden; }
.lock::before { content: ""; position: absolute; left: 50%; top: 38%; width: min(900px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 107, 74, 0.2), transparent 70%); pointer-events: none; }
.lock-top { position: relative; display: flex; justify-content: flex-end; }
.lock-mid { position: relative; align-self: center; justify-self: center; max-width: 36em; padding: 40px 0; text-align: center; }
.lock-mid .mark { margin: 0 auto 28px; }
.lock-mid h1 { font-size: clamp(36px, 6vw, 60px); }
.lock-mid .lead { margin-left: auto; margin-right: auto; }
.lock-foot { position: relative; color: var(--muted-ink); font-size: 13px; text-align: center; }

/* ── small screens ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-in, .split { grid-template-columns: minmax(0, 1fr); }
  .pillars-4, .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-in { flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .menu { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--pad) 16px; background: var(--ink); border-bottom: 1px solid var(--line-ink); }
  .nav[data-open] { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; }
  .top-in { gap: 12px; justify-content: space-between; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pillars, .pillars-4, .steps-3, .steps-4, .grid, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .cta-row .btn-lg { flex: 1 1 100%; }
  .top .btn { padding: 0 14px; }
  .faq p { padding-right: 0; }
}
@media (max-width: 400px) {
  .top .lang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
