/*
 * Landing - "Pocket Pager" marketing page
 * Desktop reference 1200px (#6b), mobile reference 390px (#6a), breakpoint 700px
 */

/* Let landing page use full width, hide shared layout header/footer */
body:has(.landing) > main.container {
  max-width: 100%;
  padding: 0;
}

body:has(.landing) > header.container,
body:has(.landing) > footer.container {
  display: none;
}

.landing {
  background: var(--cream);
  color: var(--ink);
}

.landing .inline-form {
  display: inline-block;
  margin: 0;
}

/* --- Header --- */

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 64px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}

.landing-nav-link {
  color: var(--ink);
  text-decoration: none;
}

.landing-nav-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header CTA is a form submit styled as an ink pill */
.landing-nav input[type="submit"].pill-link {
  width: auto;
  margin: 0;
  border: none;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  cursor: pointer;
}

/* --- Hero --- */

.hero {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center;
  padding: 56px 80px 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 26px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

.hero h1 {
  font-size: 62px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  text-wrap: pretty;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 480px;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-caption {
  font-size: 14.5px;
  color: var(--faint);
}

.hero-device {
  display: grid;
  place-items: center;
}

.hero-device .pager-device {
  width: 318px;
  border-radius: 30px;
  padding: 24px 24px 28px;
  box-shadow: 9px 11px 0 rgba(42, 36, 25, 0.15);
  transform: rotate(3deg);
}

.hero-device .pager-screen {
  border-radius: 10px;
  padding: 18px 16px 15px;
}

.hero-device .pager-screen-meta {
  font-size: 10px;
  margin-bottom: 11px;
}

.hero-device .pager-screen-title {
  font-size: 28px;
}

.hero-device .pager-screen-sub {
  font-size: 12.5px;
  margin-top: 7px;
}

.hero-device .pager-controls {
  margin-top: 20px;
}

.hero-device .pager-buttons {
  gap: 9px;
}

.hero-device .pager-button {
  width: 38px;
  height: 38px;
}

.hero-device .pager-slider {
  width: 56px;
  height: 22px;
}

/* --- How it works strip --- */

.steps-strip {
  background: #ffffff;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 40px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.step-number {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  background: var(--amber);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}

.step h3 {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Section headers --- */

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.section-header p {
  font-size: 16.5px;
  color: var(--muted);
  margin: 0;
}

/* --- The film --- */

.film-band {
  padding: 72px 80px;
  background: var(--cream-dark);
}

.film {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--card-shadow);
}

.film-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  /* Round the video itself: Firefox on Android ignores the frame's
     overflow clip for video. 2px less than the frame, inside its border */
  border-radius: 16px;
}

/* "Tap for sound" (muted preview) or "Play the film" (reduced motion / data
   saver) sits bottom left, on kraft paper in most of the film and clear of
   the note on the poster */
.film .film-button {
  position: absolute;
  inset: auto auto 18px 18px;
}

.film-button svg {
  width: 18px;
  height: 18px;
}

.film-button[hidden] {
  display: none;
}

/* --- Use cases --- */

.use-cases {
  padding: 72px 80px;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.use-case {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 26px;
  margin: 0;
  box-shadow: var(--card-shadow);
}

.use-case .lcd-chip {
  margin-bottom: 18px;
}

.use-case h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.use-case p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* --- Privacy band --- */

.privacy-band {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 80px;
}

.privacy-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.privacy-band h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--cream);
  text-wrap: pretty;
}

.privacy-band p {
  font-size: 16px;
  color: var(--ink-band-muted);
  line-height: 1.6;
  margin: 0;
}

.privacy-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
}

.check-circle {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--amber);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.check-circle svg {
  width: 12px;
  height: 12px;
}

/* --- Final CTA --- */

.final-cta {
  padding: 80px;
  text-align: center;
}

.final-cta h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.final-cta p {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 30px;
}

/* --- Footer --- */

.landing-footer {
  border-top: 1.5px solid var(--hairline);
  padding: 28px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--faint);
}

.landing-footer-links {
  display: flex;
  gap: 20px;
}

.landing-footer-links a {
  color: var(--faint);
  text-decoration: none;
}

.landing-footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Mobile (breakpoint ~700px, reference 390px) --- */

@media (max-width: 700px) {
  .landing-header {
    padding: 16px 20px;
  }

  /* Header collapses to logo + CTA pill only */
  .landing-nav {
    gap: 0;
  }

  .landing-nav-link {
    display: none;
  }

  .landing-nav input[type="submit"].pill-link {
    padding: 8px 16px;
    font-size: 13px;
  }

  .landing-header .brand--lg .brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    box-shadow: 1.5px 1.5px 0 var(--ink);
  }

  .landing-header .brand--lg .brand-name {
    font-size: 18px;
  }

  /* Hero: single centered column */
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 24px 40px;
    text-align: center;
  }

  .hero-badge {
    padding: 5px 13px;
    font-size: 12px;
    gap: 7px;
    margin-bottom: 22px;
  }

  .badge-dot {
    width: 7px;
    height: 7px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.06;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 16px;
    max-width: 310px;
    margin: 0 auto 26px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .inline-form {
    display: block;
    width: 100%;
  }

  .hero-cta input[type="submit"].btn--lg {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 17px;
  }

  .hero-caption {
    font-size: 13px;
  }

  .hero-device {
    margin-top: 36px;
  }

  .hero-device .pager-device {
    width: 260px;
    border-radius: 26px;
    padding: 20px 20px 24px;
    box-shadow: 7px 9px 0 rgba(42, 36, 25, 0.15);
  }

  .hero-device .pager-screen {
    border-radius: 9px;
    padding: 14px 13px 12px;
  }

  .hero-device .pager-screen-meta {
    font-size: 9px;
    margin-bottom: 9px;
  }

  .hero-device .pager-screen-title {
    font-size: 21px;
  }

  .hero-device .pager-screen-sub {
    font-size: 11px;
    margin-top: 5px;
  }

  .hero-device .pager-controls {
    margin-top: 16px;
  }

  .hero-device .pager-buttons {
    gap: 7px;
  }

  .hero-device .pager-button {
    width: 32px;
    height: 32px;
  }

  .hero-device .pager-slider {
    width: 48px;
    height: 19px;
  }

  /* Steps stack vertically */
  .steps-strip {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .step {
    gap: 14px;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }

  .step h3 {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .step p {
    font-size: 14px;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-header h2 {
    font-size: 27px;
    margin-bottom: 8px;
  }

  .section-header p {
    font-size: 14.5px;
  }

  .film-band {
    padding: 44px 24px;
  }

  .film {
    border-radius: 14px;
  }

  .film-video {
    border-radius: 12px;
  }

  .film .film-button {
    inset: auto auto 8px 8px;
    gap: 6px;
    padding: 5px 10px;
    border-width: 1.5px;
    border-radius: 9px;
    font-size: 12px;
  }

  .film-button svg {
    width: 14px;
    height: 14px;
  }

  /* Use-case cards stack */
  .use-cases {
    padding: 44px 24px;
  }

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

  .use-case {
    border-radius: 16px;
    padding: 20px;
    box-shadow: 3px 4px 0 rgba(42, 36, 25, 0.12);
  }

  .use-case .lcd-chip {
    border-radius: 7px;
    padding: 8px 11px;
    font-size: 12px;
    margin-bottom: 14px;
  }

  .use-case h3 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .use-case p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Privacy band: single left-aligned column */
  .privacy-band-extra {
    display: none;
  }

  .privacy-band {
    padding: 40px 24px;
  }

  .privacy-band-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .privacy-band h2 {
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .privacy-band p {
    font-size: 14.5px;
  }

  .privacy-checklist {
    gap: 12px;
  }

  .privacy-check {
    gap: 11px;
    font-size: 14px;
  }

  .check-circle {
    width: 20px;
    height: 20px;
  }

  .check-circle svg {
    width: 11px;
    height: 11px;
  }

  /* Final CTA */
  .final-cta {
    padding: 44px 24px;
  }

  .final-cta h2 {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .final-cta p {
    font-size: 14.5px;
    margin-bottom: 22px;
  }

  .final-cta .inline-form {
    display: block;
  }

  .final-cta input[type="submit"].btn--lg {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border-radius: 14px;
  }

  /* Footer: centered / stacked, logo dropped */
  .landing-footer {
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px;
    text-align: center;
    font-size: 13px;
  }

  .landing-footer .brand--footer {
    display: none;
  }

  .landing-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }

  .landing-footer-links span {
    flex-basis: 100%;
  }
}
