/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out),
    backdrop-filter 400ms var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(250, 250, 248, 0.82);
  border-bottom-color: var(--color-line);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.nav__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav__mark img { width: 100%; height: 100%; object-fit: contain; display:block;}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--text-small);
  color: var(--color-ink-soft);
}

.nav__links a { transition: color 200ms var(--ease-out); }
.nav__links a:hover { color: var(--color-accent); }

.nav__cta {
  display: none;
}

.nav__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.nav__menu-btn span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--color-ink);
  transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
}

.nav__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--color-bg);
  z-index: 49;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--container-pad);
  gap: var(--space-4);
}

.nav__mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__mobile a {
  font-size: var(--text-h2);
  font-weight: 600;
}

/* Single desktop breakpoint for every nav element, declared last so it
   reliably wins over the mobile-first base rules above regardless of
   where else those rules appear in the file. (A previous version split
   this into several media blocks scattered through the file — a rule
   declared later with equal specificity always wins the cascade, so a
   base "display: flex" rule sitting after a media query that set
   "display: none" silently undid it. That was the hamburger-on-desktop
   bug — keeping every override together here prevents it recurring.) */
@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__menu-btn { display: none; }
  .nav__mobile { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: 600;
  transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-bg);
}

.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn--ghost {
  border: 1px solid var(--color-line);
  color: var(--color-ink);
}

.btn--ghost:hover { border-color: var(--color-ink); }

.btn--on-dark {
  background: var(--color-dark-ink);
  color: var(--color-dark-bg);
}

.is-pending {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- App Store badge ----------
   Apple requires using their own provided badge artwork unmodified — see
   README for the official download link. This just gives it a slot with
   consistent spacing; do not recreate the Apple logo or wordmark yourself. */
.store-badge-slot { display: inline-flex; align-items: center; }

.store-badge-slot img {
  height: 48px;
  width: auto;
  transition: transform 220ms var(--ease-out);
}

.store-badge-slot:hover img { transform: translateY(-1px); }

/* Neutral "not live yet" state — deliberately does NOT use any Apple
   imagery, since the official badge should only appear next to a real,
   working App Store link per Apple's marketing guidelines. */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  font-weight: 600;
}

.coming-soon-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.dark-section .coming-soon-badge {
  border-color: var(--color-line-dark);
  color: var(--color-dark-ink-soft);
}
.store-badge-slot[hidden],
.coming-soon-badge[hidden] {
  display: none;
}

/* ---------- Device frames ---------- */
.device-phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 300 / 612;
  margin-inline: auto;
  padding: 14px;
  background: linear-gradient(155deg, #2b2b2f, #0f0f11);
  border-radius: var(--radius-phone);
  box-shadow: var(--shadow-device);
  overflow: hidden;
}

.device-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-phone) - 16px);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.device-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-phone__island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: var(--radius-full);
  background: #0a0a0b;
  z-index: 2;
}

.device-watch {
  position: relative;
  width: 100%;
  max-width: 148px;
  aspect-ratio: 148 / 180;
  margin-inline: auto;
  padding: 9px;
  background: linear-gradient(155deg, #2b2b2f, #0f0f11);
  border-radius: 40px;
  box-shadow: var(--shadow-device);
}

.device-watch::before {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 34px;
  background: #1c1c1f;
  border-radius: 3px 6px 6px 3px;
}

.device-watch__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.device-watch__screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Card motif (used in hero + collection) ---------- */
.card-chip {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--color-dark-ink);
  box-shadow: 0 14px 28px -14px rgba(22,22,26,0.35);
}

.card-chip__brand { font-size: 0.75rem; font-weight: 600; opacity: 0.85; }
.card-chip__name { font-size: 0.9375rem; font-weight: 650; margin-top: auto; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 0.9rem; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-body-lg);
}

.checklist__mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15em;
}

.checklist__mark svg { width: 12px; height: 12px; }

/* ---------- Pills (formats section) ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 760px;
  margin: var(--space-6) auto 0;
}

.pill {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-line-dark);
  font-size: var(--text-small);
  color: var(--color-dark-ink-soft);
    display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
