/* CanvasBooth — shared site styles
   Tokens mirror the app theme (lib/theme/canvasbooth_theme.dart) and its
   DM Sans typography. Homepage sections live in home.css. */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Italic-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f8f8f9;
  --surface: #ffffff;
  --surface-muted: #f3f4f5;
  --surface-strong: #ebedf0;
  --line: #e4e6e9;
  --line-strong: #d6d9dd;
  --ink: #151518;
  --muted: #73767d;
  --subtle: #a5a8af;
  --soft-text: #b4b6bc;
  --accent: #a79dcc;
  --accent-soft: #efecff;
  --accent-ink: #5b4f8f;
  --positive: #268a63;
  --warm: #f29d38;
  --dark: #111216;
  --dark-surface: #1b1c21;
  --dark-panel: #24262c;
  --on-dark-muted: #b5b7be;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-print: 0 1px 2px rgba(15, 17, 21, 0.06), 0 10px 24px -8px rgba(15, 17, 21, 0.18),
    0 30px 60px -24px rgba(15, 17, 21, 0.22);
  --shadow-soft: 0 1px 2px rgba(15, 17, 21, 0.05), 0 8px 30px -12px rgba(15, 17, 21, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: 1180px;
  --gutter: 24px;

  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
}

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

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(920px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow.on-dark {
  color: var(--on-dark-muted);
}

.display {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.soft {
  color: var(--soft-text);
}
.soft-dark {
  color: #6c6f78;
}
.display.on-dark {
  color: #fff;
}

.body-lg {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration-color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.2s, box-shadow 0.35s var(--ease-out),
    border-color 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(21, 21, 24, 0.55);
}
.btn-dark:hover {
  background: #26262b;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(21, 21, 24, 0.6);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.btn-light {
  margin-top: 28px;
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  transform: translateY(-1px);
}
.btn-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: -10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn-ico {
  transform: translateX(3px);
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 12px var(--gutter);
  transition: padding 0.4s var(--ease-out);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding: 8px 8px 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.topbar.is-scrolled .topbar-inner {
  border-color: rgba(228, 230, 233, 0.9);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px -18px rgba(15, 17, 21, 0.25);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 17, 21, 0.12);
}
.topbar-links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.topbar-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.topbar-links a:hover {
  color: var(--ink);
  background: var(--surface-muted);
}
.topbar-links .menu-only {
  display: none;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.link-quiet {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}
.link-quiet:hover {
  color: var(--ink);
}
.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle i {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.menu-toggle i:first-of-type {
  top: 15px;
}
.menu-toggle i:last-of-type {
  top: 22px;
}
.menu-toggle[aria-expanded="true"] i:first-of-type {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] i:last-of-type {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 11vw, 150px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .body-lg {
  margin-inline: auto;
}

[data-reveal] {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.seg button {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.2s;
}
.seg button:hover {
  color: var(--ink);
}
.seg button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

/* ---------- Footer ---------- */

.footer {
  padding-top: 70px;
  background: var(--canvas);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.footer-brand p {
  max-width: 24em;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer h4 {
  margin: 0 0 6px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}
.footer nav a {
  color: var(--ink);
  font-size: 14.5px;
}
.footer nav a:hover {
  color: var(--muted);
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 13px;
}
.footer-word {
  margin: 0 0 -0.22em;
  color: var(--surface-strong);
  font-size: clamp(64px, 16.5vw, 250px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
/* ---------- Responsive (shared) ---------- */

@media (max-width: 1020px) {
  .topbar-links a {
    padding-inline: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .topbar-links {
    position: absolute;
    top: calc(100% + 6px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 40px -20px rgba(15, 17, 21, 0.3);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.35s var(--ease-out);
  }
  .topbar-links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .topbar-links a {
    padding: 13px 14px;
    color: var(--ink);
    font-size: 16px;
  }
  .topbar-links .menu-only {
    display: block;
  }
  .menu-toggle {
    display: block;
  }
  .link-quiet {
    display: none;
  }
  .topbar-actions {
    margin-left: auto;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-base {
    flex-direction: column;
  }
  .seg {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   Inner pages — legal, support, beta sign-up, 404
   ========================================================================== */

.shell {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.page-title,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  animation: pulse 2.2s infinite;
}
.badge.status-closed .dot {
  background: var(--warm);
  animation: none;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(38, 138, 99, 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(38, 138, 99, 0);
  }
}

/* ---------- Legal hero + layout ---------- */

.legal-hero {
  padding: 150px 0 56px;
  border-bottom: 1px solid var(--line);
}
.legal-hero .lead {
  max-width: 40em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}
.effective {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.effective::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding: 56px 0 120px;
}
.legal-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.legal-nav .eyebrow {
  margin-bottom: 10px;
}
.legal-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.2s;
}
.legal-nav a::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease-out);
}
.legal-nav a:hover,
.legal-nav a.is-active {
  color: var(--ink);
}
.legal-nav a.is-active::before {
  transform: scaleY(1);
}

.legal-copy {
  max-width: 740px;
}
.legal-copy section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal-copy h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.legal-copy p,
.legal-copy li {
  color: #3f4148;
  font-size: 16.5px;
  line-height: 1.7;
}
.legal-copy p {
  margin: 0 0 16px;
}
.legal-copy ul {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.legal-copy li {
  position: relative;
  padding-left: 22px;
}
.legal-copy li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-copy a,
.support-card a,
.xs-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.legal-copy a:hover,
.support-card a:hover,
.xs-note a:hover {
  text-decoration-color: var(--ink);
}
.legal-note {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-ink) !important;
}
.translation {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.translation summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
}
.translation > div {
  padding: 0 20px 6px;
}

/* ---------- Support ---------- */

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 56px 0 120px;
}
.support-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.support-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.support-card .eyebrow {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11.5px;
}
.support-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.support-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}
.support-card p:last-child {
  margin-bottom: 0;
}
.support-card code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-muted);
  font-size: 0.92em;
}
.support-card.wide {
  grid-column: 1 / -1;
  padding: clamp(28px, 4vw, 44px);
  border: 0;
  background: var(--dark);
  color: #fff;
}
.support-card.wide .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark-muted);
}
.support-card.wide h3 {
  font-size: clamp(24px, 3vw, 32px);
}
.support-card.wide p {
  max-width: 46em;
  color: var(--on-dark-muted);
}
.support-card.wide strong {
  color: #fff;
  font-weight: 600;
}
.support-card.wide a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Beta sign-up ---------- */

.beta-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 130px 0 40px;
}
.beta-hero-art {
  position: relative;
  height: 460px;
}
.beta-hand {
  position: absolute;
  right: 6%;
  bottom: -40px;
  width: auto;
  height: 520px;
  filter: drop-shadow(0 30px 40px rgba(15, 17, 21, 0.18));
  animation: sway 7s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.beta-print {
  position: absolute;
  width: 150px;
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--shadow-print);
  animation: float 6s ease-in-out infinite;
}
.beta-print.bp1 {
  left: 4%;
  top: 8%;
  --r: -9deg;
}
.beta-print.bp2 {
  left: 18%;
  bottom: 4%;
  width: 124px;
  --r: 7deg;
  animation-delay: -3s;
}
@keyframes sway {
  50% {
    transform: rotate(-2.5deg);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-12px) rotate(var(--r, 0deg));
  }
}

.beta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 40px 0;
}
.beta-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.beta-card.featured {
  border: 1.5px solid var(--ink);
}
.beta-card.dark {
  border-color: transparent;
  background: var(--dark);
  color: #fff;
}
.beta-card.dark .eyebrow,
.beta-card.dark .desc,
.beta-card.dark .muted {
  color: var(--on-dark-muted);
}
.beta-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.beta-card .desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.reward-list {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.reward-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
}
.reward-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4f8f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.beta-card.dark .reward-list li::before {
  background-color: rgba(167, 157, 204, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfc8ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E");
}
.quota-track {
  margin-bottom: 24px;
}
.quota-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.quota-meta .qty {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.quota-meta .muted {
  color: var(--muted);
  font-size: 14px;
}
.quota-bar {
  height: 8px;
  border-radius: 8px;
  background: var(--surface-strong);
  overflow: hidden;
}
.beta-card.dark .quota-bar {
  background: rgba(255, 255, 255, 0.1);
}
.quota-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 1.2s var(--ease-out);
}
.beta-card.dark .quota-bar span {
  background: #fff;
}
.beta-card .btn-light {
  margin-top: 0;
}

.beta-section {
  padding: 24px 0 120px;
}
.beta-panel {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 100px;
}
.beta-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.beta-panel .intro {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.field-row {
  display: flex;
  gap: 10px;
}
.field-row input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field-row input:focus {
  outline: none;
  border-color: var(--accent-ink);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field-row .btn {
  min-height: 52px;
}
.field-row .btn:disabled {
  opacity: 0.55;
  cursor: progress;
}
.hint {
  margin: 10px 4px 0;
  color: var(--subtle);
  font-size: 13.5px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fdecec;
  color: #a2262c;
  font-size: 14.5px;
}
.form-error.show {
  display: block;
}
.form-success {
  display: none;
  padding: 26px;
  border-radius: var(--radius);
  background: #ecf6f1;
  text-align: center;
}
.form-success.show {
  display: block;
  animation: pop-in 0.6s var(--ease-out);
}
.form-success .tick {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--positive);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.form-success h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.form-success p {
  margin: 0;
  color: var(--muted);
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
.xs-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 13px;
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 60px var(--gutter);
  text-align: center;
}
.not-found .body-lg {
  margin-inline: auto;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.empty-strip {
  display: grid;
  gap: 8px;
  width: 120px;
  margin-bottom: 36px;
  padding: 10px 10px 14px;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-print);
  transform: rotate(-4deg);
  animation: float 6s ease-in-out infinite;
  --r: -4deg;
}
.empty-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  background: var(--surface-strong);
  background-size: cover;
  background-position: center 30%;
}
.empty-slot b {
  color: var(--subtle);
  font-size: 22px;
}
.empty-slot:not(.filled) {
  border: 1.5px dashed var(--line-strong);
}
.empty-strip em {
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Inner pages responsive ---------- */

@media (max-width: 1020px) {
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .beta-hero {
    grid-template-columns: 1fr;
  }
  .beta-hero-art {
    height: 340px;
  }
  .beta-hand {
    height: 400px;
  }
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }
  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    border: 0;
  }
  .legal-nav .eyebrow {
    flex-basis: 100%;
    margin-bottom: 2px;
  }
  .legal-nav a {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13.5px;
  }
  .legal-nav a::before {
    display: none;
  }
  .beta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .legal-hero {
    padding-top: 118px;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .beta-hero {
    padding-top: 110px;
  }
  .beta-hero-art {
    height: 280px;
  }
  .beta-hand {
    right: 0;
    height: 330px;
  }
  .beta-print {
    width: 104px;
  }
  .beta-print.bp2 {
    width: 90px;
  }
  .field-row {
    flex-direction: column;
  }
}
