/* JesRecap marketing site — design system
   Genre: jestype.com family DNA (floating pill nav, cream paper, bold display,
   dark pill CTAs, rounded white cards) rethemed with the JesRecap warm palette.
   Single source of truth for tokens; pages must use variables, never raw colors. */

@font-face { font-family: "DM Sans"; font-weight: 300; font-display: swap; src: url("/fonts/dm-sans-300.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/fonts/dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/dm-sans-400-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/fonts/dm-sans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("/fonts/dm-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-500.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f9f8f6;
  --bg-deep: #f3f1ec;
  --surface: #ffffff;
  --surface-dim: #faf9f7;
  --ink: #1a1a1a;
  --text-2: #4a3d33;
  --text-3: #8c7868;
  --text-4: #a89888;
  --line: #e8e5e0;
  --line-input: #e0dbd3;
  --line-soft: #f0ede8;
  --hover: #f5f3ef;
  --active: #ebe7e0;
  --dark: #2c2520;
  --dark-hover: #3d342e;
  --red: #ef4444;
  --red-soft: #fef2f2;
  --accent: #4ade80;
  --accent-ring: rgba(74, 222, 128, 0.15);
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --gold: #c4a862;
  --gold-bg: #fbf8f0;
  --gold-line: #ebe7d8;
  --console: #2c2520;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 8px 40px rgba(0, 0, 0, 0.12);
  --container: 1120px;
  --container-narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-deep { background: var(--bg-deep); }

.kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px;
  border-radius: 999px; background: var(--green-soft); color: var(--green);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
}
.kicker-gold { background: var(--gold-bg); color: #8a6d2f; border: 1px solid var(--gold-line); }

.display-xl { font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -0.03em; }
.display-lg { font-size: clamp(32px, 4.5vw, 44px); font-weight: 600; letter-spacing: -0.025em; }
.display-md { font-size: clamp(24px, 3vw, 30px); font-weight: 600; }
.display-serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }

.lead { color: var(--text-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.center { text-align: center; }
.section-heading { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-heading p { margin-top: 14px; color: var(--text-2); font-size: 17px; }

/* ---------- Nav ---------- */

.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 4px;
  padding: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 229, 224, 0.8); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.nav-brand { display: flex; align-items: center; gap: 9px; padding: 0 10px 0 6px; text-decoration: none; }
.nav-brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--dark); }
.nav-brand-mark img { width: 18px; height: 18px; }
.nav-brand-name { font-family: var(--serif); font-size: 18px; }
.nav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 7px 13px; border-radius: 999px; text-decoration: none;
  color: var(--text-2); font-size: 14px; font-weight: 500; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--hover); color: var(--ink); }
.nav-cta {
  margin-left: 4px; padding: 8px 18px; border-radius: 999px; text-decoration: none;
  background: var(--dark); color: #fff; font-size: 14px; font-weight: 500; transition: background .15s;
}
.nav-cta:hover { background: var(--dark-hover); }
.nav-toggle { display: none; padding: 8px; border: 0; background: transparent; border-radius: 999px; color: var(--text-2); }
.nav-toggle svg { width: 20px; height: 20px; display: block; }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; border-radius: 24px; width: 100%; max-width: 420px; justify-content: space-between; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; border-top: 1px solid var(--line-soft); margin-top: 8px; }
  .nav-links a { text-align: center; }
  .nav.open .nav-links { display: flex; }
  .nav-sep { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav.open .nav-cta { display: block; margin: 8px 0 0; text-align: center; width: 100%; }
}

/* ---------- Hero ---------- */

.hero { padding: 150px 0 80px; text-align: center; }
.hero .lead { max-width: 620px; margin: 20px auto 0; }
.hero-platform {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 8px 18px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); color: var(--text-2); font-size: 14px;
}
.hero-platform b { color: var(--ink); font-weight: 600; }
.hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 24px; color: var(--text-2); font-size: 14px; }
.hero-checks span { display: inline-flex; align-items: center; gap: 7px; }
.hero-checks svg { width: 15px; height: 15px; color: var(--green); }
.hero-note { margin-top: 16px; color: var(--text-3); font-size: 13px; }
.price-mark { background: var(--green-soft); padding: 0 10px; border-radius: 8px; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  border: 0; border-radius: 999px; background: var(--dark); color: #fff;
  font-size: 15px; font-weight: 500; text-decoration: none; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--dark-hover); }
.btn svg { width: 16px; height: 16px; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-input); }
.btn-secondary:hover { background: var(--hover); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.link-arrow { color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.link-arrow:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card);
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px) { .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid-2, .card-grid-4 { grid-template-columns: 1fr; } }

.card-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 10px; background: var(--hover); color: var(--text-2);
}
.card-icon svg { width: 20px; height: 20px; }
.card-link { text-decoration: none; transition: border-color .15s, transform .15s; display: block; }
.card-link:hover { border-color: var(--line-input); }
.card-cta { margin-top: 14px; display: inline-block; color: var(--green); font-size: 14px; font-weight: 500; }

.info-card {
  background: var(--gold-bg); border: 1px solid var(--gold-line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-md); padding: 20px 24px;
}

/* ---------- Stat band ---------- */

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 24px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.stat span { color: var(--text-3); font-size: 13px; }

/* ---------- Compare table ---------- */

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 15px 20px; text-align: center; border-top: 1px solid var(--line-soft); }
.compare thead th { border-top: 0; font-weight: 600; font-size: 15px; padding: 18px 20px; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text-2); }
.compare .us { background: #f2fbf5; font-weight: 500; }
.compare thead .us { color: var(--ink); }
.compare .yes { color: var(--green); font-weight: 600; }
.compare .no { color: var(--text-4); }
.compare .win { color: var(--green); font-weight: 600; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px;
  border-radius: 999px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 600;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 14px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; max-width: var(--container-narrow); margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 22px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 20px; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 0 18px; color: var(--text-2); font-size: 15px; }

/* ---------- Prose (guides, blog, legal) ---------- */

.prose { max-width: var(--container-narrow); margin: 0 auto; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; color: #33302b; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; color: #33302b; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--green); }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--hover); padding: 2px 6px; border-radius: 5px; }
.prose blockquote { margin: 0 0 16px; padding: 14px 20px; border-left: 3px solid var(--gold); background: var(--gold-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 16px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-dim); }

.page-header { padding: 150px 0 40px; text-align: center; }
.page-header .lead { max-width: 640px; margin: 18px auto 0; }
.article-meta { margin-top: 16px; color: var(--text-3); font-size: 14px; }

/* ---------- Pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; align-items: stretch; }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-card); }
.plan.featured { border-color: var(--dark); border-width: 2px; position: relative; }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 600; }
.plan h3 { font-size: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.plan-price b { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; }
.plan-price span { color: var(--text-3); font-size: 15px; }
.plan-copy { color: var(--text-2); font-size: 15px; margin-bottom: 22px; }
.plan ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.plan li svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 4px; color: var(--green); }
.plan .btn { justify-content: center; }

.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 920px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tier-grid { grid-template-columns: 1fr; } }
.tier {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 20px 22px; text-align: center; box-shadow: var(--shadow-card);
}
.tier.featured { border: 2px solid var(--dark); }
.tier .plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tier-devices { font-size: 15px; font-weight: 600; }
.tier-price { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.tier-price span { font-size: 14px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.tier-per { color: var(--text-3); font-size: 12.5px; margin-bottom: 14px; }
.tier .btn { margin-top: auto; }

/* ---------- Dark CTA band ---------- */

.cta-band { background: var(--console); border-radius: var(--radius-xl); padding: 64px 32px; text-align: center; color: #f9f8f6; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { max-width: 560px; margin: 14px auto 0; color: #c4b8ac; font-size: 16px; }
.cta-band .btn { background: #f9f8f6; color: var(--ink); }
.cta-band .btn:hover { background: #fff; }
.cta-band .btn-secondary { background: transparent; color: #f9f8f6; border-color: #4a3d33; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.06); }

/* ---------- Footer ---------- */

.footer { margin-top: 88px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; padding: 56px 0 40px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.footer-brand .nav-brand-mark { width: 26px; height: 26px; }
.footer-brand .nav-brand-mark img { width: 16px; height: 16px; }
.footer-brand span { font-family: var(--serif); font-size: 17px; }
.footer-tagline { color: var(--text-3); font-size: 13px; line-height: 1.5; max-width: 220px; }
.footer h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 14px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col a { color: var(--text-2); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 0 26px; border-top: 1px solid var(--line-soft); color: var(--text-3); font-size: 13px; }

/* ---------- Workflow demo embed ---------- */

.workflow-embed { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-float); background: var(--surface); }
.workflow-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9.6; border: 0; }
@media (max-width: 720px) { .workflow-embed iframe { aspect-ratio: 4 / 5; } }

/* ---------- Badge row ---------- */

.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }

/* ---------- Breadcrumb ---------- */

.crumbs { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; color: var(--text-3); font-size: 13px; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Store forms (success / recover / manage) ---------- */

.store-card { max-width: 560px; margin: 0 auto; }
.store-card label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.store-card input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-input); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.store-card input:focus-visible { outline: 3px solid rgba(138, 109, 47, 0.3); outline-offset: 2px; }
.store-card button { margin-top: 14px; cursor: pointer; border: 0; font: inherit; }
.store-card button:disabled { cursor: wait; opacity: 0.6; }
.form-status { min-height: 22px; margin: 14px 0 0; color: var(--text-2); font-size: 14px; }
.form-status.error { color: #a83d34; }
.form-status.success { color: #347958; }
.license-box { display: none; margin-top: 22px; padding: 20px; border: 1px solid var(--gold-line); border-radius: 12px; background: var(--gold-bg); }
.license-box.visible { display: block; }
.license-box code { display: block; margin: 8px 0 14px; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(17px, 4vw, 24px); font-weight: 500; letter-spacing: 0.08em; overflow-wrap: anywhere; }
.license-table { width: 100%; margin-top: 18px; border-collapse: collapse; }
.license-table td { padding: 10px 0; border-top: 1px solid var(--line-soft); color: var(--text-2); font-size: 14px; }
.license-table td:last-child { text-align: right; color: var(--ink); }
