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

:root {
  --bg: #f5f8fe;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(26, 41, 71, 0.12);
  --text: #0b1628;
  --muted: #566583;
  --accent: #c959dd;
  --accent-strong: #ff2e54;
  --success: #47c9a6;
  --shadow: 0 20px 70px rgba(24, 46, 90, 0.18);
  --radius: 18px;
  --primary-gradient: linear-gradient(108deg, #0894ff, #c959dd 34%, #ff2e54 68%, #ff9004);
  --primary-soft: linear-gradient(108deg, rgba(8, 148, 255, 0.24), rgba(201, 89, 221, 0.22) 34%, rgba(255, 46, 84, 0.2) 68%, rgba(255, 144, 4, 0.18));
  --gradient: radial-gradient(circle at 18% 18%, rgba(8, 148, 255, 0.45), transparent 42%), radial-gradient(circle at 82% 14%, rgba(201, 89, 221, 0.34), transparent 38%), radial-gradient(circle at 46% 74%, rgba(255, 46, 84, 0.26), transparent 40%), radial-gradient(circle at 28% 68%, rgba(255, 144, 4, 0.24), transparent 36%);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Space Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.background-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--gradient);
  mask-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), transparent 92%);
  z-index: 0;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(12, 26, 54, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 26, 54, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.8;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.8;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: #0894ff;
  top: -40px;
  right: 8%;
  animation: float 12s ease-in-out infinite;
}

.orb-b {
  width: 240px;
  height: 240px;
  background: #c959dd;
  bottom: 10%;
  left: 12%;
  animation: float 14s ease-in-out infinite reverse;
}

.orb-c {
  width: 280px;
  height: 280px;
  background: #ff9004;
  bottom: 20%;
  right: 20%;
  animation: float 16s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-16px) translateX(12px); }
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 20px 40px;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 30, 60, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.glyph {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;

}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 8px;
}

.brand-name { font-size: 16px; }
.brand-sub { font-size: 13px; color: var(--muted); }

.links {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.links a:hover { color: var(--accent-strong); }

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-drawer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

button {
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

button.primary {
  padding: 12px 18px;
  background: var(--primary-gradient);
  color: #071020;
  box-shadow: 0 10px 30px rgba(255, 46, 84, 0.2);
  color: white;
}

button.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(8, 148, 255, 0.24); }

button.ghost {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
}

button.ghost:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.95); }

main { position: relative; z-index: 1; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-shell {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 41, 71, 0.08);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.visual-shell::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  background: var(--primary-soft);
  filter: blur(30px);
  opacity: 0.9;
  z-index: 0;
}

.visual-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.visual-meta {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.visual-meta .hint { margin: 0; }

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
  margin: 12px 0;
  letter-spacing: -0.02em;
}

.hero-copy .lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent-strong);
  margin: 0;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}

.pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pulse .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #47c9a6;
  box-shadow: 0 0 0 8px rgba(71, 201, 166, 0.22);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 8px rgba(71, 201, 166, 0.22); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(71, 201, 166, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 8px rgba(71, 201, 166, 0.22); }
}

.meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.hint {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 148, 255, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.chip {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(201, 89, 221, 0.16);
  color: var(--accent-strong);
  font-weight: 600;
  border: 1px solid rgba(255, 46, 84, 0.24);
}

.chip.ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  border: 1px solid var(--border);
}

.persona-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.persona {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 12px;
  border-radius: var(--radius);
  text-align: left;
}

.persona small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

.persona.active {
  background: var(--primary-soft);
  border-color: rgba(255, 46, 84, 0.3);
  box-shadow: 0 8px 20px rgba(201, 89, 221, 0.18);
}

.workspace {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  margin-top: 14px;
}

.workspace-left {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.task {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 41, 71, 0.08);
}

.task.inline { background: rgba(255, 255, 255, 0.9); }

.task .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffb347;
  margin-top: 4px;
  box-shadow: 0 0 0 8px rgba(255, 179, 71, 0.18);
}

.dot.blue { background: var(--accent); box-shadow: 0 0 0 8px rgba(201, 89, 221, 0.2); }
.dot.green { background: var(--success); box-shadow: 0 0 0 8px rgba(71, 201, 166, 0.18); }

.task-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.task-body {
  margin: 2px 0 0;
  font-weight: 700;
  color: #0b1628;
}

.workspace-right {
  background: var(--panel-strong);
  border: 1px solid rgba(26, 41, 71, 0.1);
  border-radius: var(--radius);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.preview {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(26, 41, 71, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.preview-header {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
}

.pill.active {
  color: white;
  background: var(--primary-gradient);
  border-color: rgba(255, 46, 84, 0.32);
}

.preview-body {
  background: radial-gradient(circle at 20% 20%, rgba(8, 148, 255, 0.18), transparent 52%), rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(26, 41, 71, 0.06);
  min-height: 260px;
}

.preview-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(26, 41, 71, 0.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(15, 30, 60, 0.12);
}

.preview-top {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.bubble {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.bubble-blue { background: #4db4ff; }
.bubble-white { background: #e8ecf3; }

.preview-hero h4 {
  margin: 6px 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.preview-hero .mini {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: var(--accent-strong);
}

.muted { color: var(--muted); margin: 0; }

.preview-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.preview-actions .button {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(201, 89, 221, 0.16);
  color: var(--text);
  font-weight: 700;
}

.preview-actions .button.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.preview-chip {
  padding: 10px;
  border-radius: 10px;
  background: rgba(201, 89, 221, 0.14);
  border: 1px solid rgba(26, 41, 71, 0.08);
  font-weight: 700;
  color: #0b1628;
}

.playbook {
  padding: 20px 40px 70px;
  max-width: 1280px;
  margin: 0 auto;
}

.playbook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.playbook-head h2 { margin: 6px 0; }

.playbook-body {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(26, 41, 71, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.fade-in {
  animation: fadeIn 0.35s ease;
}

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

.section {
  padding: 40px 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-head h2 {
  margin: 10px 0;
  font-size: clamp(28px, 3.3vw, 38px);
}

.section-head .lede {
  color: var(--muted);
  max-width: 700px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pricing .section-head { text-align: left; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.plan {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 41, 71, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.plan.featured {
  background: var(--primary-soft);
  border: 1px solid rgba(255, 46, 84, 0.28);
  box-shadow: 0 18px 40px rgba(15, 30, 60, 0.16);
}

.plan-head h3 { margin: 4px 0; }
.plan-head .body { margin: 4px 0 0; color: var(--muted); }

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.plan-price .price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.meta-text { color: var(--muted); font-weight: 600; }
.tokens { margin: 0; color: var(--accent-strong); font-weight: 700; }

.plan-points {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.plan-points li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent-strong);
}

.plan .full {
  width: 100%;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.instruction-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 41, 71, 0.08);
  box-shadow: var(--shadow);
}

.instruction .body { margin: 4px 0 0; color: var(--muted); }

.step {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(8, 148, 255, 0.18);
}

.card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 41, 71, 0.08);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(107, 194, 255, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after { opacity: 1; }
.card h3 { margin: 8px 0; font-size: 20px; }
.card .body { color: var(--muted); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card.highlight {
  border: 1px solid rgba(255, 46, 84, 0.28);
  background: var(--primary-soft);
}

.demo-bar {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(26, 41, 71, 0.08);
}

.progress {
  width: 100%;
  height: 8px;
  background: rgba(26, 41, 71, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress .fill {
  display: block;
  height: 100%;
  width: 35%;
  background: var(--primary-gradient);
  border-radius: inherit;
  animation: progress 6s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 18%; }
  40% { width: 72%; }
  70% { width: 92%; }
  100% { width: 24%; }
}

.demo-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.cta {
  padding: 60px 24px 100px;
  max-width: 1100px;
  margin: 0 auto 80px;
}

.cta-content {
  background: var(--primary-soft);
  border: 1px solid rgba(255, 46, 84, 0.28);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 20px 50px rgba(24, 46, 90, 0.18);
}

.cta h2 { margin: 10px 0; font-size: clamp(26px, 3vw, 34px); }
.cta .lede { color: #0b1628; max-width: 620px; font-weight: 600; }
.cta .micro { color: #243552; font-size: 14px; }

.footer {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

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

.policy-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 41, 71, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.policy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(107, 194, 255, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.policy-card:hover::after { opacity: 1; }

.policy-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.policy-content {
  color: var(--muted);
  line-height: 1.6;
}

.policy-content p {
  margin: 0 0 12px;
}

.policy-content strong {
  color: var(--text);
  font-weight: 600;
}

.policy-content ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

  .policy-content li {
    margin-bottom: 4px;
  }

.policy-page {
  padding: 100px 0 60px;
  max-width: 800px;
  margin: 0 auto;
}

.policy-page .section-head {
  text-align: center;
  margin-bottom: 60px;
}

.policy-page .section-head h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 16px 0 24px;
}

.policy-page .section-head .lede {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}

.policy-content-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(26, 41, 71, 0.08);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.policy-rich-content {
  display: grid;
  gap: 32px;
}

.policy-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(26, 41, 71, 0.06);
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.policy-section p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--muted);
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 16px 0 0;
  padding-left: 24px;
}

.policy-section li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--muted);
}

.policy-section li strong {
  color: var(--text);
  font-weight: 600;
}

.policy-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(26, 41, 71, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.nav-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.other-policies {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.other-policies a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(26, 41, 71, 0.04);
  transition: all 0.2s ease;
}

.other-policies a:hover {
  color: var(--text);
  background: rgba(26, 41, 71, 0.08);
}

.footer {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

@media (max-width: 1080px) {
  header.nav { grid-template-columns: auto 1fr auto; grid-template-rows: auto; gap: 12px; }
  .links { justify-content: flex-end; }
  .nav-drawer { justify-content: flex-end; gap: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .visual-meta { position: static; margin-top: 10px; }
  .workspace { grid-template-columns: 1fr; }
  .playbook-head { flex-direction: column; align-items: flex-start; }
  .hero { padding: 70px 28px; gap: 24px; }
  .playbook { padding: 20px 28px 60px; }
  .section { padding: 32px 28px 70px; }
}

@media (max-width: 900px) {
  header.nav {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    row-gap: 10px;
  }
  .menu-toggle { display: flex; justify-self: end; }
  .nav-drawer { justify-content: flex-end; gap: 12px; }
  .links { justify-content: flex-end; }
  .actions { justify-content: flex-end; }
}

@media (max-width: 720px) {
  header.nav {
    padding: 14px 16px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    row-gap: 0;
    align-items: center;
    position: sticky;
  }
  .brand { justify-content: flex-start; }
  .nav-drawer {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 30, 60, 0.18);
    z-index: 12;
  }
  .nav.open .nav-drawer { display: flex; }
  .links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    margin: 0;
    justify-content: stretch;
  }
  .links a {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(245, 248, 254, 0.9);
    border: 1px solid var(--border);
    text-align: left;
  }
  .actions {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }
  .actions button { flex: 1; padding: 10px 12px; }
  .hero {
    padding: 54px 18px;
    gap: 20px;
  }
  .hero-copy .lede { font-size: 16px; }
  .meta { font-size: 13px; gap: 10px; }
  .visual-shell { padding: 12px; }
  .visual-meta { flex-direction: column; align-items: flex-start; }
  .playbook,
  .section { padding: 26px 18px 54px; }
  .playbook-body { padding: 14px; }
  .persona-row { grid-template-columns: 1fr; }
  .workspace-left,
  .workspace-right { padding: 12px; }
  .preview { padding: 10px; }
  .preview-body { min-height: 0; }
  .preview-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .instruction-grid { grid-template-columns: 1fr; }
  .cta { padding: 46px 18px 80px; }
  .cta-content { padding: 22px 18px; }
  .policy-grid { grid-template-columns: 1fr; gap: 16px; }
  .policy-card { padding: 18px; }
}

@media (max-width: 540px) {
  .hero-copy h1 { font-size: clamp(28px, 8vw, 34px); }
  .cta-row,
  .meta { flex-direction: column; align-items: flex-start; }
  .pulse { width: 100%; }
  .section-head h2 { font-size: clamp(24px, 7vw, 30px); }
  .plan-price .price { font-size: 28px; }
  .card,
  .plan,
  .instruction-card { padding: 14px; }
  .policy-page { padding: 80px 18px 40px; }
  .policy-content-card { padding: 24px; }
  .policy-rich-content { gap: 24px; }
  .policy-section { padding: 20px 0; }
  .policy-section h3 { font-size: 20px; }
  .policy-navigation { flex-direction: column; align-items: flex-start; gap: 16px; }
  .other-policies { justify-content: flex-start; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 16px; text-align: center; }
}
