/* Rekko marketing site. One shared stylesheet. Direction A: dark, matches the app. */

:root {
  --bg: #0E1211;
  --bg-alt: #121816;
  --card: #18201E;
  --border: #24302D;
  --text: #E8EEEC;
  --muted: #B5C2BF;
  --dim: #8A9895;
  --accent: #2BB5A3;
  --accent-hover: #8EE6D9;
  --on-accent: #06201C;
  --radius: 16px;
  --max: 1200px;
  --pad: 32px;
  --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  line-height: 1.12;
  margin: 0;
}

p { margin: 0 0 16px; }

:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
}
.skip-link:focus { top: 12px; }

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

/* Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 17, 0.94);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(14, 18, 17, 0.82); backdrop-filter: blur(14px); }
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
}
.wordmark:hover { color: var(--accent-hover); }

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--accent-hover); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 15px; }

.btn.is-disabled,
.btn[aria-disabled="true"] {
  background: var(--card);
  color: var(--dim);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn.is-disabled:hover,
.btn[aria-disabled="true"]:hover { background: var(--card); color: var(--dim); border-color: var(--border); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero -------------------------------------------------------------- */
.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.03em; margin-bottom: 22px; }
.hero-body { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-note { margin: 18px 0 0; font-size: 15px; color: var(--dim); }

.shot {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.shot img { width: 100%; }

/* Sections ---------------------------------------------------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin-bottom: 16px; }
.section-intro { font-size: 18px; color: var(--muted); max-width: 720px; margin-bottom: 44px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 16px; margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s ease; }
a.card:hover { border-color: var(--accent); }
a.card:hover h3 { color: var(--accent-hover); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.split p { color: var(--muted); font-size: 18px; }
.fine { font-size: 14px; color: var(--dim); }

/* Founder ----------------------------------------------------------- */
.founder-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}
.founder-card h2 { margin-bottom: 20px; }
.founder-card p { color: var(--muted); }
.founder-card p:last-child { margin-bottom: 0; }

/* Pricing ----------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; }
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.price-card.featured { border-color: var(--accent); }
.price-name { font-size: 15px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.price-amount { font-family: var(--font-head); font-weight: 700; font-size: 46px; line-height: 1.05; letter-spacing: -0.02em; }
.price-period { font-family: var(--font-body); font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-sub { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.price-list { list-style: none; margin: 22px 0 26px; padding: 0; }
.price-list li { position: relative; padding: 6px 0 6px 26px; color: var(--muted); font-size: 16px; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.price-note { margin-top: 28px; color: var(--muted); max-width: 720px; }

/* Page header (inner pages) ---------------------------------------- */
.page-head { padding-top: 64px; padding-bottom: 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.03em; margin-bottom: 16px; }
.page-head .lede { font-size: 19px; color: var(--muted); max-width: 760px; margin-bottom: 0; }
.crumbs { font-size: 14px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Prose / articles -------------------------------------------------- */
.prose { max-width: 780px; padding-bottom: 80px; }
.prose h2 { font-size: 28px; margin: 44px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
}
.prose .callout p { margin: 0; }
.check-note {
  display: inline;
  background: #3a2f0b;
  color: #ffe9a6;
  border: 1px dashed #b8923a;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.92em;
}

.content-wrap { max-width: 820px; padding-bottom: 80px; }
.content-wrap .card { margin-bottom: 20px; }
.content-wrap .card p, .content-wrap .card li { color: var(--muted); font-size: 16px; }
.content-wrap .card ul, .content-wrap .card ol { padding-left: 22px; margin: 0 0 16px; }
.content-wrap .card strong { color: var(--text); font-weight: 600; }
.contact-row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--border); }
.contact-label { width: 96px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* Comparison table -------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--muted); }
.compare-table thead th { font-family: var(--font-head); font-size: 17px; color: var(--text); background: var(--bg-alt); }
.compare-table tbody th { color: var(--text); font-weight: 600; width: 22%; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .col-rekko { background: rgba(43, 181, 163, 0.08); color: var(--text); }
.compare-table thead .col-rekko { color: var(--accent-hover); }
.compare-footnote { font-size: 14px; color: var(--dim); max-width: 860px; margin-top: 24px; }

/* Release notes ----------------------------------------------------- */
.release { padding: 36px 0; border-top: 1px solid var(--border); }
.release:first-of-type { border-top: 0; padding-top: 0; }
.release h2 { font-size: 30px; margin: 0 0 4px; }
.release .meta { color: var(--dim); font-size: 15px; margin-bottom: 18px; }
.release h3 { font-size: 17px; margin: 20px 0 8px; color: var(--accent); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Footer ------------------------------------------------------------ */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.footer-brand .wordmark { display: inline-block; margin-bottom: 12px; }
.health-note { font-size: 14px; color: var(--muted); max-width: 560px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; align-content: start; }
.footer-links a { display: inline-block; padding: 6px 0; font-size: 15px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-hover); text-decoration: underline; }
.copyright { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; color: var(--dim); }

/* Responsive -------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero-shot { order: -1; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .price-grid, .footer-grid { grid-template-columns: 1fr; }
  .founder-card { padding: 28px 22px; }
  .header-inner { gap: 4px 16px; }
  .wordmark { margin-right: 0; flex: 1 1 auto; }
  .main-nav { order: 3; flex: 1 1 100%; }
  .main-nav ul { gap: 0 16px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .store-buttons { flex-direction: column; }
  .btn-small { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.content-wrap .card h2 { font-size: 24px; margin-bottom: 14px; }
