@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #f4efe7;
  --bg-strong: #fff8ef;
  --surface: rgba(255, 248, 239, 0.78);
  --surface-strong: rgba(255, 250, 244, 0.92);
  --card-border: rgba(27, 30, 37, 0.08);
  --text: #11161d;
  --muted: #56606e;
  --accent: #0f9d8f;
  --accent-strong: #0d7267;
  --accent-soft: rgba(15, 157, 143, 0.14);
  --secondary: #f25d3d;
  --secondary-soft: rgba(242, 93, 61, 0.12);
  --success: #136b47;
  --warning: #b56b00;
  --danger: #9e2f2f;
  --shadow: 0 30px 90px rgba(17, 22, 29, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: min(1160px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 157, 143, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(242, 93, 61, 0.18), transparent 24%),
    linear-gradient(180deg, #fff9f1 0%, #f4efe7 48%, #efe7dc 100%);
  min-height: 100vh;
}

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

button,
input,
select {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.page-shell,
.gateway-shell {
  position: relative;
  overflow-x: clip;
}

.page-shell::before,
.gateway-shell::before {
  content: "";
  position: fixed;
  inset: auto -10vw -20vh auto;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(15, 157, 143, 0.16), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.container {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 0 0;
}

.header-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(17, 22, 29, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 16px;
  flex-shrink: 0;
  background: center / contain no-repeat url("/img/logo.png");
  filter: drop-shadow(0 10px 22px rgba(17, 22, 29, 0.12));
}

.brand-mark {
  display: none;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.header-links a,
.header-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.header-links a:hover,
.header-links button:hover {
  background: rgba(17, 22, 29, 0.05);
  color: var(--text);
}

.shared-header__nav {
  justify-content: flex-end;
}

.shared-header__group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.shared-header__link {
  font-weight: 600;
}

.header-links a.shared-header__link--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  box-shadow: 0 14px 28px rgba(15, 114, 103, 0.22);
}

.header-links a.shared-header__link--primary:hover,
.header-links a.shared-header__link--primary:focus-visible {
  background: linear-gradient(135deg, var(--accent-strong) 0%, #0c5f57 100%);
  color: white;
}

.header-links a.shared-header__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 22, 29, 0.08);
  background:
    linear-gradient(135deg, rgba(15, 157, 143, 0.16), rgba(242, 93, 61, 0.18)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(17, 22, 29, 0.08);
}

.header-links a.shared-header__avatar:hover,
.header-links a.shared-header__avatar:focus-visible {
  background:
    linear-gradient(135deg, rgba(15, 157, 143, 0.2), rgba(242, 93, 61, 0.22)),
    rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.shared-header__avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-header__avatar span,
.profile-avatar span {
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}

.button,
.button-ghost,
.button-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  box-shadow: 0 16px 34px rgba(15, 114, 103, 0.28);
}

.button:hover,
.button-ghost:hover,
.button-inline:hover {
  transform: translateY(-1px);
}

.button-ghost {
  border-color: var(--card-border);
  background: rgba(255, 255, 255, 0.55);
}

.button-inline {
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
}

.hero-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.hero-grid {
  padding: 3.3rem 0 2.5rem;
}

.hero-copy {
  grid-column: span 7;
}

.hero-panel {
  grid-column: span 5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p {
  margin-top: 1.2rem;
  font-size: 1.08rem;
  max-width: 40rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.stat-row,
.feature-grid,
.card-grid,
.gallery-grid,
.queue-grid {
  display: grid;
  gap: 1rem;
}

.stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

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

.card-grid--shows {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: start;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.queue-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.glass-card,
.metric-card,
.feature-card,
.panel-card,
.photo-card,
.queue-card,
.gateway-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-card,
.panel-card,
.gateway-card {
  padding: 1.5rem;
}

.metric-card,
.feature-card,
.queue-card,
.photo-card {
  padding: 1.2rem;
}

.hero-preview {
  min-height: 100%;
  display: grid;
  gap: 1rem;
}

.preview-stage {
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 157, 143, 0.16), rgba(242, 93, 61, 0.1)),
    rgba(255, 250, 244, 0.78);
  padding: 1rem;
}

.preview-stack {
  display: grid;
  gap: 0.8rem;
}

.preview-photo {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 157, 143, 0.3), rgba(242, 93, 61, 0.1)),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=900&q=80") center/cover;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.preview-chip {
  padding: 0.7rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  font-weight: 600;
}

.section {
  padding: 1.8rem 0 2.2rem;
}

.section-heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.section-heading--dashboard,
.cta-row--dashboard {
  justify-items: start;
  justify-content: flex-start;
}

.page-hero {
  padding: 2.3rem 0 1.2rem;
}

.page-hero-card {
  padding: 1.5rem;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(15, 157, 143, 0.11), rgba(255, 255, 255, 0.7));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(17, 22, 29, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 0.95rem 1rem;
}

.form-row textarea {
  min-height: 7.5rem;
  resize: vertical;
  font: inherit;
}

.form-row textarea:focus {
  outline: 2px solid rgba(15, 157, 143, 0.18);
  outline-offset: 2px;
  border-color: rgba(15, 157, 143, 0.35);
}

.form-help {
  margin-top: 0.1rem;
}

.pill-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(17, 22, 29, 0.05);
}

.pill-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.pill-switch button.is-active {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(17, 22, 29, 0.08);
}

.notice {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
}

.notice[data-tone="info"] {
  background: rgba(15, 157, 143, 0.08);
  border-color: rgba(15, 157, 143, 0.18);
  color: var(--accent-strong);
}

.notice[data-tone="success"] {
  background: rgba(19, 107, 71, 0.08);
  border-color: rgba(19, 107, 71, 0.18);
  color: var(--success);
}

.notice[data-tone="danger"] {
  background: rgba(158, 47, 47, 0.08);
  border-color: rgba(158, 47, 47, 0.18);
  color: var(--danger);
}

.notice[data-tone="warning"] {
  background: rgba(181, 107, 0, 0.08);
  border-color: rgba(181, 107, 0, 0.18);
  color: var(--warning);
}

.show-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(255, 247, 239, 0.9));
  border: 1px solid rgba(27, 30, 37, 0.08);
  box-shadow: 0 18px 40px rgba(17, 22, 29, 0.06);
}

.show-card--dashboard {
  gap: 1.15rem;
  padding: 1.35rem;
  border-radius: 24px;
}

.show-card-heading,
.show-card-mode {
  display: grid;
  gap: 0.7rem;
}

.show-card-mode--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.show-card-title h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.8rem);
  line-height: 1;
}

.show-card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}

.show-card-mode-badge {
  width: fit-content;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.show-card-mode-value {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.show-card-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.show-card--dashboard .show-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.show-card-actions > * {
  flex: 1 1 180px;
  min-width: 0;
}

.show-card-actions .button,
.show-card-actions .button-ghost {
  width: 100%;
  min-height: 3.2rem;
}

.show-card--interactive {
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.show-card--interactive:hover,
.show-card--interactive:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 157, 143, 0.34);
  box-shadow: 0 20px 44px rgba(17, 22, 29, 0.08);
}

.show-card-top,
.split-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.muted {
  color: var(--muted);
}

.micro {
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge[data-tone="info"] {
  background: rgba(15, 157, 143, 0.12);
  color: var(--accent-strong);
}

.badge[data-tone="success"] {
  background: rgba(19, 107, 71, 0.12);
  color: var(--success);
}

.badge[data-tone="warning"] {
  background: rgba(181, 107, 0, 0.12);
  color: var(--warning);
}

.badge[data-tone="danger"] {
  background: rgba(158, 47, 47, 0.12);
  color: var(--danger);
}

.qr-frame {
  aspect-ratio: 1;
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 0.9rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--card-border);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.link-box {
  display: grid;
  gap: 0.8rem;
}

.link-box input {
  border: 1px solid rgba(17, 22, 29, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.9rem 1rem;
}

.action-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

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

.moderation-instructions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 22, 29, 0.08);
}

.moderation-instructions textarea {
  width: 100%;
  min-height: 8.5rem;
  resize: vertical;
  border: 1px solid rgba(17, 22, 29, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
}

.moderation-instructions textarea:focus {
  outline: 2px solid rgba(15, 157, 143, 0.18);
  outline-offset: 2px;
  border-color: rgba(15, 157, 143, 0.35);
}

.photo-thumb,
.queue-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 157, 143, 0.16), rgba(242, 93, 61, 0.08));
  overflow: hidden;
}

.photo-thumb img,
.queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-meta,
.queue-meta {
  display: grid;
  gap: 0.55rem;
}

.gallery-masonry {
  columns: 280px;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.gallery-item .photo-card {
  display: grid;
  gap: 0.8rem;
}

.empty-state {
  padding: 1.8rem;
  border-radius: 24px;
  border: 1px dashed rgba(17, 22, 29, 0.16);
  background: rgba(255, 255, 255, 0.44);
}

.gateway-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.gateway-grid {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.gateway-card {
  min-height: 100%;
}

.gateway-card .brand {
  margin-bottom: 1.25rem;
}

.gateway-split {
  display: grid;
  gap: 1rem;
}

.language-links {
  display: grid;
  gap: 0.8rem;
}

.language-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--card-border);
}

.language-links a:hover {
  background: rgba(255, 255, 255, 0.88);
}

.legal-page {
  padding-bottom: 3rem;
}

.profile-page {
  padding-bottom: 3rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}

.profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-summary,
.profile-actions {
  display: grid;
  gap: 1rem;
}

.profile-summary-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 24px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(15, 157, 143, 0.16), rgba(242, 93, 61, 0.18)),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 22, 29, 0.08);
  box-shadow: 0 16px 36px rgba(17, 22, 29, 0.08);
  font-size: 1.35rem;
}

.profile-meta {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.profile-meta-row {
  display: grid;
  gap: 0.28rem;
}

.profile-meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.profile-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-language-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  width: fit-content;
  border-radius: 999px;
  background: rgba(17, 22, 29, 0.05);
}

.profile-language-toggle button {
  min-width: 8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.profile-language-toggle button.is-active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(17, 22, 29, 0.08);
}

.legal-shell {
  padding: 2.3rem 0 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.2rem;
  align-items: start;
}

.legal-card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.legal-copy {
  display: grid;
  gap: 1.5rem;
}

.legal-copy section + section {
  margin-top: 0.65rem;
}

.legal-copy section {
  display: grid;
  gap: 0.65rem;
}

.legal-copy ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

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

.legal-callout {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(15, 157, 143, 0.11);
  border: 1px solid rgba(15, 157, 143, 0.18);
}

.legal-meta {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.legal-nav {
  display: grid;
  gap: 0.7rem;
}

.legal-nav a {
  color: var(--accent-strong);
  font-weight: 600;
}

.plans-shell {
  padding-bottom: 0.5rem;
}

.plans-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: end;
  padding: 3.1rem 0 2rem;
}

.plans-hero__copy {
  display: grid;
  justify-items: start;
}

.plans-hero__copy p {
  max-width: 55rem;
  margin-top: 1.15rem;
  font-size: 1.08rem;
}

.plans-hero__panel {
  display: grid;
  align-self: stretch;
  align-items: end;
}

.plan-snapshot {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
  border: 1px solid rgba(15, 157, 143, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(15, 157, 143, 0.13), rgba(242, 93, 61, 0.1)),
    rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow);
}

.plan-snapshot strong {
  max-width: 20rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1.05;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding: 1.15rem;
  border: 1px solid rgba(27, 30, 37, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(255, 248, 241, 0.9));
  box-shadow: 0 22px 60px rgba(17, 22, 29, 0.08);
}

.plan-card--featured {
  border-color: rgba(15, 157, 143, 0.35);
  background:
    linear-gradient(180deg, rgba(242, 255, 251, 0.96), rgba(255, 249, 243, 0.94));
  box-shadow: 0 28px 74px rgba(15, 114, 103, 0.15);
}

.plan-ribbon {
  width: fit-content;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  background: rgba(242, 93, 61, 0.12);
  color: #a23a24;
  font-size: 0.82rem;
  font-weight: 800;
}

.plan-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.plan-card h3 {
  margin-top: 0.18rem;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 0.95;
}

.plan-kicker {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-price {
  flex-shrink: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 0.95;
  text-align: right;
}

.plan-price span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-summary {
  min-height: 5.6rem;
}

.plan-cta {
  width: 100%;
  min-height: 3.1rem;
}

.plan-section {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 22, 29, 0.08);
}

.plan-section h4 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.plan-section--muted {
  padding: 0.95rem;
  border: 1px solid rgba(17, 22, 29, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.plan-list {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.4;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--accent);
}

.plan-card--featured .plan-list li::before {
  background: var(--secondary);
}

.plans-note {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem;
  border: 1px solid rgba(27, 30, 37, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.74);
  box-shadow: 0 20px 54px rgba(17, 22, 29, 0.08);
}

.plans-note div {
  display: grid;
  gap: 0.6rem;
}

.plans-note p {
  max-width: 46rem;
}

@media (max-width: 980px) {
  .hero-copy,
  .hero-panel,
  .layout-two,
  .gateway-grid,
  .profile-grid {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .card-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-meta {
    position: static;
  }

  .plans-hero,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plans-hero__panel {
    align-items: stretch;
  }

  .plan-summary {
    min-height: 0;
  }

  .header-panel {
    border-radius: 26px;
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 640px) {
  :root {
    --content-width: min(100vw - 1rem, 100%);
  }

  .site-header {
    padding-top: 0.7rem;
  }

  .header-panel {
    align-items: center;
    flex-direction: row;
    gap: 0.45rem;
    padding: 0.7rem;
    border-radius: 999px;
  }

  .brand {
    gap: 0;
  }

  .brand [data-header-brand] {
    display: none;
  }

  .brand::before {
    width: 2.35rem;
    height: 2.35rem;
  }

  .shared-header__nav {
    flex: 1;
    min-width: 0;
  }

  .shared-header__group {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
  }

  .header-links a,
  .header-links button {
    padding: 0.55rem 0.65rem;
    font-size: 0.88rem;
    line-height: 1;
    white-space: nowrap;
  }

  [data-header-how],
  [data-header-plans] {
    display: none;
  }

  .header-links a.shared-header__avatar {
    width: 2.55rem;
    height: 2.55rem;
  }

  .hero-grid {
    padding-top: 2rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  .glass-card,
  .panel-card,
  .gateway-card,
  .page-hero-card {
    padding: 1.15rem;
  }

  .profile-hero,
  .profile-summary-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-language-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-language-toggle button {
    min-width: 0;
  }

  .queue-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .action-row,
  .show-card-actions,
  .cta-row,
  .plans-note {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row > * ,
  .show-card-actions > * ,
  .cta-row > *,
  .plans-note > * {
    width: 100%;
  }

  .plans-hero {
    padding-top: 2rem;
  }

  .plans-page .container {
    width: min(100vw - 2rem, 100%);
  }

  .plans-page h1 {
    font-size: 2.45rem;
  }

  .plans-hero__copy .cta-row {
    width: 100%;
  }

  .plan-card__top {
    align-items: flex-start;
  }

  .card-grid--shows {
    grid-template-columns: 1fr;
  }

  .show-card--dashboard .show-card-actions {
    grid-template-columns: 1fr;
  }

  .show-card-mode--inline {
    flex-direction: column;
    align-items: flex-start;
  }

}
