/* =====================================================================
   TheChairPlug Ltd - design system + site styles
   Dark, committed single-theme. No external fonts or libraries.
   ===================================================================== */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  --ink:        #08090D;
  --surface:    #0F1219;
  --surface-2:  #151A24;
  --line:       rgba(255, 255, 255, 0.09);
  --line-soft:  rgba(255, 255, 255, 0.055);

  --text:       #E9ECF2;
  --text-dim:   #A2ABBB;
  --text-faint: #6E7789;

  --accent:     #FF7A2F;
  --accent-soft:#FF9A5E;
  --accent-ink: #1A0C03;
  --cyan:       #46B8F0;
  --violet:     #A78BFA;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
html.nav-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 640;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.15rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-head--center .eyebrow::before { display: none; }

h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem); }

.lede {
  margin-top: 1.15rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  color: var(--text-dim);
  line-height: 1.68;
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 660;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(255, 122, 47, 0.55);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header ---------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.header.is-stuck {
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { white-space: nowrap; }
.brand .ltd {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.78em;
  letter-spacing: 0.04em;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: 0.945rem;
  font-weight: 550;
  color: var(--text-dim);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.055); }
.nav a[aria-current="page"] { color: var(--text); }
.nav__cta { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.24s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(8, 9, 13, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 0.8rem 0.6rem; font-size: 1.05rem; }
  .nav__cta { margin: 0.75rem 0 0; }
}

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
}
.hero::before {
  width: min(680px, 90vw);
  aspect-ratio: 1;
  top: -22%;
  right: -12%;
  background: radial-gradient(circle, rgba(255, 122, 47, 0.24), transparent 68%);
}
.hero::after {
  width: min(560px, 80vw);
  aspect-ratio: 1;
  bottom: -34%;
  left: -14%;
  background: radial-gradient(circle, rgba(70, 184, 240, 0.15), transparent 68%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 32%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 32%, #000 20%, transparent 78%);
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-dim);
  margin-bottom: 1.6rem;
}
.pill b {
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(255, 122, 47, 0.16);
  color: var(--accent-soft);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 .grad {
  background: linear-gradient(104deg, var(--accent-soft) 8%, var(--accent) 45%, var(--violet) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { max-width: 60ch; font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.9rem;
  margin-top: 2.75rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--text-faint);
}
.hero__meta li { display: flex; align-items: center; gap: 0.5rem; }
.hero__meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---- Cards ----------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.85rem);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
              background-color 0.22s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 47, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--surface-2);
}
.card:hover::after { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.15rem;
  border-radius: 13px;
  background: rgba(255, 122, 47, 0.12);
  border: 1px solid rgba(255, 122, 47, 0.22);
  color: var(--accent-soft);
}
.card__icon svg { width: 22px; height: 22px; }
.card--cyan .card__icon {
  background: rgba(70, 184, 240, 0.12);
  border-color: rgba(70, 184, 240, 0.24);
  color: var(--cyan);
}
.card--violet .card__icon {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.24);
  color: var(--violet);
}
.card p { margin-top: 0.7rem; color: var(--text-dim); font-size: 0.965rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.15rem; }
.tags li {
  padding: 0.25rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text-faint);
}

/* ---- Steps ----------------------------------------------------------- */
.step { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--line); }
.step__n {
  position: absolute;
  top: -0.9rem;
  left: 0;
  padding-right: 0.7rem;
  background: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.section--alt .step__n { background: var(--surface); }
.step p { margin-top: 0.6rem; color: var(--text-dim); font-size: 0.955rem; }

/* ---- Stats ----------------------------------------------------------- */
.stat { padding: 1.35rem 0; }
.stat b {
  display: block;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, var(--text), var(--text-faint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 0.55rem; font-size: 0.9rem; color: var(--text-faint); }

/* ---- Marquee --------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 0.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0.7rem;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-dim);
  white-space: nowrap;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Split / panel --------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}
.checks { margin-top: 1.75rem; display: grid; gap: 0.9rem; }
.checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 0.2rem; color: var(--accent); }
.checks b { color: var(--text); font-weight: 620; }

.panel {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.panel__row:last-child { border-bottom: 0; padding-bottom: 0; }
.panel__row span { color: var(--text-faint); }
.panel__row b { font-weight: 620; text-align: right; }

/* ---- CTA band -------------------------------------------------------- */
.cta {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.25rem);
  border-radius: clamp(var(--r-lg), 3vw, 28px);
  background:
    radial-gradient(ellipse 70% 130% at 82% 0%, rgba(255, 122, 47, 0.22), transparent 62%),
    radial-gradient(ellipse 60% 120% at 8% 100%, rgba(167, 139, 250, 0.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.cta .lede { margin-inline: auto; max-width: 52ch; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---- Forms ----------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text-dim); }
.field .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 122, 47, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.13);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form__note { font-size: 0.85rem; color: var(--text-faint); }

/* ---- Contact --------------------------------------------------------- */
.contact-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:last-child { border-bottom: 0; }
.contact-item span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}
.contact-item a, .contact-item p { font-size: 1.02rem; color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--accent-soft); }

/* ---- Footer ---------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  padding-block: clamp(2.75rem, 5vw, 4rem) 2rem;
}
.footer__top {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer__blurb { margin-top: 1rem; max-width: 34ch; color: var(--text-faint); font-size: 0.94rem; }
.footer h4 {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer nav { display: grid; gap: 0.65rem; }
.footer nav a {
  text-decoration: none;
  font-size: 0.945rem;
  color: var(--text-dim);
  transition: color 0.16s var(--ease);
  width: fit-content;
}
.footer nav a:hover { color: var(--accent-soft); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.86rem;
  color: var(--text-faint);
}

/* ---- Reveal ---------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .cta, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ---- Long-form legal / prose pages ----------------------------------- */
.prose { max-width: 74ch; }
.prose > p, .prose li { color: var(--text-dim); }
.prose h2 {
  margin-top: 3rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  scroll-margin-top: 100px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.9rem; margin-bottom: 0.5rem; font-size: 1.05rem; }
.prose p + p { margin-top: 1rem; }
.prose ul {
  list-style: disc;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}
.prose ul li::marker { color: var(--accent); }
.prose a { color: var(--accent-soft); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 620; }

.prose__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 1.15rem;
  margin-bottom: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  color: var(--text-faint);
}
.prose__meta b { color: var(--text-dim); font-weight: 600; }

.callout {
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  background: rgba(255, 122, 47, 0.07);
  border: 1px solid rgba(255, 122, 47, 0.22);
  border-left-width: 3px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
}
.callout p { color: var(--text-dim); }

.toc {
  padding: 1.35rem 1.5rem;
  margin-bottom: 3rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.toc h2 { margin: 0 0 0.85rem; font-size: 0.79rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-faint); }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; color: var(--text-faint); font-size: 0.93rem; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--accent-soft); }

/* ---- Contact form: honeypot + status banner -------------------------- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: 0.95rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.notice:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.notice--ok {
  background: rgba(70, 184, 240, 0.09);
  border-color: rgba(70, 184, 240, 0.35);
  color: var(--text);
}
.notice--err {
  background: rgba(255, 122, 47, 0.09);
  border-color: rgba(255, 122, 47, 0.38);
  color: var(--text);
}

/* ---- Spam check: bordered so it reads as a distinct step -------------- */
.captcha {
  position: relative;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid rgba(255, 122, 47, 0.34);
  border-radius: var(--r-md);
  background: rgba(255, 122, 47, 0.055);
}
.captcha::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
}
.captcha label {
  color: var(--text);
  font-weight: 620;
  font-size: 0.92rem;
}
.captcha #captchaQ {
  color: var(--accent-soft);
  font-weight: 660;
}
.captcha input[type="text"] {
  max-width: 210px;
  background: var(--ink);
  border-color: rgba(255, 122, 47, 0.3);
}
.captcha input[type="text"]:focus {
  border-color: rgba(255, 122, 47, 0.75);
}
@media (max-width: 480px) {
  .captcha input[type="text"] { max-width: 100%; }
}

/* ---- Status banner: unmistakably a message, not an input -------------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  font-weight: 550;
  line-height: 1.5;
}
.notice::before {
  flex: none;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-top: 0.06rem;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}
.notice--err::before {
  content: "!";
  background: var(--accent);
  color: var(--accent-ink);
}
.notice--ok::before {
  content: "\2713";
  background: var(--cyan);
  color: #04121B;
}
/* a field flagged by the server */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(255, 122, 47, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.13);
}

/* Restore the hidden attribute, which the display:flex above would override. */
.notice[hidden] { display: none !important; }
.notice__body { display: grid; gap: 0.2rem; }
.notice__title { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
