:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: #dfe1e7;
  --white: #ffffff;
  --blue: #0a84ff;
  --green: #2f9e63;
  --amber: #b7791f;
  --shadow: 0 24px 70px rgba(29, 29, 31, 0.12);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px max(22px, 5vw);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(223, 225, 231, 0.72);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 0;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.section,
.section-band {
  padding: 88px max(22px, 5vw);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
}

.section[id] {
  scroll-margin-top: 86px;
}

.section-band {
  width: 100%;
}

.hero,
.affiliate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  justify-items: start;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 68%);
}

.hero {
  padding-top: clamp(48px, 8vh, 72px);
  padding-bottom: clamp(36px, 6vh, 64px);
}

.affiliate-hero {
  grid-template-columns: minmax(0, 860px);
  align-content: center;
}

.hero-copy {
  max-width: 1080px;
}

.hero-copy.narrow {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 800;
  max-width: 1040px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.03;
  font-weight: 780;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

p {
  line-height: 1.58;
}

.hero-text {
  max-width: 880px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.32;
}

.hero-actions,
.footer-links {
  flex-wrap: wrap;
}

.language-bar {
  display: grid;
  gap: 4px;
  max-width: 660px;
  margin-top: 24px;
  padding: 16px 18px;
  background: #f1f8f4;
  border: 1px solid #ccebd9;
  border-radius: var(--radius);
}

.language-bar strong {
  color: #126b40;
  font-size: 18px;
}

.language-bar span {
  color: #335343;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 14px 36px rgba(10, 132, 255, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.button.full {
  width: 100%;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  padding: 8px 12px;
  color: #3f3f46;
  background: #f1f2f5;
  border: 1px solid #e4e5ea;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.compact {
  padding-top: 56px;
  padding-bottom: 56px;
}

.intro-grid,
.split,
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

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

.feature-card,
.checkout-box,
.affiliate-panel {
  min-height: 260px;
  padding: 30px;
  background: var(--soft);
  border: 1px solid #ececf0;
  border-radius: var(--radius);
}

.feature-card p,
.timeline-item p,
.affiliate-panel p,
.copy-columns p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 32px;
  margin-bottom: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.icon-pill.blue {
  color: #0057b8;
  background: #e5f1ff;
}

.icon-pill.green {
  color: #137044;
  background: #e4f7ed;
}

.icon-pill.amber {
  color: #8a5a13;
  background: #fff1d6;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px;
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-item > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

.metric-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  max-width: none;
  margin: 0;
  background: #1d1d1f;
  color: white;
}

.metric-band .eyebrow {
  color: #8ec5ff;
}

.metric-note {
  max-width: 680px;
  margin: 18px 0 0;
  color: #d7d7dc;
  font-size: 20px;
  line-height: 1.42;
}

.roi-calculator {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.roi-calculator label {
  color: #f5f5f7;
  font-weight: 700;
}

.roi-calculator input,
.roi-calculator select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font: inherit;
  accent-color: var(--blue);
}

.roi-calculator select option {
  color: var(--ink);
}

.roi-result {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
}

.roi-result span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.roi-result strong {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.roi-calculator p {
  margin: 6px 0 0;
  color: #d7d7dc;
  font-size: 14px;
}

.alt {
  align-items: center;
}

.requirement-list {
  display: grid;
  gap: 12px;
}

.requirement-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px;
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.requirement-item > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #0057b8;
  background: #e5f1ff;
  border-radius: 999px;
  font-weight: 800;
}

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

.comparison-section {
  display: grid;
  gap: 34px;
}

.section-heading {
  max-width: 920px;
}

.comparison-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comparison-row {
  display: grid;
  grid-template-columns: 0.75fr 1.15fr 0.9fr 1.2fr;
  min-width: 920px;
  background: white;
  border-top: 1px solid var(--line);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row > div {
  padding: 20px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  line-height: 1.45;
}

.comparison-row > div:first-child {
  border-left: 0;
  color: var(--ink);
}

.comparison-row.heading {
  background: #f5f5f7;
}

.comparison-row.heading > div {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.comparison-row.highlighted {
  background: #f5fbff;
}

.comparison-row.highlighted > div:first-child strong {
  color: #0057b8;
}

.platform-preview {
  padding: 22px;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mini-window {
  display: flex;
  gap: 8px;
  padding-bottom: 20px;
}

.mini-window span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.mini-window span:nth-child(1) { background: #ff5f57; }
.mini-window span:nth-child(2) { background: #ffbd2e; }
.mini-window span:nth-child(3) { background: #28c840; }

.campaign-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px;
  border-top: 1px solid #e6e8ed;
}

.campaign-row strong {
  font-size: 17px;
}

.campaign-row span {
  color: var(--muted);
}

.campaign-row.active span {
  color: var(--green);
  font-weight: 800;
}

.checkout-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 980px;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.checkout-box {
  width: 100%;
  max-width: 760px;
  min-height: 360px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.checkout-copy {
  max-width: 860px;
}

.checkout-copy .section-lede {
  margin: 18px auto 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  padding: 22px 24px;
  background: var(--soft);
  border: 1px solid #ececf0;
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 760;
}

details p {
  padding-top: 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(22px, 5vw);
  border-top: 1px solid var(--line);
}

.keyword-list {
  display: grid;
  gap: 10px;
}

.keyword-list p {
  margin: 0;
  padding: 18px 20px;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #343437;
  font-weight: 650;
}

.affiliate-copy h2 {
  max-width: 760px;
}

.copy-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.affiliate-panel {
  min-height: 0;
  background: #1d1d1f;
  color: white;
}

.affiliate-panel p {
  margin-bottom: 24px;
  color: #d7d7dc;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 82px max(22px, 5vw);
}

.legal-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(44px, 6vw, 72px);
}

.legal-hero p {
  margin: 18px 0 0;
  color: var(--muted);
}

.legal-content {
  display: grid;
  gap: 14px;
  padding-top: 34px;
}

.legal-content h2 {
  margin-top: 24px;
  font-size: 28px;
}

.legal-content p {
  margin: 0;
  color: #424247;
  font-size: 17px;
}

.app-shell {
  min-height: 100vh;
  background: #f7f8fb;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 12px max(18px, 4vw);
  background: rgba(247, 248, 251, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.newsletter-app {
  display: grid;
  gap: 24px;
  padding: 34px max(18px, 4vw) 54px;
}

.login-section {
  display: grid;
  min-height: calc(100vh - 140px);
  place-items: center;
}

.login-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 540px);
  padding: 30px;
  background: var(--white);
  border: 1px solid #e2e6ee;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(29, 29, 31, 0.08);
}

.login-panel h1 {
  font-size: clamp(34px, 4.4vw, 52px);
}

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

.login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.login-form input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.login-message {
  min-height: 24px;
  font-weight: 650;
}

.app-section {
  display: grid;
  gap: 20px;
  min-height: 42vh;
}

.money-section {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.app-title {
  display: grid;
  gap: 8px;
}

.app-title h1,
.app-title h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-content: start;
}

.newsletter-card {
  position: relative;
  display: grid;
  min-height: 230px;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e2e6ee;
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(29, 29, 31, 0.07);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.newsletter-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), transparent 42%, rgba(47, 158, 99, 0.08));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.newsletter-card:hover,
.newsletter-card:focus-within {
  border-color: rgba(10, 132, 255, 0.34);
  box-shadow: 0 22px 60px rgba(29, 29, 31, 0.12);
  transform: translateY(-3px);
}

.newsletter-card:hover::after,
.newsletter-card:focus-within::after {
  opacity: 1;
}

.newsletter-card.is-generating {
  border-color: #d8eafd;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.newsletter-card.is-generating::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border: 3px solid #d8eafd;
  border-top-color: var(--blue);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.newsletter-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.newsletter-card h3 {
  font-size: 22px;
}

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

.newsletter-card .button {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: fit-content;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.newsletter-card .button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: skewX(-18deg);
}

.newsletter-card:hover .button,
.newsletter-card:focus-within .button {
  opacity: 1;
  box-shadow: 0 18px 36px rgba(10, 132, 255, 0.28);
  transform: translateY(0) scale(1);
}

.newsletter-card:hover .button::after,
.newsletter-card:focus-within .button::after {
  animation: buttonShimmer 0.8s ease 0.08s 1;
}

@keyframes buttonShimmer {
  from {
    left: -70%;
  }
  to {
    left: 125%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  height: 100vh;
  overflow: hidden;
  background: var(--white);
}

.preview-modal[hidden] {
  display: none;
}

.preview-email {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  background: #eef1f6;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.preview-toolbar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#emailFrame {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 18px;
  height: 100vh;
  max-height: 100vh;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  border-left: 1px solid var(--line);
  background: #fbfbfd;
}

.chat-panel h2 {
  font-size: 28px;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding-bottom: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: var(--radius);
  line-height: 1.45;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: #eef2f7;
}

.chat-bubble.user {
  align-self: flex-end;
  color: white;
  background: var(--blue);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.chat-form input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.final-package {
  display: grid;
  gap: 12px;
  max-height: min(34vh, 320px);
  min-height: 0;
  padding: 14px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #dfe5ee;
  border-radius: var(--radius);
}

.final-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.final-package textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  color: #111827;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.final-package ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.final-package li {
  margin: 6px 0;
  color: #3f3f46;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .hero,
  .affiliate-hero,
  .intro-grid,
  .split,
  .checkout-section,
  .faq-section,
  .metric-band,
  .copy-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

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

  .preview-modal {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(260px, 38vh);
  }

  .chat-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .comparison-table {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .section,
  .section-band {
    padding: 64px 20px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-text,
  .section-lede {
    font-size: 19px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .app-header {
    align-items: stretch;
    flex-direction: column;
  }

  .newsletter-card .button {
    opacity: 1;
    transform: none;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .login-form {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .requirement-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
