/* measureloom.ai — premium marketing site. Fonts self-hosted in /fonts (OFL). No third-party requests. */
:root {
  --ink: #0e1726;
  --ink-2: #16223a;
  --ink-3: #1f2d49;
  --ivory: #f6f2ea;
  --paper: #fbf9f5;
  --line: #e6dfd2;
  --text: #1b2433;
  --muted: #5d6676;
  --soft: #8b93a3;
  --clay: #d2835e;
  --clay-deep: #b9653e;
  --clay-ink: #9a4a26;
  --moss: #2f6b47;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 23, 38, 0.06), 0 12px 40px rgba(14, 23, 38, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--clay-ink); }
a:hover { color: var(--clay-deep); }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 23, 38, 0.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand .mark { width: 34px; height: 34px; }
.wordmark { font: 600 19px/1 var(--sans); letter-spacing: 0.01em; }
.nav { display: flex; gap: 30px; }
.nav a { color: #c7cfdd; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: #1a0f08; }
.btn-primary:hover { background: #dd9370; color: #1a0f08; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #eef1f6; padding: 96px 0 120px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 520px at 78% 18%, rgba(210, 131, 94, 0.22), transparent 60%), radial-gradient(700px 480px at 8% 90%, rgba(78, 110, 170, 0.20), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.07; background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 7px), repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 7px); mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font: 400 clamp(46px, 6.2vw, 80px)/1.02 var(--serif); letter-spacing: -0.02em; margin: 0 0 26px; color: #fff; }
.hero h1 em { font-style: italic; color: #f2c8b3; }
.lead { font-size: 20px; line-height: 1.6; color: #c3cbda; max-width: 560px; margin: 0 0 34px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.fineprint { font-size: 14px; color: var(--soft); margin-top: 22px; }

.product-card { position: relative; background: linear-gradient(180deg, #fdfbf7, #f4efe6); color: var(--text); border-radius: 22px; padding: 22px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06); transform: rotate(-1.2deg); }
.product-card .pc-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.product-card .pc-head strong { color: var(--text); font-size: 15px; }
.pc-scale { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #e7efe8; color: var(--moss); font-size: 12px; font-weight: 600; }
.pc-drawing { border-radius: 14px; background: #f7f3ec; border: 1px solid var(--line); overflow: hidden; }
.pc-drawing svg { display: block; width: 100%; height: auto; }
.pc-lines { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; }
.pc-lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.pc-lines div span:last-child { font-variant-numeric: tabular-nums; color: var(--text); }
.pc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pc-total strong { font: 500 30px/1 var(--serif); }
.pc-total span { font-size: 13px; color: var(--muted); }
.float-chip { position: absolute; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); display: flex; align-items: center; gap: 8px; }
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #7bd49a; box-shadow: 0 0 0 4px rgba(123, 212, 154, 0.2); }
.chip-a { left: -28px; top: 34%; transform: rotate(1.2deg); }
.chip-b { right: -22px; top: 13%; transform: rotate(1.2deg); background: var(--clay); color: #1a0f08; }

/* Proof strip */
.proof { background: var(--ink-2); color: #d5dbe6; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { padding: 26px 24px; border-left: 1px solid rgba(255, 255, 255, 0.07); display: flex; gap: 14px; align-items: flex-start; }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item svg { flex: none; width: 22px; height: 22px; color: var(--clay); margin-top: 3px; }
.proof-item strong { display: block; color: #fff; font-weight: 600; font-size: 15px; }
.proof-item span { font-size: 14px; color: #9aa4b5; line-height: 1.5; }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--ivory); }
.section-dark { background: var(--ink); color: #dfe4ec; }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-dark .eyebrow { color: var(--clay); }
.eyebrow.dark { color: var(--clay-ink); }
h2 { font: 400 clamp(34px, 4.2vw, 54px)/1.08 var(--serif); letter-spacing: -0.015em; margin: 0 0 20px; }
.section-dark h2 { color: #fff; }
.lead-sm { font-size: 19px; color: var(--muted); margin: 0; }
.section-dark .lead-sm { color: #aab3c3; }
h3 { font: 600 19px/1.3 var(--sans); margin: 0 0 8px; }

.questions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.q .n { font: 500 15px var(--mono); color: var(--clay-ink); }
.q h3 { margin-top: 12px; }
.q p { margin: 0; color: var(--muted); font-size: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pillar { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(14, 23, 38, 0.06), 0 20px 50px rgba(14, 23, 38, 0.12); }
.pillar .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ivory); color: var(--clay-deep); margin-bottom: 20px; }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
.pillar .tag { position: absolute; top: 26px; right: 24px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--soft); }

/* Exact to the penny */
.exact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.ledger { background: #101a2c; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 30px 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.ledger-head { display: flex; justify-content: space-between; font-size: 13px; color: #8f9ab0; margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.ledger-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.09); font-size: 15px; }
.ledger-row span:first-child { color: #d9dfe9; }
.ledger-row span:first-child em { font-style: normal; color: #8f9ab0; font-family: var(--mono); font-size: 13px; margin-left: 6px; }
.ledger-row span:last-child { font-family: var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.ledger-row.sub span { color: #aab3c3; }
.ledger-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; }
.ledger-total span { color: #aab3c3; font-size: 14px; }
.ledger-total strong { font: 500 40px/1 var(--serif); color: #fff; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: #c9d1de; }
.section:not(.section-dark) .checks li { color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: rgba(210, 131, 94, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2835e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num { font: 400 44px/1 var(--serif); color: var(--clay-deep); }
.steps h3 { font-size: 21px; }
.steps p { margin: 0; color: var(--muted); max-width: 760px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); overflow: hidden; }
.principles > div { background: var(--ink); padding: 34px 30px; }
.principles h3 { color: #fff; }
.principles p { margin: 0; color: #9ea8b9; font-size: 16px; }

/* Who */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.who > div { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.who p { margin: 0; color: var(--muted); font-size: 16px; }

/* Founding */
.founding { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.apply { background: var(--ink); color: #dfe4ec; border-radius: 22px; padding: 36px 34px; box-shadow: 0 30px 80px rgba(14, 23, 38, 0.25); position: relative; overflow: hidden; }
.apply::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 131, 94, 0.35), transparent 70%); }
.apply h3 { font: 400 32px/1.1 var(--serif); color: #fff; margin: 0 0 12px; }
.apply p { color: #aab3c3; margin: 0 0 24px; }
.apply .fineprint { color: #8f9ab0; margin: 16px 0 0; text-align: center; }

/* Footer */
.site-footer { background: #0a111d; color: #9aa4b5; padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #c7cfdd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 8px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.07); margin-top: 48px; padding-top: 24px; font-size: 13px; color: #6f7a8d; }

/* Legal page */
.legal { padding: 88px 0 112px; }
.legal .container { max-width: 760px; }
.legal h1 { font: 400 52px/1.08 var(--serif); margin: 0 0 12px; }
.legal h2 { font: 500 26px/1.2 var(--serif); margin: 44px 0 10px; }
.legal p { color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn:hover, .pillar:hover { transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .hero-grid, .exact, .founding { grid-template-columns: 1fr; gap: 48px; }
  .product-card { transform: none; max-width: 560px; }
  .chip-a { left: 12px; } .chip-b { right: 12px; }
  .pillars, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .questions, .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: min(1180px, 100% - 32px); }
  .nav { display: none; }
  .hero { padding: 64px 0 88px; }
  .section { padding: 80px 0; }
  .pillars, .principles, .questions, .who, .proof-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-item { border-left: 0; padding-left: 0; }
  .steps li { grid-template-columns: 56px 1fr; gap: 14px; }
  .steps .num { font-size: 34px; }
  .float-chip { display: none; }
  .ledger { padding: 22px 20px; }
}
