/* RangeDay marketing homepage — per design_handoff_marketing_homepage */

:root {
  --ink: #1e1f22;
  --body: #4a4742;
  --muted: #857f76;
  --hairline: rgba(28, 25, 22, 0.1);
  --hairline-strong: rgba(28, 25, 22, 0.14);
  --rust: #b43c13;
  --rust-bright: #cb5524;
  --rust-deep: #7f2b10;
  --ember: #e07020;
  --amber: #f09d3f;
  --btn-grad: linear-gradient(135deg, #cb5524 0%, #b43c13 48%, #7f2b10 100%);
  --font-app: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #f4f1ea;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 0%, rgba(224, 112, 32, 0.1), transparent 46%),
    radial-gradient(circle at 4% 100%, rgba(240, 157, 63, 0.08), transparent 40%),
    linear-gradient(180deg, #fbf9f5 0%, #f4f1ea 60%, #efebe2 100%);
}

a {
  color: var(--rust);
  text-decoration: none;
}

a:hover {
  color: var(--rust-deep);
}

/* ===== Header ===== */
.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  border-bottom: 1px solid rgba(28, 25, 22, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 249, 245, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hd-brand img {
  width: 34px;
  height: 34px;
}

.hd-brand strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hd-brand strong span {
  color: var(--ember);
}

.hd-nav {
  display: inline-flex;
  gap: 28px;
  font-size: 0.92rem;
}

.hd-nav a {
  color: var(--muted);
  transition: color 140ms;
}

.hd-nav a:hover {
  color: var(--ink);
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  background: var(--btn-grad);
  box-shadow: 0 14px 30px rgba(180, 60, 19, 0.28);
  transition: transform 180ms, box-shadow 180ms;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(180, 60, 19, 0.34);
  color: #fff;
}

.btn-primary:active {
  transform: none;
  background: linear-gradient(135deg, #b43c13 0%, #7f2b10 60%, #5f200c 100%);
}

.btn-primary.btn-sm {
  min-height: 40px;
  padding: 0 20px;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(180, 60, 19, 0.26);
}

.btn-primary.btn-sm:hover {
  box-shadow: 0 16px 34px rgba(180, 60, 19, 0.32);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--hairline-strong);
  transition: background 140ms;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--ink);
}

/* ===== Layout column ===== */
.wrap {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--rust);
  margin: 0 0 16px;
  font-weight: 700;
}

section {
  scroll-margin-top: 80px;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 0 0;
}

.hero .eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  line-height: 0.96;
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 17ch;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--ember);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 32px;
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Browser frame + carousel */
.stage {
  position: relative;
  width: min(920px, 96%);
}

.frame {
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 12px;
  box-shadow: 0 40px 90px rgba(40, 34, 28, 0.22);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 10px;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.t-dot.red { background: #e0654a; }
.t-dot.amber { background: #f09d3f; }
.t-dot.green { background: #7aa36b; }

.url-pill {
  margin-left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  background: #f4f1ea;
  border: 1px solid rgba(28, 25, 22, 0.12);
}

.slides {
  position: relative;
  aspect-ratio: 2052 / 1321;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
  transition: opacity 600ms ease;
}

.slides img.active {
  opacity: 1;
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 4px 4px;
}

.dot {
  cursor: pointer;
  height: 8px;
  width: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 25, 22, 0.18);
  transition: all 300ms ease;
}

.dot.active {
  width: 22px;
  background: var(--rust);
}

.caption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 10px;
}

.phone {
  position: absolute;
  bottom: -28px;
  right: -46px;
  width: 172px;
  border-radius: 28px;
  border: 1px solid rgba(28, 25, 22, 0.12);
  background: #fff;
  padding: 9px;
  box-shadow: 0 30px 70px rgba(40, 34, 28, 0.28);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #f4f5f7;
}

/* ===== Sections shared ===== */
.sec-head {
  text-align: center;
  margin-bottom: 44px;
}

.sec-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  margin: 0 auto;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}

.pad-section {
  padding: 100px 0 0;
}

.glass {
  border: 1px solid var(--hairline);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

/* ===== Features ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(224, 112, 32, 0.16), rgba(240, 157, 63, 0.12));
  border: 1px solid rgba(224, 112, 32, 0.22);
  color: var(--rust);
}

.card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card > p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--body);
}

/* app-mimicking vignettes — system font on purpose */
.vig {
  margin-top: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font-family: var(--font-app);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vig.rows-divided {
  gap: 0;
}

.vig-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: #111827;
  min-width: 0;
}

.rows-divided .vig-row {
  justify-content: space-between;
  padding: 8px 0;
}

.rows-divided .vig-row + .vig-row {
  border-top: 1px solid #f3f4f6;
}

.vig-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.vig-main > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vig-side {
  margin-left: auto;
  font-size: 0.7rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.vig-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.vig-tag.ok { color: #16a34a; }
.vig-tag.act { color: #c55e14; }

.vig-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  background: #fef9c3;
  color: #ca8a04;
  flex-shrink: 0;
}

.vig-ic { color: #6b7280; flex-shrink: 0; }
.vig-ic.ok { color: #16a34a; }
.vig-ic.warn { color: #ca8a04; }

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== White-label band ===== */
.wl {
  margin-top: 100px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(224, 112, 32, 0.22), transparent 44%),
    linear-gradient(180deg, #2d2a27 0%, #242423 70%, #141413 100%);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.wl .eyebrow {
  color: var(--amber);
}

.wl h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.02;
  margin: 0 0 18px;
  color: #f7f5f1;
  text-wrap: balance;
}

.wl-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #d8cdb8;
  margin: 0 0 26px;
  max-width: 50ch;
}

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

.wl-point {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e6e3dc;
  font-size: 0.95rem;
}

.wl-point svg {
  color: var(--amber);
  flex-shrink: 0;
}

.wl-clubs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-club {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(247, 245, 241, 0.05);
  border: 1px solid rgba(247, 245, 241, 0.12);
}

.wl-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wl-tile img {
  width: 24px;
  height: 24px;
}

.wl-club-copy {
  flex: 1;
  min-width: 0;
}

.wl-club-copy strong {
  display: block;
  color: #f7f5f1;
  font-size: 0.95rem;
}

.wl-club-copy span {
  font-size: 0.78rem;
  color: #a9a39a;
}

.wl-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Pricing teaser ===== */
.pricing {
  text-align: center;
}

.pricing .sec-title {
  max-width: 22ch;
  margin-bottom: 16px;
}

.pricing-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0 auto 36px;
  max-width: 54ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--rust);
  transition: color 140ms;
}

.text-link:hover {
  color: var(--rust-deep);
}

/* ===== About ===== */
.about-panel {
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-panel h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}

.about-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-card {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.about-card > svg {
  color: var(--rust);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-card > img {
  height: 20px;
  width: auto;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.about-card span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== Contact CTA ===== */
.cta-panel {
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(224, 112, 32, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  padding: 64px 40px;
}

.cta-panel > img {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}

.cta-panel h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  margin: 0 auto 16px;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}

.cta-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0 auto 32px;
  max-width: 52ch;
}

.cta-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}

.cta-form input[type="email"] {
  flex: 1;
  min-width: 230px;
  min-height: 52px;
  padding: 0 18px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(40, 34, 28, 0.05);
}

.cta-form input[type="email"]:focus {
  outline: 2px solid rgba(224, 112, 32, 0.45);
  outline-offset: 1px;
}

.cta-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 18px 0 0;
}

.form-status {
  font-size: 0.88rem;
  margin: 12px 0 0;
  min-height: 1.2em;
  color: var(--muted);
}

.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: #2e6f40; }

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ===== Footer ===== */
.ft {
  margin-top: 72px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.ft a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  opacity: 0.85;
  transition: opacity 140ms;
}

.ft a:hover {
  opacity: 1;
  color: var(--muted);
}

.ft img {
  height: 18px;
  width: auto;
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hd {
    padding: 14px 20px;
  }

  .hd-nav {
    display: none;
  }

  .cards,
  .wl,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .wl {
    padding: 36px 28px;
  }

  .about-panel {
    padding: 32px 28px;
    gap: 32px;
  }

  .phone {
    width: 128px;
    right: -8px;
    bottom: -20px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 48px;
  }

  .pad-section {
    padding-top: 72px;
  }

  .wl {
    margin-top: 72px;
    padding: 28px 20px;
  }

  .cta-panel {
    padding: 44px 20px;
  }

  .card {
    padding: 22px;
  }

  .phone {
    width: 104px;
    right: -4px;
    bottom: -16px;
  }

  .caption {
    display: none;
  }
}

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

  .slides img,
  .dot,
  .btn-primary {
    transition: none;
  }
}
