/* Fovely website. Same tokens as the extension (extension/ui/base.css). */
:root {
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, "Source Serif Pro", Georgia, Cambria, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg: #f2eee6; --glow: rgba(214, 138, 36, 0.14); --shell: rgba(40, 30, 16, 0.045); --line: rgba(40, 30, 16, 0.08);
  --core: #fbf9f4; --highlight: rgba(255, 255, 255, 0.95); --text: #1b1814; --muted: #6d665b; --faint: rgba(27, 24, 20, 0.1);
  --accent: #c7780f; --accent-soft: rgba(199, 120, 15, 0.12); --accent-glow: rgba(214, 138, 36, 0.35);
  --cta-bg: #1b1814; --cta-text: #f6f1e8; --shadow: 0 1px 2px rgba(60, 40, 10, 0.05), 0 18px 40px -18px rgba(60, 40, 10, 0.2);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0b09; --glow: rgba(242, 169, 59, 0.12); --shell: rgba(255, 244, 222, 0.035); --line: rgba(255, 244, 222, 0.08);
    --core: #161411; --highlight: rgba(255, 244, 222, 0.07); --text: #f3eee5; --muted: #968e81; --faint: rgba(243, 238, 229, 0.09);
    --accent: #f2a93b; --accent-soft: rgba(242, 169, 59, 0.13); --accent-glow: rgba(242, 169, 59, 0.5);
    --cta-bg: #f3eee5; --cta-text: #14120f; --shadow: 0 1px 1px rgba(0, 0, 0, 0.35), 0 24px 50px -20px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(90% 60% at 50% -10%, var(--glow), transparent 60%), var(--bg);
  min-height: 100dvh;
}
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* nav: a floating pill */
.nav {
  position: sticky; top: 16px; z-index: 5; width: max-content; max-width: calc(100% - 32px); margin: 16px auto 0;
  display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--core) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font: 500 18px/1 var(--serif); text-decoration: none; }
.logo { position: relative; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #f3ece0;
  background: radial-gradient(circle, rgba(242, 169, 59, 0.45), transparent 42%), linear-gradient(180deg, #2a251f, #0f0d0b); }
.logo svg { width: 26px; height: 26px; }
.logo i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffc46b; box-shadow: 0 0 6px 1px rgba(242, 169, 59, 0.8); }
.nav-links { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.pill-cta {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 16px; border-radius: 999px; border: 0;
  color: var(--cta-text); background: var(--cta-bg); font: 600 14px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.45s var(--ease);
}
.pill-cta span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cta-text) 14%, transparent); transition: transform 0.55s var(--ease); }
.pill-cta:hover span { transform: translateX(2px); }
.pill-cta:active { transform: scale(0.98); }
.pill-cta[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* hero */
.hero { display: grid; justify-items: center; text-align: center; gap: 26px; padding: 110px 0 90px; }
.mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.mark svg { width: 120px; height: 120px; overflow: visible; }
.mark path { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; animation: draw 1.6s var(--ease) 0.2s both; }
.mark i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #ffe2b0, #f2a93b 70%);
  box-shadow: 0 0 20px 7px var(--accent-glow), 0 0 60px 20px var(--accent-soft); animation: appear 1s var(--ease) 0.6s both, breathe 5s ease-in-out 1.6s infinite; }
@keyframes draw { from { stroke-dashoffset: 100; } }
@keyframes appear { from { opacity: 0; transform: scale(0.4); } }
@keyframes breathe { 50% { box-shadow: 0 0 26px 10px var(--accent-glow), 0 0 80px 28px var(--accent-soft); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px;
  font: 600 10.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); }
h1 { margin: 0; max-width: 14ch; font: 400 clamp(44px, 7vw, 76px)/1.02 var(--serif); letter-spacing: -0.03em; }
.lede { margin: 0; max-width: 58ch; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill-cta.big { height: 54px; padding: 0 7px 0 24px; font-size: 15px; }
.pill-cta.big span { width: 40px; height: 40px; }
.ghost { display: inline-flex; align-items: center; height: 54px; padding: 0 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); background: var(--shell); }

section { padding: 90px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; }
.section-head .eyebrow { justify-self: start; }
h2 { margin: 0; font: 400 clamp(32px, 4.5vw, 48px)/1.08 var(--serif); letter-spacing: -0.025em; max-width: 20ch; }
.sub { margin: 0; color: var(--muted); max-width: 60ch; }

/* double-bezel cards */
.shell { padding: 6px; border-radius: 30px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); }
.core { height: 100%; padding: 28px; border-radius: 24px; background: var(--core); box-shadow: inset 0 1px 0 var(--highlight), var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step .num { font: 400 40px/1 var(--serif); color: var(--accent); }
.step h3 { margin: 18px 0 8px; font: 400 23px/1.2 var(--serif); letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.plan .core { display: grid; gap: 18px; align-content: start; }
.plan h3 { margin: 0; font: 400 28px/1 var(--serif); }
.price { font: 400 44px/1 var(--serif); letter-spacing: -0.02em; }
.price small { font: 400 15px/1 var(--sans); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 4px; color: var(--accent); }
.plan.pro .shell, .plan.pro { position: relative; }
.plan.pro .core { box-shadow: inset 0 0 0 1.5px var(--accent), inset 0 1px 0 var(--highlight), var(--shadow), 0 0 60px -20px var(--accent-glow); }
.note { margin: 0; font-size: 13px; color: var(--muted); }

.faq { display: grid; gap: 10px; max-width: 760px; }
details { border-radius: 20px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 20px; }
summary { cursor: pointer; padding: 14px 0; font: 400 19px/1.3 var(--serif); list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { margin: 0 0 16px; color: var(--muted); }

footer { padding: 50px 0 60px; border-top: 1px solid var(--faint); margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* legal pages */
.legal { max-width: 760px; padding: 80px 24px 40px; margin: 0 auto; }
.legal h1 { font-size: clamp(38px, 6vw, 56px); max-width: none; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; max-width: none; }
.legal h3 { font: 600 16px/1.4 var(--sans); margin: 24px 0 6px; }
.legal p, .legal li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.legal ul { padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--faint); }
.legal th { font-weight: 600; }
.todo { background: #ffe08a; color: #3a2a00; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

.reveal { animation: rise 0.9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 70px 0 60px; }
  .steps, .plans { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
