:root {
  color-scheme: light;
  --ink: #15202a;
  --muted: #5d6872;
  --paper: #f7f9f7;
  --panel: #ffffff;
  --line: #d7e0e0;
  --deep: #06131e;
  --cyan: #02aeea;
  --cyan-soft: #c7ecf7;
  --green: #7ab79a;
  --amber: #c77a3e;
  --coral: #cf5c4a;
  --shadow: 0 22px 70px rgba(15, 30, 42, 0.16);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

.content-error-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 20px;
  color: #ffffff;
  background: #9c2f24;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  color: #e9fbff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 174, 234, 0.28);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: rgba(233, 251, 255, 0.82);
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-left: auto;
}

.support-trigger {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin-top: 6px;
  border: 1px solid rgba(233, 251, 255, 0.48);
  border-radius: 50%;
  color: #e9fbff;
  background: rgba(4, 14, 22, 0.46);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 32px rgba(4, 14, 22, 0.24);
}

.support-trigger:hover {
  color: #06131e;
  background: rgba(233, 251, 255, 0.94);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 174px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #05080b;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 42px rgba(4, 14, 22, 0.24);
}

.store-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.store-cta-note {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(2, 174, 234, 0.28);
  border-radius: 6px;
  color: #073242;
  background:
    linear-gradient(180deg, #ffffff, #d6f4fb);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(4, 14, 22, 0.16);
}

.app-store-badge:hover {
  transform: translateY(-1px);
}

.app-store-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.app-store-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.app-store-badge small,
.app-store-badge strong {
  display: block;
  line-height: 1;
}

.app-store-badge small {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.62rem;
  font-weight: 700;
}

.app-store-badge strong {
  font-size: 1.16rem;
  letter-spacing: 0;
}

.header-store-badge {
  flex: 0 0 auto;
  width: 188px;
  min-height: 58px;
  padding: 9px 14px;
  border-color: rgba(233, 251, 255, 0.32);
  border-radius: 10px;
}

.header-store-cta {
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
}

.header-store-cta .store-cta-note {
  position: relative;
  z-index: 1;
  min-height: 24px;
  margin: 0 0 -3px;
  padding: 4px 13px;
  border-color: rgba(233, 251, 255, 0.58);
  border-radius: 8px 8px 5px 5px;
  color: #07141c;
  font-size: 0.68rem;
}

.header-store-badge:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  padding: 128px max(20px, calc((100vw - 1180px) / 2)) 56px;
  color: #f3fcff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 14, 22, 0.94) 0%, rgba(4, 14, 22, 0.68) 42%, rgba(4, 14, 22, 0.18) 100%),
    linear-gradient(0deg, rgba(4, 14, 22, 0.96) 0%, rgba(4, 14, 22, 0) 40%),
    url("assets/cyanea-hero.png") center center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber), var(--coral));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.8rem, 12vw, 9rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: clamp(1.22rem, 2.4vw, 1.8rem);
  line-height: 1.25;
  color: rgba(243, 252, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
}

.button.primary {
  color: #06131e;
  background: #e9fbff;
  border-color: #e9fbff;
}

.button.secondary {
  color: #e9fbff;
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 720px;
  margin: 0;
  border-top: 1px solid rgba(233, 251, 255, 0.2);
  border-bottom: 1px solid rgba(233, 251, 255, 0.2);
  background: rgba(233, 251, 255, 0.18);
}

.hero-stats div {
  padding: 16px 18px;
  background: rgba(4, 14, 22, 0.52);
}

.hero-stats dt {
  margin-bottom: 6px;
  color: rgba(233, 251, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0;
  color: #ffffff;
  font-size: 0.98rem;
}

section:not(.hero) {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  padding: 72px 0 54px;
}

.intro .section-kicker,
.features .section-kicker,
.status .section-kicker,
.interface .section-kicker,
.help .section-kicker,
.support-card .section-kicker {
  color: var(--amber);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: 52px;
  align-items: start;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro p,
.interface-copy p,
.status-list p,
.feature-grid p,
.support-card > p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.intro p {
  margin-bottom: 0;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.interface {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1.18fr);
  gap: 42px;
  align-items: center;
  padding: 48px 0 34px;
}

.interface-copy {
  max-width: 470px;
}

.interface-copy .store-cta {
  margin-top: 24px;
}

.app-preview {
  overflow: hidden;
  border: 1px solid #cad8d8;
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow);
}

.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #17212a;
  color: rgba(255, 255, 255, 0.62);
}

.preview-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-titlebar span:nth-child(1) {
  background: var(--coral);
}

.preview-titlebar span:nth-child(2) {
  background: var(--amber);
}

.preview-titlebar span:nth-child(3) {
  background: var(--green);
}

.preview-titlebar strong {
  margin-left: auto;
  font-size: 0.78rem;
}

.preview-body {
  display: grid;
  grid-template-columns: 160px 112px minmax(0, 1fr);
  min-height: 390px;
}

.preview-rail,
.preview-filmstrip {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #121b23;
}

.preview-rail {
  padding: 12px;
}

.preview-rail div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 8px 9px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.folder-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 11px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.folder-icon::before {
  position: absolute;
  top: -4px;
  left: 1px;
  width: 7px;
  height: 5px;
  border-radius: 2px 2px 0 0;
  background: inherit;
  content: "";
}

.preview-rail .selected {
  color: #ffffff;
  background: rgba(2, 174, 234, 0.22);
  outline: 1px solid rgba(2, 174, 234, 0.4);
}

.preview-rail .selected .folder-icon {
  background: #91d7f4;
}

.preview-filmstrip {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.preview-filmstrip div {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(199, 122, 62, 0.62), rgba(2, 174, 234, 0.18)),
    #1f2c35;
}

.preview-filmstrip .selected {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.preview-image {
  display: grid;
  place-items: end start;
  min-height: 390px;
  padding: 24px;
  color: #eefbff;
  background:
    linear-gradient(145deg, rgba(2, 174, 234, 0.2), rgba(207, 92, 74, 0.15)),
    linear-gradient(45deg, #0b1218 25%, #101c25 25%, #101c25 50%, #0b1218 50%, #0b1218 75%, #101c25 75%);
  background-size: auto, 28px 28px;
}

.preview-image span {
  padding: 8px 0 0;
  border-top: 2px solid var(--cyan);
  color: rgba(238, 251, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.features {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 50px;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading h2 {
  grid-column: 2;
}

.section-heading .section-kicker {
  grid-column: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid article:nth-child(2) {
  border-top-color: var(--cyan);
}

.feature-grid article:nth-child(3) {
  border-top-color: var(--green);
}

.feature-grid article:nth-child(4) {
  border-top-color: var(--coral);
}

.help {
  padding: 34px 0 82px;
  border-top: 1px solid var(--line);
}

.help-panel {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(199, 216, 216, 0.22);
  border-radius: 8px;
  color: rgba(238, 251, 255, 0.84);
  background:
    linear-gradient(135deg, rgba(2, 174, 234, 0.12), rgba(207, 92, 74, 0.08)),
    #101820;
  box-shadow: var(--shadow);
}

.help-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 44px;
}

.help-intro img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(2, 174, 234, 0.25);
}

.help h2 {
  margin-bottom: 10px;
  color: #f3fcff;
}

.help-intro p:last-child,
.help-note {
  color: rgba(238, 251, 255, 0.62);
  font-size: 1.12rem;
  line-height: 1.5;
}

.help-sections {
  display: grid;
  gap: 30px;
}

.help-group {
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.help-group h3 {
  color: #f3fcff;
  font-size: 1.34rem;
}

.help-group dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.help-group dl div {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
}

.help-group dt,
.help-group dd {
  margin: 0;
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.96rem;
  font-weight: 800;
  color: #f3fcff;
}

.help-group dd {
  color: rgba(238, 251, 255, 0.68);
  font-size: 1.02rem;
  line-height: 1.45;
}

.help-note {
  max-width: 900px;
  margin: 36px 0 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.08rem;
}

.status {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
  gap: 54px;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.status-list {
  padding-top: 6px;
}

.support-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.support-form label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.support-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b8c8c8;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-form .button.secondary {
  color: var(--ink);
  border-color: #b8c8c8;
  background: #ffffff;
}

.support-status {
  min-height: 1.35em;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: #0d6e8f;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.interest-popover,
.support-popover {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.interest-backdrop,
.support-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 14, 22, 0.58);
  cursor: pointer;
}

.interest-popover .interest-card,
.support-popover .support-card {
  position: relative;
  width: min(440px, 100%);
  margin: 0;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(233, 251, 255, 0.92), #ffffff 46%),
    #ffffff;
  box-shadow: 0 28px 90px rgba(4, 14, 22, 0.38);
}

.interest-card::before,
.support-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--cyan) 0 24%, var(--green) 24% 48%, var(--amber) 48% 72%, var(--coral) 72% 100%);
  content: "";
}

.interest-card::after,
.support-card::after {
  position: absolute;
  top: 20px;
  right: 64px;
  width: 110px;
  height: 26px;
  background:
    linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 17px, var(--amber) 17px 25px, transparent 25px 36px, var(--green) 36px 46px, transparent 46px 58px, var(--coral) 58px 68px, transparent 68px 100%);
  opacity: 0.42;
  transform: rotate(-7deg);
  content: "";
  pointer-events: none;
}

.interest-close,
.support-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #b8c8c8;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.interest-card h2,
.support-card h2 {
  max-width: 340px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 0.98;
}

.support-card h2 {
  font-size: clamp(1.86rem, 7vw, 2.85rem);
}

.interest-card > p,
.support-card > p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 750;
}

.interest-form {
  display: grid;
  gap: 10px;
}

.interest-form label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interest-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.interest-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b8c8c8;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.interest-form input:focus,
.interest-close:focus-visible,
.support-form input:focus,
.support-close:focus-visible,
.app-store-badge:focus-visible,
.support-trigger:focus-visible {
  outline: 3px solid rgba(2, 174, 234, 0.35);
  outline-offset: 3px;
}

.interest-status {
  min-height: 1.35em;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

body.interest-open,
body.support-open {
  overflow: hidden;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

footer a {
  color: inherit;
  text-underline-offset: 4px;
}

.admin-body {
  background: var(--paper);
}

.admin-page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.admin-brand {
  color: var(--ink);
}

.admin-shell {
  width: 100%;
  margin-top: 74px;
}

.admin-page h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
}

.admin-login,
.admin-panel,
.admin-section-editor {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(15, 30, 42, 0.08);
}

.admin-login label,
.admin-field-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.admin-login-row,
.admin-actions,
.admin-panel-heading,
.admin-section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-login-row {
  margin-top: 10px;
}

.admin-page input,
.admin-page textarea,
.admin-page select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b8c8c8;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.admin-page textarea {
  resize: vertical;
}

.admin-page select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    #ffffff;
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%,
    0 0;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
}

.admin-page .button.secondary {
  color: var(--ink);
  border-color: #b8c8c8;
  background: #ffffff;
}

.admin-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.admin-status.critical {
  color: #9c2f24;
  font-weight: 800;
}

.admin-editor {
  display: grid;
  gap: 18px;
}

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

.admin-wide {
  grid-column: 1 / -1;
}

.admin-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.admin-panel h3 {
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-help-builder {
  display: grid;
  gap: 16px;
}

.admin-section-heading {
  margin-bottom: 16px;
}

.admin-section-heading input {
  flex: 1 1 240px;
}

.admin-shortcut-rows {
  display: grid;
  gap: 12px;
}

.admin-repeaters {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-repeater-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dce5e5;
  border-radius: 8px;
  background: #f8fbfb;
}

.admin-repeater-row label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.admin-repeater-row .admin-wide {
  grid-column: 1 / -2;
}

.admin-shortcut-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.admin-license-form {
  display: grid;
  gap: 14px;
}

.admin-license-output {
  display: block;
  min-height: 54px;
  padding: 14px;
  border: 1px solid #dce5e5;
  border-radius: 8px;
  color: var(--ink);
  background: #f8fbfb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  nav {
    gap: 14px;
  }

  .header-store-badge {
    width: 174px;
  }

  .header-actions {
    gap: 10px;
  }

  .support-trigger {
    width: 36px;
    height: 36px;
  }

  .header-store-cta .store-cta-note {
    margin: 0 0 -3px;
  }

  .hero {
    min-height: 84svh;
    padding: 112px 20px 42px;
    background-position: 58% center;
  }

  .hero-stats,
  .intro-grid,
  .interface,
  .help-group,
  .section-heading,
  .status {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .section-heading .section-kicker {
    grid-column: auto;
  }

  .interface {
    padding-bottom: 32px;
  }

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

  .help-group dl div,
  .admin-repeater-row,
  .admin-shortcut-row {
    grid-template-columns: 1fr;
  }

  .admin-repeater-row .admin-wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  nav {
    display: none;
  }

  .header-store-badge {
    width: 146px;
    min-height: 46px;
    padding: 7px 10px;
  }

  .header-store-badge .app-store-icon {
    width: 24px;
    height: 24px;
  }

  .header-store-badge small {
    font-size: 0.56rem;
  }

  .header-store-badge strong {
    font-size: 1rem;
  }

  .store-cta-note {
    min-height: 20px;
    padding: 3px 7px;
    font-size: 0.62rem;
  }

  .header-store-cta .store-cta-note {
    margin: 0 0 -3px;
    padding: 3px 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .support-trigger {
    width: 34px;
    height: 34px;
    font-size: 0.94rem;
  }

  h1 {
    font-size: clamp(4.2rem, 23vw, 6rem);
  }

  .hero-lede {
    font-size: 1.16rem;
  }

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

  .hero-stats,
  .feature-grid,
  .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .interest-card,
  .support-card {
    padding: 30px 18px 20px;
  }

  .interest-form-row {
    grid-template-columns: 1fr;
  }

  .support-form-row {
    grid-template-columns: 1fr;
  }

  section:not(.hero),
  footer {
    width: min(100% - 28px, 1180px);
  }

  .preview-body {
    grid-template-columns: 124px 76px minmax(0, 1fr);
    min-height: 300px;
  }

  .preview-rail,
  .preview-filmstrip {
    padding: 8px;
  }

  .preview-rail div {
    gap: 7px;
    padding: 7px 6px;
    font-size: 0.68rem;
  }

  .folder-icon {
    width: 13px;
    height: 10px;
  }

  .preview-filmstrip {
    gap: 8px;
  }

  .preview-filmstrip div {
    min-height: 42px;
  }

  .preview-image {
    min-height: 300px;
    padding: 14px;
  }

  .help-intro {
    grid-template-columns: 1fr;
  }

  .admin-page {
    width: min(100% - 28px, 980px);
  }

  footer {
    flex-direction: column;
  }
}
