/* Dealviora — site styles */

:root {
  --ivory: #f4efe8;
  --paper: #fffdf9;
  --ink: #1c1915;
  --ink-soft: #3a352f;
  --muted: #7a736a;
  --brass: #b8a07a;
  --brass-dark: #8f7a55;
  --hairline: #e3dbcf;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(28, 25, 21, 0.10);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brass-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--ink);
  color: var(--ivory);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 232, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.btn-primary,
.nav a.btn-primary:hover { color: var(--ivory); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { opacity: 0.92; }

.btn-ghost { color: var(--ink); border: 1px solid var(--ink); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn svg { width: 20px; height: 20px; }

/* ── Hero ───────────────────────────────────────────────── */

.hero { padding: 80px 0 72px; }

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Sections ───────────────────────────────────────────── */

.section { padding: 88px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ── Before / after ─────────────────────────────────────── */

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

.compare-card h3 { font-size: 19px; margin: 20px 0 6px; }
.compare-card p { color: var(--muted); font-size: 15px; margin: 0; }

.compare {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--hairline);
  user-select: none;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.compare .compare-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}
.compare-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1915' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* ── Steps ──────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 700;
  margin-bottom: 20px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Split feature ──────────────────────────────────────── */

.split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.split h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.split p { color: var(--muted); font-size: 17px; margin: 0 0 20px; }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── Privacy callout ────────────────────────────────────── */

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 820px;
  margin: 0 auto;
}
.callout-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
}
.callout-icon svg { width: 26px; height: 26px; stroke: var(--brass-dark); }
.callout h2 { margin: 0 0 8px; font-size: 22px; }
.callout p { margin: 0; color: var(--muted); }

/* ── CTA band ───────────────────────────────────────────── */

.cta-band {
  background: var(--ink);
  color: var(--ivory);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cta-band p { color: #c9c1b5; margin: 0 0 28px; font-size: 17px; }
.cta-band .btn-primary { background: var(--ivory); color: var(--ink); }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid p { margin: 12px 0 0; max-width: 320px; }
.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-soft); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

/* ── Legal pages ────────────────────────────────────────── */

.legal { padding: 56px 0 88px; }
.legal .container { max-width: 800px; }
.legal-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 48px;
}
.legal h1 {
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.legal .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; }
.legal p,
.legal li { color: var(--ink-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .toc {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 8px;
}
.legal .toc h2 { margin: 0 0 8px; font-size: 15px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { font-size: 14.5px; margin-bottom: 4px; }
.notice {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fbf3e6;
  border: 1px solid #ecd9b8;
  color: #6b4f1d;
  font-size: 15px;
}
.notice p { color: inherit; margin: 0; }

/* ── Launch banner & status ─────────────────────────────── */

.launch-bar {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  font-size: 14px;
  padding: 10px 16px;
}
.launch-bar strong { color: var(--brass); font-weight: 600; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d18b2c;
  box-shadow: 0 0 0 4px rgba(209, 139, 44, 0.18);
}

.tagline {
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: -6px 0 20px;
}

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.2;
}
.store-soon svg { width: 26px; height: 26px; }
.store-soon small { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.store-soon strong { font-size: 16px; }

/* ── Phone frame ────────────────────────────────────────── */

.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border-radius: 42px;
  background: #0f0d0b;
  box-shadow: 0 30px 70px rgba(28, 25, 21, 0.28), inset 0 0 0 2px #2a2622;
}
.phone img {
  width: 100%;
  aspect-ratio: 460 / 926;
  object-fit: cover;
  border-radius: 32px;
}
.hero-phone { justify-self: center; }

/* ── Modes ──────────────────────────────────────────────── */

.modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.mode {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}
.mode-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ink);
  margin-bottom: 16px;
}
.mode-icon svg { width: 24px; height: 24px; stroke: var(--ivory); }
.mode h3 { margin: 0 0 6px; font-size: 17px; }
.mode p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ── Screens gallery ────────────────────────────────────── */

.screens {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 32px;
  margin: 0 -24px;
  scrollbar-width: thin;
}
.screen {
  flex: 0 0 240px;
  scroll-snap-align: center;
  text-align: center;
}
.screen .phone { max-width: 240px; border-radius: 36px; padding: 8px; }
.screen .phone img { border-radius: 28px; }
.screen figcaption { margin-top: 16px; font-weight: 600; font-size: 15px; }
.screen figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brass-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ── 404 ────────────────────────────────────────────────── */

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.not-found h1 { font-size: 72px; margin: 0; letter-spacing: -0.04em; }
.not-found p { color: var(--muted); margin: 8px 0 28px; font-size: 18px; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 960px) {
  .modes { grid-template-columns: 1fr 1fr; }
  .showcase,
  .steps { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .split .container { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav .nav-link { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .phone.hero-phone { max-width: 260px; }
  .modes { grid-template-columns: 1fr; }
  .launch-bar { font-size: 13px; }
  .section { padding: 64px 0; }
  .callout { grid-template-columns: 1fr; padding: 24px; }
  .cta-band { padding: 44px 24px; }
  .legal-card { padding: 28px 22px; }
  .legal .toc ol { columns: 1; }
}
