/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Global scrollbars (transparent track) ─────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.18) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.32); }

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --accent:   #007AFF;
  --dark:     #0d0d0f;
  --text:     #1a1a1a;
  --muted:    #6e6e73;
  --border:   #e5e5ea;
  --gray-bg:  #f5f5f7;
  --white:    #ffffff;
  --font:     -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --radius:   16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

/* ── iPhone Mockup (iPhone 17 Pro Max — ultra-thin bezel) ─── */
.phone {
  position: relative;
  display: inline-block;
  background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 60%);
  border-radius: 48px;
  padding: 2px;
  box-shadow:
    0 0 0 1px #48484a,
    0 0 0 2px #1c1c1e,
    0 40px 80px -10px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.09);
}

/* Left side: action button + vol up + vol down */
.phone::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 90px;
  width: 3px;
  height: 24px;
  background: #3a3a3c;
  border-radius: 2px 0 0 2px;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,0.06),
    0 38px 0 #3a3a3c,
    0 38px 0 0 rgba(255,255,255,0.06),
    0 76px 0 #3a3a3c;
}

/* Right side: power button */
.phone::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 125px;
  width: 3px;
  height: 54px;
  background: #3a3a3c;
  border-radius: 0 2px 2px 0;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.06);
}

.phone .screen {
  border-radius: 46px;
  overflow: hidden;
  line-height: 0;
  background: #000;
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 46px;
}

/* sizes */
.phone-sm { width: 220px; }
.phone-md { width: 260px; }
.phone-lg { width: 300px; }

/* ── Nav ───────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28,28,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo {
  height: 28px;
  width: auto;
}

.nav-wordmark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: transparent;
  color: var(--white);
  padding: 80px 32px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: block;
}

/* ── App Store button ──────────────────────────────────────── */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 0;
  /* spacing provided by hero-text p margin-bottom */
  padding: 13px 22px;
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  color: #000;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.app-store-apple {
  width: 22px;
  height: auto;
  fill: #000;
  flex-shrink: 0;
}

.app-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.app-store-small {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #000;
}

.app-store-large {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
}

.hero-text .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── Multiple numbers callout ──────────────────────────────── */
.hero-multi {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.hero-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: rgba(255,255,255,0.65);
  line-height: 1;
}

.hero-chip-fade { opacity: 0.4; }

.chip-ctx {
  font-family: var(--font);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-multi-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  position: relative;
  height: 560px;
}

.hero-phone-back {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: rotate(-8deg) translateY(20px);
  opacity: 0.85;
  z-index: 1;
}

.hero-phone-front {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: rotate(6deg) translateY(10px);
  z-index: 2;
}

/* Hero-only: dark frame with rim-light edge — Black Titanium under studio lighting */
.hero-phones .phone {
  background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 60%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.22),
    0 0 0 2.5px rgba(255,255,255,0.06),
    0 40px 80px -10px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ── Dark wrapper (hero full bleed) ────────────────────────── */
.hero-wrap {
  background: #1c1c1e;
}

/* ── Section base ──────────────────────────────────────────── */
section {
  padding: 96px 32px;
}

section.gray { background: var(--gray-bg); }
section.white { background: var(--white); }
section.dark  { background: var(--dark); color: var(--white); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Section label ─────────────────────────────────────────── */
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── Feature row (phone + text alternating) ────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.feature-copy p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
}

section.dark .feature-copy h2 { color: var(--white); }
section.dark .feature-copy p  { color: rgba(255,255,255,0.55); }

.feature-phone {
  display: flex;
  justify-content: center;
}

/* ── Quick features strip ──────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-tile {
  background: var(--white);
  padding: 32px 28px;
}

.feature-tile .icon {
  font-size: 26px;
  margin-bottom: 16px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #3a3a3c;
}

.feature-tile h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-tile p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Use-cases cards ───────────────────────────────────────── */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.use-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: box-shadow 0.2s;
}

.use-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.use-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.use-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Manage bullets ────────────────────────────────────────── */
.manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
}

.manage-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.manage-item p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Sign in section ───────────────────────────────────────── */
.signin-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.signin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.provider-logo {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.provider-logo-ms      { height: 16px; }
.provider-logo-amazon  { height: 20px; }

/* ── Section headers ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

.section-header.dark-text h2 { color: var(--white); }
.section-header.dark-text p  { color: rgba(255,255,255,0.55); }

/* ── Privacy ───────────────────────────────────────────────── */
.privacy-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ── Number switcher strip ─────────────────────────────────── */
.numbers-strip-section {
  padding: 64px 32px;
  text-align: center;
}

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

.numbers-heading {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 10px;
}

.numbers-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 40px;
}

.number-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.number-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 148px;
}

.number-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.number-val {
  font-size: 0.88rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.01em;
}

.number-card-more {
  opacity: 0.4;
  border-style: dashed;
}

.number-card-more .number-label { color: rgba(255,255,255,0.5); }
.number-card-more .number-val {
  font-family: var(--font);
  font-style: italic;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  margin: 0;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.testimonial::before {
  content: '\201C';
  display: block;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.35;
  font-family: Georgia, serif;
  margin-bottom: 4px;
}

.testimonial p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: inherit;
  line-height: inherit;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.testimonial footer strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial footer span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 40px 32px;
  font-size: 0.82rem;
  line-height: 1.8;
}

footer a { color: #fff; text-decoration: none; }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.footer-legal a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

.footer-legal span { color: rgba(255,255,255,0.5); }

/* ── Legal modals ──────────────────────────────────────────── */
.legal-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.legal-modal.open { display: block; }

body.no-scroll { overflow: hidden; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlay-in 0.2s ease;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Desktop dialog */
.modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 92vw);
  max-height: 82vh;
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dialog-in 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* X button top-right */
.modal-xbtn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  line-height: 0;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}

.modal-xbtn:hover {
  color: var(--text);
  background: var(--gray-bg);
}

/* Scrollable body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.28); }

.modal-inner {
  padding: 52px 44px 32px;
}

.modal-inner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.legal-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.modal-inner h3 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}

.modal-inner p {
  font-size: 0.9375rem;
  color: #3a3a3c;
  line-height: 1.7;
  margin-bottom: 10px;
}

.modal-inner ul {
  margin: 8px 0 10px 20px;
}

.modal-inner ul li {
  font-size: 0.9375rem;
  color: #3a3a3c;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Footer bar with close button */
.modal-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background: #fafafa;
}

.modal-close-btn {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.15s;
}

.modal-close-btn:hover { opacity: 0.82; }

/* Mobile: bottom sheet */
@media (max-width: 680px) {
  .modal-dialog {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    animation: sheet-in 0.28s cubic-bezier(0.34, 1.1, 0.64, 1);
  }

  @keyframes sheet-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .modal-inner { padding: 44px 24px 24px; }
  .modal-foot  { padding: 14px 20px; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 80px;
    text-align: center;
  }

  .hero-brand-logo { margin: 0 auto 20px; }

  .hero-text p { margin: 0 auto 36px; }

  /* One phone on mobile/tablet — back frame hidden, front pulled into flow */
  .hero-phone-back { display: none; }

  .hero-phones {
    height: auto;
    max-width: 320px;
    margin: 0 auto;
    padding-bottom: 24px;
  }

  .hero-phone-front {
    position: relative;
    right: auto;
    bottom: auto;
    transform: rotate(4deg);
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
    gap: 40px;
  }

  .feature-copy p { margin: 0 auto; }

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

  .use-cases-grid { grid-template-columns: 1fr 1fr; }

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

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

  section { padding: 72px 24px; }
}

@media (max-width: 540px) {
  .phone-md { width: 160px; border-radius: 24px; }
  .phone-md .screen, .phone-md img { border-radius: 22px; }

  .phone-lg { width: 240px; border-radius: 28px; }
  .phone-lg .screen, .phone-lg img { border-radius: 26px; }

  .features-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  section { padding: 56px 20px; }
}
