/* ==========================================================================
   qelvonixsolution — design system
   Studied-DNA build. Palette, type role, radius and macrostructure were
   measured from gumgum.com with getComputedStyle on 2026-10-23:
   ground #f9f9f9 · ink #09131d · mint #52deaa · pastel support surfaces ·
   8 / 12 / 16 / 32px radii · one grotesque family · type-first hero with a
   full-width media card beneath.
   ========================================================================== */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/Figtree-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 {
  /* surfaces */
  --paper: #f9f9f9;
  --white: #ffffff;
  --ink: #09131d;
  --ink-band: #09131d;
  --ink-2: #4e575e;
  --ink-3: #70777d;
  --mint: #c2f5e2;
  --sky: #cdeffa;
  --sand: #ffe8b3;
  --aqua: #a6e2f6;

  /* accent */
  --accent: #52deaa;
  --accent-hover: #02ce7c;
  --accent-deep: #007c5b;
  --accent-ink: #003424;
  --accent-soft: #e6faf2;
  --accent-mist: #f3fcf8;

  /* lines */
  --line: #e4e6e8;
  --line-2: #c9cccf;
  --line-soft: #eceef0;

  /* radius + depth */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow: 0 18px 48px rgba(9, 19, 29, 0.1);
  --shadow-soft: 0 8px 24px rgba(9, 19, 29, 0.06);

  /* type */
  --font-sans: 'Figtree', 'Segoe UI', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* brand mark inks, re-declared per surface */
  --brand-a: #09131d;
  --brand-b: #52deaa;
}

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

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-ink); }
button { font-family: inherit; }
svg { display: block; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }
.muted { color: var(--ink-3); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-6 { margin-bottom: 24px; }

.lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ---------- brand mark ---------- */
/* Self-drawn: an open bracket holding a solid chip — a frame and its content.
   Deliberately not the skeleton's square-with-notch or earlier builds' marks. */
.brand-mark {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
  flex: 0 0 22px;
}

.brand-mark::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 9px;
  height: 18px;
  border: 2px solid var(--brand-a);
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.brand-mark::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13px;
  height: 13px;
  background: var(--brand-b);
  border-radius: 3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__name em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent-deep);
}

/* ---------- buttons ---------- */
.btn,
.btn--primary,
.btn--accent,
.btn--ghost,
.btn--light,
.btn--onband,
.btn--dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--primary:hover { background: #151c23; color: #fff; }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--white); border-color: var(--ink); color: var(--ink); }

.btn--light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn--light:hover { border-color: var(--line-2); color: var(--ink); }

.btn--onband {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn--onband:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--dark:hover { background: #151c23; color: #fff; }

.band .btn--dark {
  background: transparent;
  color: var(--accent-ink);
  border-color: rgba(0, 52, 36, 0.35);
}
.band .btn--dark:hover { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); }

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.btn--block { width: 100%; }
.btn:disabled,
.btn--primary:disabled,
.btn--ghost:disabled { opacity: 0.55; cursor: not-allowed; }

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.linklike:hover { color: var(--accent); }

/* ---------- eyebrow / chips / tags / badges ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: #145366;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section--dark .eyebrow,
.hero--ink .eyebrow {
  background: rgba(82, 222, 170, 0.16);
  color: var(--accent);
}

.eyebrow--onphoto { background: var(--accent); color: var(--accent-ink); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 500;
}

.section--dark .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-mist);
  border: 1px solid var(--mint);
  color: #005940;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag--accent {
  background: rgba(82, 222, 170, 0.12);
  border-color: rgba(82, 222, 170, 0.3);
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--accent-mist);
  color: #005940;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge--info { background: #e8f7fc; color: #145366; }
.badge--on { background: var(--mint); color: var(--accent-ink); }
.badge--pause { background: var(--sand); color: #6e4700; }
.badge--draft { background: var(--line-soft); color: var(--ink-3); }

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  padding: 14px 0 10px;
}

.nav__bar .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow-soft);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:hover { background: var(--accent-mist); color: var(--ink); }
.nav__links a.is-active { background: var(--accent-soft); color: var(--accent-ink); }

.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__actions form { margin: 0; }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav__drawer {
  display: none;
  margin: 10px 24px 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nav__drawer.is-open { display: grid; gap: 4px; }
.nav__drawer > a {
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
}
.nav__drawer > a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.drawer__cta { display: grid; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.drawer__cta form { margin: 0; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 0; }

.hero__grid { display: grid; gap: 32px; }

.hero__copy { max-width: 940px; }

.hero__title {
  margin-top: 20px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero__sub {
  margin-top: 22px;
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 64ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.hl {
  color: var(--accent-deep);
  box-shadow: inset 0 -0.32em 0 rgba(82, 222, 170, 0.5);
}

/* full-width media card under the type block */
.hero__media {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}
.hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* inset mint band, used by inner marketing pages */
.hero--stage {
  margin: 10px 20px 0;
  padding: 64px 0;
  background: var(--mint);
  border-radius: var(--radius-xl);
}

.hero--stage .hero__sub { color: #1f4b42; }
.hero--stage .eyebrow { background: var(--white); color: #145366; }

.hero--short { padding: 58px 0; }

/* split hero (contact) */
.hero--split {
  padding: 56px 0 8px;
}
.hero--split .hero__grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero__panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section--tight { padding: 36px 0; }

.section--soft {
  margin: 0 20px;
  background: var(--white);
  border-radius: var(--radius-xl);
}

.section--soft .card,
.section--soft .quote { background: var(--paper); }

.section--dark {
  margin: 0 20px;
  background: var(--ink-band);
  border-radius: var(--radius-xl);
  color: #fff;
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .lead,
.section--dark p { color: rgba(255, 255, 255, 0.74); }
.section--dark .card {
  background: #101c27;
  border-color: #232b32;
}
.section--dark .card p { color: rgba(255, 255, 255, 0.72); }

.section--mint {
  margin: 0 20px;
  background: var(--mint);
  border-radius: var(--radius-xl);
}

.section__head {
  max-width: 780px;
  margin-bottom: 44px;
}
.section__head h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.6vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.section__head .lead { margin-top: 16px; }

/* ---------- grids + cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-soft); }
.card h3 { font-size: 1.14rem; line-height: 1.3; margin-top: 0; }
.card p { margin-top: 10px; font-size: 0.97rem; line-height: 1.6; color: var(--ink-2); }

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.card__icon svg { width: 22px; height: 22px; }
.section--dark .card__icon { background: rgba(82, 222, 170, 0.16); color: var(--accent); }

.page-media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* ---------- split blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__body h2 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.split__body .lead { margin-top: 16px; }
.split__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.checklist { display: grid; gap: 12px; margin-top: 24px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--ink-2);
}
.section--dark .checklist li { color: rgba(255, 255, 255, 0.78); }

.tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
}
.tick svg { width: 12px; height: 12px; }

/* ---------- quotes + stats ---------- */
.quote {
  margin: 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.quote__body p { font-size: 0.98rem; line-height: 1.65; color: var(--ink); }
.quote__who { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.quote__who b { display: block; font-size: 0.9rem; }
.quote__who span { display: block; font-size: 0.8rem; color: var(--ink-3); }

.monogram,
.quote__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}
.quote__mark svg { width: 18px; height: 18px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.stat:nth-child(1) { background: var(--mint); border-color: var(--mint); }
.stat:nth-child(2) { background: var(--sky); border-color: var(--sky); }
.stat:nth-child(3) { background: var(--sand); border-color: var(--sand); }
.stat b { display: block; font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.stat span { font-size: 0.88rem; color: #2f3f45; }

/* ---------- CTA band ---------- */
.band {
  margin: 30px 20px;
  padding: 56px 0;
  background: var(--mint);
  border-radius: var(--radius-xl);
  --brand-a: #003424;
  --brand-b: #09131d;
}
.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.band h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.band p { margin-top: 10px; color: #1f4b42; max-width: 56ch; }
.band__actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }

/* ---------- panels / info cards ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.panel__head h2 { font-size: 1.12rem; }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.info-card h3 svg { width: 18px; height: 18px; color: var(--accent-deep); }
.info-card p { font-size: 0.92rem; color: var(--ink-2); }
.info-card p + p { margin-top: 4px; }

/* ---------- lists (console + content) ---------- */
.kv-list { display: grid; }
.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.kv-row:first-child { border-top: 0; }
.kv-row__main { min-width: 0; }
.kv-row__main b { display: block; font-size: 0.95rem; }
.kv-row__main span { display: block; font-size: 0.85rem; color: var(--ink-3); margin-top: 2px; }
.kv-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  flex: 0 0 auto;
}
.kv-row__side strong { font-size: 0.95rem; }

.bar {
  height: 6px;
  margin-top: 8px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

.empty {
  padding: 36px 20px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-3);
}
.empty b { display: block; margin-bottom: 6px; font-size: 1rem; color: var(--ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
}
.input:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(82, 222, 170, 0.35);
}
textarea.input { resize: vertical; }
.hint { margin-top: 6px; font-size: 0.8rem; color: var(--ink-3); }

.alert {
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.alert-ok { background: var(--accent-soft); border-color: var(--mint); color: #005940; }
.alert-danger { background: #fff1f1; border-color: #ffc2c3; color: #7d1e22; }

/* ---------- auth ---------- */
.auth { padding: 64px 0 88px; }
.auth__card {
  max-width: 470px;
  margin: 0 auto;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.auth__head { margin-bottom: 24px; }
.auth__head h1 { font-size: 1.9rem; letter-spacing: -0.03em; }
.auth__head p { margin-top: 8px; font-size: 0.92rem; }
.auth__foot { margin-top: 22px; font-size: 0.9rem; color: var(--ink-2); }

/* ---------- legal ---------- */
.legal { max-width: 880px; }
.legal .updated { font-size: 0.85rem; color: var(--ink-3); }
.legal h2 {
  margin: 38px 0 12px;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}
.legal h3 { margin: 24px 0 8px; font-size: 1.08rem; }
.legal p,
.legal li { color: #3c454d; font-size: 0.97rem; line-height: 1.72; }
.legal p + p { margin-top: 12px; }
.legal ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 1.2rem;
  list-style: disc;
}
.legal__card {
  margin-top: 36px;
  padding: 24px;
  background: var(--accent-mist);
  border: 1px solid var(--mint);
  border-radius: var(--radius-lg);
}
.legal__card h3 { margin-top: 0; }
.legal__card p { color: #1f4b42; }

/* ---------- contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

/* ---------- footer ---------- */
.site-footer { padding: 18px 0 40px; background: var(--paper); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 0.75fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer__grid > div {
  background: var(--ink-band);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  min-height: 100%;
}

.footer__grid .brand { color: #fff; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name em { color: var(--accent); }
.site-footer { --brand-a: #52deaa; --brand-b: #ffffff; }

.footer__about {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.footer__col h4 {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; }
.footer__col a:hover { color: var(--accent); }
.footer__contact li { color: rgba(255, 255, 255, 0.68); font-size: 0.86rem; line-height: 1.5; }

.rule-t { display: block; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 24px;
  background: var(--ink-band);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__legal a { color: rgba(255, 255, 255, 0.72); }
.footer__legal a:hover { color: var(--accent); }
.footer__legal .linklike { color: rgba(255, 255, 255, 0.72); }
.footer__legal .linklike:hover { color: var(--accent); }

/* ---------- cookie consent (full-width bottom bar) ---------- */
.ck-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 16px 24px;
  background: #002a3a;
  color: #f8f8f8;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}
.ck-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.ck-card p { font-size: 0.85rem; line-height: 1.55; color: rgba(248, 248, 248, 0.86); max-width: 76ch; }
.ck-card p a { color: var(--accent-hover); text-decoration: underline; }
.ck-actions { display: flex; gap: 10px; flex: 0 0 auto; }

.ck-accept,
.ck-secondary {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.ck-accept { background: var(--accent-hover); color: #002a3a; border: 1px solid var(--accent-hover); }
.ck-secondary { background: transparent; color: #e4e6e8; border: 1px solid rgba(255, 255, 255, 0.35); }
.ck-secondary:hover { border-color: rgba(255, 255, 255, 0.7); }

.ck-prefs {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 42, 58, 0.62);
}
.ck-panel {
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow: auto;
  padding: 28px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.ck-panel h2 { font-size: 1.35rem; }
.ck-panel > p { margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); }
.ck-opt {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.ck-opt:first-of-type { margin-top: 18px; }
.ck-opt h3 { font-size: 0.95rem; }
.ck-opt p { margin-top: 4px; font-size: 0.85rem; color: var(--ink-3); max-width: 46ch; }
.ck-opt .locked {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--line-soft);
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
}
.ck-save { display: flex; gap: 10px; margin-top: 22px; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 44px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: var(--line-2);
  cursor: pointer;
  transition: background-color 160ms ease;
}
.switch span::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}
.switch input:checked + span { background: var(--accent-deep); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ---------- console ---------- */
.dash {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px 44px;
}

.dash__side {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 32px);
  padding: 22px;
  background: var(--ink-band);
  color: #fff;
  border-radius: 24px;
}
.dash__side { --brand-a: #52deaa; --brand-b: #ffffff; }
.dash__side .brand__name { color: #fff; }
.dash__side .brand__name em { color: var(--accent); }

.side__brand { padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.side__nav { display: grid; gap: 4px; margin-top: 24px; }
.side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 500;
}
.side__link svg { width: 18px; height: 18px; flex: 0 0 18px; }
.side__link:hover { background: #151c23; color: #fff; }
.side__link.is-active { background: var(--accent); color: var(--accent-ink); }

.side__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
.side__user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  word-break: break-all;
}
.side__foot .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.side__foot .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

.dash__main { min-width: 0; }
.dash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.dash__head h1 { font-size: 1.85rem; letter-spacing: -0.03em; }
.dash__head p { margin-top: 6px; font-size: 0.92rem; color: var(--ink-2); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.metric:nth-child(1) { background: var(--mint); border-color: var(--mint); }
.metric:nth-child(2) { background: var(--sky); border-color: var(--sky); }
.metric:nth-child(3) { background: var(--sand); border-color: var(--sand); }
.metric__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #2f3f45;
}
.metric__top svg { width: 18px; height: 18px; }
.metric b { display: block; font-size: 1.55rem; letter-spacing: -0.03em; }
.metric small { display: block; margin-top: 4px; font-size: 0.78rem; color: #3c5158; }

/* ---------- 404 ---------- */
.notfound { padding: 96px 0 110px; text-align: center; }
.notfound .big {
  display: block;
  font-size: clamp(4rem, 13vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.notfound .hero__actions { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 1fr; }
  .dash__side { position: static; min-height: 0; }
  .side__nav { grid-template-columns: repeat(2, 1fr); }
  .side__foot { margin-top: 20px; }
  .split { gap: 36px; }
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero { padding: 36px 0 0; }
  .hero--stage { margin: 8px 12px 0; padding: 44px 0; }
  .section--soft,
  .section--dark,
  .section--mint { margin: 0 12px; border-radius: 24px; }
  .band { margin: 24px 12px; padding: 42px 0; border-radius: 24px; }
  .grid--3 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ck-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ck-actions { width: 100%; flex-wrap: wrap; }
  .nav__bar .wrap { padding: 8px 12px; gap: 10px; }
  .nav__actions .btn--ghost { display: none; }
  .auth__card { padding: 26px; }
  .dash { padding: 12px 14px 32px; }
  .side__nav { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .dash__head { flex-direction: column; align-items: flex-start; }
  .panel { padding: 18px; }
  .kv-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .kv-row__side { align-items: flex-start; text-align: left; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 2.2rem; }
  .ck-actions .ck-accept,
  .ck-actions .ck-secondary { flex: 1 1 auto; }
}

/* `hidden` must win over the display rules declared above. */
[hidden] { display: none !important; }
