@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800&family=IBM+Plex+Mono:wght@500&family=Public+Sans:ital,wght@0,400;0,600;1,400&display=swap");

:root {
  --night: #0a1626;
  --deck: #10223a;
  --rail: #1b3352;
  --chalk: #f2f4ef;
  --mist: #a9b6c4;
  --ball: #ffd21f;
  --rec: #ff5b3a;
  --teal: #22a6b3;

  --display: "Big Shoulders Display", Teko, "Arial Narrow", sans-serif;
  --body: "Public Sans", "Atkinson Hyperlegible", -apple-system, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --page: min(72rem, calc(100% - 2.5rem));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--chalk);
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(34, 166, 179, 0.22), transparent 70%),
    var(--night);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ball);
  text-underline-offset: 0.2em;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ball);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.9rem;
  color: var(--night);
  background: var(--ball);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus { top: 1rem; }

/* Navigation, shared with the privacy page */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--page);
  margin: 0 auto;
  padding: 1.25rem 0;
}

.site-nav a.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--chalk);
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a.brand::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ball);
  border-radius: 50%;
}

.home-page .site-nav a.brand::before { content: none; }

.site-nav a.brand img { border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a.nav-link {
  color: var(--mist);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link[aria-current="page"] {
  color: var(--chalk);
}

.site-nav a.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--ball);
  text-decoration-thickness: 2px;
}

.nav-cta {
  padding: 0.45rem 1rem;
  color: var(--night);
  background: var(--ball);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

/* Shared type */

.eyebrow,
.mark {
  margin: 0 0 0.9rem;
  color: var(--ball);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 11vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 {
  margin: 2.25rem 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
}

p { margin: 0.7rem 0; }

/* Privacy page */

.wrap {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}

.wrap h1 { font-size: clamp(3rem, 10vw, 5rem); }

.kitchen-line {
  width: 6rem;
  height: 0.4rem;
  margin: 1.2rem 0 0;
  background: var(--ball);
  border-radius: 999px;
}

.updated {
  margin: 1rem 0 2rem;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.wrap > p { color: #d4dbe3; }

.contact {
  padding: 0.05rem 0.4rem;
  background: rgba(255, 210, 31, 0.14);
  border-radius: 0.3rem;
}

/* Home: hero */

.home-page main > section {
  width: var(--page);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero h1 span { color: var(--ball); }

.lede {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: #d4dbe3;
  font-size: 1.15rem;
}

.hero-actions { margin-top: 2rem; }

.store-button {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.6rem;
  color: var(--night);
  background: var(--ball);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0.6rem 1.6rem rgba(255, 210, 31, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.9rem 2rem rgba(255, 210, 31, 0.3);
}

.fine {
  margin: 0.85rem 0 0;
  color: var(--mist);
  font-size: 0.9rem;
}

.phone {
  margin: 0;
  justify-self: center;
  width: min(100%, 19rem);
  padding: 0.55rem;
  background: #04080f;
  border: 1px solid var(--rail);
  border-radius: 2.6rem;
  box-shadow:
    0 2.5rem 5rem rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.phone img { border-radius: 2.1rem; }

.hero .phone { transform: rotate(2.5deg); }

/* Home: rolling replay timeline */

.home-page main > .buffer {
  width: 100%;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--deck);
  border-block: 1px solid var(--rail);
}

.buffer-inner {
  width: var(--page);
  margin: 0 auto;
}

.timeline { margin: 2.25rem 0 1.5rem; }

.track {
  position: relative;
  height: 5.5rem;
  border-radius: 0.9rem;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(242, 244, 239, 0.32) 0 2px,
      transparent 2px calc(100% / 60)
    ),
    #0b1a2d;
  background-size: 100% 38%, 100%;
  background-position: 0 50%, 0 0;
  background-repeat: no-repeat;
  overflow: hidden;
}

.clip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 64%;
  width: 22%;
  background: rgba(255, 210, 31, 0.2);
  border-inline: 3px solid var(--ball);
}

.clip span {
  position: absolute;
  top: 0.5rem;
  left: 0.6rem;
  color: var(--ball);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 64%;
  width: 3px;
  background: var(--rec);
  box-shadow: 0 0 0.9rem rgba(255, 91, 58, 0.8);
  animation: slowmo 9s linear infinite;
}

.playhead span {
  position: absolute;
  bottom: 0.45rem;
  right: 0.45rem;
  padding: 0.05rem 0.4rem;
  color: var(--night);
  background: var(--rec);
  border-radius: 0.3rem;
  font-family: var(--mono);
  font-size: 0.7rem;
}

@keyframes slowmo {
  from { left: 64%; }
  to { left: 86%; }
}

.scale {
  display: flex;
  justify-content: space-between;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.scale li:last-child { color: var(--chalk); }

.buffer-note {
  max-width: 40rem;
  color: #d4dbe3;
}

/* Home: how it works */

.how {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.steps {
  display: grid;
  gap: 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--night);
  background: var(--ball);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
}

.steps h3 {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.steps p {
  margin: 0.35rem 0 0;
  color: #d4dbe3;
}

.watch { margin: 0; }

.watch img {
  border-radius: 2.4rem;
  border: 0.55rem solid #04080f;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.45);
}

.watch figcaption {
  margin-top: 1rem;
  color: var(--mist);
  font-size: 0.9rem;
}

/* Home: details */

.details {
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 9vw, 6.5rem);
}

.phone-small { width: min(100%, 16rem); }

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin: 2rem 0 0;
}

.specs div {
  padding-top: 1rem;
  border-top: 2px solid var(--rail);
}

.specs dt {
  font-weight: 600;
  font-size: 1.05rem;
}

.specs dd {
  margin: 0.35rem 0 0;
  color: var(--mist);
}

/* Home: privacy promise */

.home-page main > .private {
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #0f3a4a, #10223a 70%);
  border: 1px solid var(--rail);
  border-radius: 1.75rem;
}

.private-title {
  max-width: 14ch;
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.private p {
  max-width: 40rem;
  color: #d4dbe3;
}

/* Home: support */

.support { padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3rem, 6vw, 4rem); }

.faq {
  max-width: 46rem;
  border-top: 1px solid var(--rail);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  color: var(--ball);
  font-family: var(--mono);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 0 0 1.2rem;
  max-width: 40rem;
  color: var(--mist);
}

.contact-line {
  margin-top: 2rem;
  color: #d4dbe3;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  width: var(--page);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rail);
  color: var(--mist);
  font-size: 0.9rem;
}

.site-footer p { margin: 0 auto 0 0; }

.site-footer a {
  color: var(--mist);
  text-decoration: none;
}

.site-footer a:hover { color: var(--chalk); }

/* Small screens */

@media (max-width: 820px) {
  .hero,
  .how,
  .details {
    grid-template-columns: 1fr;
  }

  .hero .phone { transform: none; }

  .details .phone { order: 2; }

  .watch { max-width: 16rem; }
}

@media (max-width: 560px) {
  .nav-links { gap: 0.9rem; }

  .nav-links .nav-link:not([href="privacy.html"]) { display: none; }

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

  .scale li:nth-child(even) { visibility: hidden; }
}

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

  .playhead {
    animation: none;
    left: 70%;
  }

  .store-button { transition: none; }
}
