/*
 * The app's "Everyday" look on the web (superdad #63): a white page, light gray cards, near-black
 * text, black buttons and one coral for what's active. Headlines are heavy and tight in the system
 * font and end with a coral full stop. Colors and corners come from the app
 * (superdad: mobile/src/constants/theme.ts), the headline style from components/text.tsx.
 * The app is light only, so is this.
 */

@font-face {
  font-family: 'Caveat';
  src: url('fonts/Caveat-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Surfaces and text */
  --background: #ffffff;
  --surface: #f4f4f2;
  --surface-alt: #ecece9;
  --ink: #111111;
  --ink-soft: #6b6b70;
  --hairline: rgba(0, 0, 0, 0.08);
  --outline: #dcdcd8;
  --muted-fill: rgba(17, 17, 17, 0.08);

  /* Brand */
  --brand: #111111;
  --on-brand: #ffffff;
  --accent: #f25c3b;
  --accent-tint: #fdebe5;
  --accent-ink: #c2381e;
  --sage: #8dbb74;
  --success: #2e9e5b;
  --success-tint: #e7f5ea;
  --paper: #f7f3ec;
  --on-paper: #2a2219;
  --gold: #e2a93b;
  --night: #141416;

  /* Light tints and their dark partners */
  --peach: #fbede5;
  --coral: #a9482b;
  --lavender: #f0edf5;
  --purple: #594a7d;
  --sky: #ebf1f5;
  --blue: #355b7c;
  --mint: #eaf2ec;
  --green: #2f6a49;
  --sun: #f8f1e2;
  --amber: #7b5915;
  --rose: #f7ecee;
  --pink: #8d4560;
  --indigo: #eceef6;
  --indigo-deep: #3e4784;
  --lime-tint: #eff3e4;
  --lime-deep: #4c6a25;

  /* Corners, from Metrics */
  --corner-large: 26px;
  --corner: 22px;
  --corner-small: 18px;
  --corner-field: 14px;

  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
  --shadow-soft: 0 18px 40px rgba(17, 17, 17, 0.1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
}

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

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

/* Hidden means hidden, even for elements that set their own display. */
[hidden] {
  display: none !important;
}

/* For screen readers only. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
}

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

/* Headlines like the app's: the system font, heavy, a little tight, on tight lines. */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* The coral full stop at the end of a headline. */
.dot {
  color: var(--accent);
}

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

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* MARK: Header and footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
}

.brand {
  text-decoration: none;
  flex-shrink: 0;
}

/* The wordmark: the name, heavy and tight, with a coral dot after its last letter. */
.wordmark {
  display: inline-flex;
  align-items: flex-end;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark-dot {
  width: 0.24em;
  height: 0.24em;
  margin-left: 0.05em;
  margin-bottom: 0.08em;
  border-radius: 50%;
  background: var(--accent);
}

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

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

/* The current page, like the selected tab: a soft coral pill with coral ink. */
.site-nav a[aria-current='page'] {
  color: var(--accent-ink);
  background: var(--accent-tint);
}

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a,
.lang-switch span {
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch span {
  background: var(--background);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* On a phone the menu becomes a row of pills under the name, scrolling sideways if it must. */
@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px 10px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .lang-switch {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 7px 12px;
    font-size: 14px;
    background: var(--surface);
    color: var(--ink);
  }
}

.site-footer {
  margin-top: 112px;
  padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: start;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-meta {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

/* MARK: Buttons and chips */

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

/* Black pills like the app's PrimaryButton. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font: 600 17px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, box-shadow 0.2s;
}

.button:active {
  transform: scale(0.96);
}

.button-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.18);
}

.button-primary:hover {
  background: #2a2a2c;
}

/* The arrow in a white disc at the end of a primary button, like the welcome screen's. */
.button-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: -14px;
  border-radius: 50%;
  background: var(--on-brand);
  color: var(--brand);
}

.button-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.button-secondary:hover {
  background: var(--surface-alt);
}

/* White on a photo, like the welcome screen's button. */
.button-light {
  background: #fff;
  color: var(--ink);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
  box-shadow: none;
}

/* The App Store button before there's a page to link to. */
.button-soon {
  background: var(--background);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1.5px var(--outline);
  cursor: default;
}

.button-soon:active {
  transform: none;
}

/* Apple's logo in the App Store buttons. */
.button .apple {
  width: 18px;
  height: 18px;
  margin-top: -2px;
  fill: currentColor;
}

@media (max-width: 860px) {
  .header-cta {
    display: none;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* A small label above a headline: coral ink on its soft tint. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* MARK: Sections */

.section {
  padding: clamp(72px, 10vw, 112px) 0 0;
}

.section-head {
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 54px);
}

.section-head p {
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 20px);
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
}

.platforms {
  color: var(--ink-soft);
  font-size: 15px;
}

.more {
  margin-top: 28px;
}

/* MARK: Cards */

.card {
  position: relative;
  border-radius: var(--corner);
  background: var(--surface);
  padding: clamp(22px, 3vw, 30px);
}

.card-large {
  border-radius: var(--corner-large);
}

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

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.tint-peach { background: var(--peach); --partner: var(--coral); }
.tint-sky { background: var(--sky); --partner: var(--blue); }
.tint-lavender { background: var(--lavender); --partner: var(--purple); }
.tint-mint { background: var(--mint); --partner: var(--green); }
.tint-sun { background: var(--sun); --partner: var(--amber); }
.tint-rose { background: var(--rose); --partner: var(--pink); }
.tint-indigo { background: var(--indigo); --partner: var(--indigo-deep); }
.tint-lime { background: var(--lime-tint); --partner: var(--lime-deep); }
.tint-accent { background: var(--accent-tint); --partner: var(--accent-ink); }

/* MARK: Promise cards (home and privacy) */

.promise {
  display: grid;
  gap: 10px;
  align-content: start;
}

.promise .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--background);
  color: var(--partner, var(--ink));
  margin-bottom: 6px;
}

.promise .icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise h3 {
  font-size: 22px;
}

.promise p {
  color: var(--ink-soft);
}

.promise.tint-peach p,
.promise.tint-sky p,
.promise.tint-mint p,
.promise.tint-lavender p,
.promise.tint-rose p,
.promise.tint-sun p {
  color: var(--ink);
  opacity: 0.78;
}

/* MARK: About */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding-top: clamp(40px, 7vw, 88px);
}

.about-hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
}

.about-photo {
  width: 100%;
  height: auto;
  /* Square from the top: the laughing faces stay, the shoes at the bottom (which don't look real in
     this photo) are cut off. */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: var(--corner-large);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 760px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-photo {
    aspect-ratio: 4 / 3;
    object-position: 50% 20%;
  }
}

.about-hero .page-head {
  padding-top: 0;
}

.vision-text {
  display: grid;
  justify-items: start;
  gap: 22px;
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.55;
}

.vision-text > * {
  max-width: 760px;
}

.vision-text .highlight {
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: var(--corner-large);
  background: var(--accent-tint);
  color: #4a1d10;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
}

.vision-privacy {
  color: var(--ink-soft);
  font-size: 17px;
}

.vision-privacy a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

.handwritten {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.6em;
  line-height: 1.1;
  color: var(--accent-ink);
}

.signoff {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

/* MARK: Legal and help pages */

/* Text pages keep a readable measure but line up with the container's left edge. */
.page-head {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-top: clamp(40px, 6vw, 72px);
}

.page-head > * {
  max-width: 820px;
}

.page-head h1 {
  font-size: clamp(40px, 6vw, 66px);
  /* Long German words like "Teilnahmebedingungen" break on a phone instead of running off it. */
  hyphens: auto;
  overflow-wrap: break-word;
}

.prose > * {
  max-width: 760px;
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  margin-top: 56px;
  font-size: clamp(26px, 3.4vw, 34px);
}

.prose h3 {
  margin-top: 32px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.prose p,
.prose li,
.prose dd {
  color: #3a3a3e;
}

.prose strong {
  color: var(--ink);
}

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

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

.prose dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
}

.prose dt {
  font-weight: 700;
}

.prose dd {
  margin: 0;
}

@media (max-width: 560px) {
  .prose dl {
    grid-template-columns: 1fr;
  }

  .prose dd {
    margin-bottom: 8px;
  }
}

.prose h2.flush {
  margin-top: 0;
  margin-bottom: 20px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.toc a:hover {
  background: var(--surface-alt);
}

/* What's stored where, as a table that turns into cards on a phone. */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--corner-small);
  overflow: hidden;
  background: var(--surface);
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

.data-table thead th {
  background: var(--surface-alt);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table td {
  color: #3a3a3e;
}

.data-table tbody th {
  color: var(--ink);
}

@media (max-width: 640px) {
  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table tr {
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table th,
  .data-table td {
    border: 0;
    padding: 6px 16px;
  }

  .data-table td::before {
    content: attr(data-label) ': ';
    color: var(--ink);
    font-weight: 600;
  }
}

.callout {
  padding: 20px 22px;
  border-radius: var(--corner-small);
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--partner, var(--accent));
}

.callout p {
  color: #3a3a3e;
}

.callout strong {
  color: var(--ink);
}

.draft-note {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--sun);
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
}

/* A value that's still missing in site.config.mjs. Loud on purpose. */
.missing {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1.5px dashed var(--amber);
  background: var(--sun);
  color: var(--amber);
  font-size: 0.9em;
  font-weight: 700;
}

/* MARK: FAQ */

.faq {
  display: grid;
  gap: 10px;
}

.faq > * {
  max-width: 820px;
}

.faq details {
  border-radius: var(--corner-small);
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--ink-soft);
  border-bottom: 2.5px solid var(--ink-soft);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq .answer {
  display: grid;
  gap: 12px;
  padding: 0 22px 20px;
  color: #3a3a3e;
}

.faq .answer a {
  color: var(--accent-ink);
}

/* Settings paths, like "Settings → Your data", in the app's own words. */
.path {
  display: inline;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.faq .path {
  background: var(--background);
}

.contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  max-width: 820px;
}

.contact-icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
}

.contact h2 {
  font-size: 30px;
}

.contact p {
  margin-top: 8px;
}

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

@media (max-width: 560px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* MARK: Not found and language choice */

.center-page {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: clamp(48px, 10vw, 120px);
  text-align: center;
}

.center-page h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.center-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.center-page .wordmark {
  font-size: 34px;
}

/* MARK: Pre-registration, countdown and giveaway (superdad_website #2) */

.prereg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  /* The countdown and the perks on the left, the form on the right, about as tall as each other;
     how it works runs across under both. */
  grid-template-areas: 'intro action' 'more more';
  gap: clamp(24px, 3.4vw, 40px) clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(22px, 4vw, 48px);
}

.prereg-intro {
  grid-area: intro;
  display: grid;
  gap: 20px;
  justify-items: start;
}

.prereg-action {
  grid-area: action;
}

/* On a phone the form comes right after the countdown; how it works follows. */
.prereg-more {
  grid-area: more;
  display: grid;
  gap: 20px;
}

.prereg h2 {
  font-size: clamp(34px, 5vw, 54px);
}

.prereg .lead time {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.countdown {
  width: 100%;
}

.countdown-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.countdown-units li {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px 4px 12px;
  border-radius: var(--corner-small);
  background: var(--background);
}

.countdown-value {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.countdown-units li:first-child .countdown-value {
  color: var(--accent);
}

.countdown-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* What happens after the form: sign up, confirm by email, hear at launch. */
.prereg-steps {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: prereg;
}

@media (min-width: 901px) {
  .prereg-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.prereg-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: prereg;
  font-size: 16px;
  line-height: 1.45;
}

.prereg-steps li::before {
  content: counter(prereg);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 14px;
}

.prereg-steps strong {
  display: block;
}

.prereg-steps span {
  color: var(--ink-soft);
}

.prize {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px 14px 14px;
  border-radius: var(--corner-small);
  background: var(--accent-tint);
  color: #4a1d10;
  font-size: 16px;
  line-height: 1.4;
}

.prize-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.prize-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.perks {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The free days: for everyone on the list, so it reads first and stronger than the draw. */
.prize-perk {
  background: var(--brand);
  color: #fff;
}

.prize-perk .prize-icon {
  background: #fff;
  color: var(--accent);
}

.hero-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 34em;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.hero-perk::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.prereg-form,
.prereg-done {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--corner);
  background: var(--background);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 14px 32px rgba(17, 17, 17, 0.07);
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.choices legend {
  font-size: 15px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--outline);
  border-radius: var(--corner-field);
  background: var(--background);
  color: var(--ink);
  font: 17px/1.2 var(--sans);
}

.field input::placeholder {
  color: #9a9aa0;
}

.field input:focus-visible {
  border-color: var(--ink);
  outline-offset: 2px;
}

.field input[aria-invalid='true'] {
  border-color: var(--accent);
}

.field-error {
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
}

.choices {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choices legend {
  margin-bottom: 8px;
  padding: 0;
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--corner-small);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s;
}

.check:has(input:checked) {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.check small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
}

.check a,
.fine-print a,
.disclaimer a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

/* The field only bots fill in. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.prereg-form .button {
  width: 100%;
}

.prereg-form .button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  font-size: 15px;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--accent-ink);
}

.fine-print {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.prereg-done,
.prereg-launched {
  justify-items: center;
  text-align: center;
}

/* The round check after signing up, green like the app's done rows. */
.done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
}

.done-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prereg-done h3 {
  font-size: clamp(28px, 3.6vw, 34px);
}

.prereg-done p,
.prereg-launched p {
  color: var(--ink-soft);
}

.prereg-launched {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
}

.prereg-launched .center-icon {
  margin-bottom: 6px;
}

.disclaimer {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .prereg {
    grid-template-columns: 1fr;
    grid-template-areas: 'intro' 'action' 'more';
  }
}

@media (max-width: 400px) {
  .countdown-units {
    gap: 6px;
  }

  .countdown-label {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
}

/* The confirm and manage page the emails link to. */
.signup {
  max-width: 760px;
}

.signup-state {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.signup-state h2 {
  font-size: clamp(28px, 3.6vw, 36px);
}

.signup-state > p {
  color: var(--ink-soft);
}

.signup-state strong {
  color: var(--ink);
}

.signup-list {
  margin: 0;
  padding-left: 1.2em;
}

.signup-list li::marker {
  color: var(--accent);
}

.signup-rows {
  display: grid;
  gap: 12px;
  width: 100%;
}

.signup-row {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 18px 20px;
  border-radius: var(--corner-small);
  background: var(--background);
}

.signup-row h3 {
  font-size: 18px;
}

.signup-row p {
  color: var(--ink-soft);
}

.signup-row .check {
  width: 100%;
}

.signup-row .button-secondary {
  background: var(--surface);
}

.signup .form-status {
  margin-top: 16px;
}

.button-danger {
  color: var(--accent-ink);
}

/* MARK: Home */

.hero {
  padding: clamp(36px, 6vw, 80px) 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero .lead {
  max-width: 33em;
}

/* Two phones: the welcome screen behind, Today in front. */
.hero-phones {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 12px 0 24px;
}

.hero-phone {
  width: min(310px, 70%);
}

.hero-phone-front {
  position: relative;
  z-index: 1;
  transform: translateX(16%) rotate(2deg);
}

.hero-phone-back {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(280px, 63%);
  transform: translateX(-88%) rotate(-6deg);
  opacity: 0.98;
}

.hero-phones::before {
  content: '';
  position: absolute;
  inset: 10% 2% 0;
  border-radius: 40px;
  background: radial-gradient(70% 60% at 60% 45%, var(--accent-tint), rgba(253, 235, 229, 0) 70%);
}

@media (max-width: 600px) {
  .hero-phone-front {
    width: 64%;
    transform: translateX(14%) rotate(2deg);
  }

  .hero-phone-back {
    width: 54%;
    transform: translateX(-90%) rotate(-6deg);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-phones {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

/* The waitlist right under the hero. */
.prereg-section {
  padding-top: clamp(56px, 8vw, 96px);
}

/* The screens: a row that scrolls sideways and stops on each phone. */
.gallery {
  /* The row starts where the container's content starts, and snaps there too. */
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery:focus-visible {
  outline-offset: -3px;
  border-radius: 0;
}

.gallery-row {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  width: max-content;
  margin: 0;
  padding: 8px var(--edge) 24px;
  list-style: none;
}

.shot {
  display: grid;
  gap: 22px;
  align-content: start;
  width: clamp(250px, 26vw, 290px);
  scroll-snap-align: start;
}

.shot .phone {
  box-shadow: 0 0 0 1.5px #3a3a3d inset, 0 18px 40px rgba(17, 17, 17, 0.14);
}

.shot-caption {
  display: grid;
  gap: 8px;
  padding: 0 4px;
}

.shot-tab {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shot h3 {
  font-size: 23px;
}

.shot p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.gallery-hint {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 1400px) {
  .gallery-hint {
    display: none;
  }
}

/* How it starts: three numbered steps. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--corner);
  background: var(--surface);
}

.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 17px;
}

.step:first-child .step-number {
  background: var(--accent);
}

.step h3 {
  font-size: 23px;
}

.step p {
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* The vision: three photos and the line, on near-black like the welcome screen's bottom. */
.vision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--corner-large);
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.vision-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.vision h2 {
  font-size: clamp(34px, 4.8vw, 54px);
}

.vision .lead {
  color: rgba(255, 255, 255, 0.78);
}

.vision .eyebrow {
  background: rgba(242, 92, 59, 0.18);
  color: #ff8a70;
}

.vision-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.vision-photo {
  width: 100%;
  background: #2a2a2e;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--corner-small);
}

.vision-photo.v2 {
  transform: translateY(-18px);
}

.vision-photo.v3 {
  transform: translateY(14px);
}

@media (max-width: 800px) {
  .vision {
    grid-template-columns: 1fr;
  }
}

/* The closing call. */
.closing {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  border-radius: var(--corner-large);
  background: var(--accent-tint);
  text-align: center;
}

.closing h2 {
  font-size: clamp(34px, 5.2vw, 58px);
}

.closing .lead {
  max-width: 32em;
  color: #5c3a30;
}

.closing .actions {
  justify-content: center;
}

.closing .button-soon {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(74, 29, 16, 0.2);
  color: #5c3a30;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(74, 29, 16, 0.22);
}

.soon-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* MARK: The app's screens in a phone (src/pages/screens.mjs)
 * Everything inside a screen is sized in the app's points: `--pt` is 1/393 of the screen's width,
 * so a screen keeps its proportions at any size. */

.phone {
  container-type: inline-size;
  position: relative;
  width: 100%;
  padding: 2.6%;
  border-radius: 15.5% / 7.2%;
  background: #1b1b1d;
  box-shadow: 0 0 0 1.5px #3a3a3d inset, 0 30px 60px rgba(17, 17, 17, 0.18), 0 8px 18px rgba(17, 17, 17, 0.1);
}

.screen {
  --pt: calc(100cqi / 393);
  position: relative;
  aspect-ratio: 393 / 852;
  overflow: hidden;
  border-radius: calc(50 * var(--pt));
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(17 * var(--pt));
  line-height: 1.25;
  letter-spacing: 0;
  user-select: none;
}

.screen h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.screen p {
  margin: 0;
}

.sym {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.scr-soft {
  color: var(--ink-soft);
}

.scr-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scr-status {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(54 * var(--pt));
  padding: calc(6 * var(--pt)) calc(34 * var(--pt)) 0 calc(44 * var(--pt));
  font-size: calc(17 * var(--pt));
  font-weight: 600;
}

.scr-status.is-light {
  color: #fff;
}

.scr-island {
  position: absolute;
  left: 50%;
  top: calc(11 * var(--pt));
  width: calc(124 * var(--pt));
  height: calc(36 * var(--pt));
  border-radius: calc(18 * var(--pt));
  background: #000;
  transform: translateX(-50%);
}

.scr-levels {
  display: flex;
  align-items: flex-end;
  gap: calc(2 * var(--pt));
}

.scr-levels i {
  width: calc(4 * var(--pt));
  height: calc(6 * var(--pt));
  border-radius: 1px;
  background: currentColor;
}

.scr-levels i:nth-child(2) {
  height: calc(9 * var(--pt));
}

.scr-levels i:nth-child(3) {
  width: calc(24 * var(--pt));
  height: calc(12 * var(--pt));
  margin-left: calc(5 * var(--pt));
  border-radius: calc(4 * var(--pt));
}

.scr-body {
  display: grid;
  gap: calc(22 * var(--pt));
  padding: calc(4 * var(--pt)) calc(20 * var(--pt)) 0;
}

/* The tab bar of the Everyday sheet. */
.scr-tabbar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  height: calc(78 * var(--pt));
  padding: 0 calc(8 * var(--pt)) calc(24 * var(--pt));
  background: #fff;
  box-shadow: 0 calc(-22 * var(--pt)) calc(22 * var(--pt)) calc(-4 * var(--pt)) #fff;
}

.scr-tab {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(3 * var(--pt));
  color: rgba(17, 17, 17, 0.46);
  font-size: calc(10 * var(--pt));
  font-weight: 500;
  white-space: nowrap;
}

.scr-tab .sym {
  width: calc(21 * var(--pt));
  height: calc(21 * var(--pt));
  stroke-width: 1.7;
}

.scr-tab.is-selected {
  color: var(--accent-ink);
  font-weight: 600;
}

.scr-tab.is-selected::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(4 * var(--pt));
  width: calc(66 * var(--pt));
  height: calc(46 * var(--pt));
  border-radius: calc(16 * var(--pt));
  background: var(--accent-tint);
}

.scr-tab.is-selected .sym {
  stroke-width: 2.2;
}

/* Buttons inside a screen. */
.scr-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--pt));
  height: calc(54 * var(--pt));
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: calc(17 * var(--pt));
  font-weight: 600;
}

.scr-button-light {
  background: #fff;
  color: var(--ink);
}

.scr-button-arrow {
  display: grid;
  place-items: center;
  width: calc(30 * var(--pt));
  height: calc(30 * var(--pt));
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.scr-button-arrow .sym {
  width: calc(15 * var(--pt));
  height: calc(15 * var(--pt));
  stroke-width: 2.6;
}

.scr-avatar {
  display: grid;
  place-items: center;
  width: calc(28 * var(--pt));
  height: calc(28 * var(--pt));
  border-radius: 50%;
  font-size: calc(13 * var(--pt));
  font-weight: 700;
}

.scr-avatar-mia {
  background: #daccee;
  color: #594a7d;
}

.scr-avatar-leo {
  background: #bfe2cc;
  color: #2f6a49;
}

.scr-avatar[data-size='40'] {
  width: calc(40 * var(--pt));
  height: calc(40 * var(--pt));
  font-size: calc(18 * var(--pt));
}

.scr-avatar[data-size='56'] {
  width: calc(56 * var(--pt));
  height: calc(56 * var(--pt));
  font-size: calc(24 * var(--pt));
}

/* Welcome */

.scr-welcome .scr-status {
  position: absolute;
  left: 0;
  right: 0;
}

.scr-welcome-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0) 30%, rgba(10, 10, 12, 0.35) 52%, rgba(10, 10, 12, 0.86) 100%);
}

.scr-welcome-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: calc(12 * var(--pt));
  padding: 0 calc(24 * var(--pt)) calc(46 * var(--pt));
  color: #fff;
}

.scr-wordmark {
  display: inline-flex;
  align-items: flex-end;
  font-family: var(--display);
  font-size: calc(22 * var(--pt));
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.scr-wordmark i {
  width: calc(5.3 * var(--pt));
  height: calc(5.3 * var(--pt));
  margin: 0 0 calc(4 * var(--pt)) calc(1.2 * var(--pt));
  border-radius: 50%;
  background: var(--accent);
}

.scr-welcome h4 {
  margin-top: calc(10 * var(--pt));
  font-size: calc(38 * var(--pt));
}

.scr-welcome-copy p {
  font-size: calc(17 * var(--pt));
  opacity: 0.88;
}

.scr-dots {
  display: flex;
  gap: calc(6 * var(--pt));
  margin: calc(6 * var(--pt)) 0 calc(10 * var(--pt));
}

.scr-dots i {
  width: calc(7 * var(--pt));
  height: calc(7 * var(--pt));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.scr-dots i.is-on {
  width: calc(22 * var(--pt));
  background: #fff;
}

/* Today */

.scr-today-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(40 * var(--pt));
  font-size: calc(13 * var(--pt));
  font-weight: 500;
}

.scr-kidpill {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--pt));
  height: calc(36 * var(--pt));
  padding: 0 calc(12 * var(--pt)) 0 calc(2 * var(--pt));
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: calc(13 * var(--pt));
  font-weight: 600;
}

.scr-kidpill .sym {
  width: calc(11 * var(--pt));
  height: calc(11 * var(--pt));
  color: var(--ink-soft);
  stroke-width: 3;
}

.scr-faces {
  display: flex;
}

.scr-faces .scr-avatar {
  box-shadow: 0 0 0 calc(2 * var(--pt)) var(--surface);
  margin: calc(2 * var(--pt));
}

.scr-faces .scr-avatar + .scr-avatar {
  margin-left: calc(-11 * var(--pt));
}

.scr-greeting {
  margin-top: calc(-10 * var(--pt)) !important;
  font-size: calc(30 * var(--pt));
}

.scr-together {
  display: grid;
  gap: calc(6 * var(--pt));
  margin-top: calc(-10 * var(--pt));
}

.scr-together strong {
  font-family: var(--display);
  font-size: calc(21 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.025em;
}

.scr-together > span {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--pt));
  font-size: calc(13 * var(--pt));
  font-weight: 500;
}

.scr-bar {
  flex: 1;
  height: calc(4 * var(--pt));
  border-radius: 999px;
  background: var(--muted-fill);
}

.scr-bar i {
  display: block;
  width: 28.6%;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
}

.scr-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(367 * var(--pt));
  overflow: hidden;
  border-radius: calc(26 * var(--pt));
  background: var(--sun);
  color: #fff;
  box-shadow: 0 calc(8 * var(--pt)) calc(18 * var(--pt)) rgba(0, 0, 0, 0.14);
}

.scr-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0), rgba(10, 10, 12, 0.32) 45%, rgba(10, 10, 12, 0.78));
}

.scr-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: calc(10 * var(--pt));
  width: 100%;
  padding: calc(20 * var(--pt));
}

.scr-glass-pill {
  width: fit-content;
  padding: calc(5 * var(--pt)) calc(10 * var(--pt));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.28);
  font-size: calc(12 * var(--pt));
  font-weight: 600;
  letter-spacing: calc(0.8 * var(--pt));
  text-transform: uppercase;
}

.scr-hero-row {
  display: flex;
  align-items: flex-end;
  gap: calc(12 * var(--pt));
}

.scr-hero-row > span:first-child {
  display: grid;
  flex: 1;
  gap: calc(4 * var(--pt));
}

.scr-hero-row b {
  font-family: var(--display);
  font-size: calc(28 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.scr-hero-row small {
  font-size: calc(13 * var(--pt));
  font-weight: 600;
  opacity: 0.85;
  white-space: pre;
}

.scr-round {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: calc(46 * var(--pt));
  height: calc(46 * var(--pt));
  border-radius: 50%;
  background: var(--night);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.scr-round .sym {
  width: calc(17 * var(--pt));
  height: calc(17 * var(--pt));
  stroke-width: 2.4;
}

.scr-shuffle {
  position: absolute;
  z-index: 2;
  top: calc(16 * var(--pt));
  right: calc(16 * var(--pt));
  display: grid;
  place-items: center;
  width: calc(36 * var(--pt));
  height: calc(36 * var(--pt));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.scr-shuffle .sym {
  width: calc(15 * var(--pt));
  height: calc(15 * var(--pt));
}

.scr-week {
  display: grid;
  gap: calc(14 * var(--pt));
}

.scr-week-head {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--pt));
  font-size: calc(13 * var(--pt));
  font-weight: 600;
}

.scr-week-head b {
  flex: 1;
  font-size: calc(17 * var(--pt));
  font-weight: 700;
}

.scr-week-head .sym {
  width: calc(11 * var(--pt));
  height: calc(11 * var(--pt));
  color: var(--ink-soft);
  stroke-width: 3;
}

.scr-days {
  display: flex;
}

.scr-day {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: calc(6 * var(--pt));
  font-size: calc(11 * var(--pt));
  color: var(--ink-soft);
}

.scr-day b {
  font-weight: 500;
}

.scr-day i {
  display: grid;
  place-items: center;
  width: calc(34 * var(--pt));
  height: calc(34 * var(--pt));
  border-radius: 50%;
}

.scr-day.is-active i {
  background: var(--accent);
  color: #fff;
}

.scr-day.is-active .sym {
  width: calc(14 * var(--pt));
  height: calc(14 * var(--pt));
  stroke-width: 3;
}

.scr-day.is-today i {
  box-shadow: inset 0 0 0 calc(1.75 * var(--pt)) var(--ink);
}

.scr-day.is-today b {
  color: var(--ink);
  font-weight: 700;
}

.scr-day.is-ahead i {
  box-shadow: inset 0 0 0 calc(1.25 * var(--pt)) var(--outline);
}

.scr-day.is-past i {
  background: var(--surface);
}

/* Shared parts of the tabs */

.scr-tabhead {
  display: flex;
  align-items: flex-start;
  gap: calc(12 * var(--pt));
  padding-top: calc(10 * var(--pt));
}

.scr-tabhead h4 {
  flex: 1;
  font-size: calc(30 * var(--pt));
}

.scr-profile,
.scr-circle {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: calc(36 * var(--pt));
  height: calc(36 * var(--pt));
  border-radius: 50%;
  background: var(--surface);
  font-size: calc(17 * var(--pt));
  font-weight: 800;
}

.scr-circle .sym {
  width: calc(15 * var(--pt));
  height: calc(15 * var(--pt));
  stroke-width: 2.4;
}

.scr-circle-small {
  width: calc(32 * var(--pt));
  height: calc(32 * var(--pt));
}

.scr-circle-small .sym {
  width: calc(12 * var(--pt));
  height: calc(12 * var(--pt));
}

.scr-circle-large {
  width: calc(56 * var(--pt));
  height: calc(56 * var(--pt));
}

.scr-stack {
  display: grid;
  gap: calc(12 * var(--pt));
}

.scr-section {
  font-size: calc(20 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.01em;
}

.scr-category {
  color: var(--accent-ink);
  font-size: calc(12 * var(--pt));
  font-weight: 600;
  letter-spacing: calc(1.2 * var(--pt));
  text-transform: uppercase;
}

.scr-chips {
  display: flex;
  gap: calc(8 * var(--pt));
  margin-right: calc(-20 * var(--pt));
  overflow: hidden;
}

.scr-chips-wrap {
  flex-wrap: wrap;
  margin-right: 0;
}

.scr-chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: calc(5 * var(--pt));
  padding: calc(7 * var(--pt)) calc(12 * var(--pt));
  border-radius: 999px;
  background: var(--surface);
  font-size: calc(15 * var(--pt));
  font-weight: 600;
  white-space: nowrap;
}

.scr-chip .sym {
  width: calc(13 * var(--pt));
  height: calc(13 * var(--pt));
}

.scr-chip-large {
  padding: calc(10 * var(--pt)) calc(15 * var(--pt));
  font-size: calc(16 * var(--pt));
}

/* Discover */

.scr-discover .scr-body {
  gap: calc(18 * var(--pt));
}

.scr-search {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--pt));
  min-height: calc(44 * var(--pt));
  padding: 0 calc(16 * var(--pt));
  border-radius: calc(22 * var(--pt));
  background: var(--surface);
  color: #9a9aa0;
  font-size: calc(15 * var(--pt));
}

.scr-search .sym {
  width: calc(15 * var(--pt));
  height: calc(15 * var(--pt));
  color: var(--ink-soft);
  stroke-width: 2.4;
}

.scr-topics {
  display: grid;
  gap: calc(6 * var(--pt));
}

.scr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(12 * var(--pt));
}

.scr-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1.12;
  overflow: hidden;
  border-radius: calc(18 * var(--pt));
  color: #fff;
}

.scr-tile::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0), rgba(10, 10, 12, 0.72));
}

.scr-tile > span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: calc(1 * var(--pt));
  padding: calc(12 * var(--pt));
}

.scr-tile b {
  font-size: calc(17 * var(--pt));
  font-weight: 700;
}

.scr-tile small {
  font-size: calc(12 * var(--pt));
  font-weight: 600;
  opacity: 0.8;
}

.scr-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--pt));
  min-height: calc(44 * var(--pt));
  font-size: calc(15 * var(--pt));
  font-weight: 700;
}

.scr-more .sym {
  width: calc(12 * var(--pt));
  height: calc(12 * var(--pt));
  stroke-width: 3;
}

.scr-surprise {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--pt));
  min-height: calc(50 * var(--pt));
  margin-top: calc(-8 * var(--pt));
  padding: 0 calc(16 * var(--pt));
  border-radius: calc(16 * var(--pt));
  background: var(--success-tint);
  color: var(--green);
  font-size: calc(15 * var(--pt));
}

.scr-surprise b {
  flex: 1;
}

.scr-surprise .sym {
  width: calc(16 * var(--pt));
  height: calc(16 * var(--pt));
  stroke-width: 2.4;
}

.scr-surprise .sym:last-child {
  width: calc(12 * var(--pt));
  height: calc(12 * var(--pt));
  stroke-width: 3;
}

/* Moments */

.scr-moments .scr-body {
  gap: calc(20 * var(--pt));
}

.scr-month {
  display: grid;
  gap: calc(2 * var(--pt));
  font-size: calc(15 * var(--pt));
  font-weight: 500;
}

.scr-month-row {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--pt));
  min-height: calc(44 * var(--pt));
}

.scr-month-row b {
  font-size: calc(17 * var(--pt));
}

.scr-month-row > .sym {
  width: calc(11 * var(--pt));
  height: calc(11 * var(--pt));
  margin-right: auto;
  color: var(--ink-soft);
  stroke-width: 3;
}

.scr-journal {
  padding-top: calc(8 * var(--pt));
}

.scr-entry {
  display: flex;
  gap: calc(14 * var(--pt));
}

.scr-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(44 * var(--pt));
  flex-shrink: 0;
}

.scr-date small {
  color: var(--ink-soft);
  font-size: calc(12 * var(--pt));
  font-weight: 600;
  letter-spacing: calc(0.6 * var(--pt));
}

.scr-date b {
  margin-bottom: calc(8 * var(--pt));
  font-family: var(--display);
  font-size: calc(26 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.scr-date i {
  flex: 1;
  width: calc(2 * var(--pt));
  border-radius: 1px;
  background: var(--surface-alt);
}

.scr-entry-body {
  display: grid;
  flex: 1;
  gap: calc(4 * var(--pt));
  padding-bottom: calc(30 * var(--pt));
}

.scr-entry-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: calc(8 * var(--pt));
  overflow: hidden;
  border-radius: calc(22 * var(--pt));
}

.scr-entry-body > b {
  font-size: calc(20 * var(--pt));
  font-weight: 700;
  line-height: 1.2;
}

.scr-entry-body > small {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--pt));
  color: var(--ink-soft);
  font-size: calc(13 * var(--pt));
  font-weight: 500;
}

.scr-entry-body > small .sym {
  width: calc(12 * var(--pt));
  height: calc(12 * var(--pt));
  color: var(--accent);
  fill: var(--accent);
}

.scr-quote {
  margin-top: calc(8 * var(--pt));
  padding-left: calc(15 * var(--pt));
  box-shadow: inset calc(3 * var(--pt)) 0 0 var(--accent);
  font-size: calc(16 * var(--pt));
  font-weight: 600;
}

/* Their world */

.scr-world .scr-tabhead .scr-kidpill {
  padding-left: calc(4 * var(--pt));
}

.scr-world .scr-tabhead .scr-kidpill .scr-avatar {
  margin-right: calc(-1 * var(--pt));
}

.scr-profile-row {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--pt));
}

.scr-profile-row > span:last-child {
  display: grid;
  gap: calc(2 * var(--pt));
}

.scr-profile-row b {
  font-size: calc(20 * var(--pt));
  font-weight: 700;
}

.scr-profile-row small {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--pt));
  color: var(--ink-soft);
  font-size: calc(13 * var(--pt));
  font-weight: 500;
}

.scr-profile-row small .sym {
  width: calc(12 * var(--pt));
  height: calc(12 * var(--pt));
  color: var(--accent);
}

.scr-talk {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(190 * var(--pt));
  overflow: hidden;
  border-radius: calc(26 * var(--pt));
  color: #fff;
}

.scr-talk .scr-photo {
  object-position: 50% 25%;
}

.scr-talk::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0), rgba(10, 10, 12, 0.7));
}

.scr-talk-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: calc(12 * var(--pt));
  width: 100%;
  padding: calc(18 * var(--pt));
}

.scr-talk-copy > span:first-child {
  display: grid;
  flex: 1;
  gap: calc(4 * var(--pt));
}

.scr-talk-copy b {
  font-family: var(--display);
  font-size: calc(24 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.scr-talk-copy small {
  font-size: calc(15 * var(--pt));
  opacity: 0.85;
}

.scr-play {
  position: relative;
  flex-shrink: 0;
  width: calc(44 * var(--pt));
  height: calc(44 * var(--pt));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.scr-play::after {
  content: '';
  position: absolute;
  left: 40%;
  top: 32%;
  border-style: solid;
  border-width: calc(8 * var(--pt)) 0 calc(8 * var(--pt)) calc(13 * var(--pt));
  border-color: transparent transparent transparent #fff;
}

.scr-favorites {
  display: grid;
  gap: calc(12 * var(--pt));
}

.scr-section-head {
  display: grid;
  gap: calc(2 * var(--pt));
  font-size: calc(15 * var(--pt));
}

.scr-rows {
  display: grid;
}

.scr-row {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--pt));
  padding: calc(12 * var(--pt)) 0;
  border-bottom: 1px solid var(--hairline);
}

.scr-row > .sym {
  width: calc(19 * var(--pt));
  height: calc(19 * var(--pt));
  stroke-width: 1.8;
}

.scr-row > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: calc(1 * var(--pt));
}

.scr-row small {
  color: var(--ink-soft);
  font-size: calc(12 * var(--pt));
  font-weight: 500;
}

.scr-row b {
  font-size: calc(17 * var(--pt));
  font-weight: 700;
}

.scr-stale {
  padding: calc(3 * var(--pt)) calc(8 * var(--pt));
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: calc(11 * var(--pt));
  font-weight: 600;
}

.scr-row .scr-row-chevron {
  width: calc(12 * var(--pt));
  height: calc(12 * var(--pt));
  color: rgba(107, 107, 112, 0.5);
  stroke-width: 2.6;
}

/* A light button on a gray card. */
.card .button-secondary {
  background: var(--background);
}

.card .button-secondary:hover {
  background: var(--surface-alt);
}

.card .signup-row .button-secondary {
  background: var(--surface);
}
