/* ============================================
   Lumafit — design system
   Tokens from the Lumafit Flow spec.
   Colors shift with light / dark; sizes & spacing stay fixed.
   ============================================ */
:root {
  /* palette — light */
  --bg:          #F5F7FA;
  --surface:     #FFFFFF;
  --surface-alt: #EEF1F5;
  --border:      #E2E8F0;
  --text:        #0B1220;
  --text-2:      #5B6472;
  --accent:      #0EA5A4;
  --accent-ink:  #087a79;   /* darker accent for text on light bg */
  --success:     #16A34A;
  --danger:      #DC2626;
  --tab-inactive:#94A3B8;

  --accent-contrast: #FFFFFF;

  /* type */
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;

  /* spacing scale (px) */
  --xxs: 2px; --xs: 4px; --sm: 8px; --md: 12px;
  --lg: 16px; --xl: 24px; --xxl: 32px;

  /* radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;

  --max-w: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0B0F14;
    --surface:     #151B23;
    --surface-alt: #1D2530;
    --border:      #263040;
    --text:        #F2F5F8;
    --text-2:      #9AA7B5;
    --accent:      #2DD4BF;
    --accent-ink:  #2DD4BF;
    --success:     #22C55E;
    --danger:      #F87171;
    --tab-inactive:#64748B;
    --accent-contrast: #06201F;
  }
}
:root[data-theme="dark"] {
  --bg:          #0B0F14;
  --surface:     #151B23;
  --surface-alt: #1D2530;
  --border:      #263040;
  --text:        #F2F5F8;
  --text-2:      #9AA7B5;
  --accent:      #2DD4BF;
  --accent-ink:  #2DD4BF;
  --success:     #22C55E;
  --danger:      #F87171;
  --tab-inactive:#64748B;
  --accent-contrast: #06201F;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
img, svg { max-width: 100%; }
img { display: block; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

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

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover { background: #0c928f; }
:root[data-theme="dark"] .btn-primary:hover,
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .btn-primary:hover{ background:#28bfac; }}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(14,165,164,.22);
}
.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}
.nav-links a { text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--accent-ink); }
.nav-cta { display: inline-flex; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero h1 .hl { color: var(--accent-ink); }
.hero p.lead {
  margin: 22px 0 30px;
  font-size: 18px;
  color: var(--text-2);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--accent); }

/* App Store badge */
.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-md);
  padding: 10px 18px;
  text-decoration: none;
}
.badge-store small { display: block; font-size: 10px; opacity: .8; letter-spacing: .02em; }
.badge-store strong { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.badge-soon {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 8px 14px;
  border-radius: var(--r-pill);
}

/* ---------- phone mockup ---------- */
.phone {
  justify-self: center;
  width: 300px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 70px -30px rgba(8,30,40,.45), 0 2px 0 rgba(255,255,255,.04) inset;
  position: relative;
}
.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  padding: 18px 16px 10px;
  overflow: hidden;
}
.phone-notch {
  width: 42%;
  height: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  margin: -18px auto 10px;
}
.scr-greet { font-size: 13px; color: var(--text-2); font-weight: 600; }
.scr-date { font-size: 12px; color: var(--tab-inactive); margin-bottom: 14px; }

/* activity ring */
.ring-wrap { display: flex; justify-content: center; margin: 6px 0 16px; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { transform: rotate(-90deg); }
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-center b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.ring-center span { font-size: 11px; color: var(--text-2); font-weight: 600; }

.scr-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.scr-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 8px;
  text-align: center;
}
.scr-tile b { display: block; font-size: 16px; font-weight: 800; }
.scr-tile span { font-size: 10px; color: var(--text-2); font-weight: 600; }

.scr-log {
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--r-pill);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 11px;
  margin-bottom: 14px;
}
.scr-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 11px;
  margin-bottom: 8px;
}
.scr-row .ic {
  width: 30px; height: 30px; flex: none;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
}
.scr-row .ic svg { width: 17px; height: 17px; }
.scr-row .t { font-size: 12px; font-weight: 700; }
.scr-row .s { font-size: 10px; color: var(--text-2); }
.scr-row .v { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-2); }

.scr-tabs {
  display: flex; justify-content: space-around;
  border-top: 1px solid var(--border);
  padding-top: 8px; margin: 10px -16px 0;
}
.scr-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; font-weight: 600; color: var(--tab-inactive); }
.scr-tab svg { width: 18px; height: 18px; }
.scr-tab.on { color: var(--accent-ink); }

/* hero without app mockups — centered copy */
.hero-center .wrap { display: block; text-align: center; max-width: 820px; }
.hero-center h1 { margin: 16px auto 0; }
.hero-center p.lead { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .hero-note { justify-content: center; }

/* neutral feature visual — brand icon in a spotlight, no app UI */
.fr-visual {
  position: relative;
  min-height: 280px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: radial-gradient(170px 170px at 70% 28%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%), var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fr-visual .ring-deco, .fr-visual .ring-deco2 {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--border);
  border-radius: 50%;
}
.fr-visual .ring-deco  { width: 230px; height: 230px; opacity: .6; }
.fr-visual .ring-deco2 { width: 350px; height: 350px; opacity: .3; }
.fr-visual .big-ic {
  position: relative; z-index: 1;
  width: 104px; height: 104px;
  border-radius: 28px;
  background: var(--accent); color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 48px -18px color-mix(in srgb, var(--accent) 65%, transparent);
}
.fr-visual .big-ic svg { width: 52px; height: 52px; }
.fr-visual .cap {
  position: absolute; bottom: 20px; left: 0; right: 0;
  text-align: center; font-size: 13px; font-weight: 600; color: var(--text-2);
}

/* ---------- generic sections ---------- */
section { position: relative; }
.section-head { max-width: 52ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -0.03em; }
.section-head p { color: var(--text-2); margin-top: 14px; font-size: 17px; }

.pad { padding: 72px 0; }
.pad-sm { padding: 52px 0; }

/* trust strip */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.trust .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  justify-content: center; padding-top: 22px; padding-bottom: 22px;
}
.trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.trust-item svg { width: 19px; height: 19px; color: var(--accent); }

/* tabs showcase */
.tabs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.tab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  transition: transform .18s ease, border-color .18s ease;
}
.tab-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.tab-num {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--tab-inactive); text-transform: uppercase;
}
.tab-ic {
  width: 44px; height: 44px; margin: 14px 0 16px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
}
.tab-ic svg { width: 24px; height: 24px; }
.tab-card h3 { font-size: 19px; margin-bottom: 8px; }
.tab-card p { font-size: 14px; color: var(--text-2); margin: 0; }
.tab-card ul { margin: 14px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--text-2); }
.tab-card li { margin-bottom: 6px; }

/* feature split rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.rev .fr-media { order: -1; }
.fr-copy h3 { font-size: clamp(23px, 3vw, 30px); margin-bottom: 14px; letter-spacing: -0.02em; }
.fr-copy p { color: var(--text-2); font-size: 16px; margin: 0 0 16px; }
.fr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fr-list li { display: flex; gap: 11px; font-size: 15px; }
.fr-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }

.fr-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  min-height: 240px;
}

/* chips (activity types) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 600;
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }

/* mini bar chart */
.barchart { display: flex; align-items: stretch; gap: 10px; height: 150px; }
.barchart .bar { flex: 1; height: 100%; background: var(--surface-alt); border-radius: var(--r-sm) var(--r-sm) 4px 4px; position: relative; overflow: hidden; }
.barchart .bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.barlabels { display: flex; gap: 10px; margin-top: 8px; }
.barlabels span { flex: 1; text-align: center; font-size: 11px; color: var(--text-2); font-weight: 600; }

/* mini map */
.minimap {
  position: relative; height: 190px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-alt);
}
.minimap svg { width: 100%; height: 100%; display: block; }
.map-pin {
  position: absolute; width: 14px; height: 14px; border-radius: var(--r-pill);
  background: var(--accent); border: 2px solid var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* themes (accent swatches) */
.theme-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.theme-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  background: var(--surface);
  text-align: center;
}
.theme-dot { width: 54px; height: 54px; border-radius: var(--r-pill); margin: 0 auto 14px; box-shadow: 0 8px 20px -8px currentColor; }
.theme-card h4 { font-size: 16px; }
.theme-card span { font-size: 12px; color: var(--text-2); font-family: ui-monospace, Menlo, monospace; }
.theme-card em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 22px; }
.step .n {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-2); margin: 0; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 0; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent-ink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); font-size: 15px; margin: 0 0 18px; }

/* cta */
.cta-band {
  background: linear-gradient(145deg, var(--accent) 0%, #0c8f8c 70%, #0a7472 100%);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 240px at 80% -10%, rgba(255,255,255,.22), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 20ch; margin: 0 auto 16px; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 17px; max-width: 48ch; margin: 0 auto 28px; position: relative; }
.cta-band .btn-primary { background: #fff; color: #0a7472; position: relative; }
.cta-band .btn-primary:hover { background: #eafaf9; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  background: var(--surface-alt);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand b { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.footer-col p { font-size: 14px; color: var(--text-2); max-width: 34ch; margin: 0; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 0 0 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 14px; color: var(--text); font-weight: 500; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2);
}

/* ---------- legal pages ---------- */
.legal-header {
  padding: 48px 0 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.legal-header .back {
  font-size: 14px; font-weight: 600; color: var(--accent-ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
}
.legal-header h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; }
.legal-meta { color: var(--text-2); font-size: 14px; margin-top: 12px; }
.legal-content { max-width: 74ch; padding-bottom: 80px; }
.legal-content h2 { font-size: 21px; margin-top: 44px; margin-bottom: 14px; color: var(--text); letter-spacing: -0.02em; }
.legal-content p { color: var(--text-2); margin: 0 0 16px; }
.legal-content ul { color: var(--text-2); padding-left: 20px; margin: 0 0 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--accent-ink); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.legal-content th, .legal-content td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-content th { color: var(--text); font-weight: 700; }
.legal-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.legal-toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 34px;
}
.legal-toc b { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.legal-toc ol { margin: 12px 0 0; padding-left: 20px; columns: 2; font-size: 14px; }
.legal-toc a { color: var(--accent-ink); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { order: -1; }
  .tabs-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 26px; padding: 34px 0; }
  .feature-row.rev .fr-media { order: 0; }
  .tabs-grid, .theme-grid, .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .pad { padding: 52px 0; }
  .wrap { padding: 0 20px; }
}
