/* Takshara website.
   Ink and signal orange. Orange marks the one thing to do next (primary buttons)
   and the matches in the hero figure; everything else is ink, paper and rules.
   Type: DM Sans (variable, self-hosted, optical sizes on). */

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-var.woff") format("woff");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111418;
  --ink-2: #1b1f25;
  --graphite: #2a2f36;
  --signal: #ff5a1f;
  --signal-hover: #ff7342;
  --signal-text: #c2410c;     /* orange that passes AA as text on light surfaces */
  --signal-wash: #fff1ea;

  --paper: #fafaf7;
  --bone: #f2f1ec;
  --white: #ffffff;
  --text: #111418;
  --text-muted: #4e535b;
  --text-subtle: #676c75;
  --rule: #e4e2db;
  --rule-strong: #c8c5bc;

  --on-ink: #f3f2ee;
  --on-ink-muted: #a6abb3;
  --on-ink-rule: rgba(255, 255, 255, .12);

  --success: #17663a;
  --success-soft: #e3f3e8;
  --warn: #8a4b00;
  --warn-soft: #fdf0d9;
  --error: #a3161f;
  --error-soft: #fde4e4;

  --radius: 4px;
  --radius-lg: 10px;
  --wrap: 1200px;
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text);
  background: var(--white); font-optical-sizing: auto; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--signal-text); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; color: var(--ink); font-weight: 620; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.026em; font-weight: 630; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); letter-spacing: -.025em; }
h3 { font-size: 1.16rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 620; }
code { font-family: var(--mono); font-size: .88em; background: var(--bone); padding: .1em .35em; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 20px; height: 20px; flex: none; }

.draft-banner { background: #ffe9a8; color: #4a3500; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; }
mark.confirm { background: #ffe9a8; color: #4a3500; padding: 0 .25em; border-radius: 3px; font-weight: 600; }

/* ------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rule); }
.header-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { display: block; }
.brand-name { font-size: 1.32rem; font-weight: 680; letter-spacing: -.035em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { position: relative; color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: .97rem; padding: 8px 11px; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -16px; height: 2px; background: var(--signal); }
.site-nav .btn { white-space: nowrap; min-height: 40px; padding: 8px 15px; font-size: .95rem; }
.nav-login { margin-left: 14px; }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1179px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--rule); padding: 4px 20px 20px; box-shadow: 0 16px 24px -20px rgba(17, 20, 24, .45);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 4px; font-size: 1.02rem; color: var(--ink); border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { font-weight: 620; }
  .site-nav a[aria-current="page"]::after { left: -20px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .site-nav .btn { min-height: 46px; font-size: 1rem; }
  .nav-login { margin: 16px 0 0; }
  .nav-cta { margin: 8px 0 0; }
  .no-js .menu-toggle { display: none; }
  .no-js .site-nav { display: flex; position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px; }
  .no-js .header-inner { height: auto; flex-wrap: wrap; padding-top: 12px; }
}

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 11px 22px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s;
}
/* Ink text on orange: 5.9:1. White on this orange would fail contrast. */
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-hover); color: var(--ink); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, .32); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .04); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .icon { width: 18px; height: 18px; }

/* ------------------------------------------------ sections */
.section { position: relative; padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 104px 0; } }
.lead { font-size: 1.19rem; line-height: 1.55; color: var(--text-muted); max-width: 42rem; }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.muted { color: var(--text-muted); }
.small { font-size: .9rem; }

/* breadcrumbs on inner pages */
.crumbs { font-size: .9rem; color: var(--text-subtle); margin: 0 0 14px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); }
.crumbs span { margin: 0 8px; color: var(--rule-strong); }
.page-status { margin: -4px 0 16px; }

/* ------------------------------------------------ home hero: ink, one gradient */
.hero {
  position: relative; color: var(--on-ink); padding: 48px 0 0; overflow-x: clip;
  background: linear-gradient(152deg, var(--ink) 0%, var(--ink) 38%, var(--graphite) 100%);
}
@media (min-width: 1024px) { .hero { padding: 88px 0 0; } }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lead { color: var(--on-ink-muted); font-size: 1.15rem; max-width: 34rem; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 64px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero .disclosure { color: #8d929a; border-left-color: rgba(255, 255, 255, .2); }
.disclosure { font-size: .86rem; color: var(--text-subtle); border-left: 2px solid var(--rule-strong); padding-left: 12px; max-width: 36rem; margin: 0; }

/* capability strip closing the hero */
.chips { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--on-ink-rule); display: grid; grid-template-columns: 1fr 1fr; }
.chips li { margin: 0; padding: 16px 12px 16px 0; font-size: .95rem; font-weight: 500; color: var(--on-ink); line-height: 1.3; }
@media (min-width: 1024px) {
  .chips { grid-template-columns: repeat(5, 1fr); margin-top: 80px; }
  .chips li { padding: 22px 18px; border-left: 1px solid var(--on-ink-rule); }
  .chips li:first-child { padding-left: 0; border-left: 0; }
}

/* the matching figure: bank credits on the left, invoices on the right */
.match-figure {
  margin: 0; background: #181b21; border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius-lg);
  padding: 20px 20px 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
@media (min-width: 720px) { .match-figure { padding: 26px 28px 0; } }
.match-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.match-title { margin: 0; font-weight: 600; color: #fff; font-size: 1rem; }
.match-figure .illustration-label { background: rgba(253, 240, 217, .1); color: #f5c77e; }
.match-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; font-size: .8rem; color: var(--on-ink-muted); padding-bottom: 8px; border-bottom: 1px solid var(--on-ink-rule); }
.match-rows { list-style: none; margin: 0; padding: 0; }
.match-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center;
  margin: 0; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.match-row b { display: block; font-weight: 600; color: #fff; font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.match-row span { display: block; font-size: .8rem; color: var(--on-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-inv { padding-left: 4px; }
.m-link { position: relative; height: 12px; }
.m-link i {
  position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; background: var(--signal);
  transform-origin: left center; transform: scaleX(0); animation: link-draw .45s var(--ease) forwards;
}
.m-link::before, .m-link::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--signal); opacity: 0; animation: dot-in .2s ease forwards;
}
.m-link::before { left: 2px; }
.m-link::after { right: 2px; }
.match-row:nth-child(1) .m-link i, .match-row:nth-child(1) .m-link::before { animation-delay: .5s; }
.match-row:nth-child(1) .m-link::after { animation-delay: .9s; }
.match-row:nth-child(2) .m-link i, .match-row:nth-child(2) .m-link::before { animation-delay: .72s; }
.match-row:nth-child(2) .m-link::after { animation-delay: 1.12s; }
.match-row:nth-child(4) .m-link i, .match-row:nth-child(4) .m-link::before { animation-delay: .94s; }
.match-row:nth-child(4) .m-link::after { animation-delay: 1.34s; }
.match-row:nth-child(5) .m-link i, .match-row:nth-child(5) .m-link::before { animation-delay: 1.16s; }
.match-row:nth-child(5) .m-link::after { animation-delay: 1.56s; }
/* unmatched credit: a dashed stub that goes nowhere, and an outlined review tag */
.match-row.is-open .m-link i { right: 50%; background: none; border-top: 2px dashed rgba(255, 255, 255, .35); height: 0; animation-delay: 1.3s; }
.match-row.is-open .m-link::before { background: rgba(255, 255, 255, .45); animation-delay: 1.3s; }
.match-row.is-open .m-link::after { display: none; }
.match-row.is-open .m-inv b { display: inline-block; color: #f5c77e; font-size: .88rem; font-weight: 600; border: 1px dashed rgba(245, 199, 126, .55); border-radius: 3px; padding: 1px 7px; }
.match-row.is-partial .m-inv span { color: #f5c77e; white-space: normal; }
.match-foot { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0 20px; font-size: .88rem; color: var(--on-ink-muted); }
.match-foot b { color: #fff; font-weight: 650; }
@keyframes link-draw { to { transform: scaleX(1); } }
@keyframes dot-in { to { opacity: 1; } }
@media (max-width: 479px) {
  .match-row { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); }
  .match-cols { gap: 0 30px; }
  .match-row b { font-size: .93rem; }
  .match-row span { font-size: .76rem; }
  .match-row.is-open .m-inv b { font-size: .8rem; }
}

/* inner page heading band */
.page-hero { padding: 40px 0 32px; background: var(--paper); border-bottom: 1px solid var(--rule); overflow-x: clip; }
@media (min-width: 1024px) { .page-hero { padding: 72px 0 56px; } }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.page-hero .lead:last-child, .page-hero p:last-child { margin-bottom: 0; }

/* heading on the left, detail on the right */
.split { display: grid; gap: 28px; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; gap: 80px; } }
.split-head .lead { font-size: 1.08rem; }

/* product index: one ruled row per product */
.index-list { list-style: none; padding: 0; margin: 0 0 18px; border-top: 2px solid var(--ink); }
.index-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.index-list a { display: grid; gap: 6px 24px; padding: 24px 0; text-decoration: none; color: inherit; }
.index-list h3 { margin: 0; font-size: 1.25rem; }
.index-list p { margin: 0; color: var(--text-muted); max-width: 38rem; }
.index-list .status { justify-self: start; }
@media (min-width: 720px) {
  .index-list a { grid-template-columns: 1fr auto; }
  .index-list h3, .index-list p { grid-column: 1; }
  .index-list .status { grid-column: 2; grid-row: 1; align-self: center; }
}
.index-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* engineering rules on the dark band */
.rules { margin: 0; border-top: 1px solid var(--on-ink-rule); }
.rules > div { display: grid; gap: 2px 32px; padding: 18px 0; border-bottom: 1px solid var(--on-ink-rule); }
@media (min-width: 720px) { .rules > div { grid-template-columns: 13rem 1fr; } }
.rules dt { font-weight: 600; color: #fff; }
.rules dd { margin: 0; color: var(--on-ink-muted); }

/* ------------------------------------------------ grids and content blocks */
.grid { display: grid; gap: 36px; }
@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-2 { gap: 64px; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; padding: 20px 0 0; border-top: 1px solid var(--ink); }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { color: inherit; border-top-color: var(--signal); }
a.card:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); }
.card-link { display: inline-block; font-weight: 600; color: var(--ink); margin-top: 8px; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }

/* status tags */
.status { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 9px; border-radius: 3px; white-space: nowrap; line-height: 1.5; border: 1px solid transparent; }
.status-dev { background: var(--signal-wash); color: #9a3412; border-color: #fbd3c0; }
.status-sandbox { background: #eaf1f8; color: #24507a; }
.status-planned { background: var(--bone); color: var(--text-muted); border-color: var(--rule); }
.status-available { background: var(--success-soft); color: var(--success); }
.status-approval { background: var(--warn-soft); color: var(--warn); }

/* checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: .7em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111418' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.section-dark .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a1f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }

/* steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; position: relative; padding: 20px 0 20px 52px; border-bottom: 1px solid var(--rule); margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 19px; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%; font-weight: 650; font-size: .92rem; color: var(--ink); font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-muted); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; margin-bottom: 1.5em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--paper); font-weight: 600; font-size: .86rem; color: var(--text-muted); }
tbody th { color: var(--ink); font-size: .92rem; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
@media (max-width: 719px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.stack td { border: 0; padding: 4px 16px; }
  table.stack td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--text-subtle); }
}

/* callouts */
.callout { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--rule); background: var(--paper); display: flex; gap: 14px; margin: 0 0 1.5em; }
.callout .icon { margin-top: 2px; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn-soft); border-color: #efd29c; }
.callout-warn .icon { color: var(--warn); }
.callout-info { background: var(--paper); border-left: 3px solid var(--ink); }

/* sample-data label */
.illustration-label { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 3px 9px; border-radius: 3px; }
.illustration-label .icon { width: 14px; height: 14px; }

/* dark band */
.section-dark { color: var(--on-ink); background: var(--ink); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-dark .muted, .section-dark p { color: var(--on-ink-muted); }
.section-dark .checklist li { color: var(--on-ink); }
.section-dark .card { border-top-color: rgba(255, 255, 255, .45); }
.section-dark .card p { color: var(--on-ink-muted); }

/* flow diagram */
.flow { display: grid; gap: 12px; align-items: stretch; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr; } }
.flow-node { background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 20px; }
.flow-node h3 { margin: 0 0 6px; font-size: 1.05rem; }
.flow-node p { margin: 0; font-size: .92rem; color: var(--text-muted); }
.flow-node.software { margin-top: 14px; border: 1.5px dashed var(--ink); background: var(--paper); }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--signal-text); }
@media (max-width: 899px) { .flow-arrow { transform: rotate(90deg); } }
.section-gap { margin-top: 56px; }

/* policies */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.1em; padding-top: .4em; }
.prose h3 { margin-top: 1.5em; }
.policy-meta { font-size: .9rem; color: var(--text-subtle); }
.toc { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 2em; }
.toc ol { margin: 0; columns: 2 16rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--signal); }

/* key-value table */
.identity { margin: 0; display: grid; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; overflow: hidden; }
.identity > div { display: grid; gap: 2px 16px; padding: 13px 16px; border-bottom: 1px solid var(--rule); }
.identity > div:last-child { border-bottom: 0; }
@media (min-width: 720px) { .identity > div { grid-template-columns: 11rem 1fr; } }
.identity dt { font-weight: 600; font-size: .9rem; color: var(--text-muted); }
.identity dd { margin: 0; overflow-wrap: anywhere; }

/* code sample */
pre.code { background: var(--ink); color: #e6e4de; border-radius: var(--radius); padding: 20px; overflow-x: auto; font-size: .85rem; line-height: 1.65; margin: 0 0 1em; }
pre.code code { background: none; padding: 0; color: inherit; }

/* forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--signal-text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 11px 13px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a9a69c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 90, 31, .28); }
.field .hint { font-size: .84rem; color: var(--text-subtle); margin-top: 5px; }
.field .error { font-size: .86rem; color: var(--error); margin-top: 4px; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field label.check { display: flex; font-weight: 400; font-size: .93rem; margin: 0; color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius); padding: 14px 16px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--success-soft); color: var(--success); }
.form-status.err { background: var(--error-soft); color: var(--error); }
.ref-code { font-family: var(--mono); font-weight: 700; }

/* contact layout */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.45fr 1fr; gap: 72px; } }
.contact-grid > .card { border-top: 0; padding: 28px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); }
@media (max-width: 479px) { .contact-grid > .card { padding: 20px 16px; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; margin: 0; }
.contact-list .card-icon { flex: none; display: inline-flex; color: var(--ink); padding-top: 2px; }
.contact-list strong { display: block; color: var(--ink); }

/* closing call to action */
.section-cta { background: var(--bone); border-top: 1px solid var(--rule); padding: 56px 0; }
@media (min-width: 1024px) { .section-cta { padding: 80px 0; } }
.cta-band { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; gap: 56px; } }
.cta-band h2 { margin-bottom: .3em; font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 20ch; }
.cta-band p { color: var(--text-muted); margin: 0; max-width: 38rem; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; } }
.footer-about p { color: var(--on-ink-muted); max-width: 26rem; }
.footer-about .brand { margin-bottom: 16px; color: #fff; }
.footer-note { font-size: .86rem; color: #8b9098; }
.footer-h { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #d6d5d0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--signal); }
.footer-base { position: relative; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .88rem; color: #8b9098; }
.footer-base::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; border-top: 1px solid var(--on-ink-rule); }
@media (min-width: 1024px) { .footer-base::before { left: 32px; right: 32px; } }
.footer-base p { margin: 0; }

/* long email addresses must wrap on narrow screens */
a[href^="mailto:"] { overflow-wrap: anywhere; }
.steps li, .grid > *, .contact-list li > div { min-width: 0; }
.grid + p, .grid + .callout { margin-top: 24px; }
.table-wrap + .grid, .table-wrap + h2 { margin-top: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .m-link i { transform: none; }
  .m-link::before, .m-link::after { opacity: 1; }
}
@media print { .site-header, .site-footer, .draft-banner, .skip-link { display: none; } .hero { background: none; color: var(--ink); } }
