/* ============================================================
   Dovvi — dovvi.kabaata.com
   Design tokens are binding: warm everything, no blue-leaning darks.
   ============================================================ */

:root {
  --cream: #FFF6F3;
  --card: #FFFFFF;
  --coral: #FF6B6B;
  --tint: #FFE3DC;
  --tint-soft: #FBEAE4;
  --charcoal: #332A2A;
  --deep: #7A3328;
  --radius: 28px;
  --radius-s: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 6px;
}

.text-link {
  color: var(--deep);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.text-link-light { color: var(--tint); }
.text-link-light:hover { color: var(--card); }
.text-link-light:focus-visible { outline-color: var(--cream); }

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--deep);
  margin: 0 0 2rem;
}

/* ============ Hero ============ */

.hero { padding: 48px 0 72px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
}

.brand-icon { border-radius: 10px; }

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

.hero-sub {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  color: var(--deep);
  max-width: 32ch;
  margin: 0 0 2rem;
}

.badge-link { display: inline-block; border-radius: 13px; }
.badge-link img { display: block; }

.hero-cta { margin: 0 0 1rem; }

.hero-note {
  font-size: 0.9rem;
  color: var(--deep);
  margin: 0;
}

/* --- Hand-built phone mockup --- */

.hero-visual { display: flex; justify-content: center; }

.phone {
  width: min(310px, 78vw);
  aspect-ratio: 31 / 63;
  background: var(--charcoal);
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    0 24px 48px -20px rgba(122, 51, 40, 0.4),
    0 6px 16px rgba(51, 42, 42, 0.15);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.screen-half {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  text-align: center;
}

.screen-you {
  background: var(--cream);
  color: var(--charcoal);
  padding-right: 32px;
}

.screen-them {
  background: var(--coral);
  color: #fff;
  padding-left: 32px;
}

.screen-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.screen-line {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 11ch;
}

.screen-you .screen-line { color: var(--deep); }

.screen-tiles { display: flex; gap: 6px; margin-top: 6px; }

.tile {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--tint);
  position: relative;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  transform: translate(-50%, -50%);
}

.screen-seam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(51, 42, 42, 0.12);
}

.screen-keyhole {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(51, 42, 42, 0.18);
}

.screen-kee {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 92px;
  height: 92px;
}

/* ============ The Toll ============ */

.toll { padding: 40px 0 72px; }

.toll-wrap { max-width: 760px; text-align: center; }

.toll-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 16px 40px -24px rgba(122, 51, 40, 0.35);
  border-top: 6px solid var(--coral);
}

.toll-label {
  display: block;
  font-weight: 700;
  margin-bottom: 14px;
}

.slider-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.hours-out {
  min-width: 3ch;
  font-weight: 800;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  color: var(--deep);
}

input[type="range"] {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--coral) var(--fill, 33%),
    var(--tint-soft) var(--fill, 33%)
  );
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral);
  border: 4px solid var(--card);
  box-shadow: 0 2px 8px rgba(51, 42, 42, 0.3);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  border: 4px solid var(--card);
  box-shadow: 0 2px 8px rgba(51, 42, 42, 0.3);
}

input[type="range"]:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 4px;
}

.toll-results { margin-top: 28px; }

.toll-number { margin: 0 0 18px; }

.big-number {
  display: block;
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.big-label {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep);
}

.toll-support {
  margin: 4px 0;
  color: var(--deep);
}

.toll-support strong {
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

.toll-kind {
  margin: 26px 0 6px;
  font-size: 0.95rem;
  color: var(--deep);
}

.toll-plan { margin: 0; font-weight: 600; }

.noscript-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--deep);
}

/* Hide the dead slider when JS is off */
@media (scripting: none) {
  .toll-slider-row { display: none; }
}

/* ============ How it works ============ */

.how { padding: 24px 0 72px; text-align: center; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.how-card {
  background: var(--tint-soft);
  border-radius: var(--radius-s);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.how-card img { width: 150px; height: 150px; }

.how-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 20px 0 8px;
}

.how-card p { margin: 0; color: var(--deep); }

/* ============ Privacy band ============ */

.privacy {
  background: var(--charcoal);
  color: var(--cream);
  padding: 80px 0;
}

.privacy-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.privacy-keyhole {
  flex-shrink: 0;
  color: var(--coral);
  opacity: 0.9;
}

.privacy-copy p {
  max-width: 56ch;
  margin: 0 0 1em;
  color: var(--tint);
}

.privacy-more { margin: 1.4em 0 0; }

/* ============ Pricing ============ */

.pricing { padding: 88px 0 64px; }

.pricing-inner {
  text-align: center;
  max-width: 720px;
}

.pricing-sub {
  font-size: 1.15rem;
  color: var(--deep);
  margin: 0;
}

/* ============ Final CTA ============ */

.cta { padding: 24px 0 96px; }

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta .hero-cta { margin-top: 8px; }

/* ============ Footer ============ */

.footer {
  border-top: 2px solid var(--tint);
  padding: 28px 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p { margin: 0; color: var(--deep); }

.footer nav { display: flex; gap: 24px; }

.footer a {
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============ Inner pages (privacy / support / pair) ============ */

.page { padding: 56px 0 80px; }

.page-narrow { max-width: 720px; }

.page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.4em 0 0.4em;
}

.page h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2em 0 0.5em;
}

.page p, .page li { color: var(--charcoal); }

.page .muted { color: var(--deep); }

.back-link {
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.updated {
  font-size: 0.9rem;
  color: var(--deep);
  margin-bottom: 2.5rem;
}

/* FAQ */
.faq details {
  background: var(--card);
  border-radius: var(--radius-s);
  padding: 6px 24px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px -18px rgba(122, 51, 40, 0.35);
}

.faq summary {
  font-weight: 700;
  padding: 14px 0;
  cursor: pointer;
  list-style-position: outside;
}

.faq details[open] summary { color: var(--deep); }

.faq details p { margin-top: 0; }

/* Pair landing */
.pair-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.pair-hero img.kee { width: 200px; height: 200px; }

.pair-hero h1 { max-width: 17ch; }

.pair-hero .lead {
  max-width: 44ch;
  color: var(--deep);
  margin: 0 0 2rem;
}

/* ============ Motion ============ */

@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 5.5s ease-in-out infinite; }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }

  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

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

/* ============ Responsive ============ */

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .brand-row { margin-bottom: 28px; }

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

  .privacy-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .privacy-keyhole { width: 84px; height: 84px; }

  .privacy-copy p { margin-inline: auto; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .phone { width: min(270px, 84vw); }
  .screen-kee { width: 74px; height: 74px; }
  .screen-keyhole { width: 44px; height: 44px; }
  .screen-keyhole svg { width: 22px; height: 22px; }
  .screen-you { padding-right: 26px; }
  .screen-them { padding-left: 26px; }
}
