/* ============================================================
   DOREEM — Landing v2
   Editorial / B2B premium / plum & cream
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --plum: #5e2a48;
  --plum-deep: #421c33;
  --plum-soft: #8b5573;
  --plum-muted: #6b5560;
  --cream: #faf5f3;
  --cream-warm: #f3ece9;
  --line: #d8c8cd;
  --line-soft: #e8dfdb;
  --ink: #2a1f24;
  --ink-soft: #4a3a3f;
  --white: #ffffff;
  --accent: #3d6b4a;

  /* Type */
  --font-serif: "EB Garamond", "Hoefler Text", Georgia, serif;
  --font-sans: "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Sizes */
  --container: 1080px;
  --radius: 8px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--plum);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 500;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--plum-soft);
}

h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 500;
  margin-bottom: 32px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--ink);
  letter-spacing: -0.005em;
}

p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--plum-soft);
  margin-bottom: 20px;
}

.section-title {
  margin-bottom: 32px;
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
}

.lead-soft {
  color: var(--plum-muted);
  font-style: italic;
}

.prose p + p {
  margin-top: 18px;
}

.prose-narrow {
  max-width: 660px;
}

.caption {
  font-size: 14px;
  color: var(--plum-muted);
  font-style: italic;
  margin-top: 24px;
  text-align: center;
}

.aside {
  font-size: 15px;
  color: var(--plum-muted);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}

.aside-italic {
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.005em;
}

.btn-primary {
  background: var(--plum);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--plum-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(94, 42, 72, 0.4);
}

.btn-ghost {
  color: var(--plum);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--plum);
  background: var(--cream-warm);
}

.btn-small {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--plum);
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  gap: 32px;
  font-size: 15px;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--plum);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 120px 0 140px; }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--cream-warm);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--plum-soft);
  margin-bottom: 28px;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.hero-title {
  max-width: 920px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s var(--ease-out) 0.1s both;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  max-width: 640px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  animation: fadeUp 0.7s var(--ease-out) 0.2s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
  animation: fadeUp 0.7s var(--ease-out) 0.3s both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--plum-muted);
  animation: fadeUp 0.7s var(--ease-out) 0.4s both;
}

.hero-meta .dot {
  color: var(--line);
  font-weight: 700;
}

.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-circle-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -150px;
  background: radial-gradient(circle, #f0d4c8 0%, transparent 70%);
}

.hero-circle-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, #e8c8d8 0%, transparent 70%);
}

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

/* ---------- Sections base ---------- */
section {
  padding: 80px 0;
  scroll-margin-top: 80px;
}

@media (min-width: 768px) {
  section { padding: 110px 0; }
}

.problem {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.problem .prose {
  max-width: 720px;
}

.problem .prose p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}

.problem .prose p:first-child {
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  color: var(--plum);
  line-height: 1.45;
}

/* ---------- Solution / Widget showcase ---------- */
.solution {
  background: var(--cream);
}

.widget-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 60px;
}

@media (min-width: 768px) {
  .widget-showcase {
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 28px;
  }
}

.widget-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.widget-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(94, 42, 72, 0.2);
}

.widget-frame-active {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-warm) 100%);
  border-color: var(--plum-soft);
  box-shadow: 0 15px 40px -15px rgba(94, 42, 72, 0.18);
}

.widget-header {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--plum);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.widget-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: var(--cream-warm);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--plum);
  font-weight: 500;
}

.widget-icon {
  font-size: 18px;
}

.widget-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.widget-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--plum-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.widget-input {
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.widget-button {
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--plum);
  color: var(--cream);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.widget-body-result {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 0;
}

.widget-result-size {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 8px;
}

.widget-confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.widget-stars {
  color: var(--plum);
  letter-spacing: 1px;
}

.widget-basis {
  font-size: 12px;
  color: var(--plum-muted);
  margin-top: 16px;
  font-style: italic;
}

.widget-label {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  background: var(--plum);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
}

/* ---------- Shopper steps ---------- */
.shopper {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin: 60px 0 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--plum-soft);
  font-style: italic;
}

.step-title {
  font-size: 19px;
}

.step-desc {
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------- Setup ---------- */
.setup {
  background: var(--cream);
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 60px 0 0;
}

@media (min-width: 768px) {
  .setup-grid { grid-template-columns: repeat(3, 1fr); }
}

.setup-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.setup-card:hover {
  transform: translateY(-3px);
  border-color: var(--plum-soft);
}

.setup-card-step {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  font-style: italic;
  color: var(--plum);
  margin-bottom: 14px;
}

.setup-card p {
  font-size: 16px;
}

/* ---------- Benefits ---------- */
.benefits {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 60px 0 0;
}

.benefit {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto 1fr;
  gap: 4px 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.benefit:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .benefit {
    grid-template-columns: 100px 1fr;
    gap: 6px 40px;
    padding: 40px 0;
  }
}

.benefit-marker {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--plum-soft);
  font-style: italic;
}

.benefit-title {
  grid-column: 2;
  grid-row: 1;
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--ink);
}

.benefit p {
  grid-column: 2;
  grid-row: 2;
  max-width: 640px;
}

/* ---------- Library ---------- */
.library {
  background: var(--cream);
}

.library .prose {
  max-width: 760px;
}

.library .prose p {
  font-size: 18px;
  line-height: 1.7;
}

/* ---------- Apply ---------- */
.apply {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  border-top: 1px solid var(--line-soft);
}

.pilot-perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--plum);
}

.pilot-perks .dot {
  color: var(--line);
  font-weight: 700;
}

.form {
  max-width: 580px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 768px) {
  .form { padding: 40px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.form input,
.form select {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 13px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--plum);
  background: var(--white);
}

.form input::placeholder {
  color: var(--plum-muted);
}

.form-note {
  font-size: 13px;
  color: var(--plum-muted);
  margin-top: 8px;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}

.faq-list {
  margin: 60px 0 0;
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item summary {
  list-style: none;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 0.2s var(--ease);
}

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

.faq-item summary::after {
  content: '+';
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--plum);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  line-height: 1;
  width: 24px;
  text-align: center;
}

.faq-item[open] summary {
  color: var(--plum);
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-item summary:hover {
  color: var(--plum);
}

.faq-body {
  padding-bottom: 24px;
  max-width: 720px;
}

.faq-body p {
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--plum-deep);
  color: var(--cream);
  padding: 60px 0 32px;
}

.footer .brand-mark,
.footer a {
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
  }
}

.brand-mark-large {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-tagline {
  color: rgba(250, 245, 243, 0.7);
  font-size: 15px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 245, 243, 0.5);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(250, 245, 243, 0.85);
  font-size: 15px;
  transition: color 0.2s var(--ease);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(250, 245, 243, 0.1);
  font-size: 13px;
  color: rgba(250, 245, 243, 0.55);
}

.footer-bottom .dot {
  color: rgba(250, 245, 243, 0.3);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ---------- Selection ---------- */
::selection {
  background: var(--plum);
  color: var(--cream);
}
