@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

:root {
  --bg-0: #f7f6f3;
  --bg-1: #ebe8e0;
  --ink: #121620;
  --muted: #566075;
  --surface: #ffffff;
  --line: #d7dce5;
  --line-strong: #b8c0cf;
  --primary: #1447e6;
  --primary-2: #3a63e8;
  --accent: #0c7c59;
  --danger: #a52019;
  --ok: #0f7c4e;
  --shadow: 0 14px 40px rgba(18, 22, 32, 0.1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 8%, rgba(20, 71, 230, 0.15), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(12, 124, 89, 0.16), transparent 34%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  min-height: 100vh;
  line-height: 1.5;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 18px 48px;
  animation: fade-up 320ms ease-out;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-top: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(20, 71, 230, 0.07), rgba(12, 124, 89, 0.06)),
    var(--surface);
  border-color: var(--line-strong);
}

.page-hero > .bar {
  position: relative;
  z-index: 2;
}

.bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

h1 {
  font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2rem);
}

h2 {
  font-size: clamp(1.08rem, 0.96rem + 0.45vw, 1.34rem);
  margin-bottom: 6px;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 8px 0 0;
}

a {
  color: #194bcf;
  text-underline-offset: 2px;
}

.muted {
  color: var(--muted);
  margin: 7px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 700;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  line-height: inherit;
  cursor: pointer;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 71, 230, 0.28);
  filter: saturate(1.05);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.btn.is-busy::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  animation: spin 0.7s linear infinite;
}

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(20, 71, 230, 0.25);
  outline-offset: 1px;
}

.btn.alt,
.btn.secondary {
  background: linear-gradient(140deg, #1f8f68, #0c7c59);
}

.btn.ghost,
.btn.danger {
  background: linear-gradient(140deg, #c13c33, #a52019);
}

.btn.linklike {
  color: #194bcf;
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
  font-weight: 600;
  transform: none;
}

.btn.linklike.danger {
  color: #c13c33;
  background: transparent;
}

.btn.linklike:hover {
  box-shadow: none;
  border-color: var(--line-strong);
  background: #f4f7ff;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.94rem;
}

.field {
  margin-bottom: 12px;
}

.alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  display: none;
  white-space: pre-wrap;
}

.alert.show {
  display: block;
}

.alert.err {
  background: #fbeceb;
  border: 1px solid #f0b9b5;
  color: var(--danger);
}

.alert.ok {
  background: #e8f7ef;
  border: 1px solid #b7e1ca;
  color: var(--ok);
}

.alert:not(.ok):not(.err) {
  background: #e9f0ff;
  border: 1px solid #b8c9f5;
  color: #1f3b88;
}

ul.clean {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

li.card {
  border: 1px solid var(--line);
  background: #f9fbff;
  border-radius: 10px;
  padding: 10px 12px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.logo-upload-row {
  align-items: center;
  gap: 12px;
}

.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-picker-btn {
  border-color: #0f5a44;
  background: linear-gradient(145deg, #116e52, #0c7c59);
  min-width: 172px;
}

.file-picker-btn:hover {
  box-shadow: 0 8px 24px rgba(12, 124, 89, 0.28);
}

.file-name-chip {
  min-height: 42px;
  min-width: 190px;
  max-width: 340px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px dashed #bcc7db;
  background: #f8faff;
  color: #566075;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name-chip.has-file {
  border-style: solid;
  border-color: #9cb3e9;
  background: #eef3ff;
  color: #1f3b88;
  font-weight: 600;
}

.meta-strip {
  display: none;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  background: #f8faff;
  color: #27324a;
}

.auth-shell {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(580px, 100%);
}

.errorlist {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--danger);
  font-size: 0.9rem;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0 4px;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 120ms ease;
}

.lang-btn:hover {
  color: var(--primary-2);
  text-decoration: underline;
}

.lang-current {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.inline-form {
  display: inline;
}

.m-0 {
  margin: 0;
}

.mt-6 {
  margin-top: 6px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.is-hidden {
  display: none;
}

.row-wrap-stretch {
  flex-wrap: wrap;
  align-items: stretch;
}

.plan-card {
  flex: 1 1 240px;
  margin: 0;
  box-shadow: none;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.checkbox-row input {
  width: auto;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #b5c6ef;
  background:
    linear-gradient(130deg, rgba(255, 248, 233, 0.92), rgba(233, 245, 255, 0.95)),
    #ffffff;
}

.landing-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}


.landing-lead {
  margin-top: 12px;
  max-width: 58ch;
  color: #2d3a55;
  font-size: 1.02rem;
}

.landing-cta-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.outline {
  border: 1px solid #aebee6;
  background: #f4f8ff;
  color: #163da4;
}

.outline:hover {
  box-shadow: 0 8px 24px rgba(22, 61, 164, 0.2);
}

.landing-microcopy {
  margin-top: 12px;
  color: #5a6885;
  font-size: 0.92rem;
}

.landing-preview-card {
  background: #101727;
  color: #dce8ff;
  border-radius: 14px;
  border: 1px solid #20304f;
  box-shadow: 0 18px 36px rgba(11, 19, 35, 0.3);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.landing-terminal-head {
  display: flex;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid #22365f;
}

.landing-terminal-head span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.landing-terminal-head span:nth-child(1) {
  background: #ff6f61;
}

.landing-terminal-head span:nth-child(2) {
  background: #f2c14b;
}

.landing-terminal-head span:nth-child(3) {
  background: #46c089;
}

.landing-terminal-body {
  padding: 14px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.95rem;
  display: grid;
  gap: 10px;
}

.landing-terminal-body p {
  margin: 0;
}

.terminal-ok {
  color: #5de29e;
  font-weight: 700;
}

.landing-benefits h2 {
  margin-bottom: 14px;
}

.landing-flow {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.95), rgba(247, 251, 255, 0.95)),
    #ffffff;
  border-color: #c9d8f2;
}


.landing-flow-title {
  margin-top: 8px;
}

.landing-flow-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-flow-card {
  border: 1px solid #cedbf2;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 23, 39, 0.05);
}

.landing-flow-step {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  color: #1747b3;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.landing-flow-card h3 {
  margin-top: 6px;
  font-size: 1.05rem;
}

.landing-flow-card p {
  color: #3a4662;
}

.landing-proof {
  background:
    linear-gradient(170deg, rgba(250, 245, 232, 0.82), rgba(241, 248, 255, 0.88)),
    #ffffff;
  border-color: #c6d5f2;
}


.landing-logo-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.landing-logo-pill {
  border: 1px solid #c8d4eb;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  min-height: 38px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.82rem;
  color: #334265;
}

.landing-testimonial-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-testimonial-card {
  margin: 0;
  border: 1px solid #cfdaef;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.landing-testimonial-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f2994a, #3367d6);
}

.landing-testimonial-card p {
  margin: 0;
  color: #2f3950;
}

.landing-testimonial-card cite {
  margin-top: 10px;
  display: block;
  font-style: normal;
  color: #5d6782;
  font-size: 0.9rem;
}

.landing-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-benefit-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
}

.landing-benefit-card h3 {
  margin-bottom: 4px;
}

.landing-benefit-card p {
  margin: 0;
  color: #3f4b64;
}

.landing-final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 170, 81, 0.22), transparent 32%),
    radial-gradient(circle at 80% 85%, rgba(51, 103, 214, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(247, 251, 255, 0.98), rgba(255, 250, 241, 0.96));
  border-color: #c1d2f0;
  padding: 24px;
}

.landing-final-cta h2 {
  margin-bottom: 8px;
}

.landing-final-cta p {
  margin: 0 auto;
  max-width: 62ch;
  color: #34425e;
}

.landing-final-cta .landing-cta-row {
  justify-content: center;
  margin-top: 16px;
}

.landing-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8px);
}

.landing-orb-left {
  width: 260px;
  height: 260px;
  left: -80px;
  top: -90px;
  background: radial-gradient(circle, rgba(255, 164, 64, 0.3), rgba(255, 164, 64, 0));
}

.landing-orb-right {
  width: 220px;
  height: 220px;
  right: -50px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(20, 71, 230, 0.25), rgba(20, 71, 230, 0));
}

.landing-hero,
.landing-flow,
.landing-proof,
.landing-benefits,
.landing-final-cta {
  animation: fade-up 420ms ease-out both;
}

.landing-flow {
  animation-delay: 60ms;
}

.landing-proof {
  animation-delay: 120ms;
}

.landing-benefits {
  animation-delay: 200ms;
}

.landing-final-cta {
  animation-delay: 260ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .row {
    flex-direction: column;
  }

  .landing-hero {
    padding: 20px;
  }

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

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

  .landing-flow-grid {
    grid-template-columns: 1fr;
  }

  .landing-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .landing-benefit-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .page-actions,
  .section-head {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Shared landing-style chrome ───────────────────────────── */

.brand-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 246, 243, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(20, 71, 230, 0.3);
  flex-shrink: 0;
}

.brand-name {
  line-height: 1.2;
}

.brand-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.brand-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}

.brand-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.brand-links .brand-cta {
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 8px 14px;
  border-radius: 9px;
  border: none;
  box-shadow: 0 6px 18px rgba(20, 71, 230, 0.22);
}

.brand-links .brand-cta:hover {
  border-bottom-color: transparent;
  color: #fff;
  filter: saturate(1.05);
}

.brand-link-btn {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}

.brand-link-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.5);
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: #194bcf;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(18, 22, 32, 0.12);
  padding: 12px 16px;
}

.cookie-consent-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cookie-consent-inner p {
  margin: 0;
  color: #27324a;
  flex: 1 1 560px;
}

.cookie-consent-inner p a {
  margin-left: 6px;
  font-weight: 600;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Auth split layout ──────────────────────────────────────── */

.auth-split {
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  place-items: stretch;
}

.auth-split .auth-card {
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.auth-aside {
  position: relative;
  overflow: hidden;
  border-color: #b5c6ef;
  background:
    linear-gradient(150deg, rgba(255, 248, 233, 0.95), rgba(233, 245, 255, 0.96)),
    #ffffff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-aside h2 {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  margin: 6px 0 12px;
  position: relative;
  z-index: 2;
}

.auth-aside p,
.auth-aside ul {
  position: relative;
  z-index: 2;
}

.auth-aside-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.auth-aside-list li {
  padding-left: 22px;
  position: relative;
  color: #2d3a55;
  font-weight: 500;
}

.auth-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f2994a, #1447e6);
}

/* Plan-card refresh on billing page ──────────────────────── */

.plan-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #cedbf2;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(16, 23, 39, 0.05);
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #f2994a, #3367d6);
  opacity: 0.85;
}

.plan-card h3 {
  margin-top: 4px;
}

/* Animation cascade for inner pages ──────────────────────── */

.shell > .panel {
  animation: fade-up 360ms ease-out both;
}

.shell > .panel:nth-of-type(2) { animation-delay: 60ms; }
.shell > .panel:nth-of-type(3) { animation-delay: 120ms; }
.shell > .panel:nth-of-type(4) { animation-delay: 180ms; }

@media (max-width: 760px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .brand-nav-inner {
    padding: 10px 14px;
  }

  .brand-links {
    gap: 10px;
  }

  .cookie-consent-actions {
    width: 100%;
  }
}

/* ── Landing: editorial dark theme ─────────────────────────── */
body:has(.landing-page) {
  background: #0a0a0c;
  color: #e8e8ea;
}

body:has(.landing-page) .brand-nav {
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(140%) blur(14px);
}

body:has(.landing-page) .brand-name,
body:has(.landing-page) .brand-links a {
  color: #e8e8ea;
}

body:has(.landing-page) .brand-link-btn {
  color: #e8e8ea;
}

body:has(.landing-page) .lang-btn {
  color: #e8e8ea;
}

body:has(.landing-page) .lang-current {
  color: #e8e8ea;
}

body:has(.landing-page) .brand-cta {
  background: #ffffff;
  color: #0a0a0c;
  border-color: transparent;
}

body:has(.landing-page) .site-footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8a8c95;
}

body:has(.landing-page) .site-footer a,
body:has(.landing-page) .site-footer .muted {
  color: #8a8c95;
}

.landing-page {
  --ed-bg: #0a0a0c;
  --ed-surface: #111114;
  --ed-surface-2: #16161b;
  --ed-line: rgba(255, 255, 255, 0.08);
  --ed-line-strong: rgba(255, 255, 255, 0.14);
  --ed-ink: #f3f3f5;
  --ed-muted: #8a8c95;
  position: relative;
}

.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(120, 119, 198, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(180deg, #0a0a0c 0%, #0a0a0c 100%);
}

.landing-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}

.landing-page > * {
  position: relative;
  z-index: 1;
}

/* Panels: thin borders, soft surfaces, larger radii */
.landing-page .panel {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
  margin-top: 22px;
  padding: 28px;
  color: var(--ed-ink);
}

/* Hero */
.landing-page .landing-hero {
  border: 1px solid var(--ed-line);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(120, 119, 198, 0.18), transparent 60%),
    linear-gradient(180deg, #101015, #0d0d11);
  padding: 56px 40px;
  overflow: hidden;
}

.landing-page .landing-orb {
  display: none;
}

.landing-page .landing-hero-grid {
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}

.landing-page h1 {
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.landing-page .landing-headline {
  background: linear-gradient(180deg, #ffffff 0%, #b8b8c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.landing-page .landing-lead {
  margin-top: 22px;
  color: #b4b6bf;
  font-size: 1.18rem;
  max-width: 46ch;
  line-height: 1.5;
}

.landing-page .landing-cta-row {
  margin-top: 30px;
  gap: 12px;
}

.landing-page .landing-microcopy {
  margin-top: 16px;
  color: #6f7280;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

/* Buttons in the dark scope */
.landing-page .btn {
  background: #ffffff;
  color: #0a0a0c;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -12px rgba(255, 255, 255, 0.25);
}

.landing-page .landing-cta-row .btn:not(.outline),
.landing-page .landing-cta-row .btn:not(.outline):link,
.landing-page .landing-cta-row .btn:not(.outline):visited,
.landing-page .landing-cta-row .btn:not(.outline):hover,
.landing-page .landing-cta-row .btn:not(.outline):focus-visible {
  color: #0a0a0c;
}

.landing-page .btn > span {
  color: #0a0a0c;
  position: relative;
  z-index: 1;
}

.landing-page .btn:hover {
  color: #0a0a0c;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 36px -10px rgba(255, 255, 255, 0.35);
  filter: none;
}

.landing-page .btn.outline {
  background: transparent;
  color: #f3f3f5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.landing-page .btn.outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Preview card — minimal, monochrome */
.landing-page .landing-preview-card {
  background: #0d0d11;
  border: 1px solid var(--ed-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color: #d6d7df;
}

.landing-page .landing-terminal-head {
  border-bottom: 1px solid var(--ed-line);
  padding: 14px 18px;
}

.landing-page .landing-terminal-head span {
  width: 8px;
  height: 8px;
}

.landing-page .landing-terminal-head span:nth-child(1) {
  background: #ff5f57 !important;
}

.landing-page .landing-terminal-head span:nth-child(2) {
  background: #febc2e !important;
}

.landing-page .landing-terminal-head span:nth-child(3) {
  background: #28c840 !important;
}

.landing-page .landing-terminal-body {
  padding: 22px;
  font-size: 0.95rem;
  gap: 14px;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

.landing-page .landing-terminal-body p {
  color: #c4c6cf;
}

.landing-page .landing-terminal-body strong {
  color: #6f7280;
  margin-right: 6px;
}

.landing-page .terminal-ok {
  color: #a8e6c0;
  font-weight: 500;
}

/* Section headlines */
.landing-page h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  letter-spacing: -0.035em;
  font-weight: 600;
  color: #f3f3f5;
}

/* Flow */
.landing-page .landing-flow,
.landing-page .landing-benefits {
  background: var(--ed-surface);
  border-color: var(--ed-line);
}

.landing-page .landing-flow-title {
  margin-bottom: 24px;
}

.landing-page .landing-flow-grid,
.landing-page .landing-benefit-grid {
  margin-top: 28px;
  gap: 16px;
}

.landing-page .landing-flow-card,
.landing-page .landing-benefit-card {
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: none;
  transition: border-color 200ms ease, transform 200ms ease;
}

.landing-page .landing-flow-card:hover,
.landing-page .landing-benefit-card:hover {
  border-color: var(--ed-line-strong);
  transform: translateY(-2px);
}

.landing-page .landing-flow-card h3,
.landing-page .landing-benefit-card h3 {
  color: #f3f3f5;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.landing-page .landing-flow-card p,
.landing-page .landing-benefit-card p {
  color: #9a9ca6;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Final CTA — luminous focal point */
.landing-page .landing-final-cta {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(120, 119, 198, 0.22), transparent 60%),
    linear-gradient(180deg, #101015, #0c0c10);
  border-color: var(--ed-line);
  padding: 64px 32px;
  text-align: center;
}

.landing-page .landing-final-cta h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  background: linear-gradient(180deg, #ffffff 0%, #b8b8c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-page .landing-final-cta p {
  color: #9a9ca6;
  margin-top: 14px;
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .landing-page .landing-hero {
    padding: 36px 22px;
  }

  .landing-page .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-page .landing-terminal-body p {
    overflow-wrap: anywhere;
  }

  .landing-page .panel {
    padding: 22px;
  }

  .landing-page .landing-final-cta {
    padding: 44px 22px;
  }
}

/* ── Landing: further polish ───────────────────────────────── */

/* Eyebrow chip */
.landing-page .landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #b4b6bf;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.landing-page .landing-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6de2a4;
  box-shadow: 0 0 0 4px rgba(109, 226, 164, 0.15);
  animation: landing-pulse 2.4s ease-in-out infinite;
}

@keyframes landing-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(109, 226, 164, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(109, 226, 164, 0.04); }
}

/* Headline: staggered word reveal */
.landing-page .landing-headline {
  display: block;
}

.landing-page .landing-word {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #b8b8c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(14px);
  animation: landing-word-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.landing-page .landing-word:nth-child(1) { animation-delay: 80ms; }
.landing-page .landing-word:nth-child(2) {
  animation-delay: 220ms;
  background: linear-gradient(180deg, #ffffff 0%, #a9a9bb 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.landing-page .landing-word:nth-child(3) {
  animation-delay: 360ms;
  background: linear-gradient(180deg, #ffffff 0%, #9596ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes landing-word-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Primary CTA: arrow + shimmer sweep */
.landing-page .btn {
  position: relative;
  overflow: hidden;
  gap: 8px;
}

.landing-page .btn .btn-arrow {
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  display: inline-block;
  font-size: 1.2em;
  line-height: 1;
  font-weight: 500;
  color: #0a0a0c;
  position: relative;
  z-index: 1;
  transform: translateY(-1px);
}

.landing-page .btn:hover .btn-arrow {
  transform: translate(4px, -1px);
}

.landing-page .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.landing-page .btn:hover::after {
  transform: translateX(120%);
}

.landing-page .btn.outline::after { display: none; }

/* Terminal caret */
.landing-page .terminal-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 6px;
  vertical-align: -2px;
  background: #a8e6c0;
  border-radius: 1px;
  animation: landing-blink 1.1s ease-in-out infinite;
}

@keyframes landing-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Flow cards: step numerals + spotlight hover */
.landing-page .landing-flow-card {
  position: relative;
  overflow: hidden;
}

.landing-page .landing-flow-card::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #5a5c66;
}

.landing-page .landing-flow-card::after,
.landing-page .landing-benefit-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(180, 180, 220, 0.35), transparent 40%, transparent 60%, rgba(180, 180, 220, 0.2));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.landing-page .landing-flow-card:hover::after,
.landing-page .landing-benefit-card:hover::after {
  opacity: 1;
}

/* Section spacing rhythm */
.landing-page .panel + .panel {
  margin-top: 28px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .landing-page .landing-word,
  .landing-page .landing-dot,
  .landing-page .terminal-caret,
  .landing-page .btn::after {
    animation: none !important;
    transition: none !important;
  }
  .landing-page .landing-word { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL: editorial dark theme for every page
   Appended last so it wins on cascade order.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-0: #0a0a0c;
  --bg-1: #0a0a0c;
  --ink: #f3f3f5;
  --muted: #8a8c95;
  --surface: #111114;
  --surface-2: #16161b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --primary: #ffffff;
  --primary-2: #e7e7ea;
  --accent: #a8e6c0;
  --danger: #f08a8a;
  --ok: #6de2a4;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --radius: 18px;
}

body {
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(120, 119, 198, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(255, 255, 255, 0.035), transparent 55%),
    #0a0a0c;
  color: var(--ink);
}

a:not(.btn) {
  color: #d8d9e3;
}

a:not(.btn):hover {
  color: #ffffff;
}

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

/* Decorative orbs from old light theme — hide on dark */
.landing-orb {
  display: none !important;
}

/* Panels & hero ──────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  padding: 22px;
}

.page-hero {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(120, 119, 198, 0.18), transparent 60%),
    linear-gradient(180deg, #101015, #0d0d11);
  border-color: var(--line);
}

h1, h2, h3 {
  color: var(--ink);
}

/* Brand nav ──────────────────────────────────────────────── */
.brand-nav {
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(14px);
}

.brand-mark,
.brand-name,
.brand-links a,
.brand-link-btn {
  color: var(--ink);
}

.brand-logo {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

.brand-links a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.brand-links .brand-cta {
  background: #ffffff;
  color: #0a0a0c;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.12);
}

.brand-links .brand-cta:hover {
  color: #0a0a0c;
  filter: none;
}

.brand-link-btn {
  border: 1px solid var(--line-strong);
}

.brand-link-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer .muted,
.site-footer-links a {
  color: var(--muted);
}

.lang-btn {
  color: #3d7dd6;
}

.lang-current {
  color: #ffffff;
}

.site-footer-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Cookie banner ──────────────────────────────────────────── */
.cookie-consent-banner {
  background: rgba(15, 15, 19, 0.96);
  border-top: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}

.cookie-consent-inner p {
  color: #c4c6cf;
}

/* Buttons ────────────────────────────────────────────────── */
.btn {
  background: #ffffff;
  color: #0a0a0c;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 10px 30px -12px rgba(255, 255, 255, 0.2);
}

.btn:hover {
  color: #0a0a0c;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 14px 36px -10px rgba(255, 255, 255, 0.3);
  filter: none;
}

.btn.outline,
.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn.alt,
.btn.secondary {
  background: linear-gradient(140deg, #1f8f68, #0c7c59);
  color: #ffffff;
}

.btn.ghost,
.btn.danger {
  background: linear-gradient(140deg, #c13c33, #8a1a14);
  color: #ffffff;
  border: none;
}

.btn.linklike {
  background: transparent;
  color: #c4c6cf;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  font-weight: 600;
}

.btn.linklike:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.btn.linklike.danger {
  color: #f08a8a;
  background: transparent;
  border: 1px solid rgba(240, 138, 138, 0.3);
}

.btn.linklike.danger:hover {
  background: rgba(240, 138, 138, 0.08);
  color: #ffb0b0;
}

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

/* Forms ──────────────────────────────────────────────────── */
input,
textarea,
select {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 13px;
}

input::placeholder,
textarea::placeholder {
  color: #5a5c66;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--line-strong);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: #1a1a21;
}

label {
  color: #c4c6cf;
}

.field {
  margin-bottom: 14px;
}

/* Alerts ─────────────────────────────────────────────────── */
.alert.err {
  background: rgba(240, 138, 138, 0.08);
  border: 1px solid rgba(240, 138, 138, 0.3);
  color: #ffb0b0;
}

.alert.ok {
  background: rgba(109, 226, 164, 0.08);
  border: 1px solid rgba(109, 226, 164, 0.3);
  color: #a8e6c0;
}

.alert:not(.ok):not(.err) {
  background: rgba(180, 180, 220, 0.06);
  border: 1px solid rgba(180, 180, 220, 0.18);
  color: #c4c6cf;
}

.errorlist {
  color: #f08a8a;
}

/* Cards inside panels ────────────────────────────────────── */
li.card,
.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

ul.clean li.card:hover {
  border-color: var(--line-strong);
}

/* Auth split ─────────────────────────────────────────────── */
.auth-aside {
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(120, 119, 198, 0.18), transparent 60%),
    linear-gradient(180deg, #101015, #0d0d11);
  border-color: var(--line);
  color: var(--ink);
}

.auth-aside h2 {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #b8b8c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.025em;
}

.auth-aside p,
.auth-aside ul {
  color: #b4b6bf;
}

.auth-aside-list li {
  color: #c4c6cf;
}

.auth-aside-list li::before {
  background: linear-gradient(135deg, #ffffff, #8a8c95);
  border-radius: 3px;
}

/* Plan card refresh in dark ──────────────────────────────── */
.plan-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: none;
}

.plan-card::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.05));
}

/* File picker chip ──────────────────────────────────────── */
.file-name-chip {
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: #c4c6cf;
}

/* Misc inputs row backgrounds (.row backgrounds in light theme) */
.row-wrap-stretch > .panel,
.row > .panel {
  background: var(--surface);
}

/* terminal head dots: keep colorful on home only; others (none) */

/* Reduce motion respect (global already handled in landing block) */

/* ═══════════════════════════════════════════════════════════
   Layout primitives for dashboard + billing workflows
   ═══════════════════════════════════════════════════════════ */

/* Section header inside a panel */
.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
}

.section-head p.muted {
  margin-top: 6px;
}

/* Generic input + button row */
.form-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.form-row > input,
.form-row > select,
.form-row > textarea {
  flex: 1 1 240px;
  min-width: 0;
  width: auto;
}

.form-row > .btn,
.form-row > label.btn {
  flex: 0 0 auto;
  align-self: stretch;
}

.form-row-wrap {
  align-items: center;
}

.form-row-wrap > .file-name-chip {
  flex: 1 1 200px;
  min-height: 44px;
}

/* Sub-sections inside a panel (Iterate / Configure flow) */
.subsection {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.subsection:first-of-type {
  padding-top: 4px;
  border-top: 0;
}

.subsection > h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.subsection > p.muted {
  margin: 0 0 16px;
}

.subsection-primary {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px;
  margin-top: 18px;
}

.subsection-primary > h3 {
  font-size: 1.15rem;
}

/* Actions row — always follows form fields, never touches them */
.actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

form.actions {
  margin-top: 18px;
}

/* Secret rows inside #secrets-list */
#secrets-list {
  display: grid;
  gap: 10px;
}

#secrets-list .secret-row > input {
  flex: 1 1 180px;
}

/* Tracked sessions list */
.session-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px !important;
}

.session-link {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.session-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.session-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.session-actions .btn {
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* ── Billing layout ──────────────────────────────────────── */

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 0;
}

.usage-grid > li.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
}

.usage-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.usage-value {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.usage-cap {
  font-size: 0.88rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}

.plan-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
  opacity: 0.5;
}

.plan-card-current {
  border-color: rgba(168, 230, 192, 0.4);
}

.plan-card-current::before {
  background: linear-gradient(90deg, #a8e6c0, rgba(168, 230, 192, 0.1));
  opacity: 1;
}

.plan-card-head h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.plan-card-head p.muted {
  margin: 6px 0 0;
  min-height: 2.6em;
}

.plan-price {
  margin: 14px 0 0;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.plan-price strong {
  font-size: 1.9rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.plan-features {
  margin: 18px 0 0;
  flex: 1;
}

.plan-features > li.card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  padding: 9px 12px;
  font-size: 0.92rem;
  color: #c4c6cf;
}

.plan-card-foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: stretch;
}

.plan-card-foot form {
  width: 100%;
}

.plan-card-foot .btn {
  width: 100%;
  justify-content: center;
}

.plan-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  background: rgba(168, 230, 192, 0.08);
  border: 1px solid rgba(168, 230, 192, 0.3);
  color: #a8e6c0;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Field grid — pairs of input fields side-by-side */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.field-grid .field {
  margin-bottom: 0;
}

/* Checkbox row tightened */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  font-weight: 500;
  color: #c4c6cf;
  cursor: pointer;
}

.checkbox-row > input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

/* page-actions spacing in the page-hero bar */
.page-hero .page-actions {
  gap: 8px;
}

/* Meta-strip beneath the crawl input */
.meta-strip {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #c4c6cf;
  display: none;
}

.meta-strip strong {
  color: var(--ink);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 640px) {
  .form-row > .btn,
  .form-row > label.btn {
    width: 100%;
  }

  .session-card {
    flex-direction: column;
    align-items: stretch;
  }

  .session-actions {
    justify-content: flex-end;
  }
}
