/* ---------------------------------------------------------------------------
   Warrantly landing page
   Light, quiet, and editorial: the app's cool paper ground, ink-navy type,
   Newsreader headlines, IBM Plex Mono for ledger details, and the real app
   screens doing the talking. Motion is added by main.js and always optional.
--------------------------------------------------------------------------- */

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/Newsreader-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f9fc;
  --surface: #ffffff;
  --wash: #e7f0f7;
  --ink: #0a1931;
  --slate: #1a3d63;
  --muted: #52739b;
  --accent: #3f719b;
  --powder: #b3cfe5;
  --edge: #d7e4ef;
  --green: #1c7a5b;
  --green-wash: #e4f2ec;
  --amber: #a15b06;
  --amber-wash: #fff0d6;
  --red: #b23e45;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --page-max: 1160px;
  --pad: clamp(20px, 4vw, 56px);
  --section-y: clamp(88px, 10vw, 150px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(10, 25, 49, 0.14);
}

.skip-link:focus {
  transform: translateY(0);
}

.header-sentinel {
  position: absolute;
  top: 24px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ------------------------------------------------------------------ type */

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(38px, 5vw, 58px);
  text-align: center;
}

.section-sub {
  max-width: 46ch;
  margin: 16px auto 0;
  color: var(--slate);
}

[data-split-lines] .line {
  display: block;
  overflow: hidden;
}

[data-split-lines] .line-inner {
  display: block;
  will-change: transform;
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  transition: translate 150ms var(--ease), filter 150ms ease;
}

.button:hover {
  translate: 0 -1px;
  filter: brightness(1.12);
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.button-ios {
  gap: 9px;
}

.button-ios img {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  filter: brightness(0) invert(1);
}

.text-link {
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--powder);
}

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

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  width: 100%;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  box-shadow: 0 1px 0 var(--edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  font-size: 0.88rem;
  font-weight: 560;
  color: var(--slate);
}

.site-nav a:not(.nav-cta):hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.85rem;
}

.menu-button {
  display: none;
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  justify-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(130px, 17vh, 190px) var(--pad) 0;
  text-align: center;
}

.hero-badge {
  margin: 0 0 22px;
  padding: 7px 16px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
  color: var(--slate);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 48ch;
  margin: 22px 0 30px;
  color: var(--slate);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

/* Two real app screens over a soft wash. */

.hero-stage {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  margin-top: clamp(48px, 6vw, 72px);
}

.hero-blob {
  position: absolute;
  top: 8%;
  width: min(720px, 92%);
  aspect-ratio: 1.6;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(179, 207, 229, 0.55), rgba(179, 207, 229, 0.18) 70%, transparent);
}

/* iPhone-style frame: titanium gradient shell, side buttons, and a
   dynamic-island cutout over the screenshot's status strip. */
.device {
  position: relative;
  width: min(300px, 62vw);
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(150deg, #4d5a72 0%, #131a28 34%, #2a3549 70%, #0d1320 100%);
  box-shadow:
    0 42px 84px rgba(10, 25, 49, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08);
}

.device::before {
  content: "";
  position: absolute;
  top: 27%;
  right: -2.5px;
  width: 3px;
  height: 68px;
  border-radius: 2px;
  background: linear-gradient(#5d6c86, #2b374d);
}

.device::after {
  content: "";
  position: absolute;
  top: 17%;
  left: -2.5px;
  width: 3px;
  height: 150px;
  background:
    linear-gradient(#5d6c86, #2b374d) 0 0 / 3px 24px no-repeat,
    linear-gradient(#5d6c86, #2b374d) 0 42px / 3px 42px no-repeat,
    linear-gradient(#5d6c86, #2b374d) 0 96px / 3px 42px no-repeat;
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  background: #000;
}

.device-screen::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 33%;
  height: 25px;
  border-radius: 14px;
  translate: -50% 0;
  background: #070b12;
}

.device-front {
  position: relative;
  z-index: 2;
  rotate: -2deg;
}

.device-back {
  position: absolute;
  z-index: 1;
  top: 7%;
  left: 50%;
  translate: 8% 0;
  rotate: 7deg;
  width: min(270px, 56vw);
  filter: brightness(0.97);
}

.benefit-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(26px, 5vw, 72px);
  margin: clamp(46px, 6vw, 70px) 0 0;
  padding: 0 0 clamp(40px, 5vw, 70px);
  list-style: none;
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 580;
}

.benefit-row li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 8px 22px rgba(10, 25, 49, 0.1);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

/* -------------------------------------------------------------- features */

.features {
  padding: var(--section-y) 0;
}

.features .section-head {
  padding: 0 var(--pad);
}

.feature-scroller {
  position: relative;
}

.feature-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 350px);
  gap: clamp(16px, 2vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 6px max(var(--pad), calc((100vw - var(--page-max)) / 2)) 18px;
  scrollbar-width: none;
}

.feature-track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 30px);
  border-radius: 22px;
  scroll-snap-align: center;
  user-select: none;
}

.tint-powder { background: var(--wash); }
.tint-green { background: var(--green-wash); }
.tint-amber { background: var(--amber-wash); }

.feature-tag {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tint-green .feature-tag { color: var(--green); }
.tint-amber .feature-tag { color: var(--amber); }

.feature-card p {
  color: var(--slate);
  font-size: 0.92rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.dot-active { background: var(--green); }
.dot-expiring { background: var(--amber); }
.dot-expired { background: var(--red); }

.demo {
  margin-top: 14px;
  min-height: 104px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(10, 25, 49, 0.07);
}

.date-demo small {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.date-demo strong {
  display: block;
  margin: 10px 0 4px;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
}

.date-demo span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.remind-demo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 0;
}

.remind-demo strong { display: block; font-size: 0.8rem; }
.remind-demo small { display: block; color: var(--muted); font-size: 0.66rem; }

.remind-demo em {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
}

.coverage-demo {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 0;
}

.coverage-demo em {
  font-size: 0.72rem;
  font-style: normal;
  color: var(--slate);
}

.retrieve-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 0;
}

.retrieve-demo span {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.retrieve-demo b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  white-space: nowrap;
}

.paper-demo {
  position: relative;
  overflow: hidden;
}

.paper-demo span {
  display: block;
  width: 46%;
  height: 5px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: var(--powder);
}

.paper-demo span:nth-child(2) { width: 66%; }
.paper-demo span:nth-child(3) { width: 54%; }

.paper-demo i {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 5px 10px;
  border: 2px solid var(--green);
  border-radius: 5px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.ledger-demo {
  display: grid;
  align-content: center;
}

.ledger-demo div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--wash);
  font-size: 0.76rem;
}

.ledger-demo div:first-child { border-top: 0; }
.ledger-demo span { color: var(--slate); }

.ledger-demo strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Pinned mode (motion allowed): the section holds while vertical
   scroll walks the cards horizontally; the centered card pops into focus. */
.features--pinned {
  display: grid;
  align-content: center;
  min-height: 100svh;
  overflow-x: clip;
}

.features--pinned .feature-scroller {
  width: 100%;
  max-width: 100vw;
}

.features--pinned .feature-track {
  overflow: visible;
  scroll-snap-type: none;
}

.features--pinned .feature-nav {
  display: none;
}

.features--pinned .feature-card {
  opacity: 0.45;
  scale: 0.93;
  transition: opacity 320ms var(--ease), scale 320ms var(--ease), box-shadow 320ms var(--ease);
}

.features--pinned .feature-card.is-active {
  opacity: 1;
  scale: 1.04;
  box-shadow: 0 26px 52px rgba(10, 25, 49, 0.14);
}

.feature-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.carousel-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: scale 140ms var(--ease), opacity 140ms ease;
}

.carousel-button:hover {
  scale: 1.06;
}

.carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
  scale: 1;
}

/* --------------------------------------------------------------- covered */

.covered {
  padding: var(--section-y) var(--pad);
  background: var(--surface);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.covered-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 10px;
  max-width: 780px;
  margin: 0 auto;
}

.covered-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
}

.covered-pill em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-style: normal;
}

.covered-pill.covered-more {
  border-style: dashed;
  color: var(--slate);
  font-weight: 500;
}

/* ----------------------------------------------------------------- story */

.story {
  display: grid;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-y) var(--pad);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.story-media {
  display: grid;
  justify-items: center;
}

.device-still {
  rotate: 2deg;
  width: min(300px, 70vw);
}

.story-copy .eyebrow {
  margin-bottom: 14px;
}

.story-copy p:not(.eyebrow) {
  max-width: 50ch;
  margin: 18px 0 0;
  color: var(--slate);
}

.story-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  color: var(--slate);
  font-size: 0.94rem;
}

.story-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.story-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--powder);
  translate: 0 -1px;
}

/* ------------------------------------------------------------------- faq */

.faq {
  padding: var(--section-y) var(--pad);
  background: var(--surface);
  border-top: 1px solid var(--edge);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--edge);
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 620;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-marker {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--edge);
  border-radius: 50%;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.6px;
  background: var(--slate);
  translate: -50% -50%;
  transition: rotate 200ms var(--ease);
}

.faq-marker::after {
  rotate: 90deg;
}

.faq-list details[open] .faq-marker::after {
  rotate: 0deg;
}

.faq-list details p {
  max-width: 58ch;
  padding: 0 44px 22px 4px;
  color: var(--slate);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------- closing */

.closing {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: var(--section-y) var(--pad);
  text-align: center;
}

.closing img {
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(10, 25, 49, 0.18);
}

.closing h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.closing p {
  max-width: 44ch;
  color: var(--slate);
}

.closing .button {
  margin-top: 8px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  display: grid;
  align-items: center;
  padding: 30px var(--pad) 36px;
  border-top: 1px solid var(--edge);
  grid-template-columns: 1fr auto;
  gap: 24px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  align-items: center;
}

.site-footer nav { gap: 24px; }
.site-footer nav a:hover { color: var(--ink); }
.footer-signature { margin: 0; font-family: var(--mono); }
.footer-signature a {
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--powder);
  text-underline-offset: 3px;
}
.footer-signature a:hover { color: var(--ink); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
  .story {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .story-copy p:not(.eyebrow),
  .story-list {
    margin-left: auto;
    margin-right: auto;
  }

  .story-list {
    max-width: 420px;
    text-align: left;
  }
}

@media (max-width: 780px) {
  .site-header {
    height: 64px;
  }

  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    top: 60px;
    right: var(--pad);
    left: var(--pad);
    display: none;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--edge);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(10, 25, 49, 0.16);
    flex-direction: column;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .site-nav .nav-cta {
    margin-top: 6px;
  }

  .device-back {
    left: 46%;
    width: min(230px, 46vw);
    translate: 0 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }

  .site-footer p {
    text-align: center;
  }
}

@media (max-width: 430px) {
  .feature-track {
    grid-auto-columns: minmax(260px, 84vw);
  }

  .covered-pill em { display: none; }
}

/* -------------------------------------------------------- reduced motion */

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

  .drag-cursor {
    display: none;
  }
}
