/* =====================================================================
   OPENDOT — design tokens
   ---------------------------------------------------------------------
   Palette: "ink" (near-black, green-black undertone) for the emotional
   register of the product — the silence after you hit send — paired
   with "mist" (a cool, pale surface, not warm cream) for the sections
   that show the product actually working. One signal color: the teal
   that already ships inside the extension's popup, so the site and the
   product speak the same visual language. A second, quieter accent —
   ember — marks the "waiting" state, the opposite of signal.

   Type: Instrument Serif carries the voice (used large, in italics,
   sparingly). Inter carries the reading. IBM Plex Mono carries data —
   the same rule the extension already follows: numbers and timestamps
   read as telemetry, not marketing.
   ===================================================================== */

:root {
  /* ---- color ---- */
  --ink:        #0B1310;
  --ink-raised: #101A16;
  --ink-line:   rgba(240, 245, 243, 0.10);
  --ink-line-strong: rgba(240, 245, 243, 0.18);

  --mist:       #EFF3F1;
  --mist-card:  #FFFFFF;
  --mist-line:  rgba(11, 19, 16, 0.10);

  --paper-text:   #0B1310;
  --paper-text-soft: #55625C;

  --ink-text:     #F3F6F4;
  --ink-text-soft: #9AACA5;
  --ink-text-faint: #7A8981;

  --signal:      #17B897;
  --signal-soft: rgba(23, 184, 151, 0.14);
  --signal-deep: #0F766E;

  --ember:       #E8895A;
  --ember-soft:  rgba(232, 137, 90, 0.14);

  --focus:       #6FE0C9;

  /* ---- type ---- */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- scale ---- */
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: 9rem;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-full: 999px;

  --container: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 860px) {
  :root { --space-6: 9rem; --space-7: 12rem; }
}

/* ---------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

ul { padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-4); }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------
   Type
   --------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.on-mist .eyebrow { color: var(--signal-deep); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
}

.display em, em.accent {
  font-style: italic;
  color: var(--signal);
}

.on-mist .display em, .on-mist em.accent { color: var(--signal-deep); }

.h1 { font-size: clamp(2.6rem, 4.6vw + 1rem, 5.4rem); }
.h2 { font-size: clamp(2rem, 3vw + 1rem, 3.4rem); }
.h3 { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); }

.lede {
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  color: var(--ink-text-soft);
  max-width: 46ch;
}

.on-mist .lede { color: var(--paper-text-soft); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.on-mist { color: var(--paper-text); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-signal {
  background: var(--signal);
  color: #04231C;
  box-shadow: 0 0 0 0 rgba(23,184,151,0);
}
.btn-signal:hover { box-shadow: 0 10px 30px -8px rgba(23,184,151,0.55); }

.btn-ghost-dark {
  background: transparent;
  border: 1px solid var(--ink-line-strong);
  color: var(--ink-text);
}
.btn-ghost-dark:hover { border-color: var(--signal); color: var(--signal); }

.btn-ghost-light {
  background: transparent;
  border: 1px solid var(--mist-line);
  color: var(--paper-text);
}
.btn-ghost-light:hover { border-color: var(--signal-deep); color: var(--signal-deep); }

.btn-ink {
  background: var(--ink);
  color: var(--mist);
}
.btn-ink:hover { background: #060B09; }

.btn-sm { padding: 0.6em 1.15em; font-size: 0.85rem; }

/* ---------------------------------------------------------------------
   Section rhythm
   --------------------------------------------------------------------- */
.section {
  padding-block: var(--space-6);
}

.section-tight { padding-block: var(--space-5); }

.section-mist {
  background: var(--mist);
  color: var(--paper-text);
}

.divider {
  height: 1px;
  background: var(--ink-line);
}
.on-mist .divider { background: var(--mist-line); }

/* ---------------------------------------------------------------------
   Reveal-on-scroll
   --------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Nav
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  background: rgba(11, 19, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--ink-line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink-text);
  text-decoration: none;
}

.brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.6px solid var(--signal);
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.92rem;
  color: var(--ink-text-soft);
}
.nav-links a { text-decoration: none; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink-text); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

.nav-cta { display: flex; align-items: center; gap: var(--space-3); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(3rem, 6vw, var(--space-6));
  padding-bottom: var(--space-6);
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  background:
    radial-gradient(60% 55% at 72% 20%, rgba(23,184,151,0.20), transparent 70%),
    radial-gradient(40% 40% at 12% 60%, rgba(232,137,90,0.08), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-4); }
}

.hero-copy .eyebrow { margin-bottom: var(--space-2); }

.hero-copy .h1 { max-width: 14ch; }

.hero-copy .lede { margin-top: var(--space-3); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-text-faint);
}

/* -- the signal: the signature element -- */
.signal-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin-inline: auto;
}

.signal-field {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,184,151,0.16), transparent 65%);
}

.signal-ring {
  position: relative;
  width: 58%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 1.5px solid var(--ink-line-strong);
  display: grid;
  place-items: center;
}

.signal-ring::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--signal);
  opacity: 0.35;
  animation: ring-pulse 4.2s var(--ease) infinite;
}

.signal-dot {
  width: 15%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0;
  transform: scale(0.4);
  box-shadow: 0 0 0 0 rgba(23,184,151,0.5);
  animation: dot-appear 4.2s var(--ease) infinite;
}

.signal-caption {
  position: absolute;
  bottom: -2.6rem;
  left: 50%;
  translate: -50% 0;
  text-align: center;
}

.signal-caption span {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-text-soft);
}

.signal-caption .cap-sent { animation: cap-sent 4.2s ease infinite; }
.signal-caption .cap-opened {
  color: var(--signal);
  animation: cap-opened 4.2s ease infinite;
}

@keyframes ring-pulse {
  0%, 52%   { opacity: 0.35; transform: scale(1); }
  62%       { opacity: 0.9;  transform: scale(1.14); }
  78%, 100% { opacity: 0.35; transform: scale(1); }
}

@keyframes dot-appear {
  0%, 55%   { opacity: 0; transform: scale(0.4); }
  68%       { opacity: 1; transform: scale(1.15); box-shadow: 0 0 24px 4px rgba(23,184,151,0.45); }
  80%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px 1px rgba(23,184,151,0.3); }
}

@keyframes cap-sent {
  0%, 55%   { opacity: 1; }
  63%, 100% { opacity: 0; }
}
@keyframes cap-opened {
  0%, 60%   { opacity: 0; }
  70%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .signal-ring::before { animation: none; opacity: 0.6; }
  .signal-dot { animation: none; opacity: 1; transform: scale(1); box-shadow: 0 0 12px 1px rgba(23,184,151,0.3); }
  .cap-sent { display: none; }
  .cap-opened { animation: none; opacity: 1; }
}

/* =====================================================================
   Stat strip
   ===================================================================== */
.stat-strip {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

@media (min-width: 720px) {
  .stat-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .stat-strip > div { padding-inline: var(--space-3); }
  .stat-strip > div + div { border-left: 1px solid var(--ink-line); }
}

.stat-strip .stat-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--signal);
}

.stat-strip .stat-label {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-text-soft);
}

/* =====================================================================
   Inbox mockup (the problem / the fix)
   ===================================================================== */
.mockup-card {
  background: var(--mist-card);
  border-radius: var(--radius-l);
  border: 1px solid var(--mist-line);
  box-shadow: 0 30px 60px -30px rgba(11,19,16,0.25);
  overflow: clip;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--mist-line);
}
.mockup-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(11,19,16,0.12);
}

.mockup-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--mist-line);
}
.mockup-row:last-child { border-bottom: 0; }

.mockup-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.4px solid rgba(11,19,16,0.18);
  flex: none;
}
.mockup-row.is-opened .mockup-dot {
  border-color: var(--signal-deep);
  background: var(--signal-deep);
}

.mockup-row .who { font-weight: 600; font-size: 0.92rem; }
.mockup-row .what {
  font-size: 0.86rem;
  color: var(--paper-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-row .status {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--paper-text-soft);
  white-space: nowrap;
}
.mockup-row.is-opened .status { color: var(--signal-deep); }

.split-visual {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .split-visual { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .split-visual.reverse { direction: rtl; }
  .split-visual.reverse > * { direction: ltr; }
}

/* =====================================================================
   Accuracy — classification pills
   ===================================================================== */
.log-panel {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  padding: var(--space-3);
}

.log-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-3);
  align-items: start;
  padding-block: var(--space-2);
}
.log-line + .log-line { border-top: 1px solid var(--ink-line); }

.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.3em 0.7em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  align-self: start;
}
.pill-human   { background: var(--signal-soft); color: var(--signal); }
.pill-mute    { background: rgba(240,245,243,0.08); color: var(--ink-text-soft); }

.log-line p { font-size: 0.92rem; color: var(--ink-text-soft); }
.log-line p strong { color: var(--ink-text); font-weight: 600; }

/* =====================================================================
   Steps (real sequence — rendered as a signal line, not numerals)
   ===================================================================== */
.steps {
  display: grid;
  gap: var(--space-4);
  position: relative;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
}

.step { position: relative; padding-top: var(--space-4); }

.step-node {
  position: absolute;
  top: 0; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.6px solid var(--ink-line-strong);
}
.step[data-state="filled"] .step-node {
  border-color: var(--signal);
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

.step-rail {
  position: absolute;
  top: 6px; left: 6px;
  width: 100%;
  height: 1.6px;
  background: var(--ink-line-strong);
}
@media (min-width: 860px) {
  .step:last-child .step-rail { display: none; }
}
@media (max-width: 859px) {
  .step-rail { display: none; }
}

.step h3 { margin-top: var(--space-2); }
.step p  { margin-top: 0.5rem; color: var(--ink-text-soft); font-size: 0.95rem; }

/* =====================================================================
   Pricing
   ===================================================================== */
.pricing-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 780px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}

.price-card {
  position: relative;
  border-radius: var(--radius-l);
  padding: var(--space-4);
  border: 1px solid var(--mist-line);
  background: var(--mist-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}


.price-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 0.38em 0.8em;
  border-radius: var(--radius-full);
  background: var(--signal-soft);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card.is-pro {
  background: var(--ink);
  border-color: var(--ink-line-strong);
  color: var(--ink-text);
  box-shadow: 0 40px 70px -30px rgba(11,19,16,0.45);
}

.price-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.6px solid var(--signal-deep);
}
.price-card.is-pro .price-dot {
  border-color: var(--signal);
  background: var(--signal);
}

.price-tier {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-text-soft);
}
.price-card.is-pro .price-tier { color: var(--ink-text-soft); }

.price-value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}
.price-value sup {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  vertical-align: super;
  color: var(--paper-text-soft);
}
.price-card.is-pro .price-value sup { color: var(--ink-text-soft); }

.price-sub {
  font-size: 0.85rem;
  color: var(--paper-text-soft);
}
.price-card.is-pro .price-sub { color: var(--ink-text-soft); }

.price-features { display: flex; flex-direction: column; gap: 0.7rem; }
.price-features li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.price-features li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex: none;
  transform: translateY(-3px);
}

.price-card .btn { justify-content: center; margin-top: auto; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-item {
  border-top: 1px solid var(--ink-line);
  padding-block: var(--space-3);
}
.faq-item:last-child { border-bottom: 1px solid var(--ink-line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-q .plus {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ink-line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-item.is-open .plus { transform: rotate(45deg); border-color: var(--signal); color: var(--signal); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding-top: var(--space-2);
  color: var(--ink-text-soft);
  max-width: 62ch;
  font-size: 0.96rem;
}

/* =====================================================================
   Final CTA
   ===================================================================== */
.cta-band {
  text-align: center;
  padding-block: var(--space-6);
}
.cta-band .display { max-width: 20ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  border-top: 1px solid var(--ink-line);
  padding-block: var(--space-4);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.88rem;
  color: var(--ink-text-soft);
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink-text); }

.footer-fine {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-text-faint);
}

/* =====================================================================
   Privacy page
   ===================================================================== */
.legal {
  max-width: 74ch;
  margin-inline: auto;
}
.legal h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li {
  color: var(--ink-text-soft);
  font-size: 0.98rem;
  margin-top: 0.8em;
}
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal a { color: var(--signal); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink-text); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-2);
  font-size: 0.92rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 0.6em 0.8em;
  border: 1px solid var(--ink-line);
  color: var(--ink-text-soft);
}
.legal th { color: var(--ink-text); font-weight: 600; }
