/* Flemo marketing site. Matches the app's design tokens (mobile/src/theme.ts) */
:root {
  --bg: #0e1113;
  --surface: #192024;
  --panel: #20282d;
  --elevated: #283137;
  --primary: #4285f4;
  --primary-dark: #2f63b8;
  --primary-text: #ffffff;
  --accent: #e8dac2;
  --info: #7fb0ff;
  --text: #f8fafc;
  --muted: #98a1aa;
  --border: #2b353d;
  --verified: #4285f4;
  --host: #34a853;
  --live: #ea4d6c;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* subtle ambient glow, echoing the app's GlowBackground */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 8%, rgba(66,133,244,0.14), transparent 70%),
    radial-gradient(50% 45% at 12% 88%, rgba(232,218,194,0.07), transparent 70%);
}

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(14,17,19,0.78);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark { font-family: var(--serif); font-weight: 700; font-size: 28px; letter-spacing: 0.5px; }
.brand .dot { color: var(--primary); }
.brand .tag { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: var(--radius-pill, 999px); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 72px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(44px, 7vw, 78px); line-height: 1.02; letter-spacing: -0.5px;
  max-width: 16ch; margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.divider { border: 0; border-top: 1px solid var(--border); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #3a4750; transform: translateY(-2px); }
.card .ico { font-size: 26px; margin-bottom: 14px; display: block; }
.card h3 { font-family: var(--serif); font-weight: 700; font-size: 23px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

.pill {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); background: var(--panel);
}
.pill.verified { color: var(--verified); border-color: rgba(66,133,244,0.4); }
.pill.host { color: var(--host); border-color: rgba(52,168,83,0.4); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--primary);
  display: block; margin-bottom: 10px; line-height: 1;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, rgba(66,133,244,0.16), rgba(232,218,194,0.06));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 56px 40px; text-align: center;
}
.cta h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5vw, 50px); margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose p, .prose li { color: #cdd5dd; font-size: 16px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose a { color: var(--info); text-decoration: underline; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-md); padding: 16px 18px; color: var(--muted); font-size: 14px; margin: 24px 0; }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(320px, 1.22fr); gap: 28px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 32px); }
.contact-card h2 { font-family: var(--serif); font-size: 32px; line-height: 1.15; margin-bottom: 12px; }
.contact-card p { color: var(--muted); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--text); }
.field span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; padding: 12px 13px; transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { min-height: 148px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 13px 14px; border-radius: var(--radius-sm); margin-top: 15px; font-size: 14px; }
.form-status.success { display: block; color: #bdf6d3; background: rgba(52,168,83,.18); border: 1px solid rgba(52,168,83,.45); }
.form-status.error { display: block; color: #ffd1d8; background: rgba(234,77,108,.15); border: 1px solid rgba(234,77,108,.4); }
.help-list { display: grid; gap: 14px; margin-top: 22px; }
.help-item { padding: 14px 16px; background: var(--panel); border-radius: var(--radius-md); border: 1px solid var(--border); }
.help-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.help-item p { font-size: 13px; margin: 0; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot .mark { font-family: var(--serif); font-weight: 700; font-size: 24px; }
.foot p { color: var(--muted); font-size: 13px; margin-top: 8px; max-width: 36ch; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-col a { display: block; color: var(--text); font-size: 14px; margin-bottom: 9px; opacity: .82; }
.foot-col a:hover { opacity: 1; }
.foot-bottom { color: var(--muted); font-size: 13px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid-3, .grid-2, .steps, .contact-layout, .form-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 22px 18px;
    display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 0 48px; }
}
