/* ============================================================
   Cooey SMS/MMS — marketing landing page
   One dark theme, deliberately: it is the product's own dark-first
   identity, the mint accent only reads at full strength on near-black,
   and the page and its mockup imagery stay one continuous surface.
   ============================================================ */

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #07070b;
  --bg-2: #0c0c13;
  --surface: #11111a;
  --line: #1f1f2c;
  --line-strong: #2e2e3e;
  --text: #ececf3;
  --text-2: #a9a9bd;   /* 8.4:1 on --bg */
  --text-3: #8c8ca3;   /* 6.0:1 on --bg */
  --mint: #66fcc4;
  --mint-rgb: 102 252 196;
  --ink: #06120d;
  --red: #ff8080;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 12vw, 152px);
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

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

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

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }

.display {
  font-family: var(--serif);
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.display em { font-style: italic; color: var(--mint); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 40em; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #8dfdd4; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-quiet { color: var(--text); border-color: var(--line-strong); background: rgb(255 255 255 / 0.02); }
.btn-quiet:hover { border-color: var(--text-3); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }

/* ---- Header ----------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgb(7 7 11 / 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 500; white-space: nowrap; }
.logo b { font-weight: 700; }
.logo-mark { color: var(--mint); font-size: 18px; line-height: 1; }
.logo-by { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-left: 12px; border-left: 1px solid var(--line-strong); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 15px; color: var(--text-2); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 960px) { .site-nav { display: none; } .site-head .btn { margin-left: auto; } }
@media (max-width: 480px) { .logo-by { display: none; } }

/* ---- Hero ------------------------------------------------- */
.hero { position: relative; padding-top: clamp(56px, 9vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 72%, rgb(var(--mint-rgb) / 0.11), transparent 70%),
    radial-gradient(40% 30% at 15% 10%, rgb(167 139 250 / 0.07), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 75%);
}
.hero-copy { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 26px; }
.hero h1 { font-size: clamp(46px, 8vw, 112px); max-width: 11.5em; line-height: 0.98; }
.hero .lede { max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; list-style: none; margin: 4px 0 0; padding: 0; }
.proof li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.proof svg { width: 17px; height: 17px; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-shot { position: relative; z-index: 1; margin: clamp(48px, 7vw, 88px) auto 0; width: min(100% - 2 * var(--gutter), 1120px); }
.hero-shot .mk-frame { border-radius: 16px 16px 0 0; }
.hero-shot::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 30%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
@media (max-width: 640px) { .hero-shot::after { height: 18%; } }

/* ---- Sections --------------------------------------------- */
.section { padding-block: var(--section); position: relative; }
.section-head { display: grid; gap: 20px; max-width: 800px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-family: var(--serif); font-size: clamp(38px, 5.2vw, 68px); line-height: 1.03; letter-spacing: -0.01em; }
.section-head h2 em { font-style: italic; color: var(--mint); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.icon-tile {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--mint); background: rgb(var(--mint-rgb) / 0.08); border: 1px solid rgb(var(--mint-rgb) / 0.2);
}
.icon-tile svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Features --------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.feature { background: var(--bg); padding: 30px 26px 32px; display: grid; align-content: start; gap: 12px; }
.feature h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin-top: 10px; }
.feature p { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 1020px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Feature depth: copy beside a small, real-markup visual */
.deep { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(64px, 9vw, 112px); }
.deep-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.deep-block.flip .deep-copy { order: 2; }
.deep-copy { display: grid; gap: 14px; }
.deep-copy h3 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; }
.deep-copy h3 em { font-style: italic; color: var(--mint); }
.deep-copy > p { color: var(--text-2); }
@media (max-width: 900px) { .deep-block { grid-template-columns: minmax(0, 1fr); } .deep-block.flip .deep-copy { order: 0; } }

.deep-visual { margin: 0; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.deep-cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.st {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  --c-rgb: 169 169 189; color: rgb(var(--c-rgb)); background: rgb(var(--c-rgb) / 0.1); border: 1px solid rgb(var(--c-rgb) / 0.3);
}
.st-new { --c-rgb: 103 232 249; }
.st-claimed { --c-rgb: var(--mint-rgb); }
.st-note { --c-rgb: 255 214 102; }
.st-done { --c-rgb: 169 169 189; }
.st-out { --c-rgb: 255 128 128; }

.trail { list-style: none; margin: 0; padding: 0; display: grid; }
.trail li { position: relative; display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 11px 0; }
.trail li + li { border-top: 1px dashed var(--line-strong); }
.trail p { font-size: 15px; color: var(--text-2); }
.trail b { color: var(--text); font-weight: 600; }
.trail time { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
@media (max-width: 480px) {
  .trail li { grid-template-columns: auto 1fr; gap: 6px 12px; }
  .trail li p { grid-column: 1 / -1; order: 3; }
}

.audit-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.audit { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.audit th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); background: #171722; padding: 10px 12px; white-space: nowrap; }
.audit td { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--text-2); white-space: nowrap; vertical-align: middle; }
.audit .when small { display: block; font-size: 13px; color: var(--text-3); }
@media (max-width: 560px) {
  .audit thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .audit tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; }
  .audit tbody tr { border-top: 1px solid var(--line); }
  .audit td { display: block; padding: 0; border: 0; }
  .audit .when small { display: inline; margin-left: 8px; }
  .audit .msg::before { content: "Replied "; font-family: var(--sans); color: var(--text-3); }
}
.audit .mono { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.audit-foot { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14.5px; color: var(--text-2); }
.audit-foot svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Product tour ----------------------------------------- */
.tour { display: grid; gap: clamp(72px, 10vw, 128px); }
.shot { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin: 0; }
.shot:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.shot:nth-child(even) .shot-img { order: 2; }
.shot figcaption { display: grid; gap: 14px; }
.shot figcaption h3 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; }
.shot figcaption p { color: var(--text-2); }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; color: var(--text-2); }
.ticks svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .shot, .shot:nth-child(even) { grid-template-columns: 1fr; }
  .shot:nth-child(even) .shot-img { order: 0; }
}

/* ---- How it works ----------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; padding: 30px 28px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); counter-increment: step; }
.step::before {
  content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--mint); margin-bottom: 26px;
}
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---- Pricing ---------------------------------------------- */
.pricing {
  position: relative; overflow: hidden;
  display: grid; gap: clamp(28px, 4vw, 44px);
  padding: clamp(28px, 6vw, 72px);
  border-radius: 24px; border: 1px solid rgb(var(--mint-rgb) / 0.25);
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(var(--mint-rgb) / 0.13), transparent 60%),
    var(--surface);
}
.pricing-head { display: grid; gap: 16px; }
.pricing h2 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; margin-top: 2px; max-width: 14em; }
.pricing h2 em { font-style: italic; color: var(--mint); }
.pricing-head p { color: var(--text-2); max-width: 36em; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.price-card { display: grid; align-content: start; gap: 10px; padding: 26px 24px 28px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgb(7 7 11 / 0.55); }
.price-card h3 { font-size: 18px; font-weight: 600; margin-top: 8px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price .amt { font-family: var(--serif); font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.price .per { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--mint); }
.price-note { font-size: 15px; color: var(--text-2); }
.pricing-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.price-fine { font-size: 14.5px; color: var(--text-3); }
@media (max-width: 860px) { .price-cards { grid-template-columns: 1fr; } }

/* ---- Trust band ------------------------------------------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(48px, 7vw, 80px); }
.trust ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; margin: 0; padding: 0; }
.trust li { display: grid; gap: 10px; align-content: start; }
.trust h3 { font-size: 17px; font-weight: 600; }
.trust p { font-size: 15px; color: var(--text-2); }
@media (max-width: 960px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust ul { grid-template-columns: 1fr; } }

/* ---- FAQ -------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 110px; margin-bottom: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 0 26px; color: var(--text-2); max-width: 44em; }
.faq details p + p { margin-top: -12px; }

/* ---- Final CTA + footer ----------------------------------- */
.final { text-align: center; }
.final .display { max-width: 12em; margin: 22px auto 0; }
.final .lede { margin: 22px auto 0; }
.final .hero-cta { margin-top: 36px; }
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 14.5px; color: var(--text-3); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-foot .logo { color: var(--text); }
.site-foot .spacer { flex: 1; }
.site-foot a { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-contrast: more) {
  :root { --text-2: #d0d0dc; --text-3: #b4b4c6; --line: #3a3a4c; }
}
@media print {
  .site-head { position: static; }
}

/* ---- Export stage (render-mockups.cjs only) --------------- */
html.export, html.export body { background: transparent; }
.export-stage { width: 800px; padding: 0; }
.export-stage .mk-frame { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07); }

/* ---- Typography: no orphaned words at line ends ---------------- */
p, li, td, blockquote, figcaption, dd, .prose { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
