/* FreelanceFlow — public site. Brand tokens mirror the app (lib/theme.ts). */
:root {
  --teal: #0F766E;
  --teal-dark: #115E59;
  --teal-light: #CCFBF1;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 118, 110, 0.22);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    system-ui, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--teal);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(15,118,110,0.3);
}
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff; text-align: center;
  padding: 88px 24px 96px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(204,251,241,0.18), transparent 70%);
}
.hero-badge {
  width: 84px; height: 84px; border-radius: 999px; background: rgba(255,255,255,0.14);
  display: grid; place-items: center; margin: 0 auto 24px;
  border: 1px solid rgba(255,255,255,0.25);
}
.hero h1 { font-size: clamp(38px, 7vw, 62px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; }
.hero .tagline { font-size: clamp(19px, 3.4vw, 26px); font-weight: 600; color: var(--teal-light); margin-top: 20px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero .sub { font-size: 17px; color: rgba(255,255,255,0.85); margin-top: 18px; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero .cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0b0b0d; color: #fff; padding: 12px 22px; border-radius: 14px;
  font-weight: 600; position: relative; opacity: 0.92;
}
.store-badge small { display: block; font-size: 11px; opacity: 0.8; font-weight: 500; }
.store-badge span { font-size: 19px; font-weight: 700; line-height: 1.1; }
.store-badge .soon {
  position: absolute; top: -10px; right: -10px; background: var(--teal-light); color: var(--teal-dark);
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.3px;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); color: #fff; padding: 13px 22px; border-radius: 14px;
  font-weight: 700; border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); text-decoration: none; }

/* --- Sections --- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; letter-spacing: -0.8px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.eyebrow { color: var(--teal); font-weight: 800; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; }

/* Highlight (the one question) */
.highlight { background: var(--teal-light); border-radius: 28px; padding: 48px 32px; text-align: center; }
.highlight .q { font-size: clamp(22px, 4vw, 32px); font-weight: 800; color: var(--teal-dark); letter-spacing: -0.5px; }
.highlight .a { color: #134e4a; font-size: 17px; margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--teal-light);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* Privacy band */
.band { background: var(--text); color: #fff; border-radius: 28px; padding: 48px 40px; }
.band h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.6px; }
.band ul { list-style: none; margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 14px; }
.band li { display: flex; gap: 12px; align-items: flex-start; color: #cbd5e1; font-size: 15px; }
.band li strong { color: #fff; font-weight: 600; }
.band .chk { color: #34d399; flex: none; margin-top: 3px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 60px; margin-top: 24px; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 14px; }
.footer a { display: block; color: var(--text); font-size: 15px; margin-bottom: 10px; font-weight: 500; }
.footer a:hover { color: var(--teal); text-decoration: none; }
.footer .disclaimer { color: var(--muted); font-size: 13px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); line-height: 1.7; }

/* --- Legal / doc pages --- */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.doc .back { font-size: 14px; font-weight: 600; color: var(--muted); display: inline-block; margin-bottom: 24px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.doc h2 { font-size: 23px; font-weight: 700; margin-top: 44px; letter-spacing: -0.4px; }
.doc h3 { font-size: 18px; font-weight: 700; margin-top: 28px; }
.doc p, .doc li { color: #334155; font-size: 16px; margin-top: 14px; }
.doc ul, .doc ol { margin-top: 14px; padding-left: 24px; }
.doc li { margin-top: 8px; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.doc a { font-weight: 600; }
.doc .note {
  background: var(--teal-light); border-left: 4px solid var(--teal);
  padding: 16px 20px; border-radius: 12px; margin-top: 24px; color: #134e4a; font-size: 15px;
}
.doc .warn {
  background: #FEF3C7; border-left: 4px solid #F59E0B;
  padding: 16px 20px; border-radius: 12px; margin-top: 24px; color: #78350F; font-size: 15px;
}
.doc table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: #f1f5f9; font-weight: 700; color: var(--text); }
.doc code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.doc .steps { counter-reset: step; list-style: none; padding-left: 0; }
.doc .steps li { position: relative; padding-left: 44px; margin-top: 16px; }
.doc .steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 999px;
  background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
