/* ── TOKENS ── */
:root {
  --bg:        #FFFFFF;
  --bg-1:      #F7F6F4;
  --bg-2:      #EEECE8;
  --border:    rgba(0,0,0,0.08);
  --border-hi: rgba(0,0,0,0.14);
  --text:      #1A1917;
  --text-2:    rgba(26,25,23,0.5);
  --text-3:    rgba(26,25,23,0.3);
  --accent:    #E8520A;
  --accent-dim:rgba(232,82,10,0.1);
  --accent-glow:rgba(232,82,10,0.12);
  --green:     #16A34A;
  --red:       #DC2626;
  --glass-bg:  rgba(0,0,0,0.025);
  --glass-bg-hi:rgba(0,0,0,0.045);
  --r:         10px;
  --r-sm:      6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── LAYOUT ── */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}
@media(max-width:640px){ .wrap { padding: 0 20px; } }

section { padding: clamp(80px,12vw,140px) 0; }
section + section { border-top: 1px solid var(--border); }

/* ── TYPOGRAPHY ── */
.display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(28px,3.5vw,40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
p { color: var(--text-2); line-height: 1.7; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; max-width: 1120px; margin: 0 auto; padding: 0 40px;
}
@media(max-width:640px){ .nav-inner { padding: 0 20px; } }

.logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 400;
  color: var(--text-2); transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
@media(max-width:720px){ .nav-links { display: none; } }

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text-2); padding: 4px;
  transition: color .15s;
}
.nav-toggle:hover { color: var(--text); }
@media(max-width:720px) {
  .nav-toggle { display: flex; align-items: center; }
  .btn-nav-desktop { display: none; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.99);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 15px 20px;
  text-decoration: none; font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .mobile-cta {
  font-weight: 600; color: var(--accent);
}

.btn-nav {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  padding: 8px 18px; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg);
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity .15s;
}
.btn-nav:hover { opacity: .85; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  border-radius: var(--r-sm); border: none; cursor: pointer;
  text-decoration: none; transition: all .18s; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 13px 28px; font-size: 15px;
  box-shadow: 0 0 32px rgba(232,82,10,0.25);
}
.btn-primary:hover { box-shadow: 0 0 48px rgba(232,82,10,0.4); transform: translateY(-1px); }

.btn-ghost {
  background: var(--glass-bg); color: var(--text-2);
  border: 1px solid var(--border);
  padding: 13px 24px; font-size: 15px;
}
.btn-ghost:hover { background: var(--glass-bg-hi); color: var(--text); border-color: var(--border-hi); }

.btn-outline {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border);
  padding: 10px 20px; font-size: 13px;
}
.btn-outline:hover { color: var(--text); border-color: var(--border-hi); }

/* ── HERO ── */
#hero {
  position: relative;
  padding-top: clamp(100px,16vw,160px);
  padding-bottom: clamp(60px,10vw,110px);
  text-align: center;
  overflow: hidden;
  border-top: none !important;
  background: url('../img/prose-extension-hero-background.webp') center center / cover no-repeat;
}

/* grain */
#hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 320px 320px;
}

/* radial gradient bg */
#hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232,82,10,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(232,82,10,0.04) 0%, transparent 70%);
}

#hero .wrap { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(232,82,10,0.08);
  border: 1px solid rgba(232,82,10,0.2);
  border-radius: 100px; padding: 5px 14px;
  margin-bottom: 36px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

#hero h1 {
  font-size: clamp(52px,8vw,100px);
  font-weight: 300; line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 800px; margin: 0 auto 12px;
}
#hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(16px,1.8vw,19px);
  color: var(--text-2); max-width: 480px;
  margin: 0 auto 40px; line-height: 1.6;
}

.hero-ctas {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 72px;
}

.trust-bar {
  display: flex; justify-content: center; gap: 20px;
  margin-bottom: 20px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--text-2);
}
.trust-bar span i { color: var(--accent); margin-right: 5px; }

@media (max-height: 860px) {
  #hero { padding-top: clamp(50px,7vw,80px); }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero-ctas { margin-bottom: 40px; }
}

/* ── DEMO WINDOW ── */
.demo-wrap {
  position: relative; max-width: 800px; margin: 0 auto;
}

/* glow behind demo */
.demo-glow {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse 60% 60% at 50% 50%,
    rgba(232,82,10,0.08) 0%,
    rgba(232,82,10,0.03) 50%,
    transparent 75%);
  filter: blur(40px);
  pointer-events: none; z-index: 0;
}

/* ── HERO BROWSER (GSAP animation) ── */
.browser {
  position: relative; z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 24px 72px rgba(0,0,0,0.11),
    0 6px 18px rgba(0,0,0,0.05);
}

.browser-chrome {
  background: #F0EFED;
  border-bottom: 1px solid var(--border);
  height: 44px;
  display: flex; align-items: center;
  padding: 0 14px; gap: 10px;
  flex-shrink: 0; user-select: none;
}
.traffic-lights { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.tl { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.tl-red    { background: #FF5F57; }
.tl-yellow { background: #FEBC2E; }
.tl-green  { background: #28C840; }
.chrome-nav { display: flex; align-items: center; gap: 8px; margin-left: 2px; }
.chrome-nav-icon { color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.browser .address-bar {
  flex: 1; max-width: 340px; margin: 0 auto;
  background: rgba(0,0,0,0.055);
  border: 1px solid var(--border);
  border-radius: 7px; height: 27px;
  display: flex; align-items: center;
  padding: 0 10px; gap: 6px;
}
.browser .address-lock { color: var(--text-3); flex-shrink: 0; }
.browser .address-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.browser-content {
  position: relative; overflow: hidden;
  min-height: 320px;
}
.writing-surface { padding: 24px 32px 28px; text-align: left; }

.email-fields {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.email-field { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; }
.email-label {
  font-size: 11px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-3);
  width: 64px; flex-shrink: 0;
}
.email-value { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.email-value.primary { color: var(--text); font-weight: 500; }
.email-greeting { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.email-secondary { font-size: 13px; color: var(--text-3); line-height: 1.7; margin-top: 10px; }

.sentence-wrap { position: relative; display: block; }
#selHighlight {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0; opacity: 0;
  background: rgba(232,82,10,0.18);
  border-radius: 2px; pointer-events: none; z-index: 1;
}
.sentence-text {
  position: relative; z-index: 2;
  display: block; font-size: 14px; line-height: 1.8; color: var(--text);
}
.word-err {
  text-decoration: underline wavy;
  text-decoration-color: rgba(220,38,38,0.6);
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
}

.ctx-menu {
  position: absolute;
  background: rgba(246,246,248,0.97);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 9px; width: 210px;
  overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.07), 0 10px 30px rgba(0,0,0,0.16), 0 3px 8px rgba(0,0,0,0.09);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transform-origin: top left;
  z-index: 40; pointer-events: none;
  padding: 4px 0;
}
.ctx-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; font-size: 13px; color: var(--text);
  line-height: 1.3; height: 26px; white-space: nowrap;
}
.ctx-item.dim { color: var(--text-2); font-size: 12px; }
.ctx-prose {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; font-size: 13px; font-weight: 500;
  color: #fff; line-height: 1.3; height: 28px;
  background: var(--accent); white-space: nowrap;
}
.ctx-prose-icon {
  width: 15px; height: 15px; border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ctx-prose-icon::after {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #FF6B35;
}
.ctx-sep { height: 1px; background: rgba(0,0,0,0.09); margin: 3px 0; }
.ctx-icon { width: 13px; height: 13px; flex-shrink: 0; color: rgba(26,25,23,0.40); }
.ctx-shortcut { margin-left: auto; font-size: 11px; color: var(--text-3); }

.prose-popup {
  position: absolute; width: 320px;
  background: var(--bg-1);
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 20px 50px rgba(0,0,0,0.20), 0 6px 16px rgba(0,0,0,0.09);
  opacity: 0; visibility: hidden;
  transform-origin: bottom right;
  z-index: 50; pointer-events: none;
}
.popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.popup-brand { display: flex; align-items: center; }
.popup-logo {
  height: 18px;
  width: auto;
  display: block;
}
.popup-hbtns { display: flex; gap: 6px; align-items: center; }
.popup-hbtn {
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid var(--border-hi); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer;
}
.popup-body { padding: 12px 14px 14px; background: var(--bg); text-align: left; }
.popup-fixed-label {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.popup-textbox {
  background: var(--bg); border: 1px solid var(--border-hi);
  border-radius: 9px; padding: 12px 14px 22px;
  position: relative; min-height: 80px;
}
.popup-textbox::after {
  content: ''; position: absolute; bottom: 4px; right: 5px;
  width: 10px; height: 10px;
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.20) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,0,0,0.20) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,0,0,0.20) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,0,0,0.20) 1px, transparent 1px);
  background-size: 4px 4px;
  background-position: 0 0, 4px 0, 0 4px, 4px 4px;
}
.popup-corrected-text {
  font-family: 'DM Mono', monospace;
  font-size: 12.5px; line-height: 1.75; color: var(--text);
  opacity: 0;
}
.word-fixed { color: var(--green); font-weight: 500; }

.cursor-el {
  position: absolute; top: 0; left: 0;
  width: 15px; height: 18px;
  opacity: 0; pointer-events: none;
  z-index: 60; will-change: transform;
}

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}

/* ── PROBLEM ── */
#problem { background: var(--bg-1); }

/* ── PROBLEM (split layout) ── */
#problem { padding: 0; background: var(--bg-1); }

.prob-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: start;
}

/* LEFT — sticky column */
.prob-left {
  position: sticky;
  top: 58px;
  display: flex;
  align-items: flex-start;
  padding: clamp(80px,12vw,140px) 72px clamp(80px,12vw,140px) 0;
  border-right: 1px solid var(--border);
}
.prob-left-inner { width: 100%; }
.prob-left-inner .section-label { margin-bottom: 16px; }
.prob-left-inner h2  { margin-bottom: 20px; }
.prob-desc {
  font-size: 16px; color: var(--text-2); line-height: 1.7;
  margin-bottom: 32px;
}
.works-in {
  display: flex; flex-direction: column; gap: 12px;
}
.works-in-label {
  font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-3);
}
.works-in-list {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
}
.works-in-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-3);
}
.works-in-item img {
  filter: grayscale(1); opacity: .5;
  display: block;
}
.prob-stat-block {
  display: flex; align-items: baseline; gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.prob-stat-block .stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300; color: var(--accent); line-height: 1;
}
.prob-stat-block .stat-label {
  font-size: 13px; color: var(--text-2); line-height: 1.4; max-width: 180px;
}

/* RIGHT — scrollable cards */
.prob-right {
  padding: clamp(80px,12vw,140px) 0 clamp(80px,12vw,140px) 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card: image top, text pinned to bottom */
.prob-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease, box-shadow .25s, border-color .25s;
}
.prob-card.in-view { opacity: 1; transform: none; }
.prob-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.07);
}
.prob-card:nth-child(2) { transition-delay: .08s; }
.prob-card:nth-child(3) { transition-delay: .16s; }
.prob-card:nth-child(4) { transition-delay: .24s; }

.prob-card-img {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--bg-2);
  overflow: hidden;
  flex-shrink: 0;
}
.prob-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.prob-card-footer {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}
.prob-time-pill {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 500; letter-spacing: .04em;
  font-family: 'DM Mono', monospace;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 9px;
  flex-shrink: 0;
}

/* ── COST TIMELINE ── */
.cost-timeline {
  display: flex; flex-direction: column; gap: 0;
}
.cost-step {
  display: flex; gap: 14px; align-items: stretch;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.cost-step.visible { opacity: 1; transform: none; }
.cost-step-left {
  display: flex; flex-direction: column; align-items: center;
  width: 14px; flex-shrink: 0; padding-top: 4px;
}
.cost-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-hi); flex-shrink: 0;
}
.cost-line {
  width: 1px; flex: 1; min-height: 20px;
  background: var(--border);
  margin-top: 4px;
}
.cost-step-right {
  display: flex; align-items: center; justify-content: space-between;
  flex: 1; padding-bottom: 18px; gap: 12px;
}
.cost-label {
  font-size: 13px; color: var(--text-2); line-height: 1.4;
}
.cost-pill {
  font-size: 11px; font-weight: 500; font-family: 'DM Mono', monospace;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 2px 9px;
  flex-shrink: 0; white-space: nowrap;
}
.cost-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.cost-total.visible { opacity: 1; transform: none; }
.cost-total-label {
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3);
}
.cost-total-num {
  font-size: 15px; font-weight: 500; font-family: 'DM Mono', monospace;
  color: var(--text);
  letter-spacing: -.01em;
}
.prob-card-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: .06em;
  color: var(--text-3);
  padding-top: 3px;
  flex-shrink: 0;
}
.prob-card-title {
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}
.prob-card-desc {
  font-size: 13px; color: var(--text-2); line-height: 1.6;
}
.prob-cta-nudge {
  text-align: center;
  padding: 80px 40px 100px;
  max-width: 1120px; margin: 0 auto;
}
.prob-statement {
  display: flex; flex-wrap: nowrap; justify-content: center; gap: 0.22em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 5.5vw, 88px);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text);
  white-space: nowrap;
}
.prob-word {
  display: inline-block;
  opacity: 0; transform: translateY(32px);
}
.prob-word-accent { color: var(--accent); }
@media(max-width:640px){ .prob-cta-nudge { padding: 60px 20px 80px; } }

@media(max-width:768px) {
  .prob-split {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .prob-left {
    position: relative; top: auto;
    position: relative; top: auto;
    padding: clamp(60px,10vw,100px) 0 40px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .prob-right {
    padding: 40px 0 clamp(60px,10vw,100px);
  }
}

/* ── HOW IT WORKS ── */
#how { background: var(--bg); }
#how .section-head { margin-bottom: 56px; }

.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
@media(max-width:720px){ .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg);
  padding: 36px 28px;
  position: relative;
}
.step:hover { background: var(--bg-1); }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--text-3);
  letter-spacing: .06em; margin-bottom: 20px;
}
.step-mock {
  background: #FFFFFF;
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  height: 200px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.08),
    0 2px 8px rgba(0,0,0,0.04);
}
.step-mock-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

/* mini mockup components */
.mini-bar {
  display: flex; align-items: center; gap: 6px;
  background: #F0EFED;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  flex-shrink: 0;
}
.mini-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.mini-dot.r { background: #FF5F57; }
.mini-dot.y { background: #FEBC2E; }
.mini-dot.g { background: #28C840; }

.mini-url-bar {
  flex: 1;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  margin: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-field {
  font-size: 12px; line-height: 1.65;
  color: var(--text-2);
}
.mini-err { text-decoration: underline wavy rgba(220,38,38,0.5); }
.mini-ok  { color: #16A34A; font-weight: 500; }

.mini-menu {
  position: absolute; right: 10px; top: 28px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 5px; overflow: hidden;
  font-size: 10px; width: 120px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.mini-item { padding: 5px 9px; color: var(--text-2); }
.mini-item.hl {
  background: var(--accent); color: #fff; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.mini-prose-icon {
  width: 11px; height: 11px; border-radius: 3px;
  background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mini-prose-icon::after {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: #FF6B35;
}
.mini-div { height: 1px; background: rgba(0,0,0,0.07); }

.mini-result {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(22,163,74,0.2);
  border-radius: 5px; padding: 8px 10px;
}
.mini-result-head {
  font-size: 9px; font-weight: 600; color: #16A34A;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px;
}
.mini-result-text { font-size: 10px; color: var(--text-2); line-height: 1.5; }
.mini-actions { display: flex; gap: 4px; margin-top: 6px; }
.mini-btn {
  font-size: 9px; padding: 3px 7px;
  border-radius: 3px; border: 1px solid var(--border);
  background: none; color: var(--text-2); cursor: pointer;
}
.mini-btn.p { background: var(--text); color: var(--bg); border-color: var(--text); }

/* step 3 prose popup */
.step-prose-popup {
  position: absolute;
  bottom: 108px; right: 20px;
  width: 174px;
  background: #fff;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.12),
    0 2px 6px rgba(0,0,0,0.06);
}
.step-pp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.step-pp-logo { height: 13px; width: auto; display: block; }
.step-pp-btns { display: flex; gap: 4px; }
.step-pp-btn {
  width: 20px; height: 20px; border-radius: 5px;
  border: 1px solid var(--border-hi);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.step-pp-body { padding: 9px 10px 10px; }
.step-pp-label {
  font-size: 8.5px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px;
}
.step-pp-text {
  font-size: 10px; color: var(--text); line-height: 1.55;
}

.step-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.step-desc  { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.steps-note {
  text-align: center; margin-top: 32px;
  font-size: 13px; color: var(--text-3);
}

/* ── BENEFITS ── */
#benefits { background: var(--bg-1); }

.benefits-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
}
@media(max-width:768px) { .benefits-grid { grid-template-columns: 1fr; } }

/* Base card */
.bcard {
  background: var(--bg);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 28px rgba(0,0,0,0.06);
  transition: box-shadow .25s ease, transform .25s ease;
  overflow: hidden;
}
.bcard:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 20px 48px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Dominant card */
.bcard-main {
  grid-row: span 2;
  display: flex; flex-direction: column;
  position: relative;
}
.bcard-main::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 15% 90%, rgba(232,82,10,0.06) 0%, transparent 70%);
  border-radius: 16px;
  pointer-events: none;
}
@media(max-width:768px) { .bcard-main { grid-row: span 1; } }

/* Card typography */
.bcard-label {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.bcard-main-title {
  font-size: clamp(24px, 2.8vw, 32px); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.15;
  color: var(--text); margin-bottom: 12px;
}
.bcard-main-title em { color: var(--accent); font-style: normal; }
.bcard-sub-title {
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.25;
  color: var(--text); margin-bottom: 8px;
}
.bcard-desc {
  font-size: 14px; color: var(--text-2); line-height: 1.65;
  margin-bottom: 28px;
}
.bcard-visual { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.bcard-visual + .bcard-desc { margin-top: 28px; }

/* Before / After snippet */
.ba-wrap {
  background: var(--bg-1);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 0;
}
.ba-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 8px 0;
  font-size: 13px; line-height: 1.55; color: var(--text);
}
.ba-row + .ba-row { border-top: 1px solid var(--border); }
.ba-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 4px;
  flex-shrink: 0; width: 46px; text-align: center;
}
.ba-tag.before { background: rgba(220,38,38,0.07); color: rgba(220,38,38,0.65); }
.ba-tag.after  { background: rgba(22,163,74,0.08); color: var(--green); }
.ba-err {
  text-decoration: underline wavy rgba(220,38,38,0.5);
  text-underline-offset: 2px; text-decoration-skip-ink: none;
}
.ba-fix { color: var(--green); font-weight: 500; }

/* Privacy list */
.priv-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.priv-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
}
.priv-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(0,0,0,0.1); flex-shrink: 0;
  position: relative;
}
.priv-dot::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 9px; height: 1.5px;
  background: rgba(0,0,0,0.25); border-radius: 1px;
}
.priv-label { flex: 1; }
.priv-status {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-3);
}

/* Mini context menu */
.ctx-mini {
  display: inline-flex; flex-direction: column;
  background: rgba(246,246,248,0.98);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 9px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  margin-top: 4px;
}
.ctx-mini-item {
  padding: 7px 16px; font-size: 12.5px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.ctx-mini-item + .ctx-mini-item { border-top: 1px solid rgba(0,0,0,0.07); }
.ctx-mini-item.accent {
  background: var(--accent); color: #fff; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.ctx-mini-icon {
  width: 12px; height: 12px; border-radius: 3px;
  background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ctx-mini-icon::after {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: #FF6B35;
}

/* ── COMPARISON ── */
#comparison { background: var(--bg); }
#comparison .section-head { margin-bottom: 48px; }

.table-scroll { overflow-x: visible; }

table { width: 100%; border-collapse: collapse; min-width: 0; }
thead th {
  padding: 12px 20px; text-align: left;
  font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg);
}
thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child  { border-radius: 0 8px 0 0; }
thead th:not(:first-child) { text-align: center; }
.th-prose-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 3px;
  background: var(--accent-dim); flex-shrink: 0;
}
.th-prose-icon::after {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #FF6B35;
}

tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody td {
  padding: 13px 20px; font-size: 13px;
  color: var(--text-2); vertical-align: middle;
}
tbody td:not(:first-child) { text-align: center; }

tbody tr.prose-row td { color: var(--text); }
tbody tr.prose-row {
  background: rgba(232,82,10,0.04);
  border-left: 2px solid var(--accent);
}
tbody tr:not(.prose-row):hover { background: var(--glass-bg); }

.chk { color: #16A34A; font-size: 18px; display:flex; align-items:center; }
.crs { color: rgba(220,38,38,0.55); font-size: 18px; display:flex; align-items:center; }
.mbe { color: var(--text-3); font-size: 18px; display:flex; align-items:center; }
td .chk, td .crs, td .mbe { display: inline-flex; }

.table-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; justify-content: center;
  font-size: 12px; color: var(--text-3);
}
.table-legend span { display: flex; align-items: center; gap: 6px; }

.table-group-label td {
  font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: 16px 16px 6px !important;
  background: transparent; border: none;
}

.table-cta-row td {
  text-align: center; padding: 24px 16px !important;
  background: rgba(232,82,10,0.04);
  border-top: 1px solid rgba(232,82,10,0.15) !important;
}

.table-source {
  margin-top: 16px; text-align: center;
  font-size: 11px; color: var(--text-3);
  font-style: italic; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* Tooltip on ⊖ */
.mbe[data-tip] { position: relative; cursor: default; }
.mbe[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 11px; line-height: 1.5;
  white-space: nowrap; padding: 6px 10px; border-radius: 6px;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  z-index: 10;
}
.mbe[data-tip]:hover::after { opacity: 1; }

/* ── PRICING ── */
#pricing { background: var(--bg-1); }
#pricing .section-head { margin-bottom: 48px; }

.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; max-width: 700px; margin: 0 auto;
}
@media(max-width:620px){ .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color .2s, background .2s;
}
.pricing-card .price-features { flex: 1; }
.pricing-card:not(.featured):hover {
  border-color: rgba(232,82,10,0.35);
  background: rgba(232,82,10,0.04);
}
.pricing-card:not(.featured):hover ~ .pricing-card.featured {
  border-color: var(--border);
  background: rgba(0,0,0,0.02);
}
.pricing-card:not(.featured):hover ~ .pricing-card.featured .btn-primary {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border);
  box-shadow: none;
}
.pricing-card:not(.featured):hover .btn-outline {
  background: var(--accent); color: #fff;
  border-color: transparent;
  box-shadow: 0 0 32px rgba(232,82,10,0.25);
}
.pricing-card:not(.featured):hover .btn-outline:hover {
  box-shadow: 0 0 48px rgba(232,82,10,0.4);
  transform: translateY(-1px);
}
.pricing-card.featured {
  border-color: rgba(232,82,10,0.35);
  background: rgba(232,82,10,0.04);
}
.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 12px; border-radius: 0 0 6px 6px;
}

.price-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
}
.price-title { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px; font-weight: 300; color: var(--accent);
  line-height: 1; margin-bottom: 6px;
}
.price-from {
  font-size: 12px; color: var(--text-3); letter-spacing: .03em;
  margin-bottom: 20px;
}
.price-amount sup { font-size: 18px; vertical-align: super; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.price-setup-note {
  font-size: 12px; color: var(--text-3); margin-bottom: 20px;
}
.price-setup-note a {
  color: var(--accent); text-decoration: none;
}
.price-setup-note a:hover { text-decoration: underline; }
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}
.price-features li i { color: #16A34A; font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.pricing-note {
  text-align: center; margin-top: 28px;
  font-size: 13px; color: var(--text-3);
}

/* ── PRIVACY ── */
#privacy { background: var(--bg-1); text-align: center; }
.privacy-wrap {
  max-width: 620px; margin: 0 auto;
}
#privacy h2 { margin-bottom: 20px; }
.priv-pills {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.priv-pill {
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--text-3);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 4px 12px;
}
.privacy-wrap p {
  font-size: clamp(15px,1.8vw,18px); line-height: 1.75;
  color: var(--text-2); margin-bottom: 18px;
}
.priv-actions {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 32px;
}
.privacy-link {
  display: inline-block;
  font-size: 13px; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(232,82,10,0.3);
  transition: color .15s, text-decoration-color .15s;
}
.privacy-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ── FAQ ── */
#faq { background: var(--bg-1); }
#faq .section-head { margin-bottom: 48px; }

.faq-list { max-width: 680px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 20px 0; cursor: pointer;
}
.faq-q:hover .faq-q-text { color: var(--text); }
.faq-q-text {
  font-size: 15px; font-weight: 500; color: var(--text-2);
  line-height: 1.45; transition: color .15s;
}
.faq-chevron {
  flex-shrink: 0; width: 16px; height: 16px;
  color: var(--text-3); margin-top: 2px;
  transition: transform .25s, color .15s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-item.open .faq-q-text  { color: var(--text); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 20px; }
.faq-a p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ── FINAL CTA ── */
.cta-outer {
  padding: clamp(40px,6vw,80px) 40px;
  border-top: 1px solid var(--border);
}
@media(max-width:640px){ .cta-outer { padding: 40px 20px; } }
#cta {
  background: #1A1917 url('../img/prose-extension-cta-background.webp') center center / cover no-repeat;
  text-align: center;
  position: relative; overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 20px;
  border-top: none;
}
#cta::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,
    rgba(232,82,10,0.08) 0%, transparent 65%);
}
#cta::after {
  content: '';
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 400px; height: 400px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(232,82,10,0.06) 0%, transparent 70%);
}
#cta .wrap { position: relative; z-index: 1; }

.cta-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px,7vw,88px);
  font-weight: 300; font-style: italic;
  color: #F0EDE8; line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-label em { color: var(--accent); font-style: italic; }

.cta-sub {
  font-size: clamp(15px,1.8vw,18px);
  color: rgba(240,237,232,0.5); margin-bottom: 44px;
  letter-spacing: .02em;
}

.cta-caption {
  margin-top: 16px; font-size: 12px; color: rgba(240,237,232,0.3);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0; background: var(--bg-1);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 0 40px;
}
@media(max-width:640px){ .footer-inner { padding: 0 20px; } }
.footer-links {
  display: flex; gap: 24px; list-style: none; flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px; color: var(--text-3);
  text-decoration: none; transition: color .15s;
}
.footer-links a:hover { color: var(--text-2); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.up { opacity: 1; transform: none; }

/* ── SECTION HEAD ── */
.section-head { max-width: 600px; }
.section-head.center { text-align: center; max-width: 100%; }
.section-head h2 { margin-bottom: 12px; }
.section-head p  { font-size: 16px; }
