/* Local Mail Export Pro: Manrope headings, Inter text (self-hosted, OFL), one blue accent (the add-on's own). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); }

:root {
  --bg: #fbfbfd;
  --panel: #ffffff;
  --ink: #14181f;
  --muted: #4f5665;
  --line: rgba(20, 24, 31, 0.1);
  --soft: #eef3fd;
  --accent: #0f5bd8;
  --accent-hover: #0a4bb5;
  --accent-ink: #ffffff;
  --radius: 10px;
  --radius-card: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 32px -12px rgba(16, 24, 40, 0.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 "Inter", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--panel); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1rem/1.2 "Manrope", sans-serif; }
.brand img { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 24px; font-size: 0.9375rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* type */
h1, h2, h3 { font-family: "Manrope", sans-serif; color: var(--ink); }
h1 { font-weight: 700; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; }
h2 { font-weight: 700; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h3 { font-weight: 700; font-size: 1.1875rem; line-height: 1.3; margin: 0 0 8px; }
.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
p { max-width: 62ch; }
.small { font-size: 0.875rem; color: var(--muted); }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 600 1rem/1 "Inter", sans-serif; text-decoration: none; cursor: pointer; transition: background 0.15s ease-out, border-color 0.15s ease-out; }
.button:hover { border-color: rgba(20, 24, 31, 0.24); color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 373px) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); }
.status-line { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 0.9375rem; font-weight: 600; color: var(--accent); }
.status-line::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.assure { margin: 16px 0 0; font-size: 0.9375rem; color: var(--muted); }

/* screenshots */
.shot { margin: 0; }
.shot button { all: unset; display: block; cursor: zoom-in; border-radius: var(--radius-card); }
.shot button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shot img { border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); background: #f6f7f9; }
.shot figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 0.9375rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 10px; }
.trust svg { width: 18px; height: 18px; flex: none; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* sections */
section.block { padding: 96px 0 0; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--soft); color: var(--accent); font: 700 0.9375rem/1 "Manrope", sans-serif; margin-bottom: 14px; }
.steps p { margin: 0; color: var(--muted); }
.proof-row { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 48px; margin-top: 56px; align-items: center; }
.proof-row p { color: var(--muted); margin: 0; }

.compare { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 700 0.9375rem/1.3 "Manrope", sans-serif; background: #f6f7fb; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:nth-child(2), .compare td:nth-child(3), .compare th:nth-child(2), .compare th:nth-child(3) { width: 22%; }

.facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 760px; }
.facts li { padding-left: 28px; position: relative; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 4px; top: 0.65em; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.facts strong { color: var(--ink); font-weight: 600; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; max-width: 840px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow); }
.plan h3 { margin-bottom: 4px; }
.price { font: 700 2.5rem/1.1 "Manrope", sans-serif; letter-spacing: -0.02em; margin: 12px 0 4px; }
.price span { font: 500 1rem/1 "Inter", sans-serif; color: var(--muted); letter-spacing: 0; }
.plan .note { margin: 0 0 20px; color: var(--muted); font-size: 0.9375rem; }
.plan .button { width: 100%; }
.buy-box { margin-top: 24px; max-width: 840px; }
.buy-box label { display: block; font-weight: 600; margin-bottom: 8px; }
.buy-box input { width: 100%; max-width: 420px; min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid rgba(20, 24, 31, 0.24); font: 400 1rem/1 "Inter", sans-serif; }
.offer { margin: 16px 0 0; font-weight: 600; color: var(--accent); }
.planned-box { margin-top: 24px; max-width: 840px; padding: 20px 24px; border-radius: var(--radius-card); background: var(--soft); }
.planned-box p { margin: 0 0 12px; }
.planned-box p:last-child { margin-bottom: 0; }
.message { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; }
.message.error { color: #a1261b; }

/* sales state: the Worker writes data-sales="open" once Pro is on sale */
html[data-sales="planned"] .when-open { display: none !important; }
html[data-sales="open"] .when-planned { display: none !important; }

/* faq */
.faq { margin-top: 28px; max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 700 1.125rem/1.4 "Manrope", sans-serif; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.final { padding: 96px 0; }
.final .box { border-radius: 20px; background: var(--panel); border: 1px solid var(--line); padding: 48px; text-align: center; box-shadow: var(--shadow); }
.final .box p { margin: 0 auto 24px; color: var(--muted); }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 0.875rem; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.site-foot a { color: var(--muted); }
.site-foot p { margin: 4px 0; max-width: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(12, 14, 18, 0.82); }
.lightbox[open] { display: flex; }
.lightbox img { max-width: min(1500px, 100%); max-height: 100%; width: auto; border-radius: 12px; background: #fff; }
.lightbox button { position: absolute; top: 16px; right: 16px; min-height: 44px; min-width: 44px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font: 600 1rem/1 "Inter", sans-serif; cursor: pointer; }

/* text pages */
.doc { max-width: 760px; padding: 64px 0 96px; }
.doc h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.doc h2 { font-size: 1.375rem; margin-top: 36px; }
.doc li { margin-bottom: 8px; }
.keybox { margin: 20px 0; padding: 20px; border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line); font: 600 1.25rem/1.4 "Manrope", sans-serif; letter-spacing: 0.02em; overflow-wrap: anywhere; }
form.claim { display: grid; gap: 14px; max-width: 460px; margin-top: 20px; }
form.claim label { font-weight: 600; display: grid; gap: 6px; }
form.claim input { min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid rgba(20, 24, 31, 0.24); font: 400 1rem/1 "Inter", sans-serif; }

.mobile-only, .shot .mobile-only { display: none; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .proof-row { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-nav { display: none; }
  .hero { padding: 36px 0 40px; }
  section.block { padding-top: 64px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .final { padding: 64px 0; }
  .final .box { padding: 32px 20px; }
  .compare { font-size: 0.9375rem; }
  .compare th, .compare td { padding: 12px 10px; }
  /* Phones get the readable crop; the wide screenshots would shrink their text under 12 px. */
  .desktop-only, .shot .desktop-only { display: none; }
  .mobile-only, .shot .mobile-only { display: block; }
}

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