/**
 * AskNode brand layer
 * Loaded AFTER assets/css/main.css (Clarity) — overrides tokens and adds
 * components that are specific to the asknode.io single-page site.
 */

/*--------------------------------------------------------------
# Brand tokens
--------------------------------------------------------------*/
:root {
  --an-bg: #05071e;
  --an-surface: #0e1027;
  --an-surface-2: #14173a;
  --an-line: rgba(255, 255, 255, 0.09);
  --an-line-strong: rgba(255, 255, 255, 0.16);
  --an-text: #e8e7f7;
  --an-muted: #a6a4c8;
  --an-primary: #5b8cff;
  --an-primary-strong: #3f6fe4;
  --an-accent: #22d3ee;
  --an-success: #34d399;
  --an-danger: #f87171;
  --an-gradient: linear-gradient(120deg, #5b8cff 0%, #22d3ee 100%);
  --an-radius: 16px;

  /* Re-map the template's accent so shared components pick up the brand colour */
  --accent-color: #5b8cff;
}

/*--------------------------------------------------------------
# Base typography polish
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--nav-font);
  letter-spacing: -0.015em;
}

p {
  color: var(--an-muted);
}

.grad {
  background: var(--an-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/*--------------------------------------------------------------
# Header / logo
--------------------------------------------------------------*/
.header .logo {
  gap: 0.6rem;
}

.header .logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(91, 140, 255, 0.35));
}

.header .logo .sitename {
  font-family: var(--nav-font);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin: 0;
}

.header .logo .sitename span,
.footer .logo .sitename span {
  color: var(--an-accent);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  font-family: var(--nav-font);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--an-gradient);
  color: #04102a;
  border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px -12px rgba(91, 140, 255, 0.8);
}

.header .btn-getstarted:hover {
  color: #04102a;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(34, 211, 238, 0.85);
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  padding-top: 70px;
}

.hero .hero-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  color: var(--an-text);
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.35);
}

.hero .hero-content .hero-badge i {
  color: var(--an-accent);
}

.hero .hero-content h1 {
  font-size: 2.9rem;
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero .hero-content p {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 34rem;
}

.hero .hero-buttons .btn {
  font-family: var(--nav-font);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
}

.hero .hero-buttons .btn.btn-primary {
  background: var(--an-gradient);
  color: #04102a;
  border: 0;
  box-shadow: 0 14px 34px -14px rgba(91, 140, 255, 0.9);
}

.hero .hero-buttons .btn.btn-outline {
  border: 1px solid var(--an-line-strong);
  color: var(--an-text);
  background: transparent;
}

.hero .hero-buttons .btn.btn-outline:hover {
  border-color: var(--an-accent);
  color: #ffffff;
  background: rgba(34, 211, 238, 0.08);
}

.hero .hero-stats {
  margin-top: 2.5rem;
  gap: 2rem;
  border-top: 1px solid var(--an-line);
  padding-top: 1.75rem;
}

.hero .hero-stats .stat-item .stat-number {
  font-family: var(--nav-font);
  font-size: 1.7rem;
  font-weight: 700;
  background: var(--an-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .hero-stats .stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--an-muted);
  letter-spacing: 0.01em;
}

.hero .hero-visual {
  position: relative;
}

/*--------------------------------------------------------------
# Hero node map (animated canvas)
--------------------------------------------------------------*/
.node-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 34rem;
  border-radius: var(--an-radius);
  border: 1px solid var(--an-line);
  background:
    radial-gradient(circle at 50% 45%, rgba(91, 140, 255, 0.16), rgba(5, 7, 30, 0) 62%),
    radial-gradient(circle at 78% 82%, rgba(34, 211, 238, 0.1), rgba(5, 7, 30, 0) 55%),
    linear-gradient(180deg, rgba(14, 16, 39, 1), rgba(5, 7, 30, 1));
  overflow: hidden;
  box-shadow: 0 40px 80px -44px rgba(4, 8, 40, 0.95);
}

/* Faint grid so the stage reads as a technical canvas */
.node-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
  pointer-events: none;
}

.node-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.node-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  color: var(--an-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--an-line);
}

.legend-pill i {
  font-size: 0.85rem;
}

.legend-pill--hub i {
  color: #9ecbff;
}

.legend-pill--sys i {
  color: var(--an-primary);
}

.legend-pill--llm i {
  color: var(--an-accent);
}

@media (max-width: 991px) {
  .node-stage {
    aspect-ratio: 5 / 4;
    max-height: none;
  }
}

.hero .hero-visual .hero-image img {
  border-radius: var(--an-radius);
  border: 1px solid var(--an-line);
  box-shadow: 0 40px 80px -40px rgba(4, 8, 40, 0.9);
}

@media (max-width: 991px) {
  .hero .hero-content h1 {
    font-size: 2.2rem;
  }
}

/*--------------------------------------------------------------
# Trust strip
--------------------------------------------------------------*/
.trust-strip {
  padding: 34px 0 10px;
  background: transparent;
}

.trust-strip .trust-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--an-muted);
  margin-bottom: 1.4rem;
}

.trust-strip .trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.trust-strip .trust-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.6rem;
  font-size: 0.86rem;
  color: var(--an-text);
  border: 1px solid var(--an-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.trust-strip .trust-grid span i {
  color: var(--an-primary);
}

/* Oracle sits first in the row and is the deepest integration we lead with. */
.trust-strip .trust-grid span.trust-featured {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(120deg, rgba(91, 140, 255, 0.16), rgba(34, 211, 238, 0.1));
}

.trust-strip .trust-grid span.trust-featured i {
  color: var(--an-accent);
}

@media (max-width: 991px) {
  .trust-strip .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .trust-strip .trust-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Why-agnostic comparison
--------------------------------------------------------------*/
.comparison-card {
  height: 100%;
  padding: 2rem;
  border-radius: var(--an-radius);
  background: var(--an-surface);
  border: 1px solid var(--an-line);
}

.comparison-card h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.comparison-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.comparison-card ul li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--an-muted);
}

.comparison-card ul li i {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.comparison-card--old {
  border-color: rgba(248, 113, 113, 0.24);
}

.comparison-card--old h4 {
  color: #fca5a5;
}

.comparison-card--old ul li i {
  color: var(--an-danger);
}

.comparison-card--new {
  border-color: rgba(52, 211, 153, 0.3);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.07), rgba(14, 16, 39, 1) 55%);
}

.comparison-card--new h4 {
  color: #6ee7b7;
}

.comparison-card--new ul li i {
  color: var(--an-success);
}

/*--------------------------------------------------------------
# Feature / service cards
--------------------------------------------------------------*/
.services .service-card {
  height: 100%;
  padding: 2rem;
  border-radius: var(--an-radius);
  background: var(--an-surface);
  border: 1px solid var(--an-line);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.services .service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.45);
  background: var(--an-surface-2);
}

/* The two differentiators: Oracle depth and LLM independence. */
.services .service-card--featured {
  border-color: rgba(34, 211, 238, 0.3);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), var(--an-surface) 58%);
}

.services .service-card--featured:hover {
  border-color: rgba(34, 211, 238, 0.55);
}

.services .service-card--featured .service-icon {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.34);
}

.services .service-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  background: rgba(91, 140, 255, 0.14);
  border: 1px solid rgba(91, 140, 255, 0.3);
}

.services .service-icon i {
  font-size: 1.5rem;
  color: var(--an-accent);
}

.services .service-card h4 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.services .service-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.services .service-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--an-accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.services .services-cta {
  margin-top: 3.5rem;
  padding: 2.5rem;
  border-radius: var(--an-radius);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.14), rgba(34, 211, 238, 0.08));
  border: 1px solid var(--an-line-strong);
}

/*--------------------------------------------------------------
# Phone chat demo
--------------------------------------------------------------*/
.chat-demo {
  position: relative;
  width: 100%;
  max-width: 25rem;
  margin: 0 auto;
  line-height: 0;
}

.chat-demo canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 55px;
  filter: drop-shadow(0 40px 70px rgba(4, 8, 40, 0.85));
}

/* The real text field, positioned over the pill drawn on the canvas. A canvas
   cannot receive keyboard input, so this is the actual control: it brings IME,
   paste, native caret behaviour and the mobile keyboard with it. */
.chat-demo-input {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-family: var(--nav-font);
  font-weight: 400;
  line-height: 1;
  caret-color: var(--an-accent);
  border-radius: 10px;
  appearance: none;
  touch-action: manipulation;
}

.chat-demo-input::placeholder {
  color: transparent;
}

/* The canvas draws the idle chrome. On focus, lift the field slightly so it is
   obvious the bar is editable, and show a high-contrast caret. */
.chat-demo-input:focus {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1.5px rgba(91, 140, 255, 0.55);
  caret-color: var(--an-accent);
}

.chat-demo-input:disabled {
  color: rgba(232, 231, 247, 0.45);
  cursor: wait;
}

/* Transparent hit layers above the input: the chip and send areas drawn on the
   canvas need to be clickable without stealing focus from the text field. */
.chat-demo-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  line-height: 0;
}

.chat-demo-chip,
.chat-demo-send {
  position: absolute;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 999px;
  font-size: 0;
  color: transparent;
  line-height: 0;
}

.chat-demo-chip {
  border-radius: 999px;
}

.chat-demo-send {
  border-radius: 50%;
}

.chat-demo-chip:focus-visible,
.chat-demo-send:focus-visible {
  outline: 2px solid var(--an-accent);
  outline-offset: 2px;
}

.chat-demo-caption {
  line-height: 1.6;
  margin: 1.25rem auto 0;
  max-width: 22rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--an-muted);
}

.chat-demo-caption i {
  color: var(--an-accent);
  margin-right: 0.35rem;
}

@media (max-width: 991px) {
  .chat-demo {
    max-width: 20rem;
  }
}

/*--------------------------------------------------------------
# Legal pages (privacy, terms)
--------------------------------------------------------------*/
.legal-page .legal {
  padding-top: 60px;
}

.legal-header {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.legal-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--an-muted);
  margin: 0;
}

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

.legal-toc {
  position: sticky;
  top: 100px;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  border-radius: var(--an-radius);
  background: var(--an-surface);
  border: 1px solid var(--an-line);
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.legal-toc li {
  font-size: 0.82rem;
  line-height: 1.4;
}

.legal-toc a {
  color: var(--an-muted);
}

.legal-toc a:hover {
  color: var(--an-accent);
}

.legal-prose {
  max-width: 44rem;
}

.legal-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.75rem 0 0.9rem;
  scroll-margin-top: 100px;
}

.legal-prose h2:first-of-type {
  margin-top: 0;
}

.legal-prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
}

.legal-prose p {
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-prose ul {
  margin: 0 0 1.25rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.legal-prose ul li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--an-muted);
}

.legal-prose ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--an-accent);
}

.legal-prose strong {
  color: var(--an-text);
  font-weight: 600;
}

.legal-prose a {
  color: var(--an-accent);
}

.legal-prose a:hover {
  color: #ffffff;
}

.legal-callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--an-radius);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.12), rgba(34, 211, 238, 0.07));
  border: 1px solid rgba(91, 140, 255, 0.3);
  margin-bottom: 2rem;
}

.legal-callout p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--an-text);
}

/* Secondary aside inside the prose, used for caveats that need to stand out
   without shouting like the summary callout. */
.legal-note {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--an-accent);
  margin: 0 0 1.5rem;
}

.legal-note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--an-muted);
}

.legal-note strong {
  color: var(--an-text);
}

/* Fields that still need real details before launch. Deliberately visible so
   they cannot ship unnoticed. */
.legal-placeholder {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px dashed rgba(248, 113, 113, 0.55);
  color: #fecaca;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .legal-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-toc {
    position: static;
  }

  .legal-header h1 {
    font-size: 1.9rem;
  }
}

/*--------------------------------------------------------------
# LLM switcher panel
--------------------------------------------------------------*/
.llm-switcher {
  margin-top: 1.75rem;
  padding: 2rem;
  border-radius: var(--an-radius);
  background: var(--an-surface);
  border: 1px solid var(--an-line);
}

.llm-switcher-head h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.llm-switcher-head h4 i {
  color: var(--an-accent);
}

.llm-switcher-head p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 62rem;
  margin-bottom: 1.5rem;
}

.llm-switcher-rows {
  display: grid;
  gap: 1rem;
}

.llm-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.llm-row-label {
  flex: 0 0 auto;
  min-width: 10.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--an-muted);
}

.llm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.llm-pill {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  color: var(--an-text);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.24);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.llm-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.16);
}

@media (max-width: 767px) {
  .llm-switcher {
    padding: 1.5rem;
  }

  .llm-row {
    gap: 0.6rem;
  }

  .llm-row-label {
    min-width: 100%;
  }
}

.services .services-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.services .services-cta .btn-primary {
  margin-top: 0.75rem;
  font-family: var(--nav-font);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  background: var(--an-gradient);
  color: #04102a;
  border: 0;
}

/*--------------------------------------------------------------
# How it works steps
--------------------------------------------------------------*/
.steps-row > [class*="col-"] {
  display: flex;
}

.step-card {
  position: relative;
  width: 100%;
  padding: 2rem 1.75rem;
  border-radius: var(--an-radius);
  background: var(--an-surface);
  border: 1px solid var(--an-line);
}

.step-card .step-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--nav-font);
  font-size: 1.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.07);
}

.step-card .step-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.step-card .step-icon i {
  font-size: 1.3rem;
  color: var(--an-accent);
}

.step-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/*--------------------------------------------------------------
# Contact form additions
--------------------------------------------------------------*/
.contact .contact-form-card .php-email-form .form-control,
.contact .contact-form-card form .form-control {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--an-line-strong);
  color: var(--an-text);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.contact .contact-form-card form .form-control:focus {
  border-color: var(--an-primary);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.05);
}

.contact .contact-form-card form .form-control::placeholder {
  color: rgba(166, 164, 200, 0.75);
}

.contact .contact-form-card form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a6a4c8'%3E%3Cpath d='M8 11 3.5 5.5h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.4rem;
}

.contact .contact-form-card form select.form-control option {
  background-color: var(--an-surface-2);
  color: var(--an-text);
}

.contact .contact-form-card .form-control.is-invalid {
  border-color: var(--an-danger);
}

.contact .contact-form-card .field-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #fca5a5;
}

.contact .contact-form-card .form-control.is-invalid ~ .field-error {
  display: block;
}

/* Honeypot — kept in the DOM for bots, invisible to people */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  accent-color: var(--an-primary);
}

.form-consent label {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--an-muted);
}

.form-consent input[type="checkbox"].is-invalid {
  outline: 2px solid var(--an-danger);
  outline-offset: 2px;
}

.turnstile-wrapper {
  min-height: 65px;
}

.contact .contact-form-card form .submit-btn {
  font-family: var(--nav-font);
  font-weight: 600;
  border-radius: 999px;
  background: var(--an-gradient);
  color: #04102a;
  border: 0;
  width: 100%;
  padding: 0.85rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.contact .contact-form-card form .submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -16px rgba(91, 140, 255, 0.9);
}

.contact .contact-form-card form .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact .contact-form-card form .loading,
.contact .contact-form-card form .error-message,
.contact .contact-form-card form .sent-message {
  border-radius: 12px;
}

.contact .contact-info-area .method-card .card-content p a {
  color: var(--an-text);
}

.contact .contact-info-area .method-card .card-content p a:hover {
  color: var(--an-accent);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer .footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 26rem;
}

.footer .footer-contact a {
  color: var(--an-muted);
}

.footer .footer-contact a:hover {
  color: var(--an-accent);
}

.footer .footer-legal {
  font-size: 0.8rem;
  color: var(--an-muted);
  margin-bottom: 0;
}

.footer .footer-legal a {
  color: var(--an-muted);
}

.footer .footer-legal a:hover {
  color: var(--an-accent);
}

/*--------------------------------------------------------------
# Misc
--------------------------------------------------------------*/
@media (max-width: 575px) {
  .hero .hero-content h1 {
    font-size: 1.85rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
