/* Cordaria landing — tokens mirror the product UI (assets/css/_root.css):
   ink for text, blue for the decision, coral for cost, green for defensible
   contribution. Swap this block when Cordaria's final identity lands. */
:root {
  --ink: #142033;
  --ink-soft: #35425a;
  --muted: #5f6d86;
  --bg: #ffffff;
  --bg-alt: #f3f5f6;
  --surface: #ffffff;
  --line: #dce4ea;
  --line-soft: #eef2f4;
  --control-line: #8793a6;
  --control-line-dark: #78869b;
  --blue: #315dcc;
  --blue-deep: #274bb0;
  --blue-soft: #e8eefb;
  --coral: #e85d3f;
  --coral-soft: #fdece8;
  --green: #167b61;
  --green-soft: #e3f3ec;
  --amber: #c88718;
  --font-body:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:
    "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --shadow: 0 18px 40px -24px rgba(20, 32, 51, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01";
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px var(--blue-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--control-line-dark);
}

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

.btn-small {
  padding: 9px 14px;
  font-size: 14px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 88px 0 72px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.hero > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  max-width: 16ch;
}

.hero .lede {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero .lead-form {
  margin-top: 34px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.hero .lead-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 220px;
}

/* Forms */
.lead-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 640px;
  align-items: end;
}

.lead-form.compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field label span {
  font-weight: 400;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 140ms ease;
}

.field input::placeholder {
  color: #68768d;
}

.field input:hover {
  border-color: var(--control-line-dark);
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent);
}

.field input:focus-visible {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 5px var(--blue-deep);
}

.field input[aria-invalid="true"] {
  border-color: var(--coral);
}

.lead-form .btn {
  min-height: 50px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note,
.form-status {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--muted);
}

.form-status:empty {
  display: none;
}

.form-status[data-tone="success"] {
  color: var(--green);
  font-weight: 500;
}

.form-status[data-tone="error"] {
  color: #b4392c;
  font-weight: 500;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line));
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--ink);
  max-width: 640px;
}

.form-success svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--green);
  margin-top: 2px;
}

.form-success > div {
  min-width: 0;
}

.form-success span {
  overflow-wrap: anywhere;
}

.form-success strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 2px;
}

/* Hero visual: illustrative decision card */
.hero-visual {
  position: relative;
}

.decision-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.decision-scroll {
  overflow-x: auto;
}

.decision-scroll:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
  border-radius: 2px;
}

.decision-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}

.decision-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.decision-table th,
.decision-table td {
  padding: 13px 20px;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

.decision-table th:first-child,
.decision-table td:first-child {
  text-align: left;
}

.decision-table thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.decision-table tbody th {
  font-weight: 500;
  color: var(--ink-soft);
}

.decision-table td {
  font-family: var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
}

.decision-table td .delta {
  display: inline-block;
  min-width: 68px;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.delta.up {
  background: var(--green-soft);
  color: var(--green);
}

.delta.down {
  background: var(--coral-soft);
  color: #b4392c;
}

.delta.flat {
  background: var(--line-soft);
  color: var(--muted);
}

.agent-note {
  display: flex;
  gap: 14px;
  padding: 18px 20px 20px;
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.agent-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
}

.agent-avatar svg {
  width: 18px;
  height: 18px;
}

.agent-note strong {
  font-weight: 600;
}

.agent-note .trace {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
}

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

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

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 15.5px;
}

.step-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.audience .section-head {
  margin-bottom: 0;
}

.situations {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.situations li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 15.5px;
}

.situations svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--blue);
  margin-top: 1px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.pillar-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 18px;
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
}

.pillar h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.pillar p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Final capture */
.capture {
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
  border-top: 0;
}

.capture-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.capture h2 {
  font-size: clamp(32px, 4vw, 46px);
  color: #fff;
}

.capture p {
  margin-top: 14px;
  color: #c3cddd;
  font-size: 18px;
  max-width: 44ch;
}

.capture .kicker {
  color: #8caaff;
}

.capture .kicker::before {
  background: #8caaff;
}

.capture .field label {
  color: #dbe3ef;
}

.capture .field input {
  background: #1b2a40;
  border-color: var(--control-line-dark);
  color: #fff;
}

.capture .field input::placeholder {
  color: #8491a5;
}

.capture .form-note {
  color: #9fb0c8;
}

.capture .form-status[data-tone="success"] {
  color: #70d6b7;
}

.capture .form-status[data-tone="error"] {
  color: #ffac91;
}

.capture .form-success {
  background: #1b2a40;
  border-color: #304252;
  color: #fff;
}

.capture .form-success svg {
  color: #70d6b7;
}

/* Legal + footer */
.legal {
  padding: 40px 0;
  font-size: 14px;
  color: var(--muted);
  scroll-margin-top: 84px;
}

.legal h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.legal p {
  max-width: 80ch;
}

.legal p + p {
  margin-top: 14px;
}

.site-footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: var(--ink-soft);
}

.capture .form-note a {
  color: #d6e0ed;
}

.capture .form-note a:hover {
  color: #fff;
}

/* Simple pages (gracias / 404) */
.simple {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 0;
}

.simple h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  max-width: 18ch;
}

.simple p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
}

.simple .actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .decision-card {
    animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .decision-table td .delta {
    display: block;
    margin: 4px 0 0 auto;
    min-width: 0;
    width: max-content;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 64px 0 56px;
  }

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

  .audience,
  .capture-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(var(--max), 100% - 36px);
  }

  .nav-links {
    display: none;
  }

  .lead-form,
  .lead-form.compact,
  .hero .lead-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-form .btn,
  .hero .lead-form .btn {
    width: 100%;
    justify-self: stretch;
  }

  .section {
    padding: 56px 0;
  }

  .capture {
    padding: 64px 0;
  }

  .decision-table th,
  .decision-table td {
    padding: 11px 14px;
    font-size: 14px;
  }

  .agent-note {
    font-size: 14.5px;
  }
}
