/* ============================================================
   Flow Automation - site stylesheet

   Layout / geometry / type language extracted from replymer.com
   (dembrandt, 2026-08-24): pill controls, 14px cards, hairline
   borders, soft elevation, Poppins 800 display.

   Colour comes from the EXTENSION itself
   (extension/src/ui/side-panel/styles.css + store artwork):
   brand teal #00e3c0 on near-black #060607, warm light theme
   #f7f4ee / #241f16, with #008a76 as the AA-safe teal for light
   surfaces. See DESIGN.md.
   ============================================================ */

:root {
  /* light surface + ink (extension light theme) */
  --white:   #ffffff;
  --soft:    #f7f4ee;
  --soft-2:  #f0ebdf;
  --edge:    #ebe4d6;
  --line:    rgba(36, 31, 22, 0.12);
  --line-2:  rgba(36, 31, 22, 0.24);
  --ink:     #241f16;
  --ink-2:   #3d3629;
  --body:    #585044;
  --muted:   #867c6a;

  /* brand teal */
  --teal:       #00e3c0;   /* --brand-teal — glow, dark surfaces only */
  --teal-soft:  #00d3b3;
  --primary:    #008a76;   /* AA-safe teal for light surfaces */
  --primary-700:#00705f;
  --primary-fg: #f4fffc;

  /* extension accent set */
  --sky:     #38bdf8;
  --pop:     #a78bfa;
  --success: #4ade80;
  --warning: #ffb020;
  --coral:   #ef4444;

  /* near-black surfaces (extension dark theme) */
  --night:      #060607;
  --night-2:    #0a0a0d;
  --night-3:    #0e0e11;
  --night-fg:   #eeeef1;
  --night-fg-2: #c6c7ce;
  --night-muted:#9a9aa6;
  --night-line: rgba(154, 154, 166, 0.20);

  /* composites */
  --grad-brand: linear-gradient(96deg, #008a76, #00c4a6);
  --grad-glow:  linear-gradient(96deg, #00e3c0, #38bdf8);
  --tint-teal:  linear-gradient(160deg, #edfbf7, #ffffff);
  --tint-warm:  linear-gradient(160deg, #fbf7ef, #ffffff);
  --dark:       linear-gradient(140deg, #060607, #0e0e11);

  /* elevation */
  --sh-btn: 0 8px 24px rgba(0, 138, 118, 0.30);
  --sh-1:   0 2px 12px rgba(36, 31, 22, 0.06);
  --sh-2:   0 18px 44px rgba(36, 31, 22, 0.14);
  --sh-3:   0 30px 70px -30px rgba(6, 6, 7, 0.55);
  --sh-teal:0 24px 60px -20px rgba(0, 227, 192, 0.28);

  /* geometry */
  --r-sm:   10px;
  --r-card: 14px;
  --r-lg:   22px;
  --r-pill: 100px;
  --maxw:   1120px;

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--white); }
body {
  font-family: var(--font);
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(0, 227, 192, 0.28); color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--night); color: var(--teal); padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
}
.h3 { font-size: 1.45rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.13rem; color: var(--body); max-width: 60ch; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase; color: var(--primary);
  margin-bottom: 10px;
}
code, .mono { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--soft-2); border-radius: 6px; padding: 1px 6px; color: var(--ink-2); }

/* ---------- buttons + pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--r-pill); font-size: 0.94rem; font-weight: 600;
  padding: 11px 26px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--sh-btn); }
.btn--primary:hover { background: var(--primary-700); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--glow { background: var(--teal); color: #020807; box-shadow: 0 8px 28px rgba(0, 227, 192, 0.35); }
.btn--glow:hover { background: var(--teal-soft); }
.btn--sm { padding: 8px 18px; font-size: 0.88rem; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--body); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 7px 14px; font-size: 0.81rem; font-weight: 500;
  box-shadow: var(--sh-1);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.tag {
  display: inline-block; background: var(--primary); color: var(--primary-fg);
  border-radius: var(--r-pill); padding: 3px 10px;
  font-size: 0.69rem; font-weight: 700; letter-spacing: 0.03em;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .store-btn:hover, .doc__card:hover { transform: none; }
  .cta__bot { animation: none !important; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.nav__row { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand__mark { width: 32px; height: 32px; flex: none; border-radius: 9px; }
.brand small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; line-height: 1.2; }
.nav__links { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
.nav__links a { font-size: 0.91rem; font-weight: 500; color: var(--body); transition: color .18s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav__links + .nav__cta { margin-left: 0; }

/* ---------- hero: vertical rhythm measured off replymer.com @1920x900 ----------
   nav 65 | .wrap top 149 | h1 214 (h149) | sub 383 (h87) | cta 500 | pills 582
   | avatars 638 | proof 686 | product shot 742. Every margin below is theirs.   */
.hero { background: var(--tint-teal); padding: 84px 0 0; text-align: center; }
.hero .display { max-width: 900px; margin: 26px auto 20px; }
.hero__sub { max-width: 680px; margin: 0 auto 30px; font-size: 1.13rem; color: var(--body); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 34px; }

/* ---------- family row + social proof (replymer's engine row) ---------- */
.family__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 20px; }
.family__pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 18px 8px 10px; box-shadow: var(--sh-1);
  font-size: 0.94rem; font-weight: 600; color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.family__pill:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--sh-2); }
.family__pill img { width: 24px; height: 24px; border-radius: 7px; flex: none; }
.family__pill em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.84rem; }

.avatars { display: flex; justify-content: center; margin-bottom: 10px; }
.avatars img {
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff;
  margin-left: -10px; box-shadow: var(--sh-1); background: #fff; object-fit: cover;
}
.avatars img:first-child { margin-left: 0; }
.family__count { font-size: 0.97rem; color: var(--muted); }
.family__count b { color: var(--ink); font-weight: 700; }

/* ---------- lead product shot (replymer's .browser) ---------- */
.mock { background: linear-gradient(180deg, #edfbf7 0 46%, var(--white) 46%); padding: 34px 0 84px; }
.browser {
  max-width: 980px; margin: 0 auto; background: var(--night);
  border-radius: 18px; overflow: hidden;
  border: 0.8px solid var(--line);
  box-shadow: 0 40px 100px rgba(6, 6, 7, 0.18);
}
.browser img { width: 100%; height: auto; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }
.section__head .h2 { margin: 14px 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 26px; box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.card .h3 { margin: 14px 0 10px; }
.card p { font-size: 0.97rem; }
.card ul { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.card li { position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--body); }
.card li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary);
}
.card--tint-teal { background: var(--tint-teal); }
.card--tint-warm { background: var(--tint-warm); }
.icon {
  width: 44px; height: 44px; border-radius: var(--r-card); display: grid; place-items: center;
  background: rgba(0, 138, 118, 0.10); color: var(--primary);
}
.icon--sky { background: rgba(30, 64, 175, 0.09); color: #1e40af; }
.icon--pop { background: rgba(124, 58, 237, 0.10); color: #7c3aed; }

/* ---------- how it works: replymer's .tour ---------- */
.tour { display: flex; flex-direction: column; gap: 72px; }
.tour-row {
  display: grid; grid-template-columns: 1fr 0.654fr; gap: 52px; align-items: center;
}
.tour-row.flip { grid-template-columns: 0.654fr 1fr; }
.tour-row.flip .tour-text { order: 2; }
.tour-row.flip .tour-shot { order: 1; }

.n {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--primary-fg);
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.tour-text h3 {
  font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.6; margin-bottom: 10px;
}
.tour-text p { font-size: 0.97rem; line-height: 1.6; color: var(--body); }

.tour-shot {
  border-radius: 16px; overflow: hidden; background: var(--night);
  border: 0.8px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(6, 6, 7, 0.5);
}
.tour-shot img { width: 100%; height: auto; }

/* ---------- dark band ---------- */
.band { background: var(--dark); color: var(--night-fg-2); padding: 84px 0; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--teal); }
.band__head { max-width: 62ch; margin-bottom: 34px; }
.band__head .h2 { margin: 14px 0; }
.band__list { list-style: none; display: grid; gap: 18px; max-width: 62ch; }
.band__list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: 0.97rem; }
.band__list svg { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.band__list b { color: #fff; font-weight: 700; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 0 24px; box-shadow: var(--sh-1);
}
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 20px 0; font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--soft-2);
  color: var(--primary); display: grid; place-items: center; font-weight: 700;
  transition: transform .2s ease;
}
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; font-size: 0.97rem; }
.faq a { color: var(--primary); font-weight: 600; }

/* ---------- final cta ---------- */
.cta { background: var(--dark); color: var(--night-fg-2); padding: 92px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: auto 0 -50% 0; height: 100%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(0, 227, 192, 0.18), transparent 70%);
  pointer-events: none;
}
.cta .wrap { position: relative; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { max-width: 56ch; margin: 0 auto; }
.cta__bot { width: 132px; margin: 0 auto 18px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 560px; margin: 36px auto 0; }
.store-btn {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: rgba(238, 238, 241, 0.05); border: 1px solid var(--night-line);
  border-radius: var(--r-card); padding: 16px 20px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.store-btn:hover { transform: translateY(-3px); border-color: rgba(0, 227, 192, 0.5); background: rgba(0, 227, 192, 0.07); }
.store-btn img { width: 28px; height: 28px; flex: none; }
.store-btn--live {
  border-color: rgba(0, 227, 192, 0.45);
  background: rgba(0, 227, 192, 0.08);
  box-shadow: 0 8px 28px rgba(0, 227, 192, 0.16);
}
.store-btn--live small { color: var(--teal); }
.store-btn small { display: block; font-size: 0.72rem; color: var(--night-muted); font-weight: 500; }
.store-btn b { font-size: 0.95rem; color: #fff; font-weight: 700; }
.cta__note { margin-top: 26px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--night-fg-2); padding: 62px 0 34px; border-top: 1px solid var(--night-line); }
.foot a { color: var(--night-fg-2); transition: color .18s ease; }
.foot a:hover { color: var(--teal); }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot .brand { color: #fff; }
.foot .brand small { color: var(--night-muted); }
.foot__blurb { margin-top: 16px; font-size: 0.88rem; color: var(--night-muted); max-width: 34ch; }
.foot h6 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 10px; font-size: 0.88rem; }
.foot__legal {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--night-line);
  font-size: 0.78rem; color: var(--night-muted); line-height: 1.7;
}

/* ---------- document pages (privacy / terms / contact) ---------- */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; margin: 14px 0; }
.doc .lead { margin-bottom: 40px; }
.doc h2 { font-size: 1.3rem; font-weight: 700; margin: 40px 0 12px; }
.doc h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 8px; }
.doc p { margin-bottom: 14px; font-size: 1rem; }
.doc ul, .doc ol { margin: 0 0 18px 20px; display: grid; gap: 8px; font-size: 1rem; }
.doc a { color: var(--primary); font-weight: 600; }
.doc .updated { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.doc__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px 28px; margin-bottom: 16px; box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.doc__card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.doc__card h2 { margin: 10px 0 8px; font-size: 1.15rem; }
.doc__card p { margin: 0; font-size: 0.97rem; }
.callout {
  background: var(--tint-teal); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px 24px; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .stores { grid-template-columns: 1fr; }
  .tour { gap: 48px; }
  .tour-row, .tour-row.flip { grid-template-columns: 1fr; gap: 24px; }
  .tour-row.flip .tour-text, .tour-row.flip .tour-shot { order: 0; }
}
@media (max-width: 820px) {
  .section, .band, .cta { padding: 64px 0; }
  .hero { padding-top: 48px; }
}
@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .card, .doc__card { padding: 22px 20px; }
  .foot__grid { grid-template-columns: 1fr; }
  .nav__cta .btn--ghost { display: none; }
}
