:root {
  color-scheme: light;
  --page: #eef1ee;
  --page-2: #e2e7e2;
  --surface: #fbfcfb;
  --surface-2: #f5f7f5;
  --ink: #111413;
  --ink-2: #292f2d;
  --charcoal: #1d2322;
  --charcoal-2: #28302e;
  --muted: #68716e;
  --quiet: #8b9490;
  --line: rgba(17, 20, 19, 0.11);
  --line-strong: rgba(17, 20, 19, 0.2);
  --line-invert: rgba(251, 252, 251, 0.15);
  --slate: #637276;
  --slate-dark: #465458;
  --accent: #3f6f8a;
  --accent-dark: #284e63;
  --accent-soft: #d7e4ea;
  --stone: #cfd6d1;
  --warm: #b7775f;
  --shadow: 0 24px 70px rgba(17, 20, 19, 0.11);
  --shadow-soft: 0 14px 34px rgba(17, 20, 19, 0.08);
  --radius: 8px;
  --header-height: 72px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(17, 20, 19, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 19, 0.028) 1px, transparent 1px),
    linear-gradient(112deg, transparent 0 66%, rgba(99, 114, 118, 0.1) 66.08% 66.18%, transparent 66.3%),
    var(--page);
  background-size: 88px 88px, 88px 88px, auto, auto;
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 0 auto;
  z-index: -1;
  width: clamp(72px, 13vw, 190px);
  border-left: 1px solid rgba(17, 20, 19, 0.08);
  background:
    linear-gradient(180deg, rgba(63, 111, 138, 0.12), transparent 38%),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(17, 20, 19, 0.06) 34px 35px),
    rgba(226, 231, 226, 0.54);
  pointer-events: none;
}

body.nav-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  transform: translateY(-140%);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--surface);
  padding: 10px 14px;
  font-weight: 760;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 241, 238, 0.88);
  padding: 0 max(24px, calc((100% - var(--container)) / 2));
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  right: max(24px, calc((100% - var(--container)) / 2));
  bottom: -1px;
  left: max(24px, calc((100% - var(--container)) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.44;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
}

.brand img {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 10px 18px rgba(17, 20, 19, 0.1));
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.footer-links a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 690;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 11px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.footer-links a {
  padding: 8px 4px;
}

.footer-links a::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 7px;
  left: 4px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.text-action:hover,
.text-action:focus-visible,
.contact-direct a:hover,
.contact-direct a:focus-visible {
  color: var(--ink);
  outline: none;
}

.footer-links a:hover::before,
.footer-links a:focus-visible::before {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-compact {
  padding: 24px 0 88px;
}

.section-band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(112deg, rgba(251, 252, 251, 0.86) 0 52%, rgba(215, 228, 234, 0.64) 52.1%),
    var(--page-2);
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 19, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 19, 0.03) 1px, transparent 1px);
  background-size: 78px 78px;
  pointer-events: none;
}

.hero {
  overflow: hidden;
  padding-top: 94px;
  padding-bottom: 98px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 36px;
  right: max(24px, calc((100% - var(--container)) / 2));
  bottom: 36px;
  z-index: -1;
  width: min(44vw, 570px);
  border: 1px solid var(--line-invert);
  border-radius: var(--radius);
  background:
    linear-gradient(116deg, transparent 0 63%, rgba(63, 111, 138, 0.24) 63.08% 63.28%, transparent 63.4%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(90deg, rgba(251, 252, 251, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(251, 252, 251, 0.055) 1px, transparent 1px),
    var(--charcoal);
  background-size: auto, 54px 54px, 54px 54px, auto;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  top: 80px;
  right: calc(max(24px, calc((100% - var(--container)) / 2)) + min(9vw, 120px));
  z-index: -1;
  width: min(30vw, 340px);
  height: 420px;
  border: 1px solid rgba(251, 252, 251, 0.08);
  transform: skewX(-10deg);
  background: linear-gradient(180deg, rgba(63, 111, 138, 0.16), transparent);
  pointer-events: none;
}

.hero-grid,
.trust-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 68px;
  align-items: center;
}

.hero-copy {
  position: relative;
  max-width: 640px;
  padding: 18px 0 24px;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 92px;
  height: 3px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--charcoal), var(--accent), var(--warm));
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 39px;
}

h2 {
  max-width: 690px;
  margin-bottom: 16px;
  font-size: 31px;
}

h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.hero-lede {
  max-width: 580px;
  margin-bottom: 28px;
  color: var(--ink-2);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 10px 15px;
  font-weight: 740;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--charcoal);
  color: var(--surface);
  box-shadow: 0 18px 36px rgba(17, 20, 19, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button-secondary {
  background: rgba(251, 252, 251, 0.7);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

button.button:disabled,
button.button:disabled:hover,
button.button:disabled:focus-visible {
  transform: none;
  cursor: not-allowed;
  opacity: 0.78;
  box-shadow: none;
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-dark);
  font-weight: 740;
}

.text-action::after {
  content: "->";
  margin-left: 9px;
  color: var(--warm);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

.hero-brief {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-invert);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(251, 252, 251, 0.12), rgba(251, 252, 251, 0.04)),
    rgba(29, 35, 34, 0.92);
  padding: 28px;
  box-shadow: 0 30px 90px rgba(17, 20, 19, 0.22);
  backdrop-filter: blur(14px);
}

.hero-brief::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--accent);
  pointer-events: none;
}

.hero-brief::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: 28px;
  width: 180px;
  height: 1px;
  transform: rotate(-32deg);
  background: rgba(251, 252, 251, 0.18);
}

.brief-header {
  border-bottom: 1px solid var(--line-invert);
  padding-bottom: 19px;
}

.brief-header h2 {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--surface);
  font-size: 23px;
  line-height: 1.22;
}

.hero-brief .eyebrow {
  color: var(--accent-soft);
}

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

.brief-list li {
  position: relative;
  border-bottom: 1px solid var(--line-invert);
  padding: 13px 0 13px 27px;
  color: rgba(251, 252, 251, 0.72);
}

.brief-list li:last-child {
  border-bottom: 0;
}

.brief-list li::before {
  content: "";
  position: absolute;
  top: 1.52em;
  left: 0;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent-soft);
  transform: rotate(45deg);
}

.summary-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px;
  box-shadow: var(--shadow);
}

.summary-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--charcoal), var(--accent), var(--warm), transparent);
}

.summary-panel h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.summary-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.summary-copy p {
  margin-bottom: 0;
  color: var(--ink-2);
}

.section-heading {
  position: relative;
  max-width: 700px;
  margin-bottom: 30px;
}

.section-heading::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--charcoal), var(--accent), var(--warm));
}

.section-heading p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

.service-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  min-height: 156px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 24px;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.service-row:nth-child(2n) {
  border-right: 0;
}

.service-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.service-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  transform: scaleY(0);
  transform-origin: top;
  background: var(--accent);
  transition: transform 180ms ease;
}

.service-row:hover {
  background: var(--surface-2);
}

.service-row:hover::before {
  transform: scaleY(1);
}

.service-number {
  color: var(--accent-dark);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 12px;
  font-weight: 780;
}

.service-row h3 {
  font-size: 19px;
}

.service-row p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.trust-grid,
.about-grid,
.contact-grid {
  align-items: start;
}

.section-band .section-heading {
  max-width: 620px;
  margin-bottom: 0;
}

.principle-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.principle-list div {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 20px 20px 54px;
  box-shadow: var(--shadow-soft);
}

.principle-list div::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 21px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent-dark);
  transform: rotate(45deg);
}

.principle-list p:last-child,
.about-copy p:last-child {
  margin-bottom: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(112deg, var(--surface) 0 64%, var(--page-2) 64.1%),
    var(--surface);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.prompt-journal-card {
  border-color: rgba(139, 174, 255, 0.28);
  background:
    linear-gradient(112deg, rgba(13, 23, 36, 0.98) 0 52%, rgba(28, 43, 68, 0.96) 52.1% 72%, rgba(55, 31, 45, 0.94) 72.1%),
    #171c24;
  color: #f4f7fb;
  box-shadow: 0 18px 42px rgba(8, 11, 17, 0.18);
}

.fernandod-card {
  border-color: rgba(214, 188, 135, 0.44);
  background:
    linear-gradient(112deg, rgba(21, 31, 43, 0.98) 0 50%, rgba(94, 3, 8, 0.96) 50.1% 70%, rgba(209, 149, 85, 0.92) 70.1%),
    #151f2b;
  color: #f9f9f9;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.prompt-journal-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #143d37 0%, #1b63d6 38%, #bd5268 68%, #e47a63 100%);
}

.fernandod-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #5e0308 0%, #780900 34%, #d19555 68%, #d6bc87 100%);
}

.app-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: 26px;
  width: 150px;
  height: 1px;
  transform: rotate(-30deg);
  background: rgba(17, 20, 19, 0.18);
}

.prompt-journal-card::after {
  background: linear-gradient(90deg, rgba(139, 174, 255, 0.52), rgba(212, 115, 140, 0.5), rgba(228, 122, 99, 0.46));
}

.fernandod-card::after {
  background: linear-gradient(90deg, rgba(94, 3, 8, 0.54), rgba(214, 188, 135, 0.52), rgba(249, 249, 249, 0.42));
}

.app-initials {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--surface);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-weight: 780;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
}

.prompt-journal-icon {
  filter: drop-shadow(0 14px 24px rgba(8, 11, 17, 0.3));
}

.fernandod-initials {
  border-color: rgba(214, 188, 135, 0.72);
  background: #fefefd;
  box-shadow: inset 0 0 0 4px rgba(214, 188, 135, 0.22);
  color: #5e0308;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.app-initials-alt {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.app-label {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 11px;
  font-weight: 740;
  text-transform: uppercase;
  letter-spacing: 0;
}

.prompt-journal-card .app-label {
  color: #56d6e3;
}

.fernandod-card .app-label {
  color: #d6bc87;
}

.prompt-journal-card h3 {
  color: #ffffff;
}

.prompt-journal-card p {
  color: #d8e0ec;
}

.fernandod-card h3 {
  color: #ffffff;
}

.fernandod-card p {
  color: #f1e7d6;
}

.app-card p {
  margin-bottom: 12px;
}

.app-link,
.planned-link {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.app-link {
  color: #8baeff;
  text-decoration: underline;
  text-decoration-color: rgba(139, 174, 255, 0.46);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.fernandod-card .app-link {
  color: #d6bc87;
  text-decoration-color: rgba(214, 188, 135, 0.52);
}

.app-link:hover,
.app-link:focus-visible {
  color: #d4738c;
  outline: none;
  text-decoration-color: currentColor;
}

.fernandod-card .app-link:hover,
.fernandod-card .app-link:focus-visible {
  color: #f1e7d6;
}

.about-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 25px;
  box-shadow: var(--shadow-soft);
}

.about-copy p {
  color: var(--ink-2);
  font-size: 17px;
}

.contact-section {
  padding-bottom: 110px;
}

.contact-copy {
  max-width: 620px;
}

.contact-direct {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}

.contact-direct a {
  width: fit-content;
  color: var(--ink);
  font-weight: 740;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-direct .contact-phone {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-phone-number {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-phone-country {
  color: var(--quiet);
  font-size: 14px;
  font-weight: 700;
}

.contact-phone-country .contact-whatsapp {
  color: var(--accent-dark);
  font-size: inherit;
  font-weight: 760;
}

.contact-direct > span {
  color: var(--quiet);
  font-size: 14px;
}

.contact-form {
  display: grid;
  gap: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

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

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(63, 111, 138, 0.16);
}

.form-submit {
  justify-self: start;
  gap: 8px;
  min-width: 96px;
}

.form-submit.is-submitting::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(251, 252, 251, 0.36);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-spinner 760ms linear infinite;
}

.form-status {
  margin: 0;
  border: 1px solid rgba(63, 111, 138, 0.28);
  border-radius: var(--radius);
  background: rgba(63, 111, 138, 0.09);
  color: var(--ink);
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 680;
}

.form-status.is-error {
  border-color: rgba(154, 68, 53, 0.32);
  background: rgba(154, 68, 53, 0.1);
}

.contact-form .button-primary {
  background: var(--charcoal);
  color: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-form .button-primary:hover,
.contact-form .button-primary:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.contact-form .button-primary:disabled,
.contact-form .button-primary:disabled:hover,
.contact-form .button-primary:disabled:focus-visible {
  border-color: var(--charcoal);
  background: var(--charcoal);
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}

.form-note {
  margin-bottom: 0;
  color: var(--quiet);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 9px;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  flex-wrap: wrap;
}

.copyright {
  justify-self: end;
}

.legal-page {
  min-height: 58vh;
}

.legal-content {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 36px;
  box-shadow: var(--shadow);
}

.legal-content h1 {
  color: var(--ink);
  font-size: 38px;
}

.legal-content .button {
  margin-top: 8px;
}

.legal-content .button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 460ms ease,
    transform 460ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  :root {
    --container: 940px;
  }

  .hero-grid,
  .trust-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero::before {
    width: min(72vw, 660px);
    opacity: 0.62;
  }

  .hero::after {
    opacity: 0.52;
  }

  .service-ledger {
    grid-template-columns: 1fr;
  }

  .service-row,
  .service-row:nth-child(2n),
  .service-row:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-row:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    padding-inline: 16px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .section {
    padding: 70px 0;
  }

  .section-compact {
    padding: 10px 0 66px;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  .summary-panel,
  .summary-copy,
  .app-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .copyright {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  body::before,
  .hero::after {
    display: none;
  }

  .hero::before {
    inset: auto 0 0 0;
    width: 100%;
    height: 46%;
    border-inline: 0;
    border-radius: 0;
    opacity: 0.9;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .text-action {
    width: 100%;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .hero-lede,
  .about-copy p {
    font-size: 16px;
  }

  .hero-brief,
  .summary-panel,
  .about-copy,
  .contact-form,
  .legal-content {
    padding: 24px;
  }

  .service-row {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: auto;
    padding: 20px 18px;
  }

  .app-card {
    grid-template-columns: 1fr;
  }
}
