/*
 * mineway.io — the landing page (specs/0008-landing-page.md).
 * The colours are the tokens of design-system/README.md §2. The brand gold #F2B705 is only in the mark; the UI accent
 * is #f2c438 with dark ink text, and yellow text on light uses #8f6500. The muted text is darker than the token of the
 * app (#4a5568 on white) so that every small text has a contrast of 4.5:1 or more.
 */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-latin.woff2?v=1") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --card: #ffffff;
  --ink: #1e2a36;
  --text: #2d3748;
  --muted: #4a5568;
  --line: #e2e8f0;
  --line-strong: #cbd5e0;
  --accent: #f2c438;
  --accent-hover: #dbb032;
  --accent-ink: #1b2632;
  --accent-soft: #fdf6dd;
  --link: #8f6500;
  --success: #17803d;
  --danger: #c81e36;
  --danger-soft: #fde8eb;
  --success-soft: #e3f4e8;
  --band: #1e2a36;
  --band-text: #e4e8ee;
  --band-muted: #b8c2cf;
  --shadow-card: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
  --shadow-shot: 0 24px 60px -24px rgb(16 24 40 / 35%), 0 2px 6px rgb(16 24 40 / 8%);
  --contours: url("/assets/contours.svg");
  --radius: 12px;
  --gutter: 16px;
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1f1e;
    --bg-soft: #242625;
    --card: #2a2c2b;
    --ink: #f3f5f8;
    --text: #e4e8ee;
    --muted: #b6bdc8;
    --line: #3a3d3c;
    --line-strong: #4b4f4d;
    --accent-soft: #3a3214;
    --link: #f2c438;
    --success: #4cc276;
    --danger: #ff6b7d;
    --danger-soft: #3b1a1c;
    --success-soft: #16301f;
    --band: #121a22;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 45%);
    --shadow-shot: 0 24px 60px -24px rgb(0 0 0 / 70%), 0 2px 6px rgb(0 0 0 / 40%);
    --contours: url("/assets/contours-dark.svg");
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  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 svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 30px;
  width: auto;
}

.site-nav {
  display: none;
  gap: 28px;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .signin {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 10px;
}

.header-actions .signin:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }
}

@media (max-width: 420px) {
  .brand img {
    height: 26px;
  }

  .header-actions .btn-small {
    padding-inline: 12px;
  }
}

/* The lockup: the ink wordmark on light, the white wordmark on dark. */
.only-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .only-light {
    display: none;
  }

  .only-dark {
    display: block;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-block: 56px 0;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg) 70%);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  background: var(--contours) right -160px top -40px / 1200px 760px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 30%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 0, transparent 30%, #000 75%);
  z-index: -1;
}

@media (max-width: 959px) {
  .hero::before {
    opacity: 0.5;
  }
}

.hero-copy {
  max-width: 800px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.eyebrow .dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent);
  flex: none;
}

.eyebrow .dot svg {
  width: 20px;
  height: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 62%);
}

.hero .lead {
  margin-top: 20px;
  max-width: 680px;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-shot {
  margin-top: 48px;
  margin-bottom: -1px;
}

/* A screenshot in a window frame. */
.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-shot);
  overflow: hidden;
}

.shot::before {
  content: "";
  display: block;
  height: 26px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16px 13px, #e5534b 4px, transparent 4.5px),
    radial-gradient(circle at 32px 13px, #e6a23c 4px, transparent 4.5px),
    radial-gradient(circle at 48px 13px, #4cae4f 4px, transparent 4.5px),
    var(--bg-soft);
}

.hero .shot {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: 72px;
}

@media (min-width: 960px) {
  .section {
    padding-block: 104px;
  }
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-head .kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--link);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.075rem;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.card p {
  margin-top: 8px;
  color: var(--muted);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--link);
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* ---------------------------------------------------------------- the flow (como funciona) */

.flow {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 960px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.flow .card {
  position: relative;
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.step-label::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

@media (min-width: 960px) {
  .flow .card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--line-strong);
    border-right: 2px solid var(--line-strong);
    transform: translateY(-50%) rotate(45deg);
  }
}

.roundtrip {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
}

.roundtrip ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.roundtrip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.roundtrip li:not(:last-child)::after {
  content: "→";
  color: var(--muted);
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.chip-accent {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.roundtrip p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- features */

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

.feature + .feature {
  margin-top: 88px;
}

@media (min-width: 1024px) {
  .feature {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }

  .feature.reverse .feature-copy {
    order: 2;
  }
}

.feature-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--link);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-copy .kicker svg {
  width: 18px;
  height: 18px;
}

.feature-copy h3 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-copy > p,
.feature-copy .intro > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.checks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success-soft);
  border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 9px;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(45deg);
}

.checks strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- tools */

.tool-name {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.tool-how {
  display: block;
  margin-top: 4px;
  color: var(--link);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- governance band */

.band {
  background: var(--band);
  color: var(--band-text);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/contours-dark.svg") right -200px top -120px / 1200px 760px no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 45%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 0, transparent 45%, #000 85%);
  z-index: -1;
}

.band h2,
.band h3 {
  color: #ffffff;
}

.band .section-head p,
.band .card p {
  color: var(--band-muted);
}

.band .section-head .kicker {
  color: #f2c438;
}

.band .card {
  background: rgb(255 255 255 / 4%);
  border-color: rgb(255 255 255 / 12%);
  box-shadow: none;
}

.band .icon {
  background: rgb(242 196 56 / 14%);
  color: #f2c438;
}

.band a {
  color: #f2c438;
}

/* ---------------------------------------------------------------- personas */

.persona h3 {
  font-size: 1.05rem;
}

.persona ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.persona li + li {
  margin-top: 4px;
}

/* ---------------------------------------------------------------- FAQ */

.faq {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--ink);
  font-size: 1.075rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq .answer {
  padding: 0 0 22px;
  color: var(--muted);
}

.faq .answer p + p {
  margin-top: 10px;
}

/* ---------------------------------------------------------------- contact */

.contact {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .contact {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }
}

.contact-copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-direct {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.contact-direct span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-direct a {
  font-size: 1.1rem;
  font-weight: 600;
}

.form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .form {
    padding: 32px;
  }
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.925rem;
  font-weight: 600;
}

.field .req {
  color: var(--danger);
}

.field .opt {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 0;
  border-color: var(--link);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.875rem;
}

.field-error:empty {
  display: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.925rem;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #c99a00;
}

.consent label {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.form-actions small {
  color: var(--muted);
  font-size: 0.85rem;
}

.form-status {
  margin-top: 18px;
}

.form-status:empty {
  display: none;
}

.notice {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.notice strong {
  display: block;
  color: var(--ink);
}

.notice-success {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
}

.notice-danger {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}

/* ---------------------------------------------------------------- final call */

.final-cta {
  text-align: center;
}

.final-cta p {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.075rem;
}

.final-cta .hero-actions {
  justify-content: center;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.925rem;
}

.site-footer .container {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.site-footer img {
  height: 26px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text);
}

.footer-legal {
  grid-column: 1 / -1;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- simple pages (privacy, results, 404) */

.page {
  padding-block: 56px 88px;
}

.prose {
  max-width: 760px;
}

.prose h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
}

.prose h2 {
  margin-top: 40px;
  font-size: 1.35rem;
}

.prose p,
.prose ul {
  margin-top: 14px;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.925rem;
}

.result {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.result .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
}

.result .icon svg {
  width: 28px;
  height: 28px;
}

.result p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.075rem;
}

.result .hero-actions {
  justify-content: center;
}

.icon-success {
  background: var(--success-soft);
  color: var(--success);
}

.icon-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------------------------------------------------------------- tags */

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--link);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 2px;
  white-space: nowrap;
}

.tag-large {
  margin: 0;
  padding: 6px 12px;
  font-size: 0.85rem;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- the ecosystem (spec 0008 R12) */

.eco {
  display: grid;
  gap: 16px;
}

.eco-hub {
  padding: 28px;
  border-radius: 16px;
  background: var(--band);
  color: var(--band-text);
  text-align: center;
  box-shadow: var(--shadow-shot);
}

.eco-hub h3 {
  margin-top: 14px;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
}

.eco-mark {
  display: inline-block;
  width: 64px;
  height: 64px;
}

.eco-mark svg {
  width: 64px;
  height: 64px;
}

.eco-hub-sub {
  color: #f2c438;
  font-weight: 600;
}

.eco-hub ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.eco-hub li {
  padding: 4px 10px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: var(--band-text);
  font-size: 0.85rem;
}

.eco-node {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.eco-node .icon {
  flex: none;
  margin: 0;
}

.eco-node h3 {
  font-size: 1.05rem;
}

.eco-node p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 1024px) {
  .eco {
    grid-template-columns: 1fr minmax(280px, 0.9fr) 1fr;
    grid-template-areas:
      "web hub field"
      "arcgis hub model"
      "ai hub api";
    column-gap: 56px;
    row-gap: 20px;
  }

  .eco-hub {
    grid-area: hub;
    align-self: center;
  }

  .eco-web { grid-area: web; }
  .eco-field { grid-area: field; }
  .eco-arcgis { grid-area: arcgis; }
  .eco-model { grid-area: model; }
  .eco-ai { grid-area: ai; }
  .eco-api { grid-area: api; }

  /* The link of each part to the hub: a dashed line from the side of the card. */
  .eco-node::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 56px;
    border-top: 2px dashed var(--line-strong);
  }

  .eco-web::after,
  .eco-arcgis::after,
  .eco-ai::after {
    left: 100%;
  }

  .eco-field::after,
  .eco-model::after,
  .eco-api::after {
    right: 100%;
  }
}

/* ---------------------------------------------------------------- Mineway Field (spec 0008 R13) */

.field-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.feature-copy h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
}

.phone-wrap {
  display: flex;
  justify-content: center;
  padding-block: 8px;
  background: var(--contours) center / 900px 570px no-repeat;
}

/* A neutral phone in the brand style: an illustration, not a store screenshot. */
.phone {
  width: 300px;
  max-width: 100%;
  padding: 12px;
  border-radius: 44px;
  background: #1e2a36;
  box-shadow: var(--shadow-shot), inset 0 0 0 2px #2f3e4d;
}

.phone-screen {
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
  color: #2d3748;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  min-height: 580px;
}

@media (prefers-color-scheme: dark) {
  .phone-screen {
    background: #242625;
    color: #e4e8ee;
  }
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 6px;
  font-weight: 600;
}

.phone-icons svg {
  width: 14px;
  height: 14px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 10px;
  border-bottom: 1px solid rgb(128 128 128 / 22%);
}

.phone-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.phone-mark svg {
  display: block;
  width: 22px;
  height: 22px;
}

.phone-sync {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f2c438;
  color: #1b2632;
  font-weight: 700;
}

.phone-offline {
  margin: 10px 12px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fdf1dc;
  color: #7a4800;
  font-size: 11px;
}

@media (prefers-color-scheme: dark) {
  .phone-offline {
    background: #3a2c12;
    color: #f0b450;
  }
}

.phone-project {
  padding: 10px 16px 4px;
  font-weight: 600;
}

.phone-tabs {
  display: flex;
  gap: 16px;
  padding: 6px 16px 0;
  border-bottom: 1px solid rgb(128 128 128 / 22%);
}

.phone-tabs span {
  padding-bottom: 7px;
  opacity: 0.75;
}

.phone-tabs .on {
  opacity: 1;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #f2c438;
}

.phone-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 12px 4px;
  padding: 7px 10px;
  border: 1px solid rgb(128 128 128 / 30%);
  border-radius: 8px;
  opacity: 0.8;
}

.phone-search svg {
  width: 13px;
  height: 13px;
}

.phone-list {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  flex: 1;
}

.phone-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name state" "meta state";
  padding: 9px 4px;
  border-bottom: 1px solid rgb(128 128 128 / 18%);
}

.phone-list b {
  grid-area: name;
  font-size: 13px;
}

.phone-list span {
  grid-area: meta;
  opacity: 0.75;
}

.phone-list em {
  grid-area: state;
  align-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e3f4e8;
  color: #17803d;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}

.phone-list em.pending {
  background: #fdf1dc;
  color: #7a4800;
}

@media (prefers-color-scheme: dark) {
  .phone-list em {
    background: #16301f;
    color: #4cc276;
  }

  .phone-list em.pending {
    background: #3a2c12;
    color: #f0b450;
  }
}

.phone-fab {
  align-self: flex-end;
  margin: 10px 14px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #f2c438;
  color: #1b2632;
  font-weight: 700;
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 6px 16px;
  border-top: 1px solid rgb(128 128 128 / 22%);
  font-size: 10.5px;
}

.phone-nav span {
  opacity: 0.7;
}

.phone-nav .on {
  opacity: 1;
  font-weight: 700;
  color: #8f6500;
}

@media (prefers-color-scheme: dark) {
  .phone-nav .on {
    color: #f2c438;
  }
}

/* The section kicker of the contact block. */
.contact-copy .kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--link);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- wide features: the copy above, the screenshot in the full width */

.feature.wide {
  display: block;
}

.feature.wide .feature-copy {
  display: grid;
  gap: 8px 56px;
  margin-bottom: 32px;
}

.feature.wide .checks {
  margin-top: 0;
  align-content: start;
}

@media (min-width: 1024px) {
  .feature.wide .feature-copy {
    grid-template-columns: 5fr 6fr;
  }
}

@media (max-width: 1023px) {
  .feature.wide .checks {
    margin-top: 12px;
  }
}

@media (min-width: 1024px) {
  .feature.split {
    grid-template-columns: 6fr 5fr;
  }
}

/* The call of the header: a short label on a phone. */
.label-short {
  display: none;
}

@media (max-width: 479px) {
  .label-long {
    display: none;
  }

  .label-short {
    display: inline;
  }
}
