/* Shared marketing pages — notebook feel, matches extension welcome */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper-bg: #FAF6EE;
  --paper-dot: rgba(99, 102, 241, 0.16);
  --ink: #2B2A28;
  --ink-soft: #6B6559;
  --indigo: #6366f1;
  --indigo-dark: #4F46E5;
  --coral: #FF6B6B;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper-bg: #1E1B29;
    --paper-dot: rgba(129, 140, 248, 0.22);
    --ink: #F3F1FF;
    --ink-soft: #ABA6C4;
  }
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--paper-bg);
  background-image: radial-gradient(circle at top right, rgba(99, 102, 241, 0.30), transparent 48%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
  position: relative;
  animation: fadeIn 0.35s ease-out;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--paper-dot) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 40px);
}

.site-header--compact {
  padding: 14px clamp(16px, 3vw, 32px);
  flex-shrink: 0;
}

/* Home — scrollable marketing layout */
body.home {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.home-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(80dvh, 680px);
  padding: 32px 24px 48px;
}

.home-hero-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.home-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: white;
  box-shadow: 0 14px 32px rgba(99, 102, 241, 0.38);
  transform: rotate(-4deg);
}

.home-hero-icon svg {
  width: 52%;
  height: 52%;
  display: block;
}

.page-title--home {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 12px;
  letter-spacing: -0.8px;
}

.page-subtitle--home {
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 0 auto 28px;
  max-width: 30em;
  line-height: 1.55;
}

.page-actions--home {
  margin: 0 auto;
  max-width: 320px;
}

.page-actions--home .ai-btn {
  padding: 14px 24px;
  font-size: 16px;
  width: 100%;
}

.home-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(280px, 56vw);
  margin: 8px auto 0;
}

.home-divider-line {
  flex: 1;
  height: 1px;
  border: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.45) 50%,
    transparent 100%
  );
}

.home-divider-mark {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--indigo) 100%);
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.28);
}

.home-section {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 10vh, 96px) 24px;
}

.home-section-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.home-features {
  padding-top: clamp(28px, 5vh, 44px);
}

.feature-tour {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 8px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 40px rgba(43, 42, 40, 0.04);
}

.feature-block--reverse .feature-copy {
  order: 2;
}

.feature-block--reverse .feature-visual {
  order: 1;
}

.feature-step {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--indigo);
  margin-bottom: 10px;
}

.feature-copy h3 {
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.feature-copy p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.feature-copy strong {
  color: var(--ink);
  font-weight: 700;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

/* Product UI mockups */
.mock-browser {
  width: 100%;
  max-width: 340px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}

.mock-browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dadce0;
}

.mock-url {
  flex: 1;
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 11px;
  color: #5f6368;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-browser-body {
  position: relative;
  height: 180px;
  padding: 20px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
}

.mock-page-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 70%;
}

.mock-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
}

.mock-line--lg { width: 100%; height: 16px; }
.mock-line--sm { width: 55%; }

.mock-float-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #6366f1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: floatPulse 2.4s ease-in-out infinite;
}

.mock-float-btn svg {
  width: 24px;
  height: 24px;
}

.mock-float-btn--lg {
  position: relative;
  right: auto;
  bottom: auto;
  width: 60px;
  height: 60px;
}

.mock-float-btn--lg svg {
  width: 28px;
  height: 28px;
}

.mock-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FF6B6B;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

@keyframes floatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.mock-doodle {
  position: absolute;
  right: 72px;
  bottom: 28px;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  font-weight: 700;
  color: #6366f1;
  transform: rotate(-8deg);
  white-space: nowrap;
}

.mock-doodle--coral {
  position: static;
  color: #FF6B6B;
  transform: rotate(-6deg);
  margin-top: 8px;
}

.mock-panel {
  position: relative;
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dadce0;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mock-panel-header {
  height: 36px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.mock-panel-status {
  padding: 8px 12px;
  font-size: 12px;
  color: #5f6368;
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}

.mock-panel-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  background: #fafafa;
}

.mock-mailbox {
  font-size: 28px;
  opacity: 0.85;
}

.mock-scan-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.mock-scan-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: default;
}

.mock-scan-btn svg {
  width: 15px;
  height: 15px;
}

.mock-scan-quota {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.mock-event-card {
  margin: 10px 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #dadce0;
  background: #fff;
  text-align: left;
}

.mock-event-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 4px;
}

.mock-event-card span {
  display: block;
  font-size: 12px;
  color: #5f6368;
  line-height: 1.35;
}

.mock-event-card--selected {
  border-color: #6366f1;
  background: #eef0ff;
  box-shadow: 0 0 0 1px #6366f1;
}

.mock-footer-btn {
  margin: 8px 12px 12px;
  padding: 12px;
  border-radius: 8px;
  background: #6366f1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.mock-success-toast {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #34a853 0%, #2d9649 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(52, 168, 83, 0.35);
  animation: slideUp 0.45s ease-out 0.2s both;
}

.mock-success-check {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  flex-shrink: 0;
  line-height: 0;
}

.mock-success-check svg {
  width: 14px;
  height: 14px;
  display: block;
}

.mock-success-toast strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.mock-success-toast span {
  display: block;
  font-size: 11px;
  opacity: 0.9;
}

.mock-helpers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.mock-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mock-ext-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.mock-ext-icon svg {
  width: 20px;
  height: 20px;
}

.mock-ext-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #FF6B6B;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid #fff;
}

.mock-helper-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.mock-float-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pricing */
.home-pricing {
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(99, 102, 241, 0.04);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.pricing-card--pro {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FF6B6B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--indigo-dark);
  margin-bottom: 18px;
}

.pricing-price-unit {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-left: 2px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.pricing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo);
}

.pricing-list strong {
  color: var(--ink);
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pricing-cta.secondary {
  color: var(--indigo-dark);
  background: rgba(99, 102, 241, 0.1);
}

.pricing-cta.secondary:hover {
  background: rgba(99, 102, 241, 0.16);
}

.pricing-cta.ai-btn {
  color: white;
  background: linear-gradient(135deg, #FF6B6B 0%, #6366f1 55%, #4F46E5 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
}

.pricing-cta.ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.38);
}

.pricing-cta.ai-btn svg {
  width: 16px;
  height: 16px;
}

/* Contact */
.home-contact {
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.home-contact-inner {
  max-width: 560px;
  text-align: center;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 16px;
  padding: 28px 24px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(255, 107, 107, 0.12) 100%);
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.18);
}

.contact-cta-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
}

.contact-cta-address {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.contact-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.contact-note a {
  color: var(--indigo-dark);
  font-weight: 600;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  padding: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--indigo-dark);
}

@media (max-width: 760px) {
  .feature-block,
  .feature-block--reverse {
    grid-template-columns: 1fr;
  }

  .feature-block--reverse .feature-copy,
  .feature-block--reverse .feature-visual {
    order: unset;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .site-nav a:not(.nav-upgrade) {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  .feature-block,
  .pricing-card {
    background: rgba(255, 255, 255, 0.04);
  }

  .pricing-card--pro {
    background: rgba(255, 255, 255, 0.07);
  }

  .home-divider-line {
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(129, 140, 248, 0.5) 50%,
      transparent 100%
    );
  }

  .home-pricing {
    background: rgba(129, 140, 248, 0.06);
  }

  .contact-cta {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.16) 0%, rgba(255, 107, 107, 0.12) 100%);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.32);
  transform: rotate(-4deg);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  display: block;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(99, 102, 241, 0.08);
}

.site-nav a[aria-current="page"] {
  color: var(--indigo-dark);
  background: rgba(99, 102, 241, 0.12);
}

.site-nav .nav-upgrade {
  color: white;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
  padding: 9px 16px;
}

.site-nav .nav-upgrade:hover {
  color: white;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.36);
}

.site-nav .nav-upgrade[aria-current="page"] {
  color: white;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
}

.paper {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vh, 72px) 24px;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vh, 72px) 24px;
}

.how-section {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vh, 80px) 24px clamp(72px, 12vh, 120px);
}

.section-title {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  line-height: 1.15;
  text-align: center;
}

.section-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 24em;
  margin: 0 auto 32px;
  text-align: center;
}

.value-props {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.value-prop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(255, 255, 255, 0.5);
}

.value-prop-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--indigo-dark);
}

.value-prop-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.value-prop-body {
  flex: 1;
  min-width: 0;
}

.value-prop-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}

.value-prop-body span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (prefers-color-scheme: dark) {
  .value-prop-card {
    background: rgba(30, 27, 41, 0.45);
    border-color: rgba(129, 140, 248, 0.18);
  }

  .value-prop-icon {
    background: rgba(129, 140, 248, 0.12);
    color: #C7C2FF;
  }
}

.page-content {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.page-content--wide {
  max-width: 520px;
}

.page-content--upgrade {
  max-width: 420px;
}

.page-content--upgrade .page-subtitle {
  margin-bottom: 28px;
}

.upgrade-price {
  margin: 0 auto 28px;
  padding: 22px 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.1) 0%, rgba(255, 107, 107, 0.06) 100%);
}

.upgrade-price-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}

.upgrade-price-value {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--indigo-dark);
}

.upgrade-price-period {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.upgrade-price-savings {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #2f9e44;
}

.upgrade-price-savings[hidden] {
  display: none;
}

.billing-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 10px auto 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(255, 255, 255, 0.65);
}

.billing-toggle-highlight {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
  transition: transform 0.25s ease, width 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.billing-toggle-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.billing-toggle-btn.is-active {
  color: #fff;
}

.billing-toggle-btn:not(.is-active):hover {
  color: var(--ink);
}

.billing-save {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(47, 158, 68, 0.14);
  color: #2f9e44;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.billing-toggle-btn.is-active .billing-save {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.upgrade-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin: 0 auto 28px;
  width: 100%;
}

.upgrade-features li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  position: relative;
}

.upgrade-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo);
}

.upgrade-features strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.upgrade-features span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.upgrade-secure {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}

@media (prefers-color-scheme: dark) {
  .upgrade-price {
    border-color: rgba(129, 140, 248, 0.22);
    background: linear-gradient(160deg, rgba(129, 140, 248, 0.12) 0%, rgba(255, 107, 107, 0.08) 100%);
  }

  .upgrade-price-value {
    color: #C7C2FF;
  }

  .billing-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(129, 140, 248, 0.2);
  }

  .upgrade-price-savings,
  .billing-save {
    color: #69DB7C;
  }

  .billing-save {
    background: rgba(105, 219, 124, 0.16);
  }
}

.page-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: white;
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.38);
  transform: rotate(-4deg);
}

.page-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}

.page-title {
  font-size: clamp(30px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.75px;
  margin-bottom: 14px;
  line-height: 1.08;
}

.page-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 22em;
  margin: 0 auto 36px;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  margin: 0 auto 36px;
  width: 100%;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.28);
}

.step strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.step p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.page-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.page-actions a,
.page-actions button,
.interest-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.page-actions a:hover,
.page-actions button:hover,
.interest-form button:hover {
  transform: translateY(-1px);
}

.page-actions a:active,
.page-actions button:active,
.interest-form button:active {
  transform: translateY(0);
}

.page-actions .primary {
  color: white;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.page-actions .primary:hover {
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.42);
}

.page-actions .secondary {
  color: var(--ink-soft);
  background: transparent;
  border: none;
  box-shadow: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
}

.page-actions .secondary:hover {
  color: var(--indigo-dark);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
}

.page-actions .ai-btn,
.interest-form .ai-btn {
  gap: 8px;
  color: white;
  background: linear-gradient(135deg, #FF6B6B 0%, #6366f1 55%, #4F46E5 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.page-actions .ai-btn:hover,
.interest-form .ai-btn:hover {
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.page-actions .ai-btn svg,
.interest-form .ai-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.page-callout {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  margin: 0 auto 6px;
  padding-left: 0;
  /* Sit over the left edge of the CTA */
  transform: translateX(-28px);
  animation: fadeIn 0.4s ease-out 0.45s both;
}

.doodle-label {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  line-height: 1.1;
}

.doodle-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 40px;
  transform: rotate(12deg);
  margin-bottom: -2px;
}

.doodle-label--reinstall {
  font-size: 20px;
  color: var(--coral);
  transform: rotate(-6deg);
  white-space: nowrap;
  margin-bottom: 22px;
}

.goodbye-cta {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.paper--goodbye {
  align-items: flex-start;
  padding-top: clamp(24px, 5vh, 48px);
  padding-bottom: 48px;
}

.page-content--goodbye {
  max-width: 400px;
}

.page-icon--sm {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 18px;
}

.page-icon--sm svg {
  width: 34px;
  height: 34px;
}

.page-title--sm {
  font-size: clamp(24px, 4vw, 30px);
  margin-bottom: 8px;
}

.page-subtitle--sm {
  font-size: 15px;
  margin-bottom: 28px;
  max-width: none;
}

.goodbye-block {
  width: 100%;
}

.goodbye-block--reinstall {
  margin-bottom: 28px;
}

.goodbye-block-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.goodbye-block--survey {
  padding-top: 22px;
  border-top: 1px solid rgba(99, 102, 241, 0.14);
}

.goodbye-survey {
  width: 100%;
  max-width: 420px;
  margin: 40px auto 0;
  text-align: left;
  padding-top: 28px;
  border-top: 1px solid rgba(99, 102, 241, 0.14);
}

.survey-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  text-align: center;
}

.survey-note {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin: -2px auto 10px;
  line-height: 1.4;
}

.survey-embed-wrap {
  width: 112%;
  margin-left: -6%;
  transform: scale(0.82);
  transform-origin: top center;
  /* Reserve space so scale doesn't leave a huge empty gap */
  max-height: 340px;
  overflow: hidden;
}

.survey-embed {
  display: block;
  width: 100%;
  border: 0;
  min-height: 240px;
}

.survey-setup {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.45;
}

.survey-setup a {
  color: var(--indigo-dark);
}

.survey-setup code {
  font-size: 12px;
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.interest-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 999px;
  outline: none;
}

.interest-form input[type="email"]:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.form-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo-dark);
  min-height: 1.4em;
}

.form-status--ok {
  color: #2F9E44;
}

.form-status--error {
  color: #E03131;
}

.interest-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.interest-form button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

@media (prefers-color-scheme: dark) {
  .site-nav a[aria-current="page"]:not(.nav-upgrade) {
    color: #C7C2FF;
    background: rgba(129, 140, 248, 0.16);
  }

  .page-actions .secondary {
    background: transparent;
    border: none;
    color: var(--ink-soft);
  }

  .page-actions .secondary:hover {
    background: transparent;
    color: #C7C2FF;
  }

  .interest-form input[type="email"] {
    background: rgba(30, 27, 41, 0.55);
    border-color: rgba(129, 140, 248, 0.2);
    color: var(--ink);
  }

  .form-status {
    color: #C7C2FF;
  }

  .form-status--ok {
    color: #69DB7C;
  }

  .form-status--error {
    color: #FF8787;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-name {
    font-size: 15px;
  }

  .site-nav a {
    padding: 7px 10px;
    font-size: 13px;
  }
}
