/* GEO366 official site
   Light, corporate, teal + yellow — airy sans-serif system.
   Tokens aligned with a common GEO-agency visual language, original mark and copy. */

:root {
  --teal: #5fbfbb;
  --teal-dark: #089e9a;
  --teal-soft: #7cd6d2;
  --teal-wash: rgba(95, 191, 187, 0.08);
  --teal-wash-2: rgba(95, 191, 187, 0.16);
  --yellow: #ffd932;
  --yellow-deep: #e6c21c;
  --white: #ffffff;
  --gray: #f0f2f5;
  --ink: #1a1a2e;
  --text: #1a1a2e;
  --text-2: #4a5568;
  --muted: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --dark: #061413;
  --dark-2: #071b1a;
  --danger: #c23b32;
  --focus: #089e9a;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --font: "Manrope", "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
  --radius: 0.5rem;
  --radius-m: 0.75rem;
  --radius-l: 1rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --step--1: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1: clamp(1.02rem, 0.95rem + 0.4vw, 1.15rem);
  --step-2: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --step-3: clamp(1.85rem, 1.25rem + 2vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.4rem + 3.2vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.4rem + 4.6vw, 4.85rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  background: var(--white);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.8;
  background: var(--white);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

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

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(8, 158, 154, 0.45);
}

a:hover { color: var(--teal-dark); text-decoration-color: var(--teal-dark); }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.wrap-narrow,
.page-hero .wrap-narrow {
  width: min(var(--wrap-narrow), 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.brand:hover { color: var(--ink); text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.35rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after,
.nav-list a.is-active::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-deep);
  color: var(--ink);
  border-color: var(--yellow-deep);
}

.btn-dark,
.btn-ink,
.btn-nav {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-dark:hover,
.btn-ink:hover,
.btn-nav:hover {
  background: #111122;
  color: var(--white);
  border-color: #111122;
}

.btn-nav {
  min-height: 40px;
  padding: 0.4rem 1rem 0.4rem 1.15rem;
  font-size: 0.88rem;
  border-radius: 0.4rem;
}

.btn-outline,
.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn-outline:hover,
.btn-ghost:hover {
  background: var(--teal-wash);
  color: var(--teal-dark);
}

.btn-paper {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-arrow { font-weight: 500; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  align-items: center;
}

/* Hero
   ------------------------------------------------------------------ */
.home-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  color: var(--text);
  padding: calc(var(--header-h) + 2.25rem) 0 0;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.hero-eyebrow,
.hero-eyebrow-right {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hero-copy {
  padding: clamp(3.5rem, 10vh, 7rem) 0 clamp(3rem, 8vh, 6rem);
  max-width: none;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-5);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #4a5060;
  margin: 0;
  max-width: 16em;
  text-wrap: balance;
}

.hero-underline {
  display: block;
  width: 4.25rem;
  height: 3px;
  background: var(--teal);
  margin: 1.5rem 0 1.75rem;
  border-radius: 2px;
}

.hero-lede,
.lede {
  font-size: var(--step-1);
  line-height: 1.85;
  color: var(--text-2);
  margin: 0 0 1.75rem;
  max-width: 38em;
}

.hero-bottom {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
}

.hero-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

/* Sections
   ------------------------------------------------------------------ */
.section {
  padding: clamp(4.25rem, 7vw, 6.5rem) 0;
  position: relative;
  background: var(--white);
}

.section-soft { background: var(--gray); }
.section-rule { border-top: 1px solid var(--line); }

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.section-head.wide { max-width: 46rem; }

.section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  margin: 0 0 0.7rem;
  font-weight: 600;
  text-transform: none;
}
.kicker::before { content: none; }

.section-title,
.page-hero h1,
.article-body h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-title { font-size: var(--step-3); }

.section-desc {
  margin: 0;
  color: var(--text-2);
  font-size: var(--step-1);
  line-height: 1.85;
}

.prose {
  font-size: var(--step-1);
  max-width: 42rem;
  color: var(--text-2);
}
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }

.split,
.split-reverse {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Insight / stats
   ------------------------------------------------------------------ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.5rem 1.4rem 1.35rem;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.stat-value,
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--teal-dark);
  margin: 0 0 0.85rem;
}

.stat-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.stat-card .stat-label { color: var(--text-2); font-size: var(--step--1); }

.note-update {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Dual offering color blocks
   ------------------------------------------------------------------ */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.color-block {
  position: relative;
  min-height: 280px;
  padding: clamp(1.6rem, 3vw, 2.35rem);
  border-radius: 0.35rem;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.color-block-yellow { background: var(--yellow); }
.color-block-teal { background: var(--teal); }

.color-block-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: auto;
}

.color-block h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
  color: var(--ink);
}

.block-arrow {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(26, 26, 46, 0.28);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink);
}

.color-block-lead {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  max-width: 22em;
}

.color-block-meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(26, 26, 46, 0.7);
}

/* GEO dimensions
   ------------------------------------------------------------------ */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem;
}

.dim-card {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.dim-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.dim-card p { margin: 0; color: var(--text-2); }

/* Method
   ------------------------------------------------------------------ */
.method-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.method-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.25rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.method-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--teal-dark);
}

.method-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.method-item p { margin: 0; color: var(--text-2); }

.soon-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.08rem 0.5rem;
  border: 0;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 600;
  vertical-align: 0.12em;
}

/* Tiers
   ------------------------------------------------------------------ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.7rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
}

.tier-card.is-featured {
  background: var(--white);
  color: var(--ink);
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow);
}

.tier-card.is-featured p,
.tier-card.is-featured .tier-for,
.tier-card.is-featured li {
  color: var(--text-2);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: var(--ink);
}

.tier-for {
  margin: 0 0 1.15rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.tier-card ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.tier-card li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.tier-card.is-featured li { border-top-color: var(--line); }

.tier-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
}

.tier-price {
  font-size: 0.92rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 600;
}

/* Process
   ------------------------------------------------------------------ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-step {
  padding: 0 1.1rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.process-step + .process-step {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.process-step p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

.process-index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

/* Platforms — typographic logo wall
   ------------------------------------------------------------------ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 0.8rem 0.6rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  text-align: center;
  border-radius: 0;
}

.platform-chip:nth-child(6n) { border-right: 0; }
.platform-chip:nth-last-child(-n + 6) { border-bottom: 0; }

.platform-chip strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.platform-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Why / manifesto
   ------------------------------------------------------------------ */
.manifesto { max-width: 46rem; }

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

.manifesto li {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.45;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.manifesto .closing {
  margin: 2rem 0 0;
  color: var(--text-2);
  font-size: var(--step-1);
  max-width: 38rem;
}

/* About teaser / cases
   ------------------------------------------------------------------ */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-panel {
  background: var(--teal);
  color: var(--ink);
  border-radius: 0.35rem;
  min-height: 260px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.about-panel-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.about-panel-tag {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(26, 26, 46, 0.75);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.case-slot {
  min-height: 280px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
  padding: 1.4rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.case-slot-index {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--muted);
}

.case-slot-badge {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-weight: 600;
}

.case-slot h3 {
  margin: 1.2rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-2);
}

.case-slot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Forms
   ------------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.3rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.req { color: var(--teal-dark); }

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  min-height: 46px;
  outline: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash-2);
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  min-height: 1.1em;
}

.form-note,
.form-success p {
  font-size: 0.88rem;
  color: var(--text-2);
}

.form-success { display: none; }

.form.is-success .form-grid,
.form.is-success .form-actions,
.form.is-success .form-note { display: none; }

.form.is-success .form-success {
  display: block;
  padding: 0.5rem 0 0.25rem;
}

.form-success h3 {
  font-family: var(--font-display);
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.checkbox-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.checkbox-set label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 400;
}

.checkbox-set input {
  width: auto;
  min-height: 0;
  background: none;
  border: 0;
  box-shadow: none;
  accent-color: var(--teal-dark);
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--white);
  color: var(--text);
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin: 1rem 0 0;
  color: var(--text-2);
  max-width: 22rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-nav h2 {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

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

.footer-nav a {
  display: inline-block;
  padding: 0.2rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.footer-nav a:hover { color: var(--teal-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
}

.footer-bottom a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--teal-dark); }

.placeholder-flag { color: #b45309; }

/* Inner pages
   ------------------------------------------------------------------ */
.page-hero {
  padding: calc(var(--header-h) + 3.25rem) 0 3.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: var(--step-4); color: var(--ink); }
.page-hero .lede { color: var(--text-2); margin-bottom: 0; }

.page-hero-center { text-align: center; }
.page-hero-center .lede { margin-inline: auto; }
.page-hero-center .btn-row { margin-top: 1.75rem; }

.article-list { display: grid; gap: 0; }

.article-card {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.article-card:hover { color: inherit; text-decoration: none; }
.article-card:hover h2 { color: var(--teal-dark); }

.article-date {
  font-family: var(--font);
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.article-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.article-card p { margin: 0; color: var(--text-2); }

.article-body {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  font-size: 1.05rem;
}

.article-body h1 {
  font-size: var(--step-3);
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.article-meta {
  color: var(--muted);
  margin: 0 0 2.5rem;
  font-size: 0.92rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.2rem 0 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.article-body p,
.article-body li { color: var(--text-2); }

.article-body ul { padding-left: 1.2rem; }

.article-body a,
.prose a { color: var(--teal-dark); }

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

.value-card {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.value-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.value-card p { margin: 0; color: var(--text-2); }

.tier-detail { display: grid; gap: 1rem; }

.tier-detail-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) 1fr;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--white);
}

.tier-detail-card.is-featured {
  background: var(--teal-wash);
  color: var(--ink);
  border-color: var(--teal);
}

.tier-detail-card.is-featured p,
.tier-detail-card.is-featured li { color: var(--text-2); }

.tier-detail-card ul {
  margin: 1rem 0;
  padding-left: 1.15rem;
}
.tier-detail-card li { margin: 0.4rem 0; color: var(--text-2); }

.legal-draft {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.2rem 0.6rem;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 6rem) var(--pad) 6rem;
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

/* Motion
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(0.8rem);
  animation: rise 0.8s var(--ease) forwards;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.2s; }
.d4 { animation-delay: 0.28s; }
.d5 { animation-delay: 0.36s; }

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

.js-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-ready .reveal-on-scroll.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive
   ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .stat-grid,
  .tier-grid,
  .case-grid,
  .split,
  .split-reverse,
  .about-teaser,
  .contact-layout,
  .offer-grid,
  .footer-top,
  .article-card,
  .tier-detail-card,
  .section-head-row {
    grid-template-columns: 1fr;
  }

  .process-grid { grid-template-columns: 1fr; }
  .process-step + .process-step {
    border-left: 0;
    padding-left: 0;
  }

  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .platform-chip:nth-child(6n) { border-right: 1px solid var(--line); }
  .platform-chip:nth-child(3n) { border-right: 0; }
  .platform-chip:nth-last-child(-n + 6) { border-bottom: 1px solid var(--line); }
  .platform-chip:nth-last-child(-n + 3) { border-bottom: 0; }

  .dim-grid,
  .values-grid,
  .footer-nav { grid-template-columns: 1fr 1fr; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    color: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem var(--pad) 2rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    overflow: auto;
    border-top: 1px solid var(--line);
  }

  body.nav-open .site-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .nav-list a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
  }

  .site-nav .btn-nav {
    align-self: flex-start;
    margin-top: 1rem;
  }

  .home-hero { min-height: 0; }
  .hero-copy { padding: 2.5rem 0 2.25rem; }
  .color-block h3 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .form-grid,
  .dim-grid,
  .values-grid,
  .footer-nav,
  .platform-grid { grid-template-columns: 1fr; }

  .platform-chip { border-right: 0; }
  .platform-chip:nth-child(3n) { border-right: 0; }
  .platform-chip:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .platform-chip:last-child { border-bottom: 0; }

  .method-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero-top { flex-direction: column; gap: 0.35rem; }
  .section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .reveal,
  .js-ready .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

@media (prefers-contrast: more) {
  .home-hero h1 { color: var(--ink); }
  .stat-card,
  .tier-card,
  .case-slot,
  .form { border-width: 2px; }
}


.nav-demo-tag {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #ffd932;
  color: #1a1a2e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.1em;
  line-height: 1.4;
}
.nav-list a:hover .nav-demo-tag,
.nav-list a.is-active .nav-demo-tag {
  background: #ffd932;
}
a.soon-pill {
  text-decoration: none;
}
a.soon-pill:hover {
  color: #1a1a2e;
  filter: brightness(0.97);
}
