/*
  Visto landing page.
  Desktop layout is drawn on a 1536 × 1024 reference frame. --u is one reference
  pixel, scaled to the page width (capped at 1px), so every measurement below is
  written as calc(<reference px> * var(--u)).
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

:root {
  --u: min(1px, calc(100cqw / 1536));
  --gutter: calc(62 * var(--u));

  --bg: #f8f8f3;
  --ink: #13221a;
  --ink-2: #4a5950;
  --ink-3: #5b6761;
  --rule: #dcddd6;
  --brand: #116a3d;
  --brand-hover: #0c5631;

  /* Phone UI */
  --scr-bg: #fafaf8;
  --scr-ink: #1a1a1a;
  --scr-ink-2: #5a5a5a;
  --scr-card: #eeefeb;
  --scr-line: #e4e4e0;
  --scr-amber: #cf930c;
  --scr-badge: #f6ca3c;
  --scr-badge-ink: #2b2300;
  --scr-pill: #f7df8c;
  --scr-green: #1d9b56;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-ios: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 6px;
}

img,
svg {
  display: block;
}

.skip-link {
  position: absolute;
  z-index: 10;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

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

.page {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(108 * var(--u));
  margin: 0 calc(62 * var(--u));
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-size: calc(48 * var(--u));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
  transform: translateY(calc(-1 * var(--u)));
}

.nav {
  display: flex;
  align-items: center;
  gap: calc(50 * var(--u));
  font-size: calc(17 * var(--u));
  font-weight: 450;
}

.nav-link {
  position: relative;
  padding: calc(6 * var(--u)) 0;
  color: var(--ink);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.lang-link {
  display: inline-grid;
  place-items: center;
  height: calc(34 * var(--u));
  padding: 0 calc(12 * var(--u));
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: calc(14 * var(--u));
  letter-spacing: 0.08em;
  color: var(--ink-2);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--u));
  width: calc(240 * var(--u));
  height: calc(53 * var(--u));
  margin-left: 1px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: calc(19 * var(--u));
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta svg {
  width: calc(15 * var(--u));
  height: calc(15 * var(--u));
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.cta:hover {
  background: var(--brand-hover);
}

.cta:hover svg {
  transform: translate(1.5px, -1.5px);
}

/* ---------- Hero copy ---------- */

.hero {
  position: relative;
  height: calc(916 * var(--u));
}

.copy {
  position: relative;
  z-index: 2;
  padding: calc(81 * var(--u)) 0 0 calc(63 * var(--u));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: calc(20 * var(--u));
  line-height: calc(24 * var(--u));
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #39463f;
}

.headline {
  margin-top: calc(22 * var(--u));
  margin-left: calc(-2 * var(--u));
  font-size: calc(160 * var(--u));
  font-weight: 700;
  line-height: calc(150 * var(--u));
  letter-spacing: -0.046em;
  color: var(--ink);
}

.headline span {
  display: block;
}

.headline:lang(pt) {
  margin-top: calc(34 * var(--u));
  margin-bottom: calc(26 * var(--u));
  font-size: calc(124 * var(--u));
  line-height: calc(140 * var(--u));
}

.lede {
  margin-top: calc(23 * var(--u));
  font-size: calc(28.5 * var(--u));
  line-height: calc(34 * var(--u));
  letter-spacing: -0.004em;
  color: var(--ink-2);
}

.stores {
  display: flex;
  gap: calc(18 * var(--u));
  margin-top: calc(37 * var(--u));
}

.badge {
  display: inline-flex;
  align-items: center;
  height: calc(63 * var(--u));
  border: calc(1.5 * var(--u)) solid #a6a6a6;
  border-radius: calc(9 * var(--u));
  background: #000;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgb(19 34 26 / 0.18);
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
}

.badge-apple {
  min-width: calc(205 * var(--u));
  padding-right: calc(14 * var(--u));
  padding-left: calc(19 * var(--u));
}

.badge-apple img {
  width: calc(33 * var(--u));
  height: calc(33 * var(--u));
  margin-top: calc(-4 * var(--u));
}

.badge-apple .badge-text {
  margin-left: calc(12 * var(--u));
}

.badge-apple small {
  font-size: calc(14.5 * var(--u));
  font-weight: 500;
  letter-spacing: 0.01em;
}

.badge-apple strong {
  margin-top: calc(3 * var(--u));
  font-size: calc(28 * var(--u));
  font-weight: 500;
  letter-spacing: -0.025em;
}

.badge-play {
  min-width: calc(208 * var(--u));
  padding-right: calc(14 * var(--u));
  padding-left: calc(15 * var(--u));
}

.badge-play img {
  width: calc(36 * var(--u));
  height: calc(40 * var(--u));
}

.badge-play .badge-text {
  margin-left: calc(13 * var(--u));
}

.badge-play small {
  font-size: calc(12.5 * var(--u));
  font-weight: 500;
  letter-spacing: 0.03em;
}

.badge-play strong {
  margin-top: calc(3 * var(--u));
  font-size: calc(26.5 * var(--u));
  font-weight: 500;
  letter-spacing: -0.03em;
}

.fineprint {
  margin-top: calc(21 * var(--u));
  font-size: calc(17 * var(--u));
  line-height: calc(24 * var(--u));
  color: var(--ink-3);
}

.signoff {
  position: absolute;
  right: calc(58 * var(--u));
  top: calc(817 * var(--u));
  font-family: var(--font-mono);
  font-size: calc(15.5 * var(--u));
  line-height: calc(24 * var(--u));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #47534c;
}

/* ---------- Stage: checkmark, phone, toast ---------- */

.stage-wrap {
  position: absolute;
  left: calc(630 * var(--u));
  top: calc(22 * var(--u));
  width: calc(880 * var(--u));
  height: calc(800 * var(--u));
}

.stage {
  position: absolute;
  inset: 0;
}

.check {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone {
  position: absolute;
  left: calc(239 * var(--u));
  top: calc(8 * var(--u));
  width: calc(374 * var(--u));
  height: calc(787 * var(--u));
  padding: calc(13 * var(--u));
  border-radius: calc(64 * var(--u));
  background: #0c0c0d;
  box-shadow:
    inset 0 0 0 calc(2.5 * var(--u)) #45474a,
    inset 0 0 0 calc(4 * var(--u)) #151617,
    0 calc(42 * var(--u)) calc(70 * var(--u)) calc(-18 * var(--u)) rgb(16 40 25 / 0.32),
    0 calc(14 * var(--u)) calc(28 * var(--u)) rgb(16 40 25 / 0.14);
}

/* Subtle titanium sheen on the frame. */
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: calc(2.5 * var(--u));
  background: linear-gradient(150deg, #7b7e82 0%, #2a2b2d 30%, #1a1b1c 60%, #5a5c60 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hw {
  position: absolute;
  width: calc(4 * var(--u));
  border-radius: calc(2 * var(--u));
  background: linear-gradient(90deg, #1b1c1d, #3c3e41);
}

.hw-action { left: calc(-3 * var(--u)); top: calc(96 * var(--u)); height: calc(26 * var(--u)); }
.hw-vol-up { left: calc(-3 * var(--u)); top: calc(150 * var(--u)); height: calc(48 * var(--u)); }
.hw-vol-down { left: calc(-3 * var(--u)); top: calc(210 * var(--u)); height: calc(48 * var(--u)); }
.hw-power { right: calc(-3 * var(--u)); top: calc(205 * var(--u)); height: calc(76 * var(--u)); transform: scaleX(-1); }

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0 calc(22 * var(--u));
  border-radius: calc(51 * var(--u));
  background: var(--scr-bg);
  color: var(--scr-ink);
  font-family: var(--font-ios);
  -webkit-font-smoothing: antialiased;
}

.statusbar {
  position: relative;
  height: calc(58 * var(--u));
  margin: 0 calc(-22 * var(--u));
}

.time {
  position: absolute;
  left: calc(47 * var(--u));
  top: calc(23 * var(--u));
  font-size: calc(15.5 * var(--u));
  font-weight: 600;
  line-height: calc(20 * var(--u));
  letter-spacing: -0.01em;
}

.island {
  position: absolute;
  left: 50%;
  top: calc(15 * var(--u));
  width: calc(101 * var(--u));
  height: calc(31 * var(--u));
  border-radius: calc(16 * var(--u));
  background: #000;
  transform: translateX(-50%);
}

.island::after {
  content: "";
  position: absolute;
  right: calc(12 * var(--u));
  top: 50%;
  width: calc(9 * var(--u));
  height: calc(9 * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3550, #0a0c12 70%);
  transform: translateY(-50%);
}

.sys {
  position: absolute;
  right: calc(32 * var(--u));
  top: calc(27 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(5 * var(--u));
  color: var(--scr-ink);
}

.sys svg { fill: currentColor; }
.sig { width: calc(17 * var(--u)); height: calc(11 * var(--u)); }
.wifi { width: calc(15.5 * var(--u)); height: calc(11.5 * var(--u)); }
.batt { width: calc(25 * var(--u)); height: calc(12 * var(--u)); }

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(36 * var(--u));
}

.nav-title {
  font-size: calc(18.5 * var(--u));
  font-weight: 600;
  letter-spacing: -0.01em;
}

.add {
  position: absolute;
  right: calc(-1 * var(--u));
  top: calc(5 * var(--u));
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  fill: none;
  stroke: var(--scr-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(15 * var(--u));
  margin-top: calc(12 * var(--u));
}

.stat {
  display: flex;
  align-items: flex-start;
  height: calc(66 * var(--u));
  padding: calc(13 * var(--u)) calc(14 * var(--u));
  border-radius: calc(13 * var(--u));
  background: var(--scr-card);
}

.stat-icon {
  flex: none;
  width: calc(19 * var(--u));
  height: calc(19 * var(--u));
  margin-top: calc(2 * var(--u));
  color: var(--scr-green);
}

.stat-cal {
  fill: none;
  stroke: var(--scr-green);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.stat-text {
  display: flex;
  flex-direction: column;
  margin-left: calc(13 * var(--u));
}

.stat-text b {
  font-size: calc(22 * var(--u));
  font-weight: 600;
  line-height: calc(22 * var(--u));
  letter-spacing: -0.01em;
}

.stat-text span {
  margin-top: calc(3 * var(--u));
  font-size: calc(13 * var(--u));
  line-height: calc(16 * var(--u));
  color: var(--scr-ink-2);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(24 * var(--u));
  margin-top: calc(18 * var(--u));
  font-size: calc(14 * var(--u));
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-head-upcoming {
  margin-top: calc(12 * var(--u));
}

.see-all {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  font-size: calc(12.5 * var(--u));
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--scr-ink-2);
}

.see-all svg {
  width: calc(6 * var(--u));
  height: calc(10 * var(--u));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: calc(11 * var(--u));
  margin-top: calc(10 * var(--u));
}

.rows-upcoming {
  margin-top: calc(9 * var(--u));
}

.row {
  display: flex;
  align-items: center;
  height: calc(66 * var(--u));
}

.poster {
  flex: none;
  width: calc(54 * var(--u));
  height: calc(66 * var(--u));
  border-radius: calc(6 * var(--u));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12);
}

/* Each poster falls back to a gradient until its image exists in assets/posters/. */
.poster-frontier {
  background-image:
    url("assets/posters/the-frontier.jpg"),
    radial-gradient(circle at 50% 58%, #c9daf0 0, #5a7ba6 16%, #23406a 40%, #0c1729 78%);
}

.poster-pilgrimage {
  background-image:
    url("assets/posters/the-pilgrimage.jpg"),
    radial-gradient(ellipse at 50% 42%, #f1c995 0, #b47a45 28%, #5b3a22 60%, #24170e 100%);
}

.poster-neon {
  background-image:
    url("assets/posters/neon-hearts.jpg"),
    linear-gradient(140deg, #e6324b 0%, #8d1838 40%, #3a1440 70%, #1c2c75 100%);
}

.poster-beacon {
  background-image:
    url("assets/posters/the-beacon.jpg"),
    radial-gradient(circle at 70% 38%, #f5e7c9 0, #9a8466 14%, #39352f 42%, #121417 80%);
}

.poster-horizon {
  background-image:
    url("assets/posters/the-last-horizon.jpg"),
    linear-gradient(180deg, #9fb2a9 0%, #6f8781 45%, #3c4f4b 75%, #253230 100%);
}

.meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  margin-left: calc(13 * var(--u));
}

.name {
  font-size: calc(15 * var(--u));
  font-weight: 500;
  line-height: calc(20 * var(--u));
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ep {
  margin-top: calc(2 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: calc(18 * var(--u));
  letter-spacing: 0.01em;
  color: var(--scr-amber);
}

.count {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(27 * var(--u));
  height: calc(22 * var(--u));
  margin-right: calc(13 * var(--u));
  border-radius: calc(6 * var(--u));
  background: var(--scr-badge);
  color: var(--scr-badge-ink);
  font-size: calc(13 * var(--u));
  font-weight: 600;
}

.chev {
  flex: none;
  width: calc(8 * var(--u));
  height: calc(14 * var(--u));
  fill: none;
  stroke: #3a3a3a;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tick {
  flex: none;
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  margin-left: calc(19 * var(--u));
  border: calc(1.6 * var(--u)) solid #8b8b8b;
  border-radius: 50%;
}

.date {
  margin-right: calc(20 * var(--u));
  font-size: calc(15 * var(--u));
  color: #3d3d3d;
}

.rows-upcoming .chev {
  margin-right: calc(6 * var(--u));
}

.divider {
  height: 1px;
  margin-top: calc(14 * var(--u));
  background: var(--scr-line);
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  height: calc(100 * var(--u));
  padding: calc(6 * var(--u)) calc(18 * var(--u)) 0 calc(16 * var(--u));
  border-top: 1px solid var(--scr-line);
  background: #f6f6f4;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: calc(70 * var(--u));
  height: calc(52 * var(--u));
  border-radius: calc(15 * var(--u));
  color: var(--scr-ink-2);
  font-size: calc(10.5 * var(--u));
  font-weight: 500;
}

.tab svg {
  width: calc(23 * var(--u));
  height: calc(23 * var(--u));
  margin-bottom: calc(4 * var(--u));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab .fill {
  fill: currentColor;
  stroke: none;
}

.tab.is-active {
  background: var(--scr-pill);
  color: var(--scr-ink);
}

.tab.is-active svg {
  stroke-width: 2.2;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: calc(11 * var(--u));
  width: calc(113 * var(--u));
  height: calc(5 * var(--u));
  border-radius: 99px;
  background: #121212;
  transform: translateX(-50%);
}

.toast {
  position: absolute;
  z-index: 3;
  left: calc(6 * var(--u));
  top: calc(656 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  min-width: calc(285 * var(--u));
  height: calc(70 * var(--u));
  padding: 0 calc(16 * var(--u)) 0 calc(19 * var(--u));
  border-radius: calc(35 * var(--u));
  background: #fff;
  box-shadow:
    0 calc(14 * var(--u)) calc(34 * var(--u)) rgb(19 40 28 / 0.13),
    0 calc(2 * var(--u)) calc(6 * var(--u)) rgb(19 40 28 / 0.06);
  font-size: calc(15 * var(--u));
  font-weight: 450;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: #1c2821;
}

.toast-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  border-radius: 50%;
  background: #198f4f;
}

.toast-icon svg {
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Entrance motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .copy > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .copy > :nth-child(2) { animation-delay: 0.06s; }
  .copy > :nth-child(3) { animation-delay: 0.14s; }
  .copy > :nth-child(4) { animation-delay: 0.2s; }
  .copy > :nth-child(5) { animation-delay: 0.26s; }

  .check {
    animation: wipe 1.1s 0.35s cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .phone {
    animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .toast {
    animation: pop 0.6s 1.25s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  }

  .toast-icon svg path {
    stroke-dasharray: 18;
    animation: draw 0.45s 1.55s ease-out both;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}

@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
}

@keyframes draw {
  from { stroke-dashoffset: 18; }
  to { stroke-dashoffset: 0; }
}

/* ---------- Small screens: stack copy above the phone ---------- */

@media (max-width: 900px) {
  .site-header {
    height: 72px;
    margin: 0 20px;
  }

  .logo {
    font-size: 34px;
    transform: none;
  }

  .nav {
    gap: 24px;
    font-size: 15px;
  }

  .cta {
    width: auto;
    height: 44px;
    padding: 0 20px;
    font-size: 16px;
  }

  .cta svg {
    width: 13px;
    height: 13px;
  }

  .lang-link {
    height: 32px;
    padding: 0 11px;
    font-size: 13px;
  }

  .hero {
    height: auto;
  }

  .copy {
    --u: min(1px, calc((100cqw - 40px) / 545));
    padding: 44px 20px 0;
  }

  .headline:lang(pt) {
    font-size: calc(114 * var(--u));
    line-height: calc(122 * var(--u));
  }

  .stage-wrap {
    --u: min(0.85px, calc(100cqw / 500));
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: calc(872 * var(--u));
    margin-top: 32px;
    overflow: hidden;
  }

  .stage {
    left: 50%;
    width: calc(880 * var(--u));
    margin-left: calc(-426 * var(--u));
  }

  /* Center the toast over the phone's chin so it never hides the tab bar. */
  .toast {
    left: calc(284 * var(--u));
    top: calc(752 * var(--u));
  }

  .signoff {
    position: static;
    padding: 20px 20px 36px;
    font-size: 13px;
    line-height: 20px;
    text-align: right;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 12px;
  }

  .nav-link {
    display: none;
  }
}

/* ---------- Content sections ---------- */

.section {
  margin: 0 var(--gutter);
  padding: clamp(72px, 9vw, 136px) 0;
  border-top: 1px solid var(--rule);
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #39463f;
}

.kicker span {
  color: var(--brand);
}

.section-title {
  margin-top: 20px;
  font-size: clamp(48px, 6.4vw, 100px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  vertical-align: 0.1em;
}

.chip svg {
  width: 16px;
  height: 16px;
  margin-left: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip-pending {
  background: var(--scr-badge);
  color: var(--scr-badge-ink);
}

.chip-done {
  background: #198f4f;
  color: #fff;
}

/* Manifesto */

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 6vw, 120px);
}

.manifesto-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 44px;
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legend .chip {
  flex: none;
  justify-content: center;
  width: 104px;
}

.principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(56px, 6vw, 96px);
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 10px;
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}

.principles svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principles b {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.principles li > span {
  grid-column: 1 / -1;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Feature cards */

.features .section-intro {
  margin-bottom: clamp(48px, 5vw, 80px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 44px) 0;
  border: 1px solid #e4e5de;
  border-radius: 28px;
  background: #fff;
}

.card h3 {
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.card p {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

.card .chip {
  margin-top: 22px;
}

.mock {
  --u: 1px;
  height: 282px;
  margin-top: auto;
  overflow: hidden;
  padding: 22px 22px 0;
  border: 1px solid #e6e7e1;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: #f4f5f0;
  color: var(--scr-ink);
  font-family: var(--font-ios);
}

.card-copy {
  margin-bottom: 40px;
}

.mock-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mock-label span + span {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--scr-ink-2);
}

.mock-board {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.mock-board .mock-label {
  margin-bottom: 1px;
}

.tick.is-checked,
.episodes .state.is-done {
  border-color: #198f4f;
  background: #198f4f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.8 12.6 3.4 3.4 7-7.4'/%3E%3C/svg%3E") center / 78% no-repeat;
}

.ep.ep-done {
  color: #198f4f;
}

.season {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 8px;
  margin-bottom: 16px;
}

.season-name {
  font-size: 15px;
  font-weight: 600;
}

.season-count {
  font-size: 13px;
  color: var(--scr-ink-2);
}

.bar {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e2e3dd;
}

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

.bar.is-complete span {
  background: var(--scr-green);
}

.episodes {
  margin-top: 4px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  list-style: none;
}

.episodes li {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--scr-line);
  font-size: 15px;
}

.episodes .code {
  width: 34px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--scr-amber);
}

.episodes .title {
  flex: 1;
}

.episodes .next {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--scr-badge);
  color: var(--scr-badge-ink);
  font-size: 11.5px;
  font-weight: 600;
}

.episodes .state {
  width: 22px;
  height: 22px;
  border: 1.5px solid #8b8b8b;
  border-radius: 50%;
}

.log-day {
  margin: 2px 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--scr-ink-2);
}

.log {
  display: flex;
  align-items: center;
  height: 58px;
  margin-bottom: 8px;
}

.log + .log-day {
  margin-top: 14px;
}

.mock-history .poster {
  width: 40px;
  height: 50px;
  border-radius: 5px;
}

.log-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.rating {
  font-size: 14px;
  font-weight: 600;
}

.log-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--scr-ink-2);
}

.rewatch {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 11px;
  background: #e6e7e1;
}

.segmented span {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--scr-ink-2);
}

.segmented .is-on {
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
  color: var(--scr-ink);
  font-weight: 600;
}

.setting-group {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid var(--scr-line);
  font-size: 15px;
}

.setting .value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--scr-ink-2);
}

.setting .value::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.6px solid #8b8b8b;
  border-right: 1.6px solid #8b8b8b;
  transform: rotate(45deg);
}

.toggle {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  background: var(--scr-green);
}

.toggle::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}

/* Ledger */

.filed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: clamp(40px, 6vw, 120px);
}

.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px clamp(28px, 3vw, 48px);
  padding-top: 44px;
}

.ledger div {
  padding-top: 18px;
  border-top: 1.5px solid var(--ink);
}

.ledger dt {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ledger dd {
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Closing call to action */

.closing {
  position: relative;
  overflow: hidden;
  margin: 0 var(--gutter);
  padding: clamp(48px, 7vw, 112px);
  border-radius: 36px;
  background: var(--ink);
  color: var(--bg);
}

.closing-check {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: min(62%, 760px);
  pointer-events: none;
}

.closing > :not(.closing-check) {
  position: relative;
}

.kicker-light {
  color: #a9b6ad;
}

.closing-title {
  margin-top: 20px;
  font-size: clamp(56px, 8vw, 128px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.closing-body {
  margin-top: 24px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: #b9c4bc;
}

.closing .stores {
  --u: min(1px, calc((100cqw - 80px) / 440));
  margin-top: 40px;
}

.attribution {
  max-width: 76ch;
  margin: 40px var(--gutter) 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}

.attribution a,
.legal-content a,
.contact-card a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin: 72px var(--gutter) 0;
  padding: 40px 0 48px;
  border-top: 1px solid var(--rule);
}

.logo.logo-small {
  font-size: 30px;
  transform: none;
}

.footer-brand p {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
}

.footer-links .lang-link {
  height: 28px;
  margin-top: -4px;
  font-size: 12px;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Privacy and contact pages */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  column-gap: clamp(40px, 6vw, 120px);
  margin: 0 var(--gutter);
  padding: clamp(56px, 7vw, 112px) 0 clamp(40px, 5vw, 80px);
}

.legal-head {
  position: sticky;
  top: 40px;
}

.legal-title {
  margin-top: 20px;
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.legal-intro {
  max-width: 34ch;
  margin-top: 24px;
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
}

.legal-content {
  padding-top: 8px;
}

.legal-content h2 {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  max-width: 64ch;
  margin-top: 12px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.contact-card {
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid #e4e5de;
  border-radius: 28px;
  background: #fff;
}

.contact-card .kicker {
  margin-bottom: 12px;
}

.contact-mail {
  display: inline-block;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--brand);
  overflow-wrap: anywhere;
}

.contact-card p {
  margin-top: 24px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
  }

  .manifesto,
  .filed,
  .legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .manifesto-copy,
  .ledger {
    padding-top: 32px;
  }

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

  .principles {
    gap: 32px;
  }

  .card-copy {
    margin-bottom: 32px;
  }

  .closing {
    padding: 44px 24px 48px;
    border-radius: 28px;
  }

  .closing .stores {
    --u: min(1px, calc((100cqw - 88px) / 431));
  }

  .closing-check {
    width: 90%;
    right: -30%;
    bottom: -12%;
    opacity: 0.9;
  }

  .legal-head {
    position: static;
  }

  .legal-content {
    padding-top: 48px;
  }

  .contact-card {
    margin-top: 40px;
  }

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

@media (max-width: 600px) {
  .ledger {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .mock {
    padding: 18px 16px 0;
  }

  .wide-only {
    display: none;
  }
}
