/*
 * GeoTopX public site - complete stylesheet.
 *
 * Hand written, no build step, no utility framework. The design tokens below
 * are the same ones the previous stylesheet carried; what changed is that the
 * layout rules are now written here instead of being generated from utility
 * classes spread across the markup.
 *
 * Light is the default because of the use scene: a marketing or SEO
 * professional in Brazil, in office light, evaluating vendors between other
 * tabs during the working day. Dark is a real second theme, not an inversion.
 *
 * Neutrals are tinted 0.002-0.017 chroma toward the accent hue. Every pairing
 * clears WCAG 2.2 AA: body text at or above 4.5:1, large text at or above 3:1.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  color-scheme: light;

  --font-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-sans);
  /* Within Archivo's own 62%-125% range; wide enough to read as a distinct voice. */
  --stretch-display: 112%;

  --radius-card: 0.625rem;
  --radius-control: 0.5rem;
  --radius-pill: 999px;

  --z-dropdown: 30;
  --z-sticky: 40;
  --z-overlay: 50;

  --bg: oklch(99.2% 0.002 250);
  --bg-subtle: oklch(97.4% 0.004 250);
  --surface: oklch(100% 0 0);
  --surface-raised: oklch(99.6% 0.002 250);

  --ink: oklch(21% 0.014 250);
  --ink-secondary: oklch(44% 0.012 250);
  --ink-muted: oklch(53% 0.011 250);

  --rule: oklch(91.5% 0.005 250);
  --rule-strong: oklch(84% 0.008 250);

  --accent: oklch(48% 0.176 250);
  --accent-hover: oklch(42% 0.176 250);
  --accent-soft: oklch(96% 0.021 250);
  --accent-ink: oklch(100% 0 0);

  --positive: oklch(48% 0.108 162);
  --positive-soft: oklch(96% 0.023 162);
  --warning: oklch(52% 0.122 74);
  --warning-soft: oklch(96.5% 0.03 82);
  --danger: oklch(50% 0.181 26);
  --danger-soft: oklch(96.5% 0.02 26);

  --focus-ring: oklch(48% 0.176 250);
  --selection-bg: oklch(90% 0.055 250);
  --selection-ink: oklch(21% 0.014 250);

  --shadow-card: 0 1px 2px oklch(21% 0.014 250 / 0.05), 0 8px 24px oklch(21% 0.014 250 / 0.06);
  --shadow-raised: 0 2px 4px oklch(21% 0.014 250 / 0.06), 0 16px 40px oklch(21% 0.014 250 / 0.09);
}

/*
 * Dark applies on an explicit choice, or on the system preference when the
 * visitor has not chosen. The :not([data-theme]) guard is what lets an
 * explicit "light" choice win over a dark operating system.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;

    --bg: oklch(16.5% 0.012 250);
    --bg-subtle: oklch(19.5% 0.013 250);
    --surface: oklch(20.5% 0.014 250);
    --surface-raised: oklch(24% 0.015 250);

    --ink: oklch(96.5% 0.004 250);
    --ink-secondary: oklch(78% 0.011 250);
    --ink-muted: oklch(68% 0.013 250);

    --rule: oklch(29% 0.015 250);
    --rule-strong: oklch(38% 0.017 250);

    --accent: oklch(72% 0.142 250);
    --accent-hover: oklch(79% 0.128 250);
    --accent-soft: oklch(27% 0.05 250);
    --accent-ink: oklch(16.5% 0.012 250);

    --positive: oklch(76% 0.126 162);
    --positive-soft: oklch(26% 0.045 162);
    --warning: oklch(80% 0.126 82);
    --warning-soft: oklch(27% 0.045 82);
    --danger: oklch(72% 0.152 26);
    --danger-soft: oklch(27% 0.06 26);

    --focus-ring: oklch(82% 0.128 250);
    --selection-bg: oklch(36% 0.09 250);
    --selection-ink: oklch(97% 0.004 250);

    --shadow-card: 0 1px 2px oklch(0% 0 0 / 0.4), 0 8px 24px oklch(0% 0 0 / 0.34);
    --shadow-raised: 0 2px 4px oklch(0% 0 0 / 0.45), 0 16px 40px oklch(0% 0 0 / 0.45);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --bg: oklch(16.5% 0.012 250);
  --bg-subtle: oklch(19.5% 0.013 250);
  --surface: oklch(20.5% 0.014 250);
  --surface-raised: oklch(24% 0.015 250);

  --ink: oklch(96.5% 0.004 250);
  --ink-secondary: oklch(78% 0.011 250);
  --ink-muted: oklch(68% 0.013 250);

  --rule: oklch(29% 0.015 250);
  --rule-strong: oklch(38% 0.017 250);

  --accent: oklch(72% 0.142 250);
  --accent-hover: oklch(79% 0.128 250);
  --accent-soft: oklch(27% 0.05 250);
  --accent-ink: oklch(16.5% 0.012 250);

  --positive: oklch(76% 0.126 162);
  --positive-soft: oklch(26% 0.045 162);
  --warning: oklch(80% 0.126 82);
  --warning-soft: oklch(27% 0.045 82);
  --danger: oklch(72% 0.152 26);
  --danger-soft: oklch(27% 0.06 26);

  --focus-ring: oklch(82% 0.128 250);
  --selection-bg: oklch(36% 0.09 250);
  --selection-ink: oklch(97% 0.004 250);

  --shadow-card: 0 1px 2px oklch(0% 0 0 / 0.4), 0 8px 24px oklch(0% 0 0 / 0.34);
  --shadow-raised: 0 2px 4px oklch(0% 0 0 / 0.45), 0 16px 40px oklch(0% 0 0 / 0.45);
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */

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

* {
  margin: 0;
  scrollbar-color: var(--rule-strong) transparent;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/*
 * The hidden attribute has to win.
 *
 * The browser's own rule is [hidden] { display: none }, at the lowest
 * precedence there is. Any class here that sets a display - .notice is flex,
 * .card is flex - beats it, and an error box meant to appear only on failure
 * renders as an empty coloured bar on every visit. This is the one place the
 * !important is the correct tool: "hidden means hidden" admits no exception.
 */
[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background-color: var(--selection-bg);
  color: var(--selection-ink);
}

input,
textarea {
  caret-color: var(--accent);
}

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

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--rule-strong);
  border: 3px solid var(--bg);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--ink-muted);
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

/* Data reads as data: figures line up column to column. */
table,
.tabular {
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  letter-spacing: -0.022em;
  line-height: 1.15;
}

h4,
h5,
h6 {
  line-height: 1.3;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: from-font;
}

a:hover {
  color: var(--accent-hover);
}

/* Anchors land below the sticky header instead of under it. */
[id] {
  scroll-margin-top: 6rem;
}

ul,
ol {
  padding-inline-start: 0;
  list-style: none;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 48rem) {
  .container {
    padding-inline: 2rem;
  }
}

/*
 * Body measure held at a readable line length, per the craft floor. DESIGN.md
 * documents this utility; it existed in the previous stylesheet and was dropped
 * by accident when this one was written by hand, which went unnoticed because
 * no template used it until the trademark notice on the pricing page did.
 */
.prose-measure {
  max-width: 68ch;
}

.section {
  padding-block: 3.5rem;
}

@media (min-width: 64rem) {
  .section {
    padding-block: 5rem;
  }
}

.section--tight {
  padding-block: 2.5rem;
}

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

.measure {
  max-width: 68ch;
}

.display {
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  z-index: var(--z-overlay);
  background-color: var(--accent);
  color: var(--accent-ink);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-control);
  text-decoration: none;
  transition: inset-block-start 0.15s ease;
}

.skip-link:focus {
  inset-block-start: 1rem;
  color: var(--accent-ink);
}

/* ==========================================================================
   4. Controls
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* WCAG 2.2 target size: never below 24px, and 40px is the real floor here. */
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

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

.btn--secondary {
  background-color: var(--surface);
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn--secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--ink-muted);
  color: var(--ink);
}

.btn--ghost {
  background-color: transparent;
  color: var(--ink-secondary);
}

.btn--ghost:hover {
  background-color: var(--bg-subtle);
  color: var(--ink);
}

.btn--lg {
  min-height: 2.875rem;
  padding: 0.6875rem 1.375rem;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--ink-secondary);
  cursor: pointer;
}

.icon-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--ink);
}

.icon-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  background-color: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

/*
 * The wordmark. It carries the name itself, so nothing is set beside it, and
 * the intrinsic width/height on the element keep the row from shifting while
 * the file arrives.
 */
.brand__mark {
  display: block;
  width: auto;
  height: 1.75rem;
}

/*
 * One file per theme, swapped by the same cascade the tokens use: the operating
 * system preference applies only while the visitor has made no choice, and an
 * explicit choice wins in both directions.
 *
 * Both files are fetched, and that is deliberate. The engine marks further down
 * are lazy so the hidden one never downloads, and the same trick was tried here
 * first. It does not work for a mark that has to survive a theme switch: a lazy
 * image that is display:none at load is never fetched, and revealing it later
 * does not make the browser fetch it. Measured on the built tree - three
 * seconds after switching theme, naturalWidth was still 0 and the header
 * carried an empty box.
 */
.brand__mark--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand__mark--light {
    display: none;
  }

  :root:not([data-theme]) .brand__mark--dark {
    display: block;
  }
}

:root[data-theme='dark'] .brand__mark--light {
  display: none;
}

:root[data-theme='dark'] .brand__mark--dark {
  display: block;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-inline-end: auto;
}

@media (min-width: 64rem) {
  .primary-nav {
    display: flex;
  }
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  color: var(--ink-secondary);
  text-decoration: none;
}

.primary-nav a:hover {
  background-color: var(--bg-subtle);
  color: var(--ink);
}

.primary-nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

@media (min-width: 64rem) {
  .header-actions {
    margin-inline-start: 0;
  }
}

.header-actions .btn--ghost,
.header-actions .btn--primary {
  display: none;
}

@media (min-width: 48rem) {
  .header-actions .btn--ghost,
  .header-actions .btn--primary {
    display: inline-flex;
  }
}

.menu-toggle {
  display: inline-flex;
}

@media (min-width: 64rem) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-block-start: 1px solid var(--rule);
  background-color: var(--surface);
}

.mobile-nav[data-open='true'] {
  display: block;
}

@media (min-width: 64rem) {
  .mobile-nav[data-open='true'] {
    display: none;
  }
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding-block: 0.75rem;
}

.mobile-nav a {
  display: block;
  padding: 0.6875rem 0;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--ink);
}

/* A menu the script never reaches must not hide its links from the visitor. */
.no-js .menu-toggle {
  display: none;
}

.no-js .mobile-nav {
  display: block;
}

@media (min-width: 64rem) {
  .no-js .mobile-nav {
    display: none;
  }
}

/* ==========================================================================
   6. Language and theme pickers
   ========================================================================== */

.picker {
  position: relative;
}

.picker__button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.625rem;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  cursor: pointer;
}

.picker__button:hover {
  background-color: var(--bg-subtle);
  color: var(--ink);
}

.picker__button svg {
  width: 1rem;
  height: 1rem;
}

.picker__menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.375rem);
  z-index: var(--z-dropdown);
  min-width: 12rem;
  padding: 0.25rem;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised);
}

.picker__menu[hidden] {
  display: none;
}

.picker__menu a {
  display: block;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  color: var(--ink-secondary);
  text-decoration: none;
}

.picker__menu a:hover {
  background-color: var(--bg-subtle);
  color: var(--ink);
}

.picker__menu a[aria-current='true'] {
  color: var(--ink);
  font-weight: 500;
  background-color: var(--accent-soft);
}

/* ==========================================================================
   7. Page header and breadcrumbs
   ========================================================================== */

.page-header {
  padding-block: 3rem 2.5rem;
  border-block-end: 1px solid var(--rule);
}

@media (min-width: 64rem) {
  .page-header {
    padding-block: 4rem 3rem;
  }
}

.page-header h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 600;
  margin-block-start: 0.75rem;
}

.page-header__intro {
  margin-block-start: 1rem;
  max-width: 60ch;
  font-size: 1.0625rem;
  color: var(--ink-secondary);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.breadcrumb li + li::before {
  content: '/';
  margin-inline-end: 0.375rem;
  color: var(--rule-strong);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

/* ==========================================================================
   8. Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4rem 3.5rem;
}

@media (min-width: 64rem) {
  .hero {
    padding-block: 6rem 5rem;
  }
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  font-weight: 600;
  max-width: 20ch;
}

.hero__lead {
  margin-block-start: 1.25rem;
  max-width: 56ch;
  font-size: 1.125rem;
  color: var(--ink-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   9. Cards and grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 48rem) and (max-width: 63.999rem) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}

.card--raised {
  box-shadow: var(--shadow-card);
}

.card--accent {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

/*
 * Unclassed elements only.
 *
 * A plain ".card p" scores one class plus one element, which beats the single
 * class of ".panel__figure" or ".plan__for" no matter where they sit in the
 * file. That is how a figure meant to read at 30px silently rendered at 15px.
 * The :not([class]) guard keeps the convenience of styling a bare paragraph
 * inside a card while leaving anything that names its own class alone.
 */
.card h3:not([class]) {
  font-size: 1.0625rem;
  font-weight: 600;
}

.card p:not([class]) {
  margin-block-start: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 600;
}

.section-intro {
  margin-block-start: 0.75rem;
  max-width: 62ch;
  color: var(--ink-secondary);
}

/* ==========================================================================
   10. Lists with a check mark
   ========================================================================== */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.check-list svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-block-start: 0.25rem;
  color: var(--positive);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
}

.step-list li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step-list h3 {
  font-size: 1rem;
  font-weight: 600;
}

.step-list p {
  margin-block-start: 0.375rem;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   11. Notices and badges
   ========================================================================== */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background-color: var(--bg-subtle);
  font-size: 0.875rem;
}

.notice svg {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-block-start: 0.125rem;
}

.notice--warning {
  border-color: color-mix(in oklab, var(--warning) 35%, transparent);
  background-color: var(--warning-soft);
}

.notice--warning svg {
  color: var(--warning);
}

.notice--danger {
  border-color: color-mix(in oklab, var(--danger) 35%, transparent);
  background-color: var(--danger-soft);
}

.notice--danger svg {
  color: var(--danger);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 500;
}

.badge--accent {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.badge--warning {
  background-color: var(--warning-soft);
  color: var(--warning);
}

/* ==========================================================================
   12. Pricing
   ========================================================================== */

.plan__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan__for {
  margin-block-start: 0.5rem;
  min-height: 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-block-start: 1.5rem;
}

.plan__amount {
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan__unit {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.plan__note {
  margin-block-start: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.plan__includes {
  margin-block-start: 1.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}

.plan .btn {
  margin-block-start: 1.5rem;
}

.plan .check-list {
  margin-block-start: 0.75rem;
}

/* ==========================================================================
   13. Prose (legal pages, long text)
   ========================================================================== */

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-block-start: 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.prose h3 {
  margin-block-start: 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.prose p,
.prose ul,
.prose ol {
  margin-block-start: 1rem;
  color: var(--ink-secondary);
}

.prose ul {
  list-style: disc;
  padding-inline-start: 1.25rem;
}

.prose ol {
  list-style: decimal;
  padding-inline-start: 1.25rem;
}

.prose li {
  margin-block-start: 0.375rem;
}

/* ==========================================================================
   14. Accordion (frequently asked questions)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  border-block-start: 1px solid var(--rule);
}

.faq-item {
  border-block-end: 1px solid var(--rule);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-inline-end: 2px solid var(--ink-muted);
  border-block-end: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item p {
  padding-block-end: 1.25rem;
  max-width: 68ch;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   15. Forms
   ========================================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  max-width: 26rem;
}

.form--wide {
  max-width: 36rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 2.625rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  font-size: 0.9375rem;
}

.textarea {
  min-height: 8rem;
  resize: vertical;
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--accent);
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--danger);
}

.field__error {
  font-size: 0.8125rem;
  color: var(--danger);
}

.form__status {
  font-size: 0.875rem;
}

.form__status[data-tone='error'] {
  color: var(--danger);
}

.form__status[data-tone='success'] {
  color: var(--positive);
}

.form-aside {
  margin-block-start: 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.site-footer {
  margin-block-start: auto;
  border-block-start: 1px solid var(--rule);
  background-color: var(--bg-subtle);
  padding-block: 3rem 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 64rem) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  }
}

.footer-grid h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-stretch: normal;
  letter-spacing: 0.07em;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block-start: 0.875rem;
}

.footer-grid a {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-brand p {
  margin-block-start: 0.75rem;
  max-width: 32ch;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: 2.5rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   17. Language chooser at the root
   ========================================================================== */

.chooser {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.chooser__languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ==========================================================================
   18. Illustrative panel on the home page
   ========================================================================== */

.panel__row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block-end: 1.5rem;
  border-block-end: 1px solid var(--rule);
}

.panel__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.panel__figure {
  margin-block-start: 0.375rem;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.panel__unit {
  font-size: 1.125rem;
  color: var(--ink-muted);
}

.panel__delta {
  margin-block-start: 0.25rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.panel__table {
  width: 100%;
  margin-block-start: 1.5rem;
  border-collapse: collapse;
}

.panel__table th,
.panel__table td {
  padding-block: 0.625rem;
  text-align: start;
  font-size: 0.875rem;
  font-weight: 400;
}

.panel__table thead th {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-block-end: 1px solid var(--rule);
}

.panel__table tbody th {
  color: var(--ink-secondary);
  font-weight: 400;
}

.panel__table tbody tr:first-child th {
  color: var(--ink);
  font-weight: 500;
}

.panel__table td {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bar {
  display: block;
  flex: 1;
  max-width: 18rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background-color: var(--rule);
  position: relative;
  overflow: hidden;
}

.bar::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--bar, 0%);
  background-color: var(--accent);
  border-radius: var(--radius-pill);
}

.panel__table tbody tr:not(:first-child) .bar::before {
  background-color: var(--rule-strong);
}

.panel__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   19. Page-specific pieces
   ========================================================================== */

.feature-group + .feature-group {
  border-block-start: 1px solid var(--rule);
}

.step-detail {
  margin-block-start: 0.625rem;
  padding-inline-start: 0.875rem;
  border-inline-start: 2px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 2rem;
}

.chain li {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}

.chain li:not(:last-child)::after {
  content: '';
  width: 0.4375rem;
  height: 0.4375rem;
  margin-inline-start: 0.625rem;
  border-inline-end: 1.5px solid var(--rule-strong);
  border-block-start: 1.5px solid var(--rule-strong);
  transform: rotate(45deg);
}

.contact-list {
  margin-block-start: 1.25rem;
}

.contact-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.contact-list dd {
  margin-block: 0.375rem 1.25rem;
  margin-inline-start: 0;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.auth-panel {
  max-width: 26rem;
}

.auth-panel h1 {
  font-size: 1.75rem;
  font-weight: 600;
}

.auth-panel .page-header__intro {
  margin-block-start: 0.5rem;
  font-size: 0.9375rem;
}

.auth-panel .form {
  margin-block-start: 1.75rem;
}

/* ==========================================================================
   20. Spacing and width helpers
   ==========================================================================
   A small, closed set. They exist so no element needs a style attribute:
   inline styles would force style-src 'unsafe-inline' into the Content-
   Security-Policy, and that is precisely the permission this site was rebuilt
   to stop needing.
   ========================================================================== */

.mt-0 { margin-block-start: 0; }
.mt-xs { margin-block-start: 0.375rem; }
.mt-sm { margin-block-start: 0.5rem; }
.mt-md { margin-block-start: 0.75rem; }
.mt-lg { margin-block-start: 1rem; }
.mt-xl { margin-block-start: 1.25rem; }
.mt-2xl { margin-block-start: 1.5rem; }
.mt-3xl { margin-block-start: 2rem; }

.w-42 { max-width: 42rem; }
.w-44 { max-width: 44rem; }
.w-46 { max-width: 46rem; }
.w-48 { max-width: 48rem; }
.w-prose { max-width: 68ch; }

.text-strong { font-weight: 500; }
.text-h1 { font-size: 1.5rem; }
.text-h2 { font-size: 1.25rem; }
.text-h3 { font-size: 1.125rem; }

.brand--lg {
  /* It is the page heading at the root, so it is an h1; the wordmark keeps its
     own size rather than the heading scale. */
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand--lg .brand__mark {
  height: 2.75rem;
}

/* The illustrative shares on the home page, as data rather than as style. */
.bar[data-share='38']::before { width: 38%; }
.bar[data-share='26']::before { width: 26%; }
.bar[data-share='21']::before { width: 21%; }
.bar[data-share='15']::before { width: 15%; }

/* ==========================================================================
   21. External identity providers
   ========================================================================== */

.form-divider {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-block-start: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--rule);
}

.oauth {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-block-start: 1rem;
}

/*
 * The provider marks keep their own colours in both themes. They are the other
 * company's trademark, not part of this palette, and recolouring them to match
 * would misrepresent the mark.
 */
.oauth svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* ==========================================================================
   22. Engine selector on the pricing cards
   ========================================================================== */

.engines {
  margin-block-start: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  background-color: var(--bg-subtle);
}

.engines > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  /* WCAG 2.2 target size: the whole row is the control, never just the arrow. */
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.engines > summary::-webkit-details-marker {
  display: none;
}

.engines > summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-inline-start: 0.125rem;
  border-inline-end: 1.5px solid var(--ink-muted);
  border-block-end: 1.5px solid var(--ink-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}

.engines[open] > summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.engines__count {
  margin-inline-start: auto;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

/*
 * Six engines visible, the rest reached by scrolling.
 *
 * The catalogue changes and will keep changing. Listing all of it inside a plan
 * card pushes the price and the sign-up button far off the screen, and the
 * reader loses the thing the card exists to show. Six is enough to make the list
 * read as a list rather than a fixed set of options, and it keeps the whole card
 * on one screen.
 *
 * The height is derived, not guessed: --engines-row matches the min-height of
 * .engines__item below, so changing the row height in one place keeps the count
 * honest. The trailing term is this element's own vertical padding.
 *
 * overscroll-behavior stops the page from scrolling on once the list reaches
 * its end, which otherwise jumps the reader out of the card mid-gesture.
 */
.engines__list {
  --engines-row: 2.25rem;
  --engines-visible: 6;

  display: flex;
  flex-direction: column;
  max-height: calc(var(--engines-visible) * var(--engines-row) + 0.75rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.25rem 0.375rem 0.5rem;
  border-block-start: 1px solid var(--rule);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}

.engines__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.375rem;
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  cursor: pointer;
}

.engines__item:hover {
  background-color: var(--surface);
}

.engines__item input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.engines__mark {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
}

/*
 * Two files for one mark, when the owner publishes it in a single flat colour.
 * OpenAI ships the Blossom in black and in white; the black one vanishes on the
 * dark theme. Their brand terms forbid modifying the mark, so recolouring it
 * with a CSS filter is not an option - we swap between the two files they
 * published instead. Marks that carry their own colours ship one file and never
 * match these rules.
 *
 * The cascade mirrors the theme tokens exactly: the light file is the default,
 * the operating system preference only applies while the visitor has made no
 * choice, and an explicit choice wins in both directions.
 */
.engines__mark--dark {
  display: none;
}

/*
 * The trademark notice under the plan cards. Small and quiet, but not hidden:
 * it is the sentence that says the marks above belong to other companies and
 * that none of them endorses GeoTopX.
 */
.engines__trademarks {
  margin-block-start: 2rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .engines__mark--light {
    display: none;
  }

  :root:not([data-theme]) .engines__mark--dark {
    display: inline-block;
  }
}

:root[data-theme='dark'] .engines__mark--light {
  display: none;
}

:root[data-theme='dark'] .engines__mark--dark {
  display: inline-block;
}

/*
 * Shown when no mark file has been supplied for an engine. A plain monogram in
 * the site's own neutrals, deliberately not a drawn approximation of somebody
 * else's logo: an inaccurate mark is worse than an obvious placeholder. Drop
 * assets/motores/<id>.svg in and the generator uses the real one.
 */
.engines__mark--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  background-color: var(--surface);
  color: var(--ink-secondary);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.engines__name {
  color: var(--ink);
}

.engines__vendor {
  margin-inline-start: auto;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.engines__hint,
.engines__limit {
  padding: 0 0.75rem 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.engines__limit {
  color: var(--warning);
}
