/* ==========================================================================
   GripMargin — Luxury Apple-Grade Dark Design System
   Colors, Vibes & Aesthetics calibrated to gripmargin-mark.svg
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Manrope:wght@300..800&display=swap');

:root {
  /* Brand Core from gripmargin-mark.svg */
  --bg-deep: #121315;
  --bg: #1B1C1E;
  --bg-elevated: #222428;
  --bg-card: #272A2E;
  --bg-card-hover: #2E3238;
  --line-subtle: rgba(236, 232, 208, 0.10);
  --line-strong: rgba(236, 232, 208, 0.22);
  
  /* Typography & Accent Colors */
  --bone: #ECE8D0;
  --bone-bright: #FAF7EE;
  --bone-dim: #DCD5B4;
  --sand-warm: #C9AE7C;
  --muted: #9E9A8A;
  --quiet: #6F6C60;

  /* Signature Emerald */
  --emerald: #31B884;
  --emerald-bright: #4EEDA3;
  --emerald-glow: rgba(49, 184, 132, 0.28);
  --emerald-subtle: rgba(49, 184, 132, 0.12);

  /* Loss / Red (for margin bleed visualization) */
  --red-loss: #E5484D;
  --red-glow: rgba(229, 72, 77, 0.28);
  --red-subtle: rgba(229, 72, 77, 0.12);

  /* Fonts */
  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(49, 184, 132, 0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--bone);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--bone);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(49, 184, 132, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 45% at 50% 40%, rgba(220, 213, 180, 0.05) 0%, transparent 70%),
    radial-gradient(circle at 80% 85%, rgba(49, 184, 132, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 50%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Container */
.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

/* Typography */
h1, h2, h3, h4, .brand-text, .metric-number {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  color: var(--bone-bright);
}

h1 {
  font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, var(--bone-bright) 20%, var(--bone-dim) 60%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald {
  color: var(--emerald-bright);
}

/* Header & Navigation */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(18, 19, 21, 0.78);
  border-bottom: 1px solid var(--line-subtle);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(49, 184, 132, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-mark {
  transform: scale(1.06);
}

.brand-mark img, .brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bone-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--bone-bright);
}

.nav a[aria-current="page"] {
  color: var(--emerald);
  font-weight: 600;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--bone-dim) 0%, var(--emerald) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 14px var(--emerald-glow);
  transition: all 0.25s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(49, 184, 132, 0.45);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-emerald {
  background: linear-gradient(135deg, #2DB37E 0%, #1F8E63 100%);
  color: #FAF7EE;
  box-shadow: 0 4px 20px var(--emerald-glow);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #37C98E 0%, #25A372 100%);
  box-shadow: 0 6px 28px rgba(49, 184, 132, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(236, 232, 208, 0.05);
  color: var(--bone);
  border-color: var(--line-subtle);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(236, 232, 208, 0.12);
  border-color: var(--line-strong);
  color: var(--bone-bright);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-emerald {
  background: var(--emerald-subtle);
  color: var(--emerald-bright);
  border: 1px solid rgba(49, 184, 132, 0.3);
}

.badge-bone {
  background: rgba(236, 232, 208, 0.08);
  color: var(--bone);
  border: 1px solid var(--line-subtle);
}

.badge-outline {
  border: 1px solid var(--line-subtle);
  color: var(--muted);
}

/* Hero Section */
.hero-section {
  padding: 64px 0 32px;
  text-align: center;
  position: relative;
}

.hero-pill-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(39, 42, 46, 0.8);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.hero-pill-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
}

.hero-pill-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bone-dim);
}

.hero-title {
  margin: 0 auto;
  max-width: 980px;
}

.hero-title .line-break {
  display: block;
}

.hero-lede {
  margin: 22px auto 0;
  max-width: 720px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Early Access Hero Form */
.hero-form-wrap {
  margin: 32px auto 0;
  width: min(520px, 100%);
}

.signup-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-row:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 24px var(--emerald-glow);
}

.signup-row input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--bone-bright);
  background: transparent;
  border: none;
  outline: none;
}

.signup-row input[type="email"]::placeholder {
  color: var(--quiet);
}

.signup-row button {
  flex: 0 0 auto;
}

.signup-status {
  margin-top: 12px;
  font-size: 0.95rem;
  min-height: 24px;
}

.signup-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.signup-msg.ok {
  background: var(--emerald-subtle);
  color: var(--emerald-bright);
  border: 1px solid rgba(49, 184, 132, 0.3);
}

.signup-msg.warn {
  background: var(--red-subtle);
  color: var(--red-loss);
  border: 1px solid rgba(229, 72, 77, 0.3);
}

/* ==========================================================================
   SAND SIMULATION CANVAS & INTERACTIVE CATCHER
   ========================================================================== */

.sand-stage-wrap {
  margin: 48px auto 0;
  width: min(940px, 100%);
  background: linear-gradient(180deg, #18191B 0%, #151618 100%);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.sand-stage-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, rgba(236, 232, 208, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Simulation HUD Header */
.sim-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-subtle);
  background: rgba(22, 23, 26, 0.85);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}

.sim-hud-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sim-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.sim-status-pill.status-active {
  background: var(--emerald-subtle);
  color: var(--emerald-bright);
  border: 1px solid rgba(49, 184, 132, 0.35);
}

.sim-status-pill.status-loss {
  background: var(--red-subtle);
  color: var(--red-loss);
  border: 1px solid rgba(229, 72, 77, 0.35);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.sim-mode-toggle {
  display: inline-flex;
  background: rgba(18, 19, 21, 0.9);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-subtle);
}

.sim-mode-toggle button {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-mode-toggle button.active {
  background: var(--bg-card);
  color: var(--bone-bright);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#mode-with-btn.active {
  color: var(--emerald-bright);
  background: rgba(49, 184, 132, 0.15);
}

#mode-without-btn.active {
  color: var(--red-loss);
  background: rgba(229, 72, 77, 0.15);
}

/* Canvas Container */
.sand-canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  cursor: crosshair;
}

#sand-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Simulation HUD Overlay Metrics */
.sim-overlay-stats {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  pointer-events: none;
}

.stat-box {
  background: rgba(18, 19, 21, 0.75);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-subtle);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 2px;
}

.text-profit {
  color: var(--emerald-bright);
  text-shadow: 0 0 16px var(--emerald-glow);
}

.text-loss {
  color: var(--red-loss);
  text-shadow: 0 0 16px var(--red-glow);
}

.sim-overlay-rate {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  pointer-events: none;
  text-align: right;
}

/* Simulation Action Bar at Bottom */
.sim-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--line-subtle);
  background: rgba(22, 23, 26, 0.9);
}

.sim-action-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.sim-action-btns {
  display: flex;
  gap: 8px;
}

.spawn-add-btn {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(236, 232, 208, 0.06);
  border: 1px solid var(--line-subtle);
  color: var(--bone);
  cursor: pointer;
  transition: all 0.2s ease;
}

.spawn-add-btn:hover {
  background: var(--emerald-subtle);
  border-color: rgba(49, 184, 132, 0.4);
  color: var(--emerald-bright);
  transform: translateY(-1px);
}

/* ==========================================================================
   ACT 1: THE BLEED (DEATH BY A THOUSAND CUTS)
   ========================================================================== */

.section-story {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 12px;
}

.story-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.story-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-top: 16px;
}

/* Email Thread Cards Grid */
.leak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.leak-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.leak-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.leak-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.leak-project {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bone-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leak-cost-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--red-subtle);
  color: var(--red-loss);
  border: 1px solid rgba(229, 72, 77, 0.25);
}

.leak-sender {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bone-bright);
  margin-bottom: 4px;
}

.leak-email-body {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(18, 19, 21, 0.5);
  padding: 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red-loss);
  margin-bottom: 18px;
}

.leak-consequence {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--quiet);
}

.leak-consequence strong {
  color: var(--bone);
}

/* Callout Summary Box */
.bleed-summary-box {
  background: linear-gradient(135deg, rgba(39, 42, 46, 0.8) 0%, rgba(27, 28, 30, 0.9) 100%);
  border: 1px solid rgba(229, 72, 77, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bleed-summary-text h3 {
  font-size: 1.6rem;
  color: var(--bone-bright);
}

.bleed-summary-text p {
  margin-top: 8px;
  max-width: 600px;
}

.bleed-metric {
  text-align: right;
}

.bleed-metric-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--red-loss);
  line-height: 1;
}

.bleed-metric-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ==========================================================================
   ACT 2: HOW IT GRIPS (APPLE BENTO GRID)
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-card-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bento-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.bento-visual {
  margin-top: 28px;
  background: rgba(18, 19, 21, 0.6);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* ==========================================================================
   ACT 3: LIVE INTERACTIVE SCOPE SCANNER
   ========================================================================== */

.scanner-box {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px;
  margin-top: 40px;
}

.scanner-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.scanner-preset-tab {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(18, 19, 21, 0.6);
  border: 1px solid var(--line-subtle);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scanner-preset-tab:hover {
  color: var(--bone);
  border-color: var(--line-strong);
}

.scanner-preset-tab.active {
  background: var(--emerald-subtle);
  border-color: rgba(49, 184, 132, 0.4);
  color: var(--emerald-bright);
}

.scanner-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.scanner-textarea {
  width: 100%;
  height: 90px;
  padding: 16px;
  background: rgba(18, 19, 21, 0.7);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  color: var(--bone-bright);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
}

.scanner-textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 16px var(--emerald-glow);
}

/* Scanner Results */
.scanner-result-card {
  background: #1B1D20;
  border: 1px solid rgba(49, 184, 132, 0.45);
  border-radius: var(--radius-md);
  padding: 32px;
  animation: fadeIn 0.4s ease;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 24px rgba(49, 184, 132, 0.12);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-subtle);
}

.result-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-amount-callout {
  text-align: right;
}

.result-amount-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bone-dim);
}

.result-amount-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--emerald-bright);
}

.result-baseline-box {
  margin: 22px 0;
  padding: 16px 20px;
  background: rgba(220, 213, 180, 0.08);
  border: 1px solid rgba(220, 213, 180, 0.25);
  border-radius: var(--radius-sm);
}

.baseline-title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--bone-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.baseline-source {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bone-bright);
  margin-top: 4px;
}

.baseline-status {
  font-size: 0.925rem;
  font-weight: 500;
  color: #FBBF24;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Line items table */
.result-line-items {
  margin: 26px 0;
}

.line-items-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bone-bright);
  margin-bottom: 14px;
}

.line-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.line-items-table th, .line-items-table td {
  padding: 12px 16px;
  text-align: left;
}

.line-items-table th {
  color: var(--bone-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(18, 19, 21, 0.4);
}

.line-items-table td {
  border-bottom: 1px solid rgba(236, 232, 208, 0.08);
  color: var(--bone-bright);
}

.text-right {
  text-align: right !important;
}

.markup-row td {
  color: var(--sand-warm);
  font-style: italic;
  font-weight: 500;
}

.total-row td {
  border-top: 2px solid var(--emerald);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--emerald-bright);
  background: rgba(49, 184, 132, 0.08);
}

/* Pre-drafted reply */
.result-reply-preview {
  margin-top: 26px;
  background: rgba(18, 19, 21, 0.95);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--bone-bright);
}

.reply-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--bone-bright);
  white-space: pre-wrap;
  background: #141518;
  border: 1px solid var(--line-subtle);
  padding: 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.reply-actions {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   ACT 4: ROI MARGIN RESCUER CALCULATOR
   ========================================================================== */

.calc-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bone);
}

.slider-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--emerald-bright);
}

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-deep);
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
  box-shadow: 0 0 12px var(--emerald-glow);
  transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Calc Results Display */
.calc-results-card {
  background: linear-gradient(135deg, rgba(27, 28, 30, 0.95) 0%, rgba(18, 19, 21, 0.95) 100%);
  border: 1px solid rgba(49, 184, 132, 0.3);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-glow);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-subtle);
}

.calc-result-row:last-of-type {
  border-bottom: none;
}

.calc-result-title {
  font-size: 0.95rem;
  color: var(--muted);
}

.calc-result-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bone-bright);
}

.calc-highlight {
  color: var(--emerald-bright);
  font-size: 2.2rem;
}

/* ==========================================================================
   ACT 5: PRICING / GOURMET PACKAGES (WELLDONE INSPIRATION)
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.pricing-card.featured {
  border-color: var(--emerald);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 32px var(--emerald-glow);
  background: linear-gradient(180deg, rgba(39, 42, 46, 0.95) 0%, rgba(27, 28, 30, 0.95) 100%);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  right: 28px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--emerald);
  color: var(--bg-deep);
  border-radius: var(--radius-full);
}

.plan-title {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 48px;
}

.plan-price-wrap {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--bone-bright);
}

.plan-period {
  font-size: 0.95rem;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--bone);
}

.plan-features li::before {
  content: '✓';
  color: var(--emerald);
  font-weight: bold;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
}

.faq-item summary {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bone-bright);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--emerald);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   FOOTER & WATERMARK
   ========================================================================== */

footer {
  border-top: 1px solid var(--line-subtle);
  background: rgba(18, 19, 21, 0.9);
  padding: 64px 0 36px;
  margin-top: 100px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-tagline {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  margin-bottom: 6px;
}

.footer-nav-col a {
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-nav-col a:hover {
  color: var(--bone-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(236, 232, 208, 0.06);
  font-size: 0.875rem;
  color: var(--quiet);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calc-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .bleed-summary-box {
    flex-direction: column;
    text-align: left;
  }
  .bleed-metric {
    text-align: left;
  }
  .header-cta {
    display: none;
  }
}
