@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Regular.ec67667e.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-SemiBold.3b09ef51.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/DMSerifDisplay-Regular.7e6679d4.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --ink: #202021;
  --muted: #6b6866;
  --cream: #faf7ef;
  --paper: #fffdf8;
  --blush: #d99ea0;
  --blush-soft: #ead1d2;
  --sage: #bacdbd;
  --sage-deep: #4e7a58;
  --blue: #dce7ed;
  --blue-deep: #384e60;
  --tan: #e3d5c0;
  --expense: #b04f4f;
  --line: rgba(32, 32, 33, 0.12);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
}

.nav,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(32, 32, 33, 0.1);
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.nav-links .nav-download {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  padding: 145px 0 88px;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: -390px;
  right: 3%;
  width: 720px;
  height: 720px;
  background: var(--blush-soft);
}

.hero::after {
  right: -310px;
  bottom: -370px;
  width: 780px;
  height: 780px;
  background: var(--sage);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.78fr);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(32, 32, 33, 0.14);
}

.hero-brand span {
  display: grid;
}

.hero-brand strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.hero-brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 7.2vw, 6.8rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

h1 em {
  color: var(--blush);
  font-style: normal;
}

.hero-copy > p {
  max-width: 580px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.store-button {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: transform 180ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
}

.store-button img {
  display: block;
  width: 180px;
  height: auto;
}

.cta-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 710px;
  place-items: end center;
}

.hero-art::before {
  position: absolute;
  z-index: -1;
  right: -100px;
  bottom: 18px;
  width: 610px;
  height: 610px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.hero-phone {
  width: min(410px, 100%);
}

.trust-strip {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 27px 20px;
  text-align: center;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section {
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 52px;
}

.section-heading h2,
.showcase-copy h2,
.privacy-copy h2,
.closing h2 {
  margin-bottom: 0;
  font-size: clamp(2.9rem, 5vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.section-heading p,
.showcase-copy > p,
.privacy-copy > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-explorer {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-card {
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
  cursor: default;
  transition: border-color 180ms ease, transform 180ms ease;
}

.feature-card[role="tab"] {
  cursor: pointer;
}

.feature-card[role="tab"]:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 32, 33, 0.34);
}

.feature-card:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 4px;
}

.feature-card.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.feature-card:nth-child(2) {
  background: var(--blue);
}

.feature-card:nth-child(3) {
  background: var(--tan);
}

.feature-card:nth-child(4) {
  background: #dce8de;
}

.feature-card:nth-child(6) {
  background: var(--blush-soft);
}

.feature-number {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.05;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.feature-inline-frame {
  display: none;
}

.feature-preview {
  position: sticky;
  top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  transition: background-color 240ms ease;
}

.feature-preview[data-tone="blue"] {
  background: var(--blue);
}

.feature-preview[data-tone="tan"] {
  background: var(--tan);
}

.feature-preview[data-tone="sage"] {
  background: #dce8de;
}

.feature-preview[data-tone="blush"] {
  background: var(--blush-soft);
}

.feature-preview-copy h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.feature-preview-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tablet-frame {
  position: relative;
  width: auto;
  max-width: 100%;
  height: min(58vh, 620px);
  aspect-ratio: 770 / 1000;
  justify-self: center;
  overflow: hidden;
  border-radius: 5% / 3.6%;
  background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 25px 54px rgba(32, 32, 33, 0.2);
}

.tablet-frame::after,
.feature-inline-frame::after {
  position: absolute;
  z-index: 1;
  top: 1.2%;
  left: 50%;
  width: 0.9%;
  height: 0.65%;
  border-radius: 50%;
  background: #111113;
  content: "";
  transform: translateX(-50%);
}

.tablet-frame img {
  position: absolute;
  top: 2.8%;
  left: 4%;
  width: 92%;
  max-width: none;
  height: 94.4%;
  border-radius: 2.2% / 1.6%;
  object-fit: cover;
  object-position: top;
  opacity: 1;
  transition: opacity 150ms ease, transform 180ms ease;
}

.feature-preview.is-changing .tablet-frame img {
  opacity: 0;
  transform: scale(0.985);
}

.showcase {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--blue);
}

.showcase::after {
  position: absolute;
  right: -220px;
  bottom: -300px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: var(--blush-soft);
  content: "";
}

.showcase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(500px, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 78px;
}

.screens-stack {
  display: grid;
  grid-template-columns: minmax(0, 410px);
  align-items: start;
  justify-content: center;
}

.screen-card {
  margin: 0;
}

.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1022 / 2082;
}

.screen {
  position: absolute;
  z-index: 2;
  top: 2.209%;
  left: 5.088%;
  width: 89.824%;
  max-width: none;
  height: 95.581%;
  border-radius: 13.725% / 6.332%;
  object-fit: cover;
  object-position: top;
}

.phone-frame-shell {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  filter: drop-shadow(0 24px 24px rgba(32, 32, 33, 0.14));
  pointer-events: none;
}

.screen-card figcaption {
  margin-top: 13px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  text-align: center;
}

.showcase-copy h2 {
  margin-bottom: 22px;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.94rem;
}

.check-list li::before {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage-deep);
  content: "✓";
  font-size: 0.68rem;
}

.privacy-section {
  background: var(--paper);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: center;
  gap: 100px;
}

.privacy-art {
  position: relative;
  display: grid;
  min-height: 410px;
  overflow: hidden;
  place-items: center;
  border-radius: 30px;
  background: #e4ece4;
}

.privacy-art::before {
  position: absolute;
  top: -130px;
  left: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--sage);
  content: "";
}

.lock {
  position: relative;
  width: 110px;
  height: 94px;
  margin-top: 44px;
  border-radius: 22px;
  background: var(--sage-deep);
}

.lock::before {
  position: absolute;
  top: -60px;
  left: 25px;
  width: 50px;
  height: 62px;
  border: 8px solid var(--sage-deep);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  content: "";
}

.lock::after {
  position: absolute;
  top: 36px;
  left: 48px;
  width: 14px;
  height: 25px;
  border-radius: 7px;
  background: var(--paper);
  content: "";
}

.privacy-copy h2 {
  margin-bottom: 22px;
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 33px;
  max-width: 680px;
}

.privacy-points strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.privacy-points span {
  color: var(--muted);
  font-size: 0.88rem;
}

.plans-section {
  background: var(--cream);
}

.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 72px;
}

.plans-copy h2 {
  margin: 12px 0 20px;
  font-size: clamp(2.7rem, 4.6vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.plans-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.plan-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
}

.plan-card > span {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.05;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.plan-card-pro {
  color: #fff;
  background: var(--ink);
}

.plan-card-pro > span {
  color: var(--ink);
  background: var(--blush-soft);
}

.plan-card-pro ul {
  color: rgba(255, 255, 255, 0.72);
}

.legal-page {
  min-height: 100vh;
  background: var(--cream);
}

.legal-page .legal-site-header {
  position: relative;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
}

.legal-main {
  padding: 88px 0 112px;
}

.legal-content {
  width: min(780px, calc(100% - 48px));
  margin-inline: auto;
}

.legal-content h1 {
  max-width: 700px;
  margin: 12px 0 38px;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.legal-content h2 {
  margin: 44px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.1;
}

.legal-content p,
.legal-content li {
  color: #4f4d4b;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 22px;
}

/* Invite code on /join. Set in the serif face, tracked out and large, because
   it is read character by character — the same reasoning that puts the app's
   own invite code in its amount style. */
.legal-content .join-code-label {
  margin: 30px 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-content .join-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.legal-content .join-copy {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
  cursor: pointer;
}

.legal-content .join-open {
  margin: 0 0 30px;
}

.legal-content .join-copied {
  margin: 0 0 18px;
  min-height: 1.4em;
  color: var(--sage-deep);
  font-size: 0.88rem;
}

.legal-content .join-code {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
  line-height: 1.1;
  word-break: break-all;
}

.legal-content .join-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

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

.button-secondary {
  background: transparent;
}

.closing {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.closing::before {
  position: absolute;
  top: -230px;
  left: -170px;
  width: 490px;
  height: 490px;
  border-radius: 50%;
  background: rgba(234, 209, 210, 0.2);
  content: "";
}

.closing .shell {
  position: relative;
  display: grid;
  justify-items: center;
}

.closing h2 {
  max-width: 760px;
  margin-bottom: 20px;
}

.closing p {
  max-width: 600px;
  margin-bottom: 29px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer {
  padding: 32px 0;
  color: var(--muted);
  background: var(--cream);
  font-size: 0.86rem;
}

@media (min-width: 1101px) {
  #features .shell {
    width: min(1240px, calc(100% - 48px));
  }

  .feature-explorer {
    grid-template-columns: minmax(280px, 310px) minmax(0, 1fr);
    gap: 34px;
  }

  .feature-preview {
    grid-template-columns: minmax(190px, 0.42fr) minmax(0, 0.58fr);
    gap: 34px;
    padding: 32px;
  }

  .feature-preview-copy h3 {
    font-size: clamp(2.2rem, 2.7vw, 3.3rem);
  }

  .tablet-frame {
    width: min(100%, 478px);
    height: auto;
  }

  .tablet-frame img {
    width: 92%;
    height: 94.4%;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .section-heading,
  .showcase-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .privacy-grid {
    gap: 58px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    min-height: 680px;
  }

  .section-heading {
    gap: 20px;
  }

  .feature-explorer {
    grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.22fr);
    gap: 20px;
  }

  .feature-preview {
    gap: 20px;
    padding: 22px;
  }

  .feature-preview-copy {
    max-width: 650px;
  }

  .tablet-frame {
    width: auto;
    height: min(54vh, 560px);
    justify-self: center;
  }

  .screens-stack {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .showcase-copy {
    max-width: 700px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 760px) {
  .feature-explorer {
    display: block;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .feature-grid .feature-card {
    width: 100%;
    min-height: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    opacity: 1;
    transform: none;
    text-align: left;
  }

  .feature-card:hover,
  .feature-card.is-active {
    transform: none;
  }

  .feature-card.is-active {
    border-color: var(--line);
    box-shadow: none;
  }

  .feature-number {
    margin-bottom: 22px;
  }

  .feature-card h3 {
    font-size: 1.9rem;
  }

  .feature-card p {
    max-width: none;
    margin-inline: 0;
    font-size: 0.95rem;
  }

  .feature-inline-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 770 / 1000;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 5% / 3.6%;
    background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 34px rgba(32, 32, 33, 0.16);
  }

  .feature-inline-frame img {
    position: absolute;
    top: 2.8%;
    left: 4%;
    width: 92%;
    max-width: none;
    height: 94.4%;
    border-radius: 2.2% / 1.6%;
    object-fit: cover;
    object-position: top;
  }

  .feature-preview {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding: 16px 0;
  }

  .nav,
  .footer-inner {
    gap: 14px;
  }

  .brand span {
    display: none;
  }

  .nav-links,
  .legal-nav-links {
    gap: 12px;
  }

  .nav-links a,
  .legal-nav-links a {
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 64px;
  }

  .hero::before {
    top: -230px;
    right: -180px;
    width: 480px;
    height: 480px;
  }

  .hero::after {
    right: -240px;
    bottom: -180px;
    width: 500px;
    height: 500px;
  }

  .hero-grid {
    gap: 46px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-brand {
    margin-bottom: 28px;
  }

  .hero-brand img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  h1 {
    font-size: clamp(3.65rem, 17vw, 5rem);
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-art {
    min-height: 0;
  }

  .hero-art::before {
    right: 50%;
    bottom: -30px;
    width: 430px;
    height: 430px;
    transform: translateX(50%);
  }

  .hero-phone {
    width: min(315px, 92%);
  }

  .trust-items {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item:nth-child(3) {
    border-left: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .trust-item {
    padding: 21px 10px;
  }

  .section {
    padding: 78px 0;
  }

  .privacy-points {
    grid-template-columns: 1fr;
  }

  .plan-cards {
    grid-template-columns: 1fr;
  }

  .legal-main {
    padding: 64px 0 80px;
  }

  .legal-content {
    width: min(100% - 28px, 780px);
  }

  .legal-content h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .screens-stack {
    gap: 10px;
  }

  .screen-card figcaption {
    display: none;
  }

  .privacy-art {
    min-height: 300px;
  }

  .closing {
    padding: 78px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .legal-nav-links {
    gap: 8px;
  }

  .legal-nav-links a {
    font-size: 0.72rem;
  }

  .legal-nav-links .nav-download {
    padding: 8px 10px;
  }
}

.footer-consent {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-consent[hidden] {
  display: none;
}

.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(32, 32, 33, 0.08);
  animation: consent-rise 260ms ease-out;
}

.consent-banner[hidden] {
  display: none;
}

.consent-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.consent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 68ch;
}

.consent-copy .consent-title {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.consent-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.consent-button {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 160ms ease;
}

.consent-button:hover {
  background: #000;
}

.consent-link {
  align-self: center;
  font-size: 0.85rem;
  white-space: nowrap;
}

@keyframes consent-rise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .consent-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .consent-button {
    flex: 1;
  }

  .consent-link {
    flex-basis: 100%;
    text-align: center;
  }
}

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

  .store-button {
    transition: none;
  }

  .consent-banner {
    animation: none;
  }

  .consent-button {
    transition: none;
  }

  .feature-card,
  .feature-preview,
  .tablet-frame img {
    transition: none;
  }
}
