/* The home page only. Shared header, footer and type live in styles.css. */

.home { --deep: #163828; --on-forest-muted: #D9E8D2; --lime-border: #9DC24F; --neutral: #E3EBD8; }
.home .wrap { max-width: 1080px; }
.home main { padding: 0; overflow-x: clip; }
.home header { position: relative; z-index: 2; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill-lime { background: var(--lime); color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--lime-border); }
.pill-ghost { color: var(--on-forest); box-shadow: inset 0 0 0 1.5px rgba(244, 248, 235, .35); }
.pill-ghost:hover { background: rgba(244, 248, 235, .08); }
.pill-forest { background: var(--forest); color: var(--on-forest); }
.pill:focus-visible, .ways a:focus-visible { outline: 3px solid var(--lime-border); outline-offset: 3px; }

/* Wave, from the app's header */
.wave { display: block; width: 100%; background: var(--ground); height: clamp(38px, 6vw, 80px); }
.wave-top { transform: scaleY(-1); }

/* Phone frames around real app screens */
.phone {
  margin: 0; width: 100%; max-width: 280px;
  padding: 9px; border-radius: 46px;
  background: #10291D;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 30px 60px -20px rgba(16, 41, 29, .45), 0 12px 24px -12px rgba(16, 41, 29, .3);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 37px; }

/* Hero */
.hero { background: var(--forest); color: var(--on-forest); position: relative; }
.home .hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: 40px 16px 0; max-width: 1112px;
}
.eyebrow {
  display: inline-block; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px;
  background: rgba(200, 232, 122, .14); color: var(--lime);
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 20px; }
.hero .lede { color: var(--on-forest-muted); font-size: clamp(18px, 2vw, 21px); max-width: 30ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-phones { position: relative; display: flex; justify-content: center; min-height: 560px; margin-bottom: -150px; z-index: 1; }
.hero-phones .phone { position: absolute; top: 0; max-width: 290px; }
.phone-front { left: 50%; transform: translateX(-30%); }
.phone-back { left: 50%; transform: translateX(-95%) translateY(60px) rotate(-6deg) scale(.88); opacity: .95; }
.hero .wave { position: relative; z-index: 0; margin-top: 60px; }

/* Sections */
.section { padding: 72px 16px; }
.section-tight { padding-top: 16px; }
.section-last { padding-bottom: 88px; }
.home h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 14px; }
.kicker { color: var(--secondary); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.section-lede { font-size: 19px; color: var(--secondary); max-width: 42ch; }
.feature-title { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 0 0 18px; }

.ways { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ways li { margin: 0; }
.ways a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 20px 6px 6px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.ways a:hover { border-color: var(--lime-border); }
.way-num, .step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--lime); color: var(--forest); font-weight: 800; font-size: 16px; flex: none;
}

/* Find a time: three steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { margin: 0; display: flex; flex-direction: column; align-items: center; }
.step .phone { max-width: 260px; }
.step-copy { margin-top: 24px; max-width: 300px; }
.step-copy h4 { font-size: 20px; font-weight: 800; margin: 12px 0 6px; }
.step-copy p { color: var(--secondary); margin: 0; }

/* Free tonight band */
.band {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 32px;
  background: var(--neutral); border-radius: 28px; padding: 48px 48px 0; overflow: hidden;
}
.band-copy { padding-bottom: 48px; }
.band-copy p { font-size: 18px; color: var(--secondary); max-width: 36ch; }
.band-phones { display: flex; justify-content: center; gap: 20px; align-self: end; }
.band-phones .phone { max-width: 240px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; height: 420px; overflow: hidden; }
.band-phones .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.phone-offset { margin-top: 48px; height: 372px !important; }

/* Set time card */
.set-card { margin: 0; padding: 36px 40px 36px 48px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 48px; align-items: center; }
.set-card .feature-title { margin: 0; }
.set-card p:last-child { margin: 0; }
.set-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--lime); }
.set-card p:not(.kicker) { font-size: 18px; color: var(--secondary); max-width: 60ch; }

/* Privacy band */
.privacy { background: var(--forest); color: var(--on-forest); margin: 24px 0; }
.home .privacy .wrap { padding: 40px 16px 56px; max-width: 1112px; }
.privacy .kicker { color: var(--lime); }
.privacy h2 { color: var(--on-forest); }
.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.tenet { background: rgba(244, 248, 235, .06); border: 1px solid rgba(244, 248, 235, .14); border-radius: 28px; padding: 26px 26px 22px; }
.tenet h4 { font-size: 19px; font-weight: 800; margin: 0 0 8px; color: var(--lime); }
.tenet p { color: var(--on-forest-muted); margin: 0; }
.privacy-link { margin: 28px 0 0; }
.privacy-link a { color: var(--on-forest); }

/* Texts */
.texts-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.texts-grid .phone { max-width: 280px; justify-self: center; }
.texts-grid p:not(.kicker) { font-size: 18px; color: var(--secondary); max-width: 52ch; }
.texts-grid .pill { margin-top: 8px; }

/* Private test */
.cta { display: flex; align-items: center; gap: 28px; margin: 0; padding: 36px 40px; background: var(--lime); border-color: var(--lime-border); }
.cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta p { margin: 0; color: var(--ink); font-size: 18px; }
.cta-icon { width: 72px; height: 72px; flex: none; border-radius: 18px; box-shadow: 0 8px 20px -8px rgba(16, 41, 29, .5); }

@media (max-width: 900px) {
  .home .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .hero .lede { max-width: 36ch; }
  .hero-phones { min-height: 0; margin-bottom: -140px; }
  .hero-phones .phone { position: relative; transform: none; left: auto; max-width: 250px; }
  .phone-back { display: none; }
  .hero .wave { margin-top: -40px; }
  #how { padding-top: 190px; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step { flex-direction: row; align-items: center; gap: 28px; }
  .step .phone { max-width: 200px; flex: none; }
  .step-copy { margin-top: 0; }
  .band { grid-template-columns: 1fr; padding: 36px 28px 0; }
  .band-copy { padding-bottom: 0; }
  .tenets { grid-template-columns: 1fr; }
  .set-card { grid-template-columns: 1fr; }
  .set-card .feature-title { margin-bottom: 14px; }
  .texts-grid { grid-template-columns: 1fr; gap: 36px; }
  .texts-grid .phone { max-width: 240px; order: 2; }
}

@media (max-width: 560px) {
  .section { padding: 56px 16px; }
  .section-tight { padding-top: 8px; }
  .step { flex-direction: column; text-align: left; gap: 0; }
  .step .phone { max-width: 240px; }
  .step-copy { margin-top: 20px; width: 100%; max-width: 340px; }
  .band { padding: 28px 20px 0; }
  .band-phones { gap: 12px; }
  .band-phones .phone { height: 300px; padding: 6px 6px 0; border-radius: 30px 30px 0 0; }
  .band-phones .phone img { border-radius: 25px 25px 0 0; }
  .phone-offset { margin-top: 36px; height: 264px !important; }
  .set-card, .cta { padding: 28px 24px; }
  .set-card { padding-left: 32px; }
  #how { padding-top: 180px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .actions .pill { flex: 1 1 auto; }
  .ways a { width: 100%; }
  .ways li { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
  .pill:hover { transform: none; }
}
