/* =========================================================
   TREVIQUE — Design System & Site Styles
   Plain CSS, no build step. Mobile-first, then min-width overrides.
   ========================================================= */

:root {
  /* Color */
  --c-bg: #ffffff;
  --c-bg-subtle: #f6f7f9;
  --c-bg-subtle-2: #eef0f4;
  --c-ink: #0b0e14;
  --c-ink-soft: #2a2f3a;
  --c-muted: #5b6270;
  --c-muted-2: #6b7280;
  --c-border: #e4e7ec;
  --c-border-strong: #d3d7de;
  --c-accent: #2447e6;
  --c-accent-ink: #16309e;
  --c-accent-bg: #eef1fe;
  --c-accent-bg-strong: #dfe4fd;
  --c-warn-bg: #fff8ec;
  --c-warn-border: #f0dcb0;
  --c-warn-ink: #7a5b12;
  --c-dark: #0b0e14;
  --c-dark-soft: #171b25;
  --c-dark-border: #262c3a;
  --c-dark-ink: #eef0f4;
  --c-dark-muted: #9aa1b2;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Helvetica Neue",
    Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --container-narrow: 760px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 14, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 14, 20, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 14, 20, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 560ms;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

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

@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;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* -------------------- Layout helpers -------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
}

@media (max-width: 720px) {
  .section {
    padding-block: 64px;
  }
}

.section--subtle {
  background: var(--c-bg-subtle);
}

.section--dark {
  background: var(--c-dark);
  color: var(--c-dark-ink);
}

.section--dark .eyebrow {
  color: var(--c-dark-muted);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

h2.h-lg {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 16px;
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1.75;
}

.section--dark .section-sub {
  color: var(--c-dark-muted);
}

/* Reveal-on-scroll is opt-in via the .js class (set synchronously in <head>).
   Without JS, .reveal content is visible by default — no permanently-hidden content. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--c-ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--c-accent);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-border-strong);
}

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

.section--dark .btn-ghost {
  color: var(--c-dark-ink);
  border-color: var(--c-dark-border);
}

.section--dark .btn-ghost:hover {
  border-color: var(--c-dark-ink);
  background: var(--c-dark-soft);
}

.btn-block {
  width: 100%;
}

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 1px 0 rgba(11, 14, 20, 0.02);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav-desktop {
  display: none;
}

@media (min-width: 1100px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

.nav-desktop a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-ink-soft);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}

.nav-desktop a:hover {
  color: var(--c-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  padding: 3px;
  font-size: 13px;
  font-weight: 600;
}

.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--c-muted);
}

.lang-switch a[aria-current="true"] {
  background: var(--c-ink);
  color: #fff;
}

.header-cta {
  display: none;
}

@media (min-width: 720px) {
  .header-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--c-border-strong);
  background: #fff;
}

@media (min-width: 1100px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-nav {
  position: fixed;
  inset: 72px 0 0 0;
  background: #fff;
  z-index: 90;
  padding: 28px 24px;
  display: none;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 16px 4px;
  font-size: 19px;
  font-weight: 600;
  border-bottom: 1px solid var(--c-border);
}

.mobile-nav .lang-switch {
  margin-top: 24px;
  width: max-content;
}

.mobile-nav .btn {
  margin-top: 24px;
}

@media (min-width: 1100px) {
  .mobile-nav {
    display: none !important;
  }
}

/* -------------------- Hero -------------------- */
.hero {
  padding-block: 108px 96px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 720px) {
  .hero {
    padding-block: 56px 64px;
  }
}

.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.hero__sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 52ch;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--c-muted-2);
}

/* Hero flow visual */
.flow-card {
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.flow-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-chip {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(10px);
  animation: chipIn var(--dur-slow) var(--ease) forwards;
}

.flow-chip:nth-child(1) { animation-delay: 80ms; }
.flow-chip:nth-child(3) { animation-delay: 220ms; }
.flow-chip:nth-child(5) { animation-delay: 360ms; }
.flow-chip:nth-child(7) { animation-delay: 500ms; }

@keyframes chipIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.flow-chip__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--c-accent-bg);
  color: var(--c-accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.flow-chip__icon svg {
  width: 18px;
  height: 18px;
}

.flow-chip strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.flow-chip span {
  display: block;
  font-size: 12.5px;
  color: var(--c-muted-2);
  margin-top: 2px;
}

.flow-chip--accent {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

.flow-chip--accent .flow-chip__icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.flow-chip--accent span {
  color: rgba(255, 255, 255, 0.65);
}

.flow-arrow {
  align-self: center;
  color: var(--c-muted-2);
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}

/* -------------------- Problem flow diagram -------------------- */
.process-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 108px;
}

.process-step__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step__icon svg {
  width: 26px;
  height: 26px;
  color: var(--c-ink-soft);
}

.process-step span {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--c-ink-soft);
}

.process-arrow {
  color: var(--c-muted-2);
  width: 20px;
  height: 20px;
  flex: none;
}

.process-caption {
  margin-top: 22px;
  text-align: center;
  color: var(--c-muted);
  font-size: 15px;
}

.symptom-grid {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

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

.symptom-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}

.symptom-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c-accent-bg);
  color: var(--c-accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.symptom-card__icon svg {
  width: 20px;
  height: 20px;
}

.symptom-card p {
  font-size: 15.5px;
  color: var(--c-ink-soft);
  line-height: 1.7;
}

/* -------------------- Before / After -------------------- */
.compare {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 860px) {
  .compare {
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
  }
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--c-border);
}

.compare-card--before {
  background: var(--c-bg-subtle);
}

.compare-card--after {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

.compare-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-bg-subtle-2);
  color: var(--c-muted);
  margin-bottom: 22px;
}

.compare-card--after .compare-label {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-list li {
  display: flex;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.6;
}

.compare-list__num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--c-border-strong);
  color: var(--c-ink-soft);
}

.compare-card--after .compare-list__num {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.compare-note {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 18px;
}

.compare-divider {
  display: none;
}

@media (min-width: 860px) {
  .compare-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-bg-subtle-2);
    color: var(--c-muted);
    align-self: center;
  }
  .compare-divider svg {
    width: 20px;
    height: 20px;
  }
}

/* -------------------- What we automate -------------------- */
.automate-grid {
  display: grid;
  gap: 20px;
}

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

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

.automate-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.automate-card:hover {
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.automate-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--c-accent-bg);
  color: var(--c-accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.automate-card__icon svg {
  width: 22px;
  height: 22px;
}

.automate-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.automate-card p {
  font-size: 14.5px;
  color: var(--c-muted);
  line-height: 1.7;
}

.automate-foot {
  margin-top: 32px;
  padding: 20px 22px;
  background: var(--c-warn-bg);
  border: 1px solid var(--c-warn-border);
  border-radius: var(--radius-md);
  color: var(--c-warn-ink);
  font-size: 14.5px;
  line-height: 1.7;
}

/* -------------------- How it works -------------------- */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--c-dark-border);
}

.step-row {
  display: grid;
  gap: 8px;
  padding-block: 32px;
  border-bottom: 1px solid var(--c-dark-border);
}

@media (min-width: 760px) {
  .step-row {
    grid-template-columns: 100px 1fr 2fr;
    gap: 28px;
    align-items: baseline;
  }
}

.step-row__num {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-dark-muted);
  letter-spacing: 0.04em;
}

.step-row h3 {
  font-size: 19px;
  font-weight: 700;
}

.step-row p {
  color: var(--c-dark-muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 56ch;
}

/* -------------------- Safety -------------------- */
.safety-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .safety-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.safety-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.safety-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}

.safety-item__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--c-accent-bg);
  color: var(--c-accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.safety-item__icon svg {
  width: 18px;
  height: 18px;
}

.safety-item p {
  font-size: 15px;
  color: var(--c-ink-soft);
  line-height: 1.7;
}

.safety-closing {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* -------------------- Example workflow -------------------- */
.example-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--c-warn-bg);
  border: 1px solid var(--c-warn-border);
  color: var(--c-warn-ink);
  margin-bottom: 20px;
}

.example-scenario {
  font-size: 14.5px;
  color: var(--c-muted);
  margin-bottom: 28px;
}

.example-diagram {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  box-shadow: var(--shadow-sm);
}

.ex-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

@media (min-width: 860px) {
  .ex-row {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }
}

.ex-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ex-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.ex-file svg {
  width: 16px;
  height: 16px;
  color: var(--c-muted-2);
  flex: none;
}

.ex-node {
  text-align: center;
  padding: 22px 18px;
  background: var(--c-ink);
  color: #fff;
  border-radius: 14px;
}

.ex-node strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.ex-node span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}

.ex-output {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ex-review {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--c-warn-bg);
  border: 1px solid var(--c-warn-border);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-warn-ink);
}

.ex-review svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ex-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted-2);
  width: 22px;
  height: 22px;
  margin-inline: auto;
  transform: rotate(90deg);
}

@media (min-width: 860px) {
  .ex-arrow {
    transform: none;
  }
}

.example-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* -------------------- Pricing philosophy -------------------- */
.pricing-block {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .pricing-block {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.pricing-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.pricing-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pricing-point svg {
  width: 20px;
  height: 20px;
  color: var(--c-accent);
  flex: none;
  margin-top: 3px;
}

.pricing-point p {
  font-size: 15.5px;
  color: var(--c-ink-soft);
  line-height: 1.7;
}

.pricing-card {
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
}

.pricing-card h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.pricing-card p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.pricing-card .btn {
  margin-top: 24px;
}

/* -------------------- Markets (JP/US) -------------------- */
.markets-grid {
  display: grid;
  gap: 20px;
}

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

.market-card {
  padding: 30px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.market-card__flag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  margin-bottom: 12px;
}

.market-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.market-card p {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.75;
}

.lang-note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--c-muted);
}

.lang-note a {
  color: var(--c-accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------- Contact -------------------- */
.contact-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 940px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.contact-info h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.contact-info__sub {
  margin-top: 16px;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.8;
}

.contact-email {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--c-accent-ink);
  border-bottom: 1px solid var(--c-accent-bg-strong);
  padding-bottom: 3px;
}

.contact-email svg {
  width: 18px;
  height: 18px;
}

.contact-notice {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--c-warn-bg);
  border: 1px solid var(--c-warn-border);
  border-radius: var(--radius-md);
  color: var(--c-warn-ink);
  font-size: 14px;
  line-height: 1.7;
  display: flex;
  gap: 12px;
}

.contact-notice svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-ink-soft);
  margin-bottom: 8px;
}

.form-row .req {
  color: var(--c-accent);
  font-weight: 700;
  margin-left: 2px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: 10px;
  background: var(--c-bg-subtle);
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--c-accent);
  background: #fff;
  outline: none;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-two {
  display: grid;
  gap: 20px;
}

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

.form-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-muted-2);
  line-height: 1.6;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-ink);
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* -------------------- Final CTA band -------------------- */
.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band .hero__actions {
  justify-content: center;
  margin-top: 30px;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--c-dark);
  color: var(--c-dark-ink);
  padding-block: 64px 32px;
}

.footer-top {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c-dark-border);
}

@media (min-width: 760px) {
  .footer-top {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand .brand {
  color: var(--c-dark-ink);
}

.footer-tagline {
  margin-top: 14px;
  color: var(--c-dark-muted);
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-dark-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--c-dark-ink);
  opacity: 0.85;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--c-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: var(--c-dark-muted);
}

/* -------------------- 404 -------------------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-page h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  margin-bottom: 18px;
}

.error-page h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--c-muted);
  font-size: 16px;
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 28px;
}

/* -------------------- Legal / privacy -------------------- */
.legal {
  padding-block: 72px 100px;
}

.legal h1 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--c-muted-2);
  font-size: 14px;
  margin-bottom: 44px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal p,
.legal li {
  color: var(--c-ink-soft);
  font-size: 15.5px;
  line-height: 1.85;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal a {
  color: var(--c-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
