/* WindsorByte: one stylesheet, light theme, no external requests.
   Neutral greys, 1px borders and small radii, with Windsor green as the accent. */

:root {
  color-scheme: light;

  --background: #ffffff;
  --muted-bg: #fafafa;
  --muted: #f4f4f5;
  --foreground: #18181b;
  --text: #3f3f46;
  --muted-fg: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --brand: #146c54;
  --brand-hover: #0f5644;
  --brand-tint: #ecf6f1;
  --brand-border: #b6dac8;
  --ring: rgba(20, 108, 84, 0.22);
  --danger: #dc2626;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2rem);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
}

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

[hidden] { display: none !important; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

[id] { scroll-margin-top: 5rem; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  background: var(--foreground);
  color: #fff;
  font-weight: 500;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 48rem; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 500 0.875rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-lg {
  height: 2.875rem;
  padding: 0 1.4rem;
  font-size: 0.9375rem;
}
.btn-primary { background: var(--foreground); color: #fafafa; }
.btn-primary:hover { background: #27272a; }
.btn-outline {
  border-color: var(--border);
  background: #fff;
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--muted); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--foreground);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.brand-small { font-size: 0.9375rem; }
.brand-small img { width: 24px; height: 24px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a:not(.btn) {
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:not(.btn):hover { color: var(--foreground); }

@media (max-width: 759px) {
  .nav a:not(.btn) { display: none; }
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(4rem, 2.5rem + 6vw, 7.5rem);
  text-align: center;
}

/* Faint grid that fades out, with a soft green glow. Pure CSS. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(42% 38% at 50% 22%, rgba(20, 108, 84, 0.12), transparent 70%),
    linear-gradient(to right, rgba(24, 24, 27, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 24, 27, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  background-position: center, center top, center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 35%, transparent 80%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
  font-size: 0.8125rem;
  font-weight: 500;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.18);
}

.hero-title {
  max-width: 15ch;
  margin: 1.5rem auto 0;
  font-size: clamp(2.5rem, 1.1rem + 5.6vw, 5rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

/* The rotating word: all words share one grid cell, so the line keeps
   the width of the longest word and nothing below it moves. */
.rotator {
  display: grid;
  justify-items: center;
  color: var(--brand);
}

.rotator > span {
  grid-area: 1 / 1;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .rotator > span {
    opacity: 0;
    animation: word 18s infinite;
  }
  .rotator > span:nth-child(2) { animation-delay: 3s; }
  .rotator > span:nth-child(3) { animation-delay: 6s; }
  .rotator > span:nth-child(4) { animation-delay: 9s; }
  .rotator > span:nth-child(5) { animation-delay: 12s; }
  .rotator > span:nth-child(6) { animation-delay: 15s; }
}

@media (prefers-reduced-motion: reduce) {
  .rotator > span:not(:first-child) { visibility: hidden; }
}

@keyframes word {
  0% { opacity: 0; transform: translateY(0.3em); filter: blur(6px); }
  2.5%, 14.5% { opacity: 1; transform: none; filter: blur(0); }
  17.5%, 100% { opacity: 0; transform: translateY(-0.3em); filter: blur(6px); }
}

.hero-sub {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--muted-fg);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-points svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sections */

.section { padding-block: clamp(4rem, 2.5rem + 5vw, 7rem); }

.section-muted {
  border-block: 1px solid var(--border);
  background: var(--muted-bg);
}

.section-head { margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }

.section-head h2 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head p {
  max-width: 38rem;
  margin: 0.9rem 0 0;
  color: var(--muted-fg);
  font-size: 1.0625rem;
}

.section-head-center { text-align: center; }
.section-head-center h2 { margin-inline: auto; }

h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Cards */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

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

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

.cards .card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: border-color 0.15s ease;
}
.cards .card:hover { border-color: var(--border-strong); }

.cards p {
  margin: 0;
  font-size: 0.9375rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--brand-border);
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.cards p a { color: var(--brand); font-weight: 500; }

/* AI and LLM: a soft mint band, an example answer, and one capability panel */

.section-mint {
  border-block: 1px solid #dcebe3;
  background:
    radial-gradient(45% 60% at 0% 0%, rgba(20, 108, 84, 0.08), transparent 70%),
    linear-gradient(180deg, #f3f9f6, #fafcfb);
}

.ai-layout {
  display: grid;
  gap: 3rem 4rem;
}

@media (min-width: 1100px) {
  .ai-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ai-intro { position: sticky; top: 6rem; align-self: start; }
}

.ai-intro h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ai-intro > p {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--muted-fg);
  font-size: 1.0625rem;
}

/* Example answer from a document assistant. */
.ai-demo {
  margin: 2rem 0;
  overflow: hidden;
}

.ai-demo-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.8125rem;
  font-weight: 500;
}

.ai-demo-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.18);
}

.ai-demo-body {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
}

.bubble {
  max-width: 88%;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.bubble-user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--foreground);
  color: #fafafa;
}

.bubble-ai {
  justify-self: start;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  background: var(--muted-bg);
  color: var(--foreground);
}

.bubble-ai > p { margin: 0; }

.bubble-ai .ai-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  color: var(--muted-fg);
  font-size: 0.75rem;
}

.source {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 500;
}

.ai-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.9rem 1.1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--muted-bg);
  list-style: none;
  color: var(--text);
  font-size: 0.8125rem;
}

.ai-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-steps span {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* The eight capabilities: one white panel with thin dividers. */
.ai-grid {
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.ai-grid li {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.ai-grid li:last-child { border-bottom: 0; }

@media (min-width: 640px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid li:nth-child(odd) { border-right: 1px solid var(--border); }
  .ai-grid li:nth-last-child(-n + 2) { border-bottom: 0; }
}

.ai-grid p {
  margin: 0;
  font-size: 0.9375rem;
}

.ai-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--brand-border);
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
}

.ai-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Who we work with */

.audience {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .audience { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .audience { grid-template-columns: repeat(4, 1fr); }
}

.audience > div {
  padding-left: 1rem;
  border-left: 2px solid var(--brand-border);
}

.audience p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Process: numbered cards joined by a line, because it is a sequence */

.process {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .process { grid-template-columns: repeat(4, 1fr); }
  /* Runs behind the cards, so it only shows in the gaps between them. */
  .process::before {
    content: "";
    position: absolute;
    top: 2.6rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-border), var(--brand));
  }
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.process-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.process-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 650;
}

.process-tag {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 500;
}

.process-step h3 { font-size: 1.125rem; }

.process-step p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

.process-step .process-out {
  display: flex;
  gap: 0.5rem;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.process-out svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ways to work together */

.plans {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.plan p {
  margin: 0;
  font-size: 0.9375rem;
}

.plan .best-for {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 500;
}

/* FAQ: intro on the left, questions on the right */

.faq-layout {
  display: grid;
  gap: 2.5rem 4rem;
}

@media (min-width: 1000px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .faq-intro { position: sticky; top: 6rem; align-self: start; }
}

.faq-intro h2 {
  max-width: 12ch;
  text-wrap: balance;
  margin: 0;
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.faq-intro p {
  max-width: 24rem;
  margin: 0.9rem 0 1.5rem;
  color: var(--muted-fg);
  font-size: 1.0625rem;
}

.faq {
  display: grid;
  gap: 0.6rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  position: relative;
  padding: 1.05rem 3.5rem 1.05rem 1.25rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 12px; }

/* A plus in a circle that turns into a minus. */
.faq summary::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: -0.8rem;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 0.65rem 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 0.65rem no-repeat,
    var(--muted);
  color: var(--foreground);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq details[open] summary::before {
  transform: rotate(45deg);
  background:
    linear-gradient(#fff, #fff) center / 0.65rem 1.5px no-repeat,
    linear-gradient(#fff, #fff) center / 1.5px 0.65rem no-repeat,
    var(--brand);
}

.faq-answer p {
  margin: 0;
  padding: 0 3.5rem 1.2rem 1.25rem;
  color: var(--text);
  font-size: 0.9375rem;
}

/* Smooth open and close where the browser supports it. */
@media (prefers-reduced-motion: no-preference) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.25s ease, content-visibility 0.25s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::before { transition: none; }
}

/* Contact */

.contact {
  display: grid;
  gap: 2rem 4rem;
}

@media (min-width: 1000px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .contact-intro { position: sticky; top: 6rem; align-self: start; }
}

.contact-intro h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.contact-intro p {
  max-width: 26rem;
  margin: 0.9rem 0 0;
  color: var(--muted-fg);
  font-size: 1.0625rem;
}

.contact-intro .contact-alt { font-size: 0.9375rem; }
.contact-alt a { color: var(--brand); font-weight: 500; }

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}
.field > legend { margin-bottom: 0.5rem; }

.optional {
  color: var(--muted-fg);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field textarea,
.select select {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  height: auto;
  min-height: 8.5rem;
  padding: 0.7rem 0.85rem;
  line-height: 1.5;
  resize: vertical;
}

.field ::placeholder { color: #a1a1aa; }

.field input:focus,
.field textarea:focus,
.select select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.select {
  position: relative;
  display: block;
}

.select select {
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--muted-fg);
  border-bottom: 1.5px solid var(--muted-fg);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Custom dropdown built by main.js on top of each .select (the native
   select stays in the form, hidden, so the value is still sent). */
.ui-select { position: relative; }

.ui-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ui-select-trigger:hover { border-color: var(--border-strong); }
.ui-select-trigger:focus-visible,
.ui-select-trigger[aria-expanded="true"] {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}
.ui-select-trigger[data-placeholder] .ui-select-value { color: #a1a1aa; }

.ui-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--muted-fg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-select-trigger svg { transition: transform 0.15s ease; }
.ui-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.ui-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 17rem;
  margin: 0;
  padding: 0.3rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px -12px rgba(24, 24, 27, 0.28), 0 2px 6px rgba(24, 24, 27, 0.06);
  list-style: none;
  outline: none;
}
.ui-select-list[hidden] { display: none; }
.ui-select.is-up .ui-select-list {
  top: auto;
  bottom: calc(100% + 6px);
}

@media (prefers-reduced-motion: no-preference) {
  .ui-select-list:not([hidden]) { animation: pop 0.12s ease-out; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.ui-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: var(--foreground);
  font-size: 0.9375rem;
  cursor: pointer;
}
.ui-select-option.is-active { background: var(--muted); }
.ui-select-option[aria-selected="true"] { font-weight: 500; }
.ui-select-option svg { visibility: hidden; stroke: var(--brand); }
.ui-select-option[aria-selected="true"] svg { visibility: visible; }

/* Service choice: radio buttons shown as chips. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { background: var(--muted); }

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chip:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.field [aria-invalid="true"],
.field[aria-invalid="true"] .chip {
  border-color: var(--danger);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 500;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--brand);
}

.check label {
  color: var(--text);
  font-size: 0.875rem;
}

/* Spam trap: off-screen, not display:none. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.form-status {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }

.form-success {
  align-self: start;
  padding: 2rem;
}
.form-success h3 { font-size: 1.25rem; }
.form-success p { margin: 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 2rem 2.5rem;
}

.footer-inner p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--foreground); text-decoration: underline; }

@media (max-width: 759px) {
  .footer-links { margin-left: 0; }
}

/* Simple pages: privacy, thanks, 404, form errors */

.page-simple {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter);
}

.page-simple h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-simple h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.125rem;
}

.page-simple .updated { color: var(--muted-fg); }

.error-list { color: var(--danger); font-weight: 500; }
