/* scaleless.app — shared styles. Brand tokens match the app (src/ui/theme/tokens.ts). */
@font-face { font-family: 'Inter'; src: url('fonts/Inter_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('fonts/SpaceGrotesk_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --ground: #F4F3EF;
  --card: #FFFFFF;
  --ink: #111214;
  --ink-2: #1C1D21;
  --graphite: #3A3D44;
  --muted: #44474F;
  --muted-2: #55585F;
  --on-ink-muted: #B4B7BE;
  --lime: #D4F24A;
  --lime-tint: #F0F6D2;
  --olive: #2B2E1A;
  --hairline: #DEDCD5;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--graphite); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .on-ink :focus-visible { outline-color: var(--lime); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--muted); }
.pill { align-self: flex-start; display: inline-block; background: var(--lime-tint); color: var(--olive); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 16px; text-decoration: none; font-weight: 600; font-size: 16px; }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: var(--graphite); color: var(--ground); }
.btn-line { border: 1.5px solid #CFCDC6; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-lg { min-height: 58px; padding: 0 28px; border-radius: 18px; font-size: 17px; }
.site-nav .btn { min-height: 44px; border-radius: 999px; padding: 0 20px; font-size: 15px; color: var(--ground); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 82px); line-height: 0.98; letter-spacing: -0.035em; }
.hero .lede { font-size: 20px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 15px; color: var(--muted-2); }
.hero-art { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; position: relative; padding: 24px 0; }
.hero-art::before { content: ''; position: absolute; width: min(440px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--lime); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phones { position: relative; display: flex; align-items: flex-end; }
.phone { border: 9px solid var(--ink); border-radius: 38px; overflow: hidden; background: var(--ink); }
.phone img { width: 100%; }
.phone-back { width: 220px; transform: translateX(28px) rotate(-5deg); box-shadow: 0 30px 70px rgba(17,18,20,.28); z-index: 1; }
.phone-front { width: 252px; margin-bottom: 26px; border-width: 10px; border-radius: 42px; box-shadow: 0 34px 80px rgba(17,18,20,.3); z-index: 2; background: var(--ground); }
@media (max-width: 520px) { .phone-back { width: 46vw; } .phone-front { width: 52vw; } }

/* Lime band */
.band { background: var(--lime); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.band blockquote { margin: 0; flex: 1 1 520px; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.025em; }
.band p { flex: 1 1 320px; max-width: 460px; font-size: 18px; color: var(--olive); }

/* Sections */
.section { padding-top: 112px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.feature { background: var(--card); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.feature p { color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.icon svg { width: 24px; height: 24px; stroke: var(--lime); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.screens { overflow-x: auto; padding-bottom: 112px; }
.screens-row { display: flex; gap: 22px; min-width: 940px; justify-content: space-between; }
.screens figure { margin: 0; flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.screens .phone { width: 100%; max-width: 250px; border-width: 8px; border-radius: 36px; background: var(--ground); box-shadow: 0 20px 50px rgba(17,18,20,.16); }
.screens figcaption { font-weight: 600; font-size: 16px; }

/* Privacy (dark) */
.on-ink { background: var(--ink); color: var(--ground); }
.on-ink a { color: var(--lime); }
.privacy { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 112px; padding-bottom: 112px; }
.privacy-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.privacy-copy .pill { background: #2A3014; color: var(--lime); }
.privacy-copy .lede { color: var(--on-ink-muted); }
.privacy-copy a { font-weight: 600; }
.privacy-grid { flex: 1 1 500px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.privacy-grid div { background: var(--ink-2); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.privacy-grid h3 { font-size: 20px; }
.privacy-grid p { color: var(--on-ink-muted); font-size: 16px; }

/* Plans */
.plans { display: flex; flex-wrap: wrap; gap: 18px; }
.plan { flex: 1 1 340px; min-width: 0; background: var(--card); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 28px; }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: #2E3036; }
.plan-premium { background: var(--ink); color: var(--ground); }
.plan-premium ul { color: #DADCE0; }
.plan-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }

/* Closing CTA */
.get { padding-bottom: 112px; }
.get-card { background: var(--lime); border-radius: 36px; padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.get-card div { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.get-card h2 { font-size: clamp(30px, 4vw, 50px); }
.get-card p { font-size: 19px; color: var(--olive); }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 52px; display: flex; flex-direction: column; gap: 26px; }
.disclaimer { font-size: 15px; color: var(--muted-2); max-width: 800px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.footer-brand img { width: 28px; height: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.company { font-size: 14px; color: var(--muted-2); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 24px 96px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 12px; }
.legal .updated { color: var(--muted-2); font-size: 15px; margin-bottom: 36px; }
.legal h2 { font-size: 26px; letter-spacing: -0.01em; margin: 44px 0 14px; }
.legal h3 { font-size: 19px; margin: 26px 0 8px; }
.legal p, .legal li { color: #2E3036; }
.legal * + p, .legal * + address, .legal * + .table-scroll { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.legal .summary { background: var(--card); border-radius: 22px; padding: 26px 28px; margin-bottom: 8px; }
.legal .summary ul { margin-top: 10px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.legal th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.legal address { font-style: normal; }
