@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/newsreader.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3.woff2") format("woff2");
}

:root {
  --paper: #f4f1eb;
  --white: #ffffff;
  --line: #e3ddd3;
  --ink: #1a1814;
  --muted: #6e675e;
  --pine: #1b4d45;
  --pine-deep: #12352f;
  --pine-soft: #e5f0ed;
  --pine-lift: #2c6b62;
  --gold: #c9a86a;
  --gold-deep: #705218;
  --gold-soft: #f3ead3;
  --night: #101413;
  --night-text: #ede9e2;
  --header: 4.25rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.card-name,
.chat-title {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
}

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

.header-stores {
  display: none;
  gap: 0.5rem;
  margin-left: auto;
}

.kicker {
  margin-bottom: 0.75rem;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker.light {
  color: var(--gold);
}

h1 {
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  line-height: 0.98;
  max-width: 11ch;
}

.hero h1 {
  max-width: 14em;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  max-width: 18ch;
}

.lede,
.band-lede,
.close-lede {
  margin-top: 1.1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero {
  display: grid;
  gap: 2.75rem;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
  overflow-x: clip;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.store-row-center {
  justify-content: center;
  margin-top: 2.25rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.15rem;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border-radius: 0.7rem;
  background: var(--night);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(16, 20, 19, 0.16);
}

.store svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}

.store-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store-copy small {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  opacity: 0.78;
}

.store-copy strong {
  font-size: 1.05rem;
  font-weight: 650;
}

.store:hover {
  background: var(--pine-deep);
}

.phone-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.phone-wrap::before {
  content: "";
  position: absolute;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pine-soft) 0%, transparent 68%);
  z-index: 0;
}

.phone-stage {
  position: relative;
  z-index: 1;
  perspective: 1100px;
  padding: 1.25rem 1.5rem 0.25rem;
}

.phone-shadow {
  position: absolute;
  z-index: 0;
  width: 70%;
  height: 22px;
  left: 18%;
  bottom: 4%;
  border-radius: 50%;
  background: rgba(18, 53, 47, 0.34);
  filter: blur(9px);
  transform: rotate(-8deg);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.15;
  padding: 0.55rem;
  border-radius: 2.4rem;
  background: linear-gradient(120deg, #3d4a46 0%, #1a211e 32%, #101413 72%, #2c3834 100%);
  box-shadow:
    -22px 34px 48px rgba(18, 53, 47, 0.22),
    inset 1px 1px 0 rgba(255, 255, 255, 0.22);
  --tilt: rotateY(-20deg) rotateX(10deg) rotateZ(7deg);
  transform: var(--tilt);
  animation: float 7s ease-in-out infinite;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 1.95rem;
  background: var(--night);
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: cycle 15s infinite;
}

.screen-vote {
  animation-delay: 5s;
}

.screen-chat {
  animation-delay: 10s;
}

.status {
  position: absolute;
  top: 0.7rem;
  left: 0.95rem;
  right: 0.95rem;
  z-index: 2;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 650;
}

.status.dark {
  color: var(--ink);
}

.card-art,
.card-shade,
.card-copy {
  position: absolute;
  inset: 0;
}

.card-art {
  background: #12352f url("../assets/elena-portrait.jpg") center 18% / cover no-repeat;
}

.card-shade {
  background: linear-gradient(to top, rgba(16, 20, 19, 0.92) 0%, rgba(16, 20, 19, 0.28) 46%, transparent 70%);
}

.card-copy {
  inset: auto 0 0;
  padding: 1.1rem 1rem 1.15rem;
  color: var(--white);
}

.card-name {
  font-size: 1.85rem;
  line-height: 1.05;
}

.card-branch,
.card-line,
.card-meta {
  font-size: 0.92rem;
  line-height: 1.3;
}

.card-branch {
  margin-top: 0.35rem;
  font-weight: 650;
}

.card-line,
.card-meta {
  color: rgba(255, 255, 255, 0.86);
}

.card-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.chip {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 650;
}

.card-stage {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
}

.screen-vote,
.screen-chat {
  background: var(--paper);
  padding: 2.2rem 0.85rem 0.85rem;
}

.appbar,
.chat-head {
  margin-bottom: 0.75rem;
}

.appbar,
.chat-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
}

.chat-sub,
.vote-kicker {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vote-card {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--white);
}

.vote-card h2 {
  margin-top: 0.3rem;
  max-width: none;
  font-size: 1.35rem;
  line-height: 1.15;
}

.vote-sub {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.votes {
  list-style: none;
  margin: 0.8rem 0 0.7rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.votes li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
}

.wait-avatar {
  background: var(--line);
  color: var(--muted);
}

.yes {
  color: #1e7a4a;
  font-size: 0.75rem;
  font-weight: 700;
}

.wait {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.bar {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--pine-soft);
  overflow: hidden;
}

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

.phone-action,
.composer {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.9rem;
  margin: 0;
}

.phone-action {
  padding: 0.72rem 0.8rem;
  border-radius: 999px;
  background: var(--pine);
  color: var(--white);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 650;
}

.composer {
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.8rem;
}

.system {
  margin: 0.35rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.bubble {
  max-width: 92%;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.bubble-name {
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--pine);
}

.theirs {
  background: var(--white);
  border: 1px solid var(--line);
}

.mine {
  margin-left: auto;
  background: var(--pine);
  color: var(--white);
}

.block {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
  padding: 4.5rem 0;
}

.rule-grid,
.steps,
.diff-grid,
.fit-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.rule-grid article,
.steps li,
.fit-yes,
.fit-no,
.diff-grid article {
  padding: 1.35rem 1.25rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--white);
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.step-index {
  margin-bottom: 0.7rem;
  color: var(--gold-deep);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 650;
}

.rule-grid p,
.steps p,
.diff-grid p,
.fit-grid li {
  margin-top: 0.55rem;
  color: var(--muted);
}

.how {
  background:
    linear-gradient(180deg, transparent, rgba(229, 240, 237, 0.65) 18%, rgba(229, 240, 237, 0.65) 82%, transparent);
}

.band {
  background: var(--pine-deep);
  color: var(--night-text);
}

.band h2,
.band h3,
.close h2 {
  color: var(--white);
}

.band .store,
.close .store {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.band .store:hover,
.close .store:hover {
  background: var(--gold-soft);
}

.band-lede,
.diff-grid p {
  color: rgba(237, 233, 226, 0.78);
}

.diff-grid article {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.fit-yes {
  background: var(--pine-soft);
  border-color: transparent;
}

.fit-no {
  background: var(--white);
}

.fit-grid ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.fit-grid li + li {
  margin-top: 0.55rem;
}

.fit-yes li {
  color: var(--pine-deep);
}

.close {
  padding: 4.75rem 0 5rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 168, 106, 0.18), transparent 32%),
    var(--pine);
  color: var(--white);
  text-align: center;
}

.close h2,
.close-lede {
  margin-inline: auto;
}

.close h2 {
  max-width: 16ch;
}

.close-lede {
  color: rgba(255, 255, 255, 0.82);
}

.legal {
  padding: 2.75rem 0 4.5rem;
}

.legal h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.legal .updated {
  margin-top: 0.85rem;
  color: var(--muted);
}

.legal h2 {
  margin-top: 2.25rem;
  max-width: 24ch;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.legal p,
.legal li {
  max-width: 40rem;
}

.legal p + p,
.legal ul,
.legal ol {
  margin-top: 0.75rem;
}

.legal ul,
.legal ol {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal a {
  color: var(--pine);
  font-weight: 650;
}

.site-footer {
  background: var(--night);
  color: var(--night-text);
  padding: 1.4rem 0 1.6rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}

.footer-inner .brand img {
  width: 28px;
  height: 28px;
}

.footer-inner p {
  margin: 0;
  color: rgba(237, 233, 226, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.15rem;
  margin: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 880px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }

  .footer-links {
    margin-left: auto;
  }
}

.footer-links a:hover {
  color: var(--gold);
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.dock.is-visible {
  transform: translateY(0);
}

.dock .store {
  flex: 1;
  justify-content: center;
  min-width: 0;
  box-shadow: none;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

@keyframes float {
  0%,
  100% {
    transform: var(--tilt) translateY(0);
  }
  50% {
    transform: var(--tilt) translateY(-12px);
  }
}

@keyframes cycle {
  0%,
  33.2% {
    opacity: 1;
  }
  33.3%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .phone {
    width: min(250px, 66vw);
    --tilt: rotateY(-14deg) rotateX(8deg) rotateZ(5deg);
  }
}

@media (min-width: 800px) {
  .rule-grid,
  .fit-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .nav {
    display: flex;
  }

  .header-stores {
    display: flex;
  }

  .nav {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 3rem;
    padding: 4rem 0 5rem;
  }

  .dock {
    display: none;
  }
}

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

  .phone,
  .screen,
  .dock {
    animation: none;
    transition: none;
  }

  .screen {
    opacity: 0;
  }

  .screen-card {
    opacity: 1;
  }
}
