/* Pact Sleep — marketing site
   Palette resolved from pact-ios/Sources/App/Theme.swift */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --paper: #f5f2ec;
  --paper-warm: #fbf2e6;
  --paper-deep: #ece7dd;
  --card: #e7ddcb;
  --ink: #171c26;
  --commitment: #0f121f;
  --commitment-2: #171b2c;

  --dawn: #cc470a;
  --dawn-bright: #ff7333;
  --flame: #c76605;
  --night: #5c4fc7;
  --night-bright: #8c80f2;
  --sky: #386bcc;
  --rose: #d9334d;
  --success: #2f9e5b;

  --ink-70: rgba(23, 28, 38, 0.7);
  --ink-60: rgba(23, 28, 38, 0.6);
  --ink-50: rgba(23, 28, 38, 0.5);
  --ink-35: rgba(23, 28, 38, 0.35);
  --ink-15: rgba(23, 28, 38, 0.15);
  --ink-08: rgba(23, 28, 38, 0.08);
  --ink-05: rgba(23, 28, 38, 0.05);

  --paper-70: rgba(245, 242, 236, 0.7);
  --paper-50: rgba(245, 242, 236, 0.5);
  --paper-15: rgba(245, 242, 236, 0.15);
  --paper-08: rgba(245, 242, 236, 0.08);

  --grad-dawn: linear-gradient(135deg, #fa6b26, #d9334d);
  --grad-night: linear-gradient(135deg, #7361e6, #423394);
  --grad-sleep: linear-gradient(135deg, #386bcc, #142a6b);
  --grad-arc: linear-gradient(90deg, #241e52, #6b4fd8 34%, #fa5a4b 67%, #ff9500);

  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --r-sm: 12px;
  --r: 16px;
  --r-md: 20px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1180px;
  --section-y: clamp(72px, 11vw, 148px);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Sticky footer: on a page shorter than the viewport (signin, support —
     any .doc page without much content), .doc's flex-grow below pushes the
     footer to the bottom of the screen instead of leaving a gap under it. */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection {
  background: var(--dawn);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--dawn);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 820px; }

section { padding-block: var(--section-y); position: relative; }

/* the nav is fixed, so anchored sections need to clear it */
section[id] { scroll-margin-top: 100px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dawn);
  margin: 0 0 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: var(--ink-05);
  color: var(--ink-70);
  border: 1px solid var(--ink-08);
}

.h1 {
  font-size: clamp(44px, 7.4vw, 86px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.h2 {
  font-size: clamp(34px, 5.1vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.h3 { font-size: clamp(23px, 2.6vw, 30px); letter-spacing: -0.028em; }

.lede {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.5;
  color: var(--ink-60);
  max-width: 54ch;
}

.muted { color: var(--ink-50); }

.only-mobile { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn svg { flex: none; }

/* Get started while the funnel is closed (see config.js). */
.btn.is-soon { position: relative; opacity: 0.55; cursor: not-allowed; }
.btn.is-soon:hover { transform: none; }
.btn.is-soon::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
/* In the nav there's no room above, so the label drops below. */
nav .btn.is-soon::after { bottom: auto; top: calc(100% + 10px); transform: translate(-50%, -4px); }
.btn.is-soon:hover::after,
.btn.is-soon:focus-visible::after,
.btn.is-soon.show-tip::after { opacity: 1; transform: translate(-50%, 0); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 10px rgba(23, 28, 38, 0.16);
}
.btn--ink:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(23, 28, 38, 0.24);
}

.btn--dawn {
  background: var(--dawn);
  color: #fff;
  box-shadow: 0 2px 12px rgba(204, 71, 10, 0.3);
}
.btn--dawn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(204, 71, 10, 0.36);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-15);
}
.btn--ghost:hover { background: var(--ink-05); transform: translateY(-2px); }

.btn--paper {
  background: var(--paper);
  color: var(--ink);
}
.btn--paper:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }

.btn--sm { padding: 11px 19px; font-size: 14.5px; }

.btn:disabled {
  cursor: default;
  opacity: 0.5;
  box-shadow: none;
  transform: none !important;
}

/* buttons drawn inside product illustrations are not real controls */
.panel .btn { cursor: default; pointer-events: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- mark ---------- */
/* The app icon's two circles, night and dawn. A plain image, so it can't
   drift from the icon; the dark-background version swaps in on dark bands. */
.mark {
  display: block;
  flex: none;
  height: 1em;
  width: auto;
}
.on-dark .mark { content: url(/assets/mark-dark.svg); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
  padding-block: 8px;
}
.wordmark .mark { font-size: 22px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 9px 9px 20px;
  border-radius: var(--pill);
  background: rgba(245, 242, 236, 0.76);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid var(--ink-08);
  box-shadow: 0 1px 2px rgba(23, 28, 38, 0.04), 0 10px 34px rgba(23, 28, 38, 0.07);
}

.nav.is-hidden { transform: translateX(-50%) translateY(-130%); }

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-60);
  padding: 8px 13px;
  border-radius: var(--pill);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--ink-05); }

.nav__signin {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-50);
  padding: 8px 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.nav__signin:hover { color: var(--ink); }

/* a destination that isn't configured yet stays inert, not broken */
a[aria-disabled="true"] { cursor: default; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink-15);
  background: transparent;
  cursor: pointer;
  position: relative;
}
/* keeps the 40px look but gives thumbs a 48px target */
.nav__toggle::after {
  content: "";
  position: absolute;
  inset: -4px;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { bottom: 15px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(118px, 15vw, 172px);
  padding-bottom: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background: radial-gradient(60% 55% at 50% 32%, rgba(255, 149, 0, 0.17), transparent 70%),
    radial-gradient(48% 46% at 22% 20%, rgba(107, 79, 216, 0.16), transparent 72%),
    radial-gradient(44% 40% at 80% 26%, rgba(250, 90, 75, 0.13), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero__arc {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.hero__arc .mark { font-size: 46px; }
.hero__arc .mark {
  animation: drift 7s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-7px) scale(1.06); }
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  background: var(--grad-dawn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede { margin-inline: auto; margin-bottom: 30px; }

.hero .btn-row { justify-content: center; }

.hero__note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-35);
}

/* ---------- phone ---------- */
.stage {
  position: relative;
  margin-top: clamp(48px, 7vw, 80px);
  display: flex;
  justify-content: center;
  padding-bottom: clamp(60px, 9vw, 110px);
}

.phone {
  position: relative;
  width: 300px;
  flex: none;
  aspect-ratio: 300 / 622;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2c3240, #11141c 60%, #272d3a);
  box-shadow: 0 2px 4px rgba(23, 28, 38, 0.3), 0 34px 70px -18px rgba(23, 28, 38, 0.42),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--commitment);
  display: flex;
  flex-direction: column;
}

.phone__island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 25px;
  border-radius: var(--pill);
  background: #05070c;
  z-index: 6;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  z-index: 5;
}
.phone__status .bars {
  display: flex;
  gap: 2.5px;
  align-items: flex-end;
}
.phone__status .bars i {
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
}
.phone__status .bars i:nth-child(1) { height: 4px; }
.phone__status .bars i:nth-child(2) { height: 6px; }
.phone__status .bars i:nth-child(3) { height: 8px; }
.phone__status .bars i:nth-child(4) { height: 10px; }

/* phone scenes */
.scene {
  position: absolute;
  inset: 0;
  padding: 54px 20px 24px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; }
/* Real app screens: the screenshot fills the screen, status bar included. */
.scene--shot { padding: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.scene--ring { background: radial-gradient(90% 55% at 50% 12%, #2a2140, var(--commitment) 72%); }
.scene--mission { background: var(--commitment); }
.scene--won { background: radial-gradient(90% 60% at 50% 10%, #3a2318, var(--commitment) 74%); }

.ring__time {
  font-family: var(--sans);
  font-size: 62px;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #fff;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin-top: 26px;
  line-height: 1;
}
.ring__label {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
}
.ring__halo {
  width: 136px;
  height: 136px;
  margin: 30px auto 0;
  border-radius: 50%;
  background: var(--grad-dawn);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(250, 107, 38, 0.5);
  animation: pulse 1.9s var(--ease) infinite;
}
.ring__halo svg { width: 54px; height: 54px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(250, 107, 38, 0.46); }
  70% { box-shadow: 0 0 0 34px rgba(250, 107, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 107, 38, 0); }
}

.ring__cta {
  margin-top: auto;
  background: #fff;
  color: var(--ink);
  border-radius: var(--pill);
  padding: 15px;
  text-align: center;
  font-size: 15.5px;
  font-weight: 600;
}

.mission__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.mission__q {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.mission__sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
  margin-top: 7px;
}
.mission__pad {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mission__pad span {
  aspect-ratio: 1 / 0.74;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 600;
  font-family: var(--sans);
}
.mission__pad span.is-hit { background: var(--night); }

.won__badge {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--grad-dawn);
  margin: 34px auto 0;
  display: grid;
  place-items: center;
}
.won__badge svg { width: 40px; height: 40px; }
.won__title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  text-align: center;
  margin-top: 22px;
}
.won__receipt {
  margin-top: 22px;
  border-radius: var(--r);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  padding: 15px 16px;
}
.won__receipt div {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  padding: 5px 0;
  font-weight: 500;
}
.won__receipt div b { color: #fff; font-weight: 600; }
.won__receipt .rcpt-head {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  justify-content: center;
  padding-bottom: 11px;
  margin-bottom: 5px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

/* floating cards around phone */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--ink-08);
  box-shadow: 0 14px 40px -12px rgba(23, 28, 38, 0.22);
  font-size: 13.5px;
  width: max-content;
  max-width: 230px;
  animation: bob 6s var(--ease) infinite alternate;
}
.float b { display: block; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.float span { color: var(--ink-50); font-size: 12.5px; }
.float .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
}
.float .dot svg { width: 16px; height: 16px; }

.float--a { top: 11%; left: 0; animation-delay: 0s; }
.float--b { top: 38%; right: 0; animation-delay: 1.1s; }
.float--c { bottom: 23%; left: 2%; animation-delay: 2.1s; }
.float--d { bottom: 9%; right: 3%; animation-delay: 0.6s; }

@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(-13px); }
}

/* ---------- missions ---------- */
.missions { background: var(--paper-deep); }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 52px;
}
.mission-card {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-md);
  padding: 24px 22px 26px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -16px rgba(23, 28, 38, 0.22);
}
.mission-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
}
.mission-card .ic svg { width: 21px; height: 21px; }
.mission-card h3 { font-size: 19px; margin-bottom: 7px; }
.mission-card p { font-size: 14.5px; color: var(--ink-60); line-height: 1.48; }

/* A light section set apart from its neighbours by a slightly deeper paper. */
.tint { background: var(--paper-deep); }

/* ---------- dark band ---------- */
.band {
  background: var(--commitment);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 420px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(204, 71, 10, 0.2), transparent 70%);
  pointer-events: none;
}
.band .wrap { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band .lede { color: rgba(255, 255, 255, 0.62); }
.band .eyebrow { color: var(--dawn-bright); }
.band .chip { background: var(--paper-08); border-color: var(--paper-15); color: rgba(255, 255, 255, 0.76); }
.band .muted { color: rgba(255, 255, 255, 0.45); }
/* Missions sit on the dark band: cards go glassy rather than paper. */
.band .mission-card { background: var(--paper-08); border-color: var(--paper-15); }
.band .mission-card h3 { color: #fff; }
.band .mission-card p { color: rgba(255, 255, 255, 0.62); }
.band .mission-card:hover { box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.5); }

.chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 54px;
}
.chain__node {
  border-radius: var(--r-md);
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--paper-08);
  position: relative;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.chain__ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
}
.chain__ic svg { width: 18px; height: 18px; }
.chain__node .t {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--dawn-bright);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.chain__node h3 { font-size: 18px; color: #fff; margin: 11px 0 0; }
.chain__node.is-live {
  background: rgba(250, 107, 38, 0.08);
  border-color: rgba(250, 107, 38, 0.35);
}
.chain__node.is-live .chain__ic {
  background: var(--grad-dawn);
  color: #fff;
  transform: scale(1.08);
}

/* ---------- journey ---------- */
.journey__top {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.panel {
  background: var(--commitment);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: 0 30px 70px -26px rgba(15, 18, 31, 0.55);
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
}
.panel__head h3 { color: #fff; font-size: 20px; }
.panel__head span { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }

.grid30 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.grid30 i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}
.grid30 i.kept { background: var(--grad-dawn); }
.grid30 i.part { background: rgba(250, 107, 38, 0.38); }

.badges {
  display: grid;
  gap: 9px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--paper-08);
}
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.84);
}
.badge i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.09);
}
.badge i.on { background: var(--grad-dawn); }
.badge em { font-style: normal; margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }

/* journey panel — mirrors the app's "Your Pact" card */
.panel--journey { padding: clamp(24px, 3vw, 34px); }
.panel__title h3 { color: #fff; font-size: 22px; }
.panel__title p { color: rgba(255, 255, 255, 0.5); font-size: 14px; margin-top: 5px; }

.pact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--paper-08);
}
.pact-stat .pi {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
}
.pact-stat .pi svg { width: 17px; height: 17px; }
.pact-stat b {
  display: block;
  font-family: var(--sans);
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pact-stat b em {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0;
}
.pact-stat .pl { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.45); margin-top: 7px; }

.kept-line { margin-bottom: 14px; display: flex; align-items: baseline; gap: 8px; }
.kept-line b {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.kept-line span { font-size: 13.5px; color: rgba(255, 255, 255, 0.45); }

.grid-legend {
  display: flex;
  gap: 16px;
  margin-top: 13px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.grid-legend span { display: inline-flex; align-items: center; gap: 6px; }
.grid-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.grid-legend i.kept { background: var(--grad-dawn); }
.grid-legend i.part { background: rgba(250, 107, 38, 0.38); }

.panel__split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--paper-08);
}
.panel__split h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}
.panel__split span { font-size: 13px; color: rgba(255, 255, 255, 0.45); font-weight: 500; }
.panel__split + .badges { margin-top: 16px; padding-top: 0; border-top: 0; }

/* ---------- feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.split--flip > *:first-child { order: 2; }

/* ---------- app screenshots ---------- */
.shot {
  margin: 0 auto;
  width: min(300px, 72vw);
  padding: 9px;
  border-radius: 46px;
  background: #0b0920;
  box-shadow: 0 34px 80px -28px rgba(15, 18, 31, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.shot img { display: block; width: 100%; height: auto; border-radius: 38px; }
.band .shot { box-shadow: 0 34px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* Two screens, the second tucked behind and tilted. */
.shot-pair { display: flex; justify-content: center; align-items: flex-start; }
.shot-pair .shot { width: min(260px, 46vw); margin: 0; }
.shot-pair .shot + .shot { margin-left: -6%; margin-top: 12%; transform: rotate(5deg); z-index: -1; }
.shot-pair { position: relative; z-index: 0; }

.missions .split + .mission-grid { margin-top: clamp(40px, 6vw, 70px); }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ticks li {
  padding: 9px 16px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  background: var(--paper-08);
  border: 1px solid var(--paper-15);
  color: #fff;
}
.ticks li::before { content: "✓ "; color: var(--dawn-bright); }

/* ---------- schedule card ---------- */
.sched-card {
  background: var(--commitment);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: 0 30px 70px -26px rgba(15, 18, 31, 0.5);
}
.sched-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.sched-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.sched-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sched-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.sched-dot svg { width: 16px; height: 16px; }
.sched-node b {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.sched-node p { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }

.pact-progress {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-08);
}
.pact-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pact-progress__head b {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.pact-progress__head span { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.pact-progress__bar {
  height: 8px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.pact-progress__bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-dawn); }

/* ---------- wake-check notification mockup ---------- */
.lockscreen {
  background: linear-gradient(160deg, #2a2140, var(--commitment) 60%);
  border-radius: var(--r-xl);
  padding: 40px 24px 32px;
  text-align: center;
  box-shadow: 0 30px 70px -26px rgba(15, 18, 31, 0.55);
}
.lockscreen__time {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.notif {
  margin-top: 28px;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: var(--r-md);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.notif__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.notif__icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--grad-dawn);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.notif__icon svg { width: 11px; height: 11px; }
.notif__head b { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.85); letter-spacing: -0.01em; }
.notif__head span { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.notif__title { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.015em; }
.notif__body { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); margin-top: 4px; line-height: 1.4; }
.notif__actions { margin-top: 14px; }
.notif__actions .btn { width: 100%; padding: 11px; font-size: 13.5px; }

/* ---------- faq ---------- */
.faq-list { margin-top: 48px; border-top: 1px solid var(--ink-08); }
.faq {
  border-bottom: 1px solid var(--ink-08);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-family: var(--display);
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--dawn); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 2px;
  background: var(--ink-35);
  border-radius: 2px;
  transition: transform 0.4s var(--ease);
}
.faq summary::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 2px;
  background: var(--ink-35);
  border-radius: 2px;
  transform: rotate(90deg);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.faq[open] summary::before { transform: rotate(0deg); opacity: 0; }
.faq__body {
  padding: 0 60px 26px 0;
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.6;
  animation: fade-up 0.45s var(--ease);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- final cta ---------- */
.final {
  text-align: center;
  background: var(--paper-deep);
  position: relative;
  overflow: hidden;
}
.final__glow {
  position: absolute;
  inset: -10% -10% -30% -10%;
  background: radial-gradient(44% 46% at 50% 62%, rgba(255, 149, 0, 0.26), transparent 70%),
    radial-gradient(38% 40% at 24% 46%, rgba(107, 79, 216, 0.18), transparent 72%),
    radial-gradient(34% 36% at 76% 44%, rgba(250, 90, 75, 0.14), transparent 72%);
  pointer-events: none;
}
.final .wrap { position: relative; z-index: 1; }
.final .lede { margin-top: 20px; }
.final .btn-row { justify-content: center; margin-top: 32px; }
.final .mark { font-size: 44px; margin-bottom: 26px; }
.final .hero__note { margin-top: 16px; }

/* ---------- footer ---------- */
.footer {
  background: var(--commitment);
  color: rgba(255, 255, 255, 0.62);
  padding-block: clamp(54px, 7vw, 82px) 34px;
  font-size: 14.5px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .wordmark { color: #fff; }
.footer__blurb { margin-top: 16px; max-width: 30ch; color: rgba(255, 255, 255, 0.5); font-size: 14px; }
.footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-block; padding-block: 11px; }
.footer a { transition: color 0.3s var(--ease); }
.footer a:hover { color: #fff; }
.footer__bot {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--paper-08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- reveal ---------- */
/* scoped to .js so the page is readable if the script never runs */
.js .reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease) var(--delay, 0s),
    transform 0.65s var(--ease) var(--delay, 0s);
}

/* ---------- legal pages ---------- */
.doc { padding-top: clamp(110px, 14vw, 150px); flex: 1 0 auto; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 14px; }
.doc .updated { color: var(--ink-35); font-size: 14px; margin-bottom: 48px; }
.doc h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  margin: 46px 0 14px;
}
.doc p, .doc li { color: var(--ink-70); font-size: 16.5px; line-height: 1.68; }
.doc p + p,
.doc ul + p { margin-top: 15px; }
.doc ul { padding-left: 20px; display: grid; gap: 9px; margin: 15px 0 0; }
/* :not(.btn) — otherwise this clobbers any .btn-styled <a> inside a .doc
   page (account.html's "Download the app"/"Get support"), since .doc a's
   specificity beats .btn--dawn's and leaves button text invisible
   (orange-on-orange) or wrongly underlined. */
.doc a:not(.btn) { color: var(--dawn); text-decoration: underline; text-underline-offset: 3px; }
.doc .callout {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--ink-05);
  border: 1px solid var(--ink-08);
  font-size: 15.5px;
  color: var(--ink-70);
}

/* ---------- sign-in ---------- */
/* A centred card on a dawn-lit page, like signing in to the app. */
.auth {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(110px, 14vw, 140px) var(--gutter) clamp(48px, 8vw, 80px);
  overflow: hidden;
}
.auth__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 440px at 50% 60%, rgba(255, 149, 0, 0.26), rgba(250, 90, 75, 0.14) 45%, rgba(107, 79, 216, 0.08) 72%, transparent);
  pointer-events: none;
}
.auth__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: clamp(28px, 6vw, 44px);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--ink-08);
  box-shadow: 0 30px 80px -30px rgba(23, 28, 38, 0.3);
  text-align: center;
}
.auth__mark { width: 56px; height: auto; display: block; margin: 0 auto 22px; }
.auth__title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
}
.auth__sub { color: var(--ink-60); font-size: 15.5px; line-height: 1.55; margin: 10px auto 28px; max-width: 320px; }
.auth .signin-form { max-width: none; text-align: left; }
.auth .signin-form .btn { width: 100%; margin-top: 4px; }
.auth .signin-input { background: #fff; }
.auth .signin-hint { text-align: center; }
.signin-back { justify-self: center; margin-top: 2px; }
.auth__foot { position: relative; margin: 22px 0 0; font-size: 14px; color: var(--ink-50); }
.auth__foot a { color: var(--dawn); }
/* .signin-form's own `display: grid` otherwise beats the browser's default
   [hidden]{display:none} — author rules win over the UA stylesheet at equal
   specificity, regardless of source order. */
.signin-form[hidden] { display: none; }
.signin-form { display: grid; gap: 14px; max-width: 360px; }
.signin-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-70);
}
.signin-input {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--ink-15);
  background: var(--paper);
  color: var(--ink);
}
.signin-input:focus-visible { outline: 2px solid var(--dawn); outline-offset: 2px; }
.signin-input--code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}
.signin-error { font-size: 14px; color: var(--rose); margin: -4px 0 0; }
.signin-hint {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-50);
  margin: 2px 0 0;
}
.signin-link {
  justify-self: start;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--dawn);
  cursor: pointer;
}
.signin-link:disabled { color: var(--ink-35); cursor: default; }

/* ---------- account ---------- */
/* Signed-in portal: the sign-in card, grown into a settings list. */
.auth--account { justify-content: flex-start; }
.auth--account .auth__glow { background: radial-gradient(640px 480px at 50% 380px, rgba(255, 149, 0, 0.24), rgba(250, 90, 75, 0.13) 45%, rgba(107, 79, 216, 0.08) 72%, transparent); }
.acct { max-width: 460px; }
.acct__email { font-weight: 600; color: var(--ink-70); margin-bottom: 26px; word-break: break-all; }
.acct__app {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--ink-08);
  text-align: left;
}
.acct__app img { border-radius: 13px; flex: none; }
.acct__app b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.acct__app span { display: block; font-size: 14px; color: var(--ink-50); margin-top: 2px; }
.acct__download { width: 100%; margin-top: 12px; }
.acct__list {
  margin-top: 22px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--ink-08);
  overflow: hidden;
  text-align: left;
}
.acct__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  border-top: 1px solid var(--ink-08);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.acct__row:first-child { border-top: 0; }
.acct__row:hover { background: var(--ink-05); }
.acct__row:disabled { color: var(--ink-35); cursor: default; }
.acct__row svg { width: 8px; height: 14px; fill: none; stroke: var(--ink-35); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acct__row--out { color: var(--rose); }
.acct .account-note { max-width: none; text-align: left; }
.acct__faq { position: relative; width: 100%; max-width: 560px; margin-top: clamp(48px, 7vw, 72px); }
.acct__faq h2 { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.account-actions { display: grid; gap: 10px; max-width: 360px; }
.account-actions .btn { width: 100%; }
.account-note { font-size: 14px; color: var(--ink-50); margin: 12px 0 0; max-width: 360px; }
.account-note a { color: var(--dawn); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .journey__top, .split { grid-template-columns: 1fr; }
  .split--flip > *:first-child { order: 0; }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
}

/* The full nav needs ~900px, so it collapses to a hamburger well before
   the layout does — otherwise it overflows at iPad-portrait width. */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__inner { padding: 8px 8px 8px 16px; gap: 10px; }
  .nav__inner > .btn { padding: 10px 15px; font-size: 14px; }
  .nav.is-open .nav__links {
    display: grid;
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--ink-08);
    border-radius: var(--r-lg);
    padding: 10px;
    gap: 2px;
    box-shadow: 0 20px 50px rgba(23, 28, 38, 0.22);
    margin: 0;
  }
  .nav.is-open .nav__links a { padding: 13px 15px; font-size: 16px; }
  .nav__signin { padding-block: 12px; }
  /* sign-in moves into the dropdown so the bar keeps its CTA */
  .nav > .nav__inner > .nav__signin { display: none; }
  .nav.is-open .nav__links .only-mobile { display: block; }
  /* doc pages have no hamburger, so their short link set stays inline */
  .nav--simple .nav__links { display: flex; margin-left: auto; }
  .nav--simple .nav__links a { padding: 12px 9px; font-size: 14px; }
  .nav--simple .nav__inner { padding-right: 12px; gap: 8px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* the doc-page CTA goes — the page itself leads with the same address */
  .nav--simple .nav__inner > .btn { display: none; }
  /* too narrow for cards beside the device without covering the screen */
  .float { display: none; }
  .phone { width: 262px; }
  .faq__body { padding-right: 20px; }
}

/* very small phones: the doc-page link set can't fit beside the wordmark,
   and the footer carries the same links */
@media (max-width: 359px) {
  .nav--simple .nav__links { display: none; }
}

@media (max-width: 520px) {
  .mission-grid { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .pact-stats { gap: 10px; }
  .grid-legend { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
