/* Poach Lander Stylesheet
   Visual identity: Deep Petrol (#0D3B3E) + Architectural Slate (#F8FAFC / #0F172A / #475569),
   Teal (#0F766E) & Signal Emerald (#059669) accents, crisp 8px/10px corners,
   self-hosted Archivo display type paired with clean system sans prose. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62.5% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F8FAFC;
  --panel: #FFFFFF;
  --surface: #F1F5F9;
  --surface-tint: #F0FDFA;
  --brand: #0D3B3E;
  --brand-hover: #082A2C;
  --brand-deep: #092D30;
  --teal: #0F766E;
  --emerald: #059669;
  --emerald-bg: #ECFDF5;
  --emerald-border: #A7F3D0;
  --ink: #0F172A;
  --body: #475569;
  --subtle: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-panel: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -10px rgba(15, 23, 42, 0.08);
  --shadow-window: 0 2px 6px rgba(15, 23, 42, 0.06), 0 20px 44px -16px rgba(13, 59, 62, 0.14);
  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-word, .tier-amt, .modal-title {
  font-family: var(--font-display);
  font-stretch: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow {
  max-width: 820px;
}

.ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 12px 20px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn-secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: #94A3B8;
}

.btn-white {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--brand);
}

.btn-white:hover {
  background: #F1F5F9;
  border-color: #F1F5F9;
}

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

.btn-lg {
  font-size: 0.9375rem;
  padding: 13px 22px;
}

.btn-full {
  width: 100%;
}

/* ---------- Header (Full-Width Clean Bar, Non-Sticky) ---------- */

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

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

.primary-nav a,
.nav-signin {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
  background: none;
  border: none;
  padding: 6px 2px;
  transition: color 0.15s ease;
}

.primary-nav a:hover,
.nav-signin:hover {
  color: var(--brand);
}

.primary-nav .nav-cta {
  color: #FFFFFF;
  padding: 10px 16px;
}

.primary-nav .nav-cta:hover {
  color: #FFFFFF;
}

/* ---------- Hero (Left-Aligned Editorial SaaS + 2-Pane Workspace Window) ---------- */

.hero {
  padding: 36px 0 64px;
  background: var(--bg);
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 24px 32px;
  align-items: end;
  margin-bottom: 30px;
}

.hero-h1 {
  margin: 0 0 14px;
  max-width: 680px;
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-sub {
  margin: 0;
  max-width: 600px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--body);
}

.hero-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  padding-bottom: 4px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--body);
}

.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Unified Hero SaaS Application Window ---------- */

.hero-window {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  background: var(--brand);
  color: #FFFFFF;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-win-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 4px;
}

.app-win-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.app-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  white-space: nowrap;
}

.app-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.app-crumb {
  font-size: 0.8125rem;
  color: #CBD5E1;
  white-space: nowrap;
}

.app-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  color: #E2E8F0;
  white-space: nowrap;
}

.ico-search {
  width: 13px;
  height: 13px;
  color: #99F6E4;
}

.app-topbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.app-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(5, 150, 105, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #D1FAE5;
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--emerald);
  flex-shrink: 0;
}

.app-live-badge .live-dot {
  background: #34D399;
}

/* 2-Pane Split (70% Feed / 30% One-Shot Output) */

.app-panes {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.app-feed-pane {
  padding: 18px 20px 20px;
  background: var(--panel);
  min-width: 0;
}

.pane-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pane-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-chip {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--body);
}

.pf-chip.is-active {
  background: var(--surface-tint);
  border-color: #99F6E4;
  color: var(--teal);
  font-weight: 600;
}

.pane-hint {
  font-size: 0.75rem;
  color: var(--subtle);
}

.hero-vid-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-vid-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hero-vid-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0F172A;
  transition: border-color 0.15s ease;
}

.hero-vid-item.is-selected .hero-vid-card {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(13, 59, 62, 0.22);
}

.hero-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vid-active-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--emerald-border);
  color: #047857;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hero-vid-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(13, 59, 62, 0.92);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.14s ease;
}

.hero-vid-card:hover .hero-vid-badge {
  background: var(--brand-hover);
}

.hero-vid-badge .ico {
  width: 13px;
  height: 13px;
}

.hero-vid-badge .ico-pause {
  display: none;
}

.hero-vid-card.is-playing .hero-vid-badge .ico-play {
  display: none;
}

.hero-vid-card.is-playing .hero-vid-badge .ico-pause {
  display: block;
}

.hero-vid-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-vid-brand {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-vid-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Output Pane (30% width) */

.app-output-pane {
  padding: 18px 20px 20px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.out-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.out-kicker {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.out-source {
  margin: 0;
  font-size: 0.78rem;
  color: var(--subtle);
}

.out-ready-tag {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: #047857;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.out-hook-box {
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border);
}

.out-hook-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.out-hook-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--subtle);
}

.out-hook-val {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
}

.out-hook-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--body);
}

.out-variants {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.out-variants li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
}

.ov-name {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ov-angle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
}

.out-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: #065F46;
}

/* ---------- Generic Section Rhythm ---------- */

.sec {
  padding: 80px 0;
  scroll-margin-top: 24px;
}

.sec-head {
  text-align: left;
  max-width: 820px;
  margin: 0 0 36px;
}

.sec-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.sec-sub {
  margin: 0;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
}

/* ---------- Section 2: Mock Workspace Preview ---------- */

.sec-workspace {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ws-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ws-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.ws-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.tab-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.78;
}

.browser-frame {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #CBD5E1;
}

.browser-url {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--body);
}

.browser-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}

.ws-panel {
  padding: 24px;
}

.ws-panel[hidden] {
  display: none;
}

/* Tab 1: Ad Library Feed */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lib-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.lib-video-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0F172A;
  margin-bottom: 12px;
}

.lib-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lib-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pill-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: #047857;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pill-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
}

.lib-brand {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lib-takeaway {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--body);
  flex: 1;
}

.lib-inspect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
}

.lib-inspect-btn:hover {
  color: var(--brand);
}

/* Tab 2: Hook Breakdown */
.clip-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.clip-switcher-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--subtle);
}

.clip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clip-pill {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--body);
  font-size: 0.8125rem;
  font-weight: 500;
}

.clip-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.clip-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.bd-grid {
  display: grid;
  grid-template-columns: minmax(240px, 310px) 1fr;
  gap: 28px;
  align-items: start;
}

.bd-video-box {
  width: 100%;
  aspect-ratio: 9 / 15;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0F172A;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.bd-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bd-media-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
}

.bd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bd-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.bd-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.pill-safe {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: #047857;
  font-size: 0.75rem;
  font-weight: 600;
}

.timeline-bar {
  display: grid;
  grid-template-columns: 1.2fr 2.1fr 3fr 2.4fr;
  gap: 6px;
  margin-bottom: 16px;
}

.tl-seg {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.tl-1 {
  background: var(--brand);
  color: #FFFFFF;
}

.tl-2 {
  background: #CCFBF1;
  color: var(--brand);
}

.tl-3 {
  background: var(--surface);
  color: var(--ink);
}

.tl-4 {
  background: var(--emerald-bg);
  color: #047857;
}

.beat-rows {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.beat-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.beat-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  padding-top: 2px;
}

.beat-row h4 {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.beat-row p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--body);
}

.bd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.bd-foot p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--subtle);
}

/* Tab 3: One-Shot Studio */
.studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.script-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.script-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
}

.script-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.script-tag {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
}

.script-dur {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--subtle);
}

.script-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.script-hook {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

.script-note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--body);
}

.sb-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.sb-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
}

.sb-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  font-weight: 600;
}

.sb-chip strong {
  font-size: 0.875rem;
  color: var(--ink);
}

.sb-chip span:last-child {
  font-size: 0.8rem;
  color: var(--body);
}

.vo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #FFFFFF;
}

.vo-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vo-play {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vo-title {
  margin: 0 0 2px;
  font-size: 0.9rem;
  font-weight: 600;
}

.vo-sub {
  margin: 0;
  font-size: 0.78rem;
  color: #CBD5E1;
}

.vo-wave {
  width: 180px;
  height: 28px;
  fill: #5EEAD4;
}

/* ---------- Section 3: Comparison Table ---------- */

.sec-compare {
  background: var(--bg);
}

.cmp-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cmp-table th,
.cmp-table td {
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
  border-bottom: none;
}

.cmp-table thead th {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--body);
  background: var(--surface);
}

.cmp-table thead th.col-poach-head {
  color: #FFFFFF;
  background: var(--brand);
}

.cmp-table tbody th {
  width: 24%;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.cmp-table td {
  width: 38%;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cmp-table td.col-poach {
  background: var(--surface-tint);
  color: var(--ink);
  font-weight: 500;
}

.cmp-table td.col-bot {
  color: var(--body);
}

.cmp-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cmp-cell .ico {
  margin-top: 3px;
}

/* ---------- Section 4: 3 Steps ---------- */

.sec-steps {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
}

.step-num-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.58;
  color: var(--body);
}

/* ---------- Section 5: Pricing ---------- */

.sec-pricing {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.tier-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.tier-card.is-featured {
  border: 2px solid var(--brand);
}

.tier-bar {
  padding: 8px 24px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tier-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
}

.tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.tier-top h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.tier-amt {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.tier-per {
  font-size: 0.9375rem;
  color: var(--subtle);
}

.tier-annual {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  font-weight: 600;
}

.tier-desc {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--body);
}

.tier-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink);
}

.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.tier-list .ico {
  margin-top: 3px;
}

.pricing-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--body);
}

.pricing-note a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Section 6: FAQ ---------- */

.sec-faq {
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: 0 20px;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

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

.ico-chev {
  transition: transform 0.16s ease;
  color: var(--teal);
}

.faq-item[open] .ico-chev {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body);
}

/* ---------- Section 7: Deep Petrol Architectural Closing Banner ---------- */

.sec-closing {
  background: var(--panel);
  padding-top: 16px;
  padding-bottom: 84px;
}

.closing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 44px;
  border-radius: var(--radius-lg);
  background-color: var(--brand);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid #164E52;
  color: #FFFFFF;
}

.closing-copy {
  max-width: 620px;
}

.closing-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-wrap: balance;
}

.closing-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.closing-mail {
  font-size: 0.875rem;
  color: #CCFBF1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.closing-mail:hover {
  color: #FFFFFF;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 52px 0 38px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 290px;
}

.footer-brand-link {
  margin-bottom: 12px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--body);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 36px;
}

.footer-h {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--body);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  color: var(--body);
}

.grant-badge-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--subtle);
}

.footer-email {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
}

.footer-email:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Legal Pages (/privacy, /terms) ---------- */

.legal-hero {
  padding: 48px 0 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.legal-kicker {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
}

.legal-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 3.8vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-meta {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.legal-meta dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--subtle);
  margin-bottom: 2px;
}

.legal-meta dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink);
}

.legal-meta a,
.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body {
  padding: 36px 0 80px;
  background: var(--bg);
}

.prose h2 {
  margin: 30px 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.prose p {
  margin: 0 0 14px;
  color: var(--body);
  line-height: 1.65;
}

/* ---------- Native <dialog> Modal ---------- */

.modal {
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.54);
}

.modal-card {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.modal-tab {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--body);
}

.modal-tab.is-active {
  background: var(--brand);
  color: #FFFFFF;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--body);
}

.modal-close:hover {
  background: var(--surface);
  color: var(--ink);
}

.modal-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.modal-sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--body);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.field-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.field-error {
  margin: 0;
  font-size: 0.8125rem;
  color: #B91C1C;
}

.modal-confirm {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.confirm-text {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
}

.confirm-text:last-child {
  margin-bottom: 0;
}

.confirm-text a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-action-col {
    align-items: flex-start;
  }

  .hero-ctas,
  .hero-checks {
    justify-content: flex-start;
  }

  .app-panes {
    grid-template-columns: 1fr;
  }

  .app-output-pane {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .app-search {
    display: none;
  }

  .closing-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .closing-actions {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .lib-grid,
  .script-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .bd-grid {
    grid-template-columns: 1fr;
  }

  .bd-video-box {
    max-width: 300px;
  }

  .sb-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 18px;
  }

  .header-bar {
    min-height: 58px;
  }

  .nav-desk,
  .nav-cta {
    display: none;
  }

  .primary-nav {
    gap: 16px;
  }

  .hero {
    padding: 24px 0 48px;
  }

  .hero-top {
    margin-bottom: 24px;
  }

  .hero-ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-checks {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .app-topbar {
    padding: 10px 14px;
    gap: 10px;
  }

  .app-sep,
  .app-crumb {
    display: none;
  }

  .app-feed-pane,
  .app-output-pane {
    padding: 14px;
  }

  .pane-hint {
    display: none;
  }

  .pane-filters {
    gap: 5px;
  }

  .pf-chip {
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .hero-vid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sec {
    padding: 56px 0;
  }

  .ws-tabs {
    width: 100%;
  }

  .ws-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.8125rem;
  }

  .browser-bar {
    padding: 10px 12px;
  }

  .browser-badge {
    display: none;
  }

  .ws-panel {
    padding: 16px;
  }

  .timeline-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beat-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sb-strip {
    grid-template-columns: 1fr;
  }

  .cmp-wrap {
    overflow-x: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .cmp-table,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td {
    display: block;
    width: 100%;
  }

  .cmp-table thead {
    display: none;
  }

  .cmp-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cmp-table tbody tr {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-panel);
  }

  .cmp-table tbody th {
    width: 100%;
    padding: 13px 16px 10px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
  }

  .cmp-table td {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.875rem;
  }

  .cmp-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--subtle);
  }

  .cmp-table td.col-poach::before {
    color: var(--teal);
  }

  .closing-banner {
    padding: 34px 22px;
  }

  .closing-actions {
    width: 100%;
  }

  .closing-actions .btn {
    width: 100%;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 24px;
  }
}
