/* ReClaim, tryreclaim.io
   Design tokens mirror the actual app's Color.kt palettes (Black/White + Dark schemes) and the
   ReminderAccent warm amber used for "time made tangible", the site and the product share one
   visual language on purpose. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,400..600&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --ink: #0E0F11;
  --ink-soft: #3A3A3A;
  --paper: #FAF9F6;
  --paper-raised: #FFFFFF;
  --muted: #6B6A66;
  --line: #E4E2DC;
  --accent: #E4A13C;
  --accent-ink: #6B4712;
  --accent-soft: rgba(228, 161, 60, 0.14);
  --error: #B00020;

  --shadow: 0 1px 2px rgba(14,15,17,0.04), 0 12px 32px -16px rgba(14,15,17,0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1120px;
  --container-narrow: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECECEC;
    --ink-soft: #C7CBD3;
    --paper: #15171C;
    --paper-raised: #1B1D23;
    --muted: #9A9CA1;
    --line: #2A2D34;
    --accent: #F0B45C;
    --accent-ink: #F0B45C;
    --accent-soft: rgba(240, 180, 92, 0.14);
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -16px rgba(0,0,0,0.6);
  }
}
:root[data-theme="dark"] {
  --ink: #ECECEC; --ink-soft: #C7CBD3; --paper: #15171C; --paper-raised: #1B1D23;
  --muted: #9A9CA1; --line: #2A2D34; --accent: #F0B45C; --accent-ink: #F0B45C;
  --accent-soft: rgba(240, 180, 92, 0.14); --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -16px rgba(0,0,0,0.6);
}
:root[data-theme="light"] {
  --ink: #0E0F11; --ink-soft: #3A3A3A; --paper: #FAF9F6; --paper-raised: #FFFFFF;
  --muted: #6B6A66; --line: #E4E2DC; --accent: #E4A13C; --accent-ink: #6B4712;
  --accent-soft: rgba(228, 161, 60, 0.14); --shadow: 0 1px 2px rgba(14,15,17,0.04), 0 12px 32px -16px rgba(14,15,17,0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 0 0 10px 0;
  font-family: var(--font-body); font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }
p { margin: 0 0 1em; color: var(--ink-soft); text-wrap: pretty; }
.lede { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.3rem); color: var(--muted); max-width: 46ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }
section { padding: clamp(56px, 9vw, 116px) 0; }
.section-line { border-top: 1px solid var(--line); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1.5px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #241505; }
.btn-accent:hover { filter: brightness(1.06); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header, a floating pill, not a full-width bar ---------- */
.site-header-wrap { position: sticky; top: 0; z-index: 100; padding: 18px 16px 0; pointer-events: none; }
.site-header {
  width: min(1160px, 100%); margin: 0 auto; border-radius: 999px;
  background: color-mix(in srgb, var(--paper-raised) 55%, transparent);
  backdrop-filter: blur(11px) saturate(1.5);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -16px rgba(14,15,17,0.24), 0 2px 10px -4px rgba(14,15,17,0.10);
  pointer-events: auto;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; max-width: none; padding: 0 10px 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid var(--paper); border-right-color: transparent; transform: rotate(45deg); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; transition: background-color 0.15s ease, color 0.15s ease; }
.main-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--paper-raised); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  .theme-toggle .icon-sun { display: none; }
  .theme-toggle .icon-moon { display: block; }
  :root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
  :root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper-raised); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 96px; left: 16px; right: 16px; height: calc(100vh - 112px); border-radius: 20px; border: 1px solid var(--line); background: var(--paper-raised); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 10px 18px; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; overflow-y: auto; }
  .main-nav a { padding: 16px 14px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  body.nav-open .main-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .site-header .container { padding: 0 18px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 0.88rem; color: var(--muted); }
.hero-note svg { width: 16px; height: 16px; flex: none; color: var(--accent-ink); }

/* Phone mockup, built from real app copy/layout, not a photo */
.phone {
  width: min(300px, 78vw); margin-inline: auto; aspect-ratio: 9 / 19.5;
  background: var(--paper-raised); border-radius: 42px; border: 10px solid var(--ink);
  box-shadow: var(--shadow); position: relative;
}
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 84px; height: 20px; background: var(--ink); border-radius: 0 0 14px 14px; z-index: 2; }
/* Clipping lives on the inner screen layer, not .phone itself, the floating cards below are
   meant to hang outside the frame, and would get cut off if .phone clipped its overflow. */
.phone-screen { position: absolute; inset: 0; overflow: hidden; border-radius: 32px; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-float {
  position: absolute; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px 16px; font-size: 0.78rem; font-weight: 700; max-width: 190px;
}
.phone-float-1 { top: 14%; right: -16%; }
.phone-float-1 .sub { display: block; font-weight: 500; color: var(--muted); font-size: 0.72rem; margin-top: 3px; }
.phone-float-2 { bottom: 10%; left: -14%; display: flex; align-items: center; gap: 8px; }
.phone-float-2 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 980px) { .phone-float { display: none; } }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat {
  position: relative; overflow: hidden; text-align: left;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.stat::before {
  content: ""; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px;
  border-radius: 50%; background: var(--accent-soft);
}
.stat b {
  position: relative; display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; color: var(--accent-ink); margin-bottom: 12px;
}
.stat span { position: relative; display: block; font-size: 0.96rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature-grid > * { min-width: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--paper-raised); padding: 36px 32px; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin: 0; font-size: 0.96rem; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--muted); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; max-width: 62ch; }

/* ---------- Philosophy / quote ---------- */
.philosophy { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 76px); }
.philosophy blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2vw + 0.8rem, 2.1rem); line-height: 1.35; }
.philosophy cite { display: block; margin-top: 24px; font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }

/* ---------- FAQ (native details/summary, crawlable, zero-JS) ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; background: var(--ink); top: 50%; left: 50%; }
.faq-item summary .plus::before { width: 11px; height: 1.5px; translate: -50% -50%; }
.faq-item summary .plus::after { width: 1.5px; height: 11px; translate: -50% -50%; transition: opacity 0.15s ease; }
.faq-item[open] summary .plus::after { opacity: 0; }
.faq-item .faq-answer { padding: 0 4px 26px; max-width: 68ch; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent-soft); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lede { margin-inline: auto; margin-bottom: 30px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Waitlist form ---------- */
.waitlist-form { display: flex; gap: 10px; max-width: 440px; }
.waitlist-form input[type="email"] {
  flex: 1; padding: 15px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper-raised); color: var(--ink); font-family: var(--font-body); font-size: 0.98rem;
}
@media (max-width: 480px) { .waitlist-form { flex-direction: column; } }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.form-status { min-height: 1.3em; margin-top: 12px; font-size: 0.88rem; font-weight: 700; color: var(--accent-ink); }
.visually-hidden { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; margin-bottom: 56px; }
.footer-top > * { min-width: 0; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand p { max-width: 32ch; font-size: 0.92rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 0.94rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.footer-socials svg { width: 16px; height: 16px; }

/* ---------- Simple / prose pages (legal, about, etc.) ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 20px; }
.page-hero h1 { margin-bottom: 14px; }
.updated-badge { display: inline-block; font-size: 0.82rem; color: var(--muted); background: var(--paper-raised); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; margin-bottom: 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; margin-bottom: 0.5em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.callout { background: var(--paper-raised); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 20px 24px; margin: 2em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: 6px; display: block; }
.legal-toc { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px 28px; margin-bottom: 3em; }
.legal-toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 14px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; gap: 24px; }
.legal-toc a { color: var(--ink-soft); text-decoration: none; font-size: 0.94rem; }
.legal-toc a:hover { color: var(--accent-ink); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ---------- Contact / cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper-raised); padding: 32px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { font-size: 0.94rem; margin-bottom: 16px; }
.contact-card a.email { font-weight: 700; color: var(--accent-ink); text-decoration: none; font-size: 1.02rem; }
.contact-card a.email:hover { text-decoration: underline; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge { font-size: 0.82rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--paper-raised); border: 1px solid var(--line); color: var(--ink-soft); }

.job-empty { border: 1.5px dashed var(--line); border-radius: var(--radius-md); padding: 40px; text-align: center; margin-top: 40px; }
.job-empty p { max-width: 46ch; margin-inline: auto; }
