/* Layout: a big claim beside a live phone, then a scoreboard band that shows how points add up. */
:root {
  --bg: #ffffff;
  --surface: #f1f2f5;
  --surface-strong: #e2e4ea;
  --ink: #0c0e13;
  --muted: #5a616d;
  --line: #dfe2e8;
  --accent: #208aef;
  --link: #0f6bcb;
  --button: #1673d6;
  --on-button: #ffffff;
  --phone-frame: #0c0e13;
  --board: #0e1726;
  --board-ink: #f2f6fc;
  --board-muted: #9aa8bd;
  --board-line: #26344a;
  --board-accent: #5cb0ff;

  --font-display: 'Archivo', 'Arial Black', 'Helvetica Neue', system-ui, sans-serif;
  --font-body:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 3vw, 1.875rem);
  --step-3: clamp(2rem, 4.5vw, 3rem);
  --step-4: clamp(2.5rem, 7vw, 4.75rem);

  --radius: 20px;
  --gutter: 20px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a0b0e;
    --surface: #17191e;
    --surface-strong: #282b32;
    --ink: #f3f4f6;
    --muted: #a4abb6;
    --line: #262a31;
    --accent: #4fa3f7;
    --link: #74b8fb;
    --button: #4fa3f7;
    --on-button: #04111f;
    --phone-frame: #30343c;
    --board: #0f1a2c;
    --board-ink: #f2f6fc;
    --board-muted: #9aa8bd;
    --board-line: #24334b;
    --board-accent: #6cb8ff;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0a0b0e;
  --surface: #17191e;
  --surface-strong: #282b32;
  --ink: #f3f4f6;
  --muted: #a4abb6;
  --line: #262a31;
  --accent: #4fa3f7;
  --link: #74b8fb;
  --button: #4fa3f7;
  --on-button: #04111f;
  --phone-frame: #30343c;
  --board: #0f1a2c;
  --board-ink: #f2f6fc;
  --board-muted: #9aa8bd;
  --board-line: #24334b;
  --board-accent: #6cb8ff;
  color-scheme: dark;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  font-stretch: 112%;
  line-height: 1.2;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  background: var(--surface);
}

@media (max-width: 760px) {
  .site-nav .wide-only {
    display: none;
  }
}

/* Buttons */

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 16px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}

.soon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  padding-block: 40px 88px;
}

.hero-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

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

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-block: 24px 64px;
  }
}

/* Phone mock-up of the Today screen */

.phone {
  justify-self: center;
  width: min(100%, 320px);
  padding: 10px;
  border-radius: 48px;
  background: var(--phone-frame);
  box-shadow:
    0 30px 60px -20px rgb(12 14 19 / 0.35),
    0 12px 24px -12px rgb(12 14 19 / 0.25);
}

.screen {
  display: grid;
  gap: 12px;
  padding: 18px 16px 22px;
  border-radius: 38px;
  background: var(--bg);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.screen .island {
  justify-self: center;
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: var(--phone-frame);
  margin-bottom: 4px;
}

.screen .date {
  color: var(--muted);
}

.screen .greeting {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tile {
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
}

.tile .num {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tile .label {
  color: var(--muted);
  font-size: 0.75rem;
}

.level {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
}

.level-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.level-head strong {
  font-size: 0.9375rem;
}

.level-head span {
  color: var(--muted);
  font-size: 0.75rem;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-strong);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.screen .log {
  padding: 11px;
  border-radius: 14px;
  background: var(--button);
  color: var(--on-button);
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.screen h4 {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 800;
}

.row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
}

.row .icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-strong);
  font-size: 1.05rem;
}

.row .title {
  display: block;
  font-weight: 600;
}

.row .meta {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.row .pts {
  font-weight: 700;
  color: var(--link);
  font-variant-numeric: tabular-nums;
}

/* Sections */

.section {
  padding-block: 88px;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 44rem;
  margin-bottom: 48px;
}

.grid {
  display: grid;
  gap: 16px;
}

.areas {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.area {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

.area .icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.5rem;
}

.area p {
  color: var(--muted);
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.examples li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  font-size: var(--step--1);
  font-weight: 600;
}

.section.flush-top {
  padding-top: 0;
}

.section-head.flush {
  margin-bottom: 0;
}

.note {
  margin-top: 24px;
  color: var(--muted);
}

/* Scoreboard band */

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

.board .eyebrow,
.board .lede {
  color: var(--board-muted);
}

.board a {
  color: var(--board-accent);
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 880px) {
  .board-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.scores {
  width: 100%;
  border-collapse: collapse;
}

.scores caption {
  padding-bottom: 8px;
  text-align: left;
}

.scores th,
.scores td {
  padding: 16px 0;
  border-bottom: 1px solid var(--board-line);
  text-align: left;
  vertical-align: baseline;
}

.scores th {
  font-weight: 500;
  padding-right: 16px;
}

.scores th small {
  display: block;
  color: var(--board-muted);
  font-size: var(--step--1);
}

.scores td {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-2);
  font-variant-numeric: tabular-nums;
  color: var(--board-accent);
}

.scores td small {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--board-muted);
  margin-left: 4px;
}

.receipt {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--board-line);
  border-radius: var(--radius);
}

.receipt h3 {
  color: var(--board-ink);
}

.receipt .when {
  color: var(--board-muted);
  font-size: var(--step--1);
}

.receipt ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.receipt li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.receipt li span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.receipt .total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  border-top: 2px dashed var(--board-line);
}

.receipt .total strong {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--step-3);
  font-variant-numeric: tabular-nums;
  color: var(--board-accent);
  line-height: 1;
}

.board-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--board-line);
}

.board-notes p {
  color: var(--board-muted);
}

.board-notes h3 {
  margin-bottom: 8px;
}

/* Gear and check-ins */

.features {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
}

.feature {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.feature p {
  color: var(--muted);
}

.feature .sample {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.875rem;
}

.feature .row .pts {
  font-size: 0.875rem;
}

/* Badges */

.badges {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.badge {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
}

.badge .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.4rem;
}

.badge strong {
  display: block;
}

.badge span {
  display: block;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.4;
}

/* Brands */

.brands {
  background: var(--surface);
}

.brands .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.brands ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brands li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
}

.brands li::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--accent);
}

@media (max-width: 880px) {
  .brands .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Closing call to action */

.closing .wrap {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.closing .lede {
  max-width: 30em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px 40px;
  color: var(--muted);
  font-size: var(--step--1);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Text pages: privacy, support, email confirmed */

.page {
  padding-block: 32px 96px;
}

.prose {
  max-width: 44rem;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h1 {
  font-size: var(--step-3);
  margin-bottom: 0.4em;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.2em;
}

.prose h2 + * {
  margin-top: 0.75em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose .meta {
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 700;
}

.prose td:first-child {
  white-space: nowrap;
}

.callout {
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--step-1);
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--muted);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details > *:not(summary) {
  margin-bottom: 18px;
  color: var(--muted);
}

.status-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 32rem;
  margin: 24px auto 0;
  padding: 40px 28px;
  border-radius: 28px;
  background: var(--surface);
  text-align: center;
}

.status-card .icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 2rem;
}

.status-card h1 {
  font-size: var(--step-3);
}

.status-card p {
  color: var(--muted);
}

.status-card .button.secondary {
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  .phone {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .phone .bar span {
    animation: fill 1200ms 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes rise {
    from {
      transform: translateY(16px);
    }
  }

  @keyframes fill {
    from {
      width: 8%;
    }
  }
}
