/* ============================================================
   Lith.ai v3 look: "a well-made tool you own".
   Loaded after style.css. Same colours, same body font and logo
   (Plus Jakarta Sans); light Hanken Grotesk for headlines; square corners,
   ruled lines, spec plates, no scroll animation.
   ============================================================ */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 200 500; font-display: swap; src: url("../fonts/hanken-var-latin.woff2") format("woff2"); }

:root { --head: "Hanken Grotesk", "Plus Jakarta Sans", system-ui, sans-serif; --rule: #d9d6cd; --gold: #dcc58e; }

/* ---------- type: wide headlines, Jakarta for everything else ---------- */
h1, h2 { font-family: var(--head); font-weight: 300; letter-spacing: -0.035em; }
h1 { line-height: 1.04; font-size: clamp(2.5rem, 5.3vw, 4.4rem); }
h2 { line-height: 1.1; font-size: clamp(1.9rem, 3.5vw, 2.85rem); }
h3 { font-weight: 700; letter-spacing: -0.02em; font-size: 1.12rem; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.eyebrow .n { font-weight: 800; color: var(--ink); margin-right: .55rem; }
.bg-ink .eyebrow .n { color: var(--gold); }

/* ---------- controls: square ---------- */
.btn { border-radius: 0; }
.btn-ink:hover, .btn-ink:focus { box-shadow: none; }

/* ---------- nav ---------- */
.site-nav { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ink); }
.flyout { border-radius: 0 !important; border: 1px solid var(--ink) !important; box-shadow: 6px 6px 0 rgba(13,13,13,.08) !important; }

/* ---------- no scroll animation: it should feel settled ---------- */
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- hero: our banner + the terms plate ---------- */
.v3-hero { border-bottom: 1px solid var(--ink); padding: 6rem 0 5.5rem; }
.v3-hero h1 { max-width: 13ch; }
.v3-hero .lead { margin-top: 1.5rem; max-width: 36rem; }
.v3-hero .hero-actions { margin-top: 2.25rem; }
.v3-hero .btn-line { background: rgba(255,255,255,.55); }

/* ---------- the spec plate ---------- */
.plate {
  position: relative; background: #fff; border: 1.5px solid var(--ink);
  display: flex; flex-direction: column; height: 100%;
}
/* four screws in the corners */
.plate::after {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  background:
    radial-gradient(circle, #b8b4aa 0 2.4px, transparent 2.9px) left top / 8px 8px no-repeat,
    radial-gradient(circle, #b8b4aa 0 2.4px, transparent 2.9px) right top / 8px 8px no-repeat,
    radial-gradient(circle, #b8b4aa 0 2.4px, transparent 2.9px) left bottom / 8px 8px no-repeat,
    radial-gradient(circle, #b8b4aa 0 2.4px, transparent 2.9px) right bottom / 8px 8px no-repeat;
}
.plate-head {
  margin: 17px 17px 0; padding: .8rem 1rem; background: var(--ink); color: #fff;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.plate-head strong { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.plate-head span { font-size: .78rem; font-weight: 600; color: var(--gold); text-align: right; }
.plate-rows { list-style: none; margin: 0; padding: .6rem 1.9rem 0; }
.plate-rows li { display: flex; align-items: baseline; gap: 1rem; padding: .62rem 0; border-bottom: 1px dotted #c9c5bb; }
.plate-rows li:last-child { border-bottom: 0; }
.plate-rows .k { font-size: .84rem; color: var(--muted); flex: 0 0 auto; }
.plate-rows .v { margin-left: auto; text-align: right; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.plate-rows .v small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.plate-rows .v.you { color: var(--accent); }
.plate-foot { margin-top: auto; padding: 1rem 1.9rem 1.8rem; }
.plate-foot .note { font-size: .84rem; color: var(--muted); margin: 0; border-top: 1.5px solid var(--ink); padding-top: .9rem; }

.plate.green .plate-head { background: var(--accent); }
.plate.green .plate-head span { color: #cfe3d8; }
.plate.open { background: transparent; border-style: dashed; }
.plate.open .plate-head { background: transparent; color: var(--ink); border: 1px dashed var(--ink); }
.plate.open .plate-head span { color: var(--muted); }

.hero-plate { max-width: 30rem; margin-left: auto; box-shadow: 10px 10px 0 rgba(13,13,13,.10); }

/* ---------- track record: a ruled ledger ---------- */
.v3-proof { padding: 3rem 0 2.6rem; border-bottom: 1px solid var(--ink); }
.v3-proof .eyebrow { margin-bottom: 1.1rem; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.ledger li { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.ledger li:not(:nth-child(4n+1)) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.v3-proof .proof-note { font-size: .84rem; color: var(--muted); margin: 1rem 0 0; text-align: left; }
@media (max-width: 767.98px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger li:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .ledger li:nth-child(2n) { padding-left: 1rem; border-left: 1px solid var(--rule); }
}

/* ---------- decision model section: square, ruled ---------- */
.dm-section { border-bottom: 1px solid var(--ink); }
.dm-tabs { gap: 0; }
.dm-tab { border-radius: 0; border: 1px solid var(--ink); background: #fff; color: var(--ink); }
.dm-tab + .dm-tab { border-left: 0; }
.dm-card { border-radius: 0; border: 1px solid var(--ink); }
.dm-img { border-radius: 0; }
.dm-q li::before { border-radius: 0; background: var(--ink); color: #fff; }
.dm-model { border-radius: 0; box-shadow: 8px 8px 0 rgba(13,13,13,.12); padding: 1.4rem 1.3rem; }
.dm-vs { gap: 0; border: 1px solid var(--ink); background: #fff; }
.dm-vs-row { border-radius: 0; }
.dm-vs-row.gen { border: 0; border-bottom: 1px solid var(--ink); }
.dm-vs-row .k { text-transform: none; letter-spacing: 0; font-size: .85rem; }

/* ---------- models ---------- */
.v3-models .models-more { margin-top: 2rem; }
.v3-models .plate .btn { width: 100%; text-align: left; margin-top: 1.1rem; }

/* ---------- values: numbered, ruled, no icons ---------- */
.v3-values .value::before { content: ""; display: block; border-top: 1px solid #3a3a3a; margin-bottom: 1.4rem; }
.v3-values .value .num { font-weight: 700; color: var(--gold); font-size: .9rem; display: block; margin-bottom: .8rem; }
.v3-values .value h3 { color: #fff; font-size: 1.3rem; margin-bottom: .7rem; }
.v3-values .value p { color: #c4c4c4; margin: 0; }

/* ---------- closing ---------- */
.v3-cta { padding: 5rem 0; border-top: 1px solid var(--ink); }
.v3-cta p { color: var(--ink-2); font-size: 1.1rem; margin: 1rem 0 0; }
.v3-cta .btn { white-space: nowrap; }

/* ============ site-wide components (all pages) ============ */
.card-lith { border-radius: 0; border: 1px solid var(--ink); }
.card-lith.sand { border-color: var(--rule); }
a.card-lith:hover { transform: none; box-shadow: 6px 6px 0 rgba(13,13,13,.08); }
.card-icon, .pill, .alert, .compare, .model-card, .value-icon { border-radius: 0 !important; }
.flyout .dropdown-item, .flyout .paper-card { border-radius: 0; }
.check-list li::before { border-radius: 0; }
.section-num { font-size: .85rem; font-weight: 600; color: var(--muted); }
.bg-ink .section-num { color: var(--gold); }
.form-lith .form-control, .form-lith .form-select { border-radius: 0; border-color: #cfccc3; }
.form-lith .form-control:focus, .form-lith .form-select:focus { border-color: var(--ink); box-shadow: none; }

/* host demo + benchmark tables */
.demo-widget { border-radius: 0; border: 1px solid var(--ink); }
.demo-tab { border-radius: 0; }
.demo-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.msg { border-radius: 0; }
.bench-table { border-radius: 0; border: 1px solid var(--ink); }

/* plates on the dark model banners */
.plate { color: var(--ink); }
.hero-banner .hero-plate { box-shadow: 10px 10px 0 rgba(0,0,0,.25); }
.hero-banner h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); max-width: 16ch; }
.hero-image .hero-plate { box-shadow: 10px 10px 0 rgba(13,13,13,.10); }

/* about: ledger on sand, notes */
.bg-sand .ledger { border-color: #d6d2c7; }
.v3-proof .proof-note + .proof-note { margin-top: .4rem; }
.v3-proof .proof-note a { color: inherit; }
.v3-proof + .v3-cta { border-top: 0; }

/* ============ blue palette (replaces beige; remove this block to go back) ============ */
:root {
  --sand: #eaf0f7;          /* light section background */
  --sand-2: #dce5f1;
  --line: #e0e6ee;
  --rule: #cdd7e4;
  --accent: #1f4f8a;        /* deep blue, used sparingly */
  --accent-soft: #e1eaf6;
}
.plate::after {
  background:
    radial-gradient(circle, #a9b5c5 0 2.4px, transparent 2.9px) left top / 8px 8px no-repeat,
    radial-gradient(circle, #a9b5c5 0 2.4px, transparent 2.9px) right top / 8px 8px no-repeat,
    radial-gradient(circle, #a9b5c5 0 2.4px, transparent 2.9px) left bottom / 8px 8px no-repeat,
    radial-gradient(circle, #a9b5c5 0 2.4px, transparent 2.9px) right bottom / 8px 8px no-repeat;
}
.plate-rows li { border-bottom-color: #c3cddb; }
.plate.green .plate-head span { color: #cfdcf0; }
.form-lith .form-control, .form-lith .form-select { border-color: #c7d1de; }
.bg-sand .ledger { border-color: #cbd6e3; }
.dm-mail { border-left-color: #c7d1de; }
.dm-vs-row.gen { border-color: #c3cddb; }
/* ============ supporting photo band (home) ============ */
.v3-photo { position: relative; overflow: hidden; background: #101418; min-height: clamp(22rem, 42vw, 38rem); display: flex; align-items: center; }
.v3-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 40%; }
.v3-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,14,18,.62) 0%, rgba(10,14,18,.32) 38%, rgba(10,14,18,0) 62%); }
.v3-photo .container { position: relative; z-index: 2; }
.v3-photo h2 { color: #fff; max-width: 20ch; margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); text-shadow: 0 1px 24px rgba(0,0,0,.25); }
@media (max-width: 767.98px) {
  .v3-photo { min-height: 26rem; align-items: flex-end; padding-bottom: 2.5rem; }
  .v3-photo img { object-position: 72% center; }
  .v3-photo::before { background: linear-gradient(0deg, rgba(10,14,18,.7) 0%, rgba(10,14,18,.2) 55%, rgba(10,14,18,0) 80%); }
}
/* light photo band: dark text on a pale image */
.v3-photo.light { background: #d9d6cf; }
.v3-photo.light::before { background: linear-gradient(90deg, rgba(246,244,240,.72) 0%, rgba(246,244,240,.4) 38%, rgba(246,244,240,0) 60%); }
.v3-photo.light h2 { color: var(--ink); text-shadow: none; }
@media (max-width: 767.98px) {
  .v3-photo.light::before { background: linear-gradient(0deg, rgba(240,242,245,.8) 0%, rgba(240,242,245,.3) 55%, rgba(240,242,245,0) 80%); }
}
.feat-list strong .pill { font-size: .7rem; padding: .2rem .55rem; vertical-align: middle; }

/* ============ film look on photo bands: grain + softer blacks ============ */
.v3-photo img { filter: contrast(.94) saturate(.93) brightness(1.03); }
.v3-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncG type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncB type='linear' slope='2.4' intercept='-.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: soft-light; opacity: .7;
}