/* Entrust3D public site — one stylesheet, no framework, no JavaScript, no external resources.
   The visual idea is the receipt: hairline rules, monospace labels, numbers that line up. */

:root {
  --ink: #14171a; --ink-2: #3f464c; --muted: #767d84;
  --paper: #faf9f6; --card: #ffffff; --line: #e3e1da; --rule: #cfccc3;
  --accent: #0b5d6b; --accent-ink: #ffffff; --accent-soft: #e8f1f2;
  --flag: #9a5312; --flag-soft: #fbf1e6;
  --ok: #2b6f3e;
  --shadow: 0 1px 2px rgba(20, 23, 26, .04), 0 8px 24px -16px rgba(20, 23, 26, .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eceae4; --ink-2: #bcc2c6; --muted: #8b9298;
    --paper: #101315; --card: #181c1f; --line: #2a3034; --rule: #394045;
    --accent: #56b6c2; --accent-ink: #0c1719; --accent-soft: #15282b;
    --flag: #d99a5b; --flag-soft: #241a10;
    --ok: #7cc094;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --ink: #eceae4; --ink-2: #bcc2c6; --muted: #8b9298;
  --paper: #101315; --card: #181c1f; --line: #2a3034; --rule: #394045;
  --accent: #56b6c2; --accent-ink: #0c1719; --accent-soft: #15282b;
  --flag: #d99a5b; --flag-soft: #241a10;
  --ok: #7cc094;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -16px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: 38rem; }

/* ---------------------------------------------------------------- chrome */
header.top { border-bottom: 1px solid var(--line); background: var(--card); }
header.top .wrap { display: flex; align-items: baseline; gap: 2rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
header.top nav { display: flex; gap: 1.4rem; margin-left: auto; flex-wrap: wrap; font-size: .94rem; }
header.top nav a { color: var(--ink-2); text-decoration: none; }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--ink); text-decoration: underline; }

footer.foot { border-top: 1px solid var(--line); margin-top: 5rem; padding: 2rem 0 3rem; color: var(--muted); font-size: .88rem; }
footer.foot .wrap { display: flex; gap: 1.5rem 2.5rem; flex-wrap: wrap; align-items: baseline; }
footer.foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-left: auto; }
footer.foot a { color: var(--ink-2); }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.08; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.2; }
h3 { font-size: 1.06rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.eyebrow {
  font: 600 .74rem/1 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem;
}
.small { font-size: .9rem; color: var(--muted); }

section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 4.5rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: start; }
@media (max-width: 60rem) { .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; } }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { font-size: 1.22rem; max-width: 32rem; }
.hero .cta { display: flex; gap: .8rem 1.2rem; align-items: center; flex-wrap: wrap; margin-top: 1.8rem; }

.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  padding: .62rem 1.1rem; border-radius: 6px; font-weight: 600; font-size: .95rem; border: 1px solid var(--accent);
}
.button.ghost { background: transparent; color: var(--accent); }

.phase {
  display: inline-flex; align-items: baseline; gap: .55rem; margin-bottom: 1.6rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem;
  background: var(--card); font-size: .85rem; color: var(--ink-2);
}
.phase b { font: 600 .72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------------------------------------------------------------- the receipt */
.receipt {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1.1rem; font: .86rem/1.6 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.receipt .rhead { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--rule); letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; color: var(--muted); }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 1rem 0 0; }
.receipt dt { color: var(--muted); letter-spacing: .04em; }
.receipt dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.receipt .rfoot { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px dashed var(--rule); color: var(--muted); font-size: .76rem; }
.receipt .decoded { color: var(--ok); }

/* ---------------------------------------------------------------- steps */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 1.4rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
ol.steps li:first-child { border-top: 0; }
ol.steps li::before {
  content: counter(s, decimal-leading-zero);
  font: 600 .86rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent); letter-spacing: .08em;
}
ol.steps h3 { margin-bottom: .35rem; }
ol.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 40rem) { ol.steps li { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------------------------------------------------------------- grids */
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem 1.5rem; }
.panel h3 { margin-bottom: .45rem; }
.panel p:last-child { margin-bottom: 0; }
.panel p { color: var(--ink-2); font-size: .95rem; }

.never { border-left: 3px solid var(--accent); }
.limit { background: var(--flag-soft); border-color: color-mix(in srgb, var(--flag) 30%, var(--line)); }
.limit .eyebrow { color: var(--flag); }

/* ---------------------------------------------------------------- tables */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td.price { font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 0; max-width: 46rem; }
.faq .qa { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.faq .qa:first-child { border-top: 0; }
.faq h3 { margin-bottom: .5rem; }
.faq p { margin: 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- misc */
.callout { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 8px; padding: 1.3rem 1.5rem; }
.callout p:last-child { margin-bottom: 0; }
blockquote { margin: 0; padding: 1.2rem 1.5rem; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; font-size: 1.05rem; color: var(--ink-2); }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
ul.ticks li { padding-left: 1.4rem; position: relative; color: var(--ink-2); }
ul.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
dl.states { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; margin: 0; }
dl.states dt { font-weight: 600; white-space: nowrap; }
dl.states dd { margin: 0; color: var(--ink-2); }
@media (max-width: 40rem) { dl.states { grid-template-columns: 1fr; gap: .2rem; } dl.states dd { margin-bottom: .7rem; } }
code { font: .9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-soft); padding: .1em .35em; border-radius: 3px; }
.status-line { font-size: .95rem; }
.status-line td:first-child { width: 60%; }
.built { color: var(--ok); font-weight: 600; }
.notyet { color: var(--flag); font-weight: 600; }

/* utilities (kept few on purpose; no inline styles, so a strict policy can forbid them) */
.spaced { margin-top: 1.5rem; }
.tight { margin-bottom: .8rem; }

/* a call to action waiting on something (the mailbox) — visibly not yet a link */
.button.disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.cta-note { font-size: .88rem; color: var(--muted); }
