/* Kepful website. Design tokens are copied from the Kepful extension
   (page.css / welcome.css). Plus Jakarta Sans is self-hosted. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --bg: #FAF6F0;
  --bg-alt: #F4EDE3;
  --surface: #FFFFFF;
  --surface-hover: #FFF7ED;
  --text: #241C15;
  --text-muted: #7A6F63;
  --text-faint: #A79C8E;
  --border: rgba(41, 30, 20, 0.09);
  --border-strong: rgba(41, 30, 20, 0.18);

  --accent: #FF5A36;
  --accent-2: #FFB238;
  --accent-gradient: linear-gradient(135deg, #FF6A3D 0%, #FF7F45 45%, #FFB238 100%);
  --accent-soft: rgba(255, 90, 54, 0.10);
  --accent-soft-strong: rgba(255, 90, 54, 0.20);
  /* Darker coral for small text and links on ivory (AA contrast). */
  --accent-ink: #B8321A;

  --shadow-sm: 0 1px 2px rgba(36, 28, 21, 0.05);
  --shadow-md: 0 10px 28px -10px rgba(36, 28, 21, 0.16);
  --shadow-lg: 0 22px 48px -16px rgba(36, 28, 21, 0.24);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wrap: 1120px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--text); color: #fff; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap;
  color: var(--text); text-decoration: none;
  background: var(--accent-gradient);
  border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(255, 90, 54, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: saturate(1.08) brightness(1.03); box-shadow: 0 16px 30px -12px rgba(255, 90, 54, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-ghost {
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); filter: none; box-shadow: var(--shadow-md); }
.text-link { font-weight: 600; font-size: 16px; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--accent-ink); }
.cta-row { display: flex; justify-content: center; margin-top: 56px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background-color 0.25s, border-color 0.25s, backdrop-filter 0.25s; }
.nav.scrolled { background: rgba(250, 246, 240, 0.82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--border); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 8px; }
.brand .word { width: 88px; height: 30px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; border-radius: 8px; opacity: 0.8; }
.nav-links a:hover { opacity: 1; background: var(--accent-soft); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); cursor: pointer; }
.mobile-menu { padding: 8px 16px 16px; background: rgba(250, 246, 240, 0.97); border-bottom: 1px solid var(--border); }
.mobile-menu a { display: block; padding: 14px 8px; font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
h1 { font-size: 68px; font-weight: 600; line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-size: 40px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lead { margin-top: 20px; font-size: 17px; color: var(--text-muted); max-width: 640px; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-muted); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 40px; text-align: center; }
.glow { position: absolute; inset: 0 0 auto 0; height: 1000px; overflow: hidden; z-index: -1; pointer-events: none; }
.glow i { position: absolute; border-radius: 50%; filter: blur(56px); }
.glow .g1 { top: -140px; left: 50%; margin-left: -620px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(255, 90, 54, 0.38) 0%, transparent 70%); }
.glow .g2 { top: 60px; left: 50%; margin-left: 120px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(255, 178, 56, 0.42) 0%, transparent 70%); }
.glow .g3 { top: 520px; left: 50%; margin-left: -300px; width: 600px; height: 420px; background: radial-gradient(circle, rgba(255, 140, 70, 0.20) 0%, transparent 70%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 7px 16px 7px 12px;
  font-size: 14px; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-gradient); }
.hero h1 { max-width: 900px; margin: 0 auto; text-wrap: balance; }
.hero .lead { margin: 26px auto 0; font-size: 18px; max-width: 660px; }
.hero .for { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--text); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; font-size: 14.5px; color: var(--text-muted); }
.facts li { position: relative; }
.facts li + li::before { content: ""; position: absolute; left: -15px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--text-faint); }
.hero-shot { margin: 52px auto 0; width: 420px; max-width: 100%; }

/* ── Window frame ────────────────────────────────────────────────────── */
.frame {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(36, 28, 21, 0.06), 0 8px 20px -8px rgba(36, 28, 21, 0.14), 0 36px 70px -28px rgba(36, 28, 21, 0.32);
}
.frame .bar { display: flex; gap: 6px; height: 28px; padding: 0 14px; align-items: center; background: #F6F1E9; border-bottom: 1px solid var(--border); }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(41, 30, 20, 0.16); }
.frame img { width: 100%; height: auto; }
.frame-popup { border-radius: 22px; }

/* ── See it ──────────────────────────────────────────────────────────── */
.shots-main { max-width: var(--wrap); margin: 0 auto; }
.feature-row { display: grid; grid-template-columns: 2fr 3fr; align-items: center; gap: 64px; max-width: var(--wrap); margin: 96px auto 0; }
.feature-row.flip { grid-template-columns: 3fr 2fr; }
.fr-text h3 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; }
.fr-text p { margin-top: 16px; max-width: 420px; color: var(--text-muted); }
.fr-img { min-width: 0; }

/* ── Problem ─────────────────────────────────────────────────────────── */
.problem { text-align: center; }
.problem .body { max-width: 640px; margin: 24px auto 0; color: var(--text-muted); }
.problem .close { max-width: 720px; margin: 44px auto 0; font-size: 30px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 28px 34px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; font-weight: 700; font-size: 16px; color: var(--text); background: var(--accent-gradient); border-radius: 12px; }
.step p { margin-top: 10px; font-size: 16px; color: var(--text-muted); }

/* ── Cards (features, privacy) ───────────────────────────────────────── */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.card { flex: 0 0 calc((100% - 48px) / 3); padding: 30px 28px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.card .ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { margin-top: 8px; font-size: 16px; color: var(--text-muted); }
.privacy-note { max-width: 640px; margin: 40px auto 0; text-align: center; font-size: 15px; color: var(--text-muted); }
.privacy-note a { color: var(--accent-ink); font-weight: 600; }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.toggle { display: flex; justify-content: center; margin: -24px 0 44px; }
.toggle-in { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-sm); }
.toggle button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.toggle button[aria-pressed="true"] { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-soft-strong); }
.save { padding: 3px 9px; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.plan.pro { border: 2px solid var(--accent); box-shadow: 0 24px 56px -22px rgba(255, 90, 54, 0.38), var(--shadow-md); }
.plan .tag { margin-bottom: 4px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); }
.pill-pop { position: absolute; top: -14px; right: 28px; padding: 5px 13px; font-size: 12.5px; font-weight: 700; color: var(--text); background: var(--accent-gradient); border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(255, 90, 54, 0.6); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 62px; margin: 10px 0 6px; }
.price b { font-size: 48px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.price span { font-size: 15px; color: var(--text-muted); }
.price-sub { min-height: 26px; font-size: 14.5px; color: var(--text-muted); }
.plan ul { margin: 22px 0 30px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; gap: 13px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.plan li::before, .promises li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23B8321A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.founding { max-width: 880px; margin: 32px auto 0; padding: 22px 28px; text-align: center; font-size: 16px; background: rgba(255, 178, 56, 0.16); border: 1px solid rgba(255, 178, 56, 0.55); border-radius: var(--radius-md); }
.founding strong { font-weight: 700; }
.promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; max-width: 920px; margin: 36px auto 0; }
.promises li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text-muted); }
.price-note { max-width: 640px; margin: 24px auto 0; text-align: center; font-size: 14px; color: var(--text-muted); }
.promises li::before { width: 18px; height: 18px; top: 3px; background-size: 18px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 17px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; border-radius: var(--radius-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23B8321A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 8.5l6 6 6-6'/%3E%3C/svg%3E") center / 22px no-repeat; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 24px 22px; font-size: 16px; color: var(--text-muted); }

/* ── Final CTA ───────────────────────────────────────────────────────── */
.final { position: relative; overflow: hidden; isolation: isolate; padding: 88px 24px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.final i { position: absolute; z-index: -1; border-radius: 50%; filter: blur(56px); }
.final .f1 { top: -160px; left: -100px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255, 90, 54, 0.32) 0%, transparent 70%); }
.final .f2 { bottom: -180px; right: -80px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(255, 178, 56, 0.40) 0%, transparent 70%); }
.final h2 { max-width: 640px; margin: 0 auto; }
.final .lead { margin: 18px auto 0; }
.final .btn { margin-top: 36px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { margin-top: 60px; padding: 56px 0 48px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer .tagline { margin-top: 14px; font-size: 15px; color: var(--text-muted); max-width: 320px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer nav a { font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; padding: 6px 0; }
.footer nav a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }

/* ── Legal pages ─────────────────────────────────────────────────────── */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 24px; }
.legal h1 { font-size: 44px; line-height: 1.12; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 16px; color: var(--text-muted); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 7px; padding-left: 2px; }
.legal li::marker { color: var(--text-faint); }
.legal a { color: var(--accent-ink); font-weight: 500; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .meta { margin-bottom: 30px; font-size: 14px; color: var(--text-muted); }
.legal .note { margin: 22px 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.legal .note p { margin: 0; color: var(--text); }

/* ── Motion ──────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after { transition: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .card { flex-basis: calc((100% - 24px) / 2); }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 859px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 759px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .feature-row .fr-text { order: -1; }
  .fr-text h3 { font-size: 26px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 36px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .lead, .hero .lead { font-size: 16px; }
  .hero { padding: 40px 0 24px; }
  .hero-actions { gap: 18px; margin-top: 28px; }
  .facts { flex-direction: column; align-items: center; gap: 6px; }
  .facts li + li::before { display: none; }
  .hero-shot { margin-top: 36px; width: 340px; }
  .problem .close { font-size: 24px; margin-top: 32px; }
  .card { flex-basis: 100%; }
  .cta-row { margin-top: 40px; }
  .toggle { margin-top: -12px; margin-bottom: 36px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 30px 24px 26px; }
  .promises { flex-direction: column; align-items: flex-start; max-width: 420px; }
  .final { padding: 56px 20px; }
  .footer { margin-top: 36px; }
  .legal { padding: 36px 20px 8px; }
  .legal h1 { font-size: 32px; }
  .brand .word { width: 79px; height: 27px; }
  .nav-right .btn { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 380px) {
  .nav-right .btn { padding: 0 11px; font-size: 13.5px; }
  .nav-right { gap: 6px; }
}

/* Pro waitlist signup */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.waitlist { display: grid; gap: 12px; }
.wl-input {
  width: 100%; height: 48px; padding: 0 16px;
  font-family: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
}
.wl-input::placeholder { color: var(--text-muted); }
.wl-input:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
.wl-msg { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); text-align: center; }
.wl-msg.ok { padding: 14px 16px; font-size: 16px; font-weight: 600; color: var(--text); background: var(--accent-soft); border-radius: 12px; }
.wl-msg.err { color: var(--accent-ink); }
