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

:root {
  --paper: #f7f2ee;
  --paper-bright: #fcfaf8;
  --paper-line: #e8ddd5;
  --ink: #171311;
  --ink-soft: #5f554f;
  --ink-faint: #8e837b;
  --accent: #af2f62;
  --accent-deep: #8e224f;
  --accent-mist: rgba(175, 47, 98, 0.12);
  --success: #1e7f4f;
  --success-mist: rgba(30, 127, 79, 0.1);
  --warning: #916318;
  --warning-mist: rgba(145, 99, 24, 0.12);
  --shadow-soft: 0 4px 24px -4px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lifted: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 80px;
  --space-7: 112px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at top left, rgba(175, 47, 98, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(252, 250, 248, 0.96), rgba(247, 242, 238, 0.96));
}

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

button,
input,
textarea {
  font: inherit;
}

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

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 22px 28px;
  border-bottom: 1px solid var(--paper-line);
  background: rgba(252, 250, 248, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.65rem;
  line-height: 1;
}

.brand-mark {
  color: var(--accent);
}

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

.page {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  padding: 88px 0 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
  align-items: start;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.hero-title,
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  margin: 0 0 20px;
  min-height: 0;
  max-width: 12ch;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
}

.lead {
  color: var(--ink-soft);
  max-width: 54ch;
  font-size: 1.08rem;
  line-height: 1.78;
}

.hero-note {
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin-top: var(--space-3);
  max-width: 56ch;
}

.hero-panel,
.card,
.editor-panel,
.preview-card,
.offer-card,
.status-banner {
  background: var(--paper-bright);
  border: 1px solid var(--paper-line);
}

.hero-panel,
.offer-card,
.editor-panel,
.preview-card {
  padding: 30px;
  border-radius: 20px;
}

.hero-panel {
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(252, 250, 248, 0.96)),
    var(--paper-bright);
}

.hero-media {
  display: grid;
  gap: 16px;
  align-self: center;
}

.section {
  padding: 52px 0 76px;
}

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

.card {
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(252, 250, 248, 0.96)),
    var(--paper-bright);
  border-radius: 20px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.65rem;
  margin: 0 0 12px;
  line-height: 1.04;
}

.mini-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.85rem;
  line-height: 1.05;
  margin: 0;
}

.muted {
  color: var(--ink-soft);
  max-width: 50ch;
}

.section-intro {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 32px;
}

.fine {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.79rem;
  font-weight: 600;
  border-radius: 999px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-bright);
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 20px 60px var(--accent-mist);
}

.btn-secondary {
  border-color: var(--paper-line);
}

.btn-secondary:hover {
  background: var(--accent-mist);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-link {
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--accent-deep);
}

.btn-link:hover {
  transform: none;
  color: var(--accent);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.field {
  display: grid;
  gap: 8px;
  transition: opacity 420ms ease, transform 420ms ease;
}

.field-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.input,
.textarea {
  width: 100%;
  padding: 14px 14px 12px;
  border: 1px solid var(--paper-line);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-mist);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.stack {
  display: grid;
  gap: var(--space-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  transition: opacity 420ms ease, transform 420ms ease;
}

.actions-center {
  justify-content: center;
  align-items: center;
}

.btn-link-center {
  align-self: center;
  margin-inline: auto;
}

.status-banner {
  padding: 14px 18px;
  font-size: 0.95rem;
}

.status-success {
  border-color: rgba(30, 127, 79, 0.24);
  background: var(--success-mist);
}

.status-warning {
  border-color: rgba(145, 99, 24, 0.25);
  background: var(--warning-mist);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.pricing-card {
  min-height: 100%;
}

.pricing-card.featured {
  box-shadow: var(--shadow-lifted);
}

.price {
  font-family: var(--font-display);
  font-size: 2.9rem;
  line-height: 1;
  margin: 16px 0 6px;
}

.price-meta {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.bullet-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
}

.dashboard-grid {
  display: grid;
  gap: var(--space-3);
}

.site-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-mist);
  color: var(--accent-deep);
  border-radius: 999px;
}

.hero-rotator {
  position: absolute;
  inset: 0 0 auto 0;
  display: block;
  width: 100%;
  opacity: 1;
  transition: opacity 340ms ease, transform 340ms ease, filter 340ms ease;
  transform-origin: 50% 50%;
  will-change: opacity, transform, filter;
}

.hero-prefix {
  display: block;
}

.hero-rotator-shell {
  position: relative;
  display: block;
  min-height: 1em;
  overflow: hidden;
}

.hero-rotator-out {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(1px);
}

.hero-rotator-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-points,
.offer-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.yearly-reveal {
  margin-top: 8px;
}

.yearly-reveal-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--paper-line);
  background: linear-gradient(180deg, rgba(175, 47, 98, 0.05), rgba(255, 255, 255, 0.72));
}

.yearly-copy {
  margin: 0;
}

.offer-action-panel {
  max-width: 760px;
  margin: 0 auto;
}

.editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  min-height: calc(100vh - 84px);
}

.preview-card {
  border-right: 1px solid var(--paper-line);
  padding: 0;
  background: #fff;
}

.preview-frame {
  width: 100%;
  height: calc(100vh - 84px);
  border: 0;
  display: block;
  background: #fff;
}

.preview-empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: calc(100vh - 84px);
  padding: var(--space-5);
  background:
    linear-gradient(180deg, rgba(175, 47, 98, 0.05), transparent 20%),
    #fff;
}

.editor-panel {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-height: calc(100vh - 84px);
}

.editor-summary {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--paper-line);
}

.divider {
  height: 1px;
  background: var(--paper-line);
}

.offer-shell {
  padding: 52px 0 72px;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-4);
  align-items: start;
}

.offer-hero {
  align-items: center;
}

.offer-preview {
  min-height: 560px;
}

.offer-preview-shell {
  margin-top: 24px;
}

.preview-shot {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 380px;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  border: 1px solid var(--paper-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(252, 250, 248, 0.96)),
    var(--paper-bright);
  box-shadow: var(--shadow-lifted);
}

.preview-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 420ms ease;
}

.preview-shot-browser {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(23, 19, 17, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.preview-shot-browser span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 19, 17, 0.16);
}

.preview-shot-viewport {
  position: relative;
  width: 100%;
  height: calc(100% - 56px);
  overflow: hidden;
  background: #fff;
}

.preview-shot-frame {
  width: 1440px;
  height: 960px;
  border: 0;
  transform: scale(0.44);
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}

.preview-shot:hover img {
  transform: scale(1.01);
}

.preview-shot-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(23, 19, 17, 0.92);
  color: var(--paper-bright);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.preview-shot-copy {
  display: block;
  max-width: 28ch;
  color: var(--ink-soft);
}

.preview-shot-placeholder,
.preview-shot-live,
.preview-shot-loading {
  display: grid;
  place-items: center;
  padding: 32px;
}

.preview-shot-placeholder .preview-shot-badge {
  position: static;
}

.preview-shot-live {
  padding: 0;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  justify-items: stretch;
}

.preview-caption {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.94rem;
}

.offer-iframe {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--paper-line);
  background: #fff;
  box-shadow: var(--shadow-lifted);
  border-radius: var(--radius-lg);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 820ms cubic-bezier(0.22, 1, 0.36, 1), transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-1 {
  transition-delay: 60ms;
}

.reveal-2 {
  transition-delay: 160ms;
}

.reveal-3 {
  transition-delay: 260ms;
}

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

.pricing-card .actions,
.hero-panel .actions {
  justify-content: center;
}

.actions .btn,
.nav-actions .btn {
  width: auto;
  max-width: 100%;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 40;
}

.toast {
  background: var(--ink);
  color: var(--paper-bright);
  padding: 12px 14px;
  min-width: 240px;
  box-shadow: var(--shadow-soft);
}

.toast-error {
  background: #6f1e2d;
}

.loading {
  color: var(--ink-faint);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .hero-rotator,
  .section-intro,
  .card,
  .hero-copy,
  .hero-panel,
  .offer-preview-shell {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .btn {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .hero,
  .offer-grid,
  .editor-shell,
  .section-grid,
  .helper-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    border-right: 0;
    border-bottom: 1px solid var(--paper-line);
  }

  .preview-frame,
  .preview-empty,
  .editor-panel {
    min-height: auto;
    height: auto;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100vw - 28px, 1180px);
  }

  .topbar {
    padding: 14px 14px;
    align-items: center;
  }

  .hero {
    padding-top: 40px;
    gap: 22px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 15vw, 4.2rem);
    line-height: 0.92;
    min-height: 0;
    max-width: 9ch;
  }

  .hero-rotator-shell {
    min-height: 0;
  }

  .nav-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }

  .actions {
    flex-direction: column;
    align-items: center;
  }

  .nav-actions .btn {
    padding: 10px 14px;
    font-size: 0.72rem;
  }

  .brand {
    font-size: 1.45rem;
  }

  .hero-points,
  .offer-proof {
    flex-direction: column;
  }

  .hero-panel,
  .offer-card,
  .editor-panel,
  .preview-card {
    padding: 22px;
  }

  .section {
    padding: 40px 0 56px;
  }

  .preview-shot {
    min-height: 300px;
  }

  .offer-hero .hero-media {
    order: -1;
  }
}
