/* GRC Owl website - "calm, audit-grade" prototype (v2). One brand colour, one accent, warm neutrals,
   serif headings + Inter text. Used only by index-v2.html for now. */
:root {
  /* old token names still used in a few inline styles, mapped onto the calm palette */
  --mint: #e9f1ee; --mint-2: #e9f1ee; --sky: #e9f1ee; --lilac: #e9f1ee; --coral-soft: #e9f1ee; --marigold-soft: #e9f1ee;
  --sky-ink: #0e5e56; --lilac-ink: #0e5e56; --forest: #0e5e56; --forest-deep: #0a3c37; --marigold: #e9a81a; --night: #0a3c37; --paper: #faf8f4;
  --bg: #faf8f4;
  --surface: #ffffff;
  --sunk: #f3f0e9;
  --ink: #13201d;
  --text: #36433f;
  --muted: #67726d;
  --line: #e5e1d7;
  --line-strong: #d6d1c4;
  --brand: #0e5e56;
  --brand-deep: #0a3c37;
  --brand-tint: #e9f1ee;
  --accent: #e9a81a;
  --accent-hover: #d8970c;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(19, 32, 29, .06), 0 12px 32px -12px rgba(19, 32, 29, .18);
  --shadow-lg: 0 2px 4px rgba(19, 32, 29, .05), 0 32px 64px -24px rgba(19, 32, 29, .28);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; line-height: 1.12; }
h1 { font-size: clamp(2.35rem, 4.6vw, 3.55rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); }
h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 300; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.eyebrow { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* buttons: flat, one accent */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font: 600 .97rem/1 var(--sans); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-decoration: none !important; white-space: nowrap; }
.btn-accent { background: var(--accent); color: #1c1503; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--brand-deep); color: #fff; }
.btn-dark:hover { background: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .9rem; }
.link-arrow { font-weight: 600; font-size: .95rem; }
.link-arrow::after { content: " \2192"; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none !important; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto 0 12px; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); background: var(--sunk); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 40px; height: 38px; font-size: 1.1rem; cursor: pointer; }

/* hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 720px; background: radial-gradient(closest-side, rgba(14, 94, 86, .10), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; position: relative; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.hero-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 9px; vertical-align: 2px; }
.hero-shot { transform: perspective(1800px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }

/* screenshots: one neutral frame everywhere */
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; cursor: zoom-in; }
.shot::before { content: attr(data-url); display: block; padding: 9px 14px 9px 52px; font-size: .74rem; color: var(--muted); background: var(--sunk) no-repeat 14px 50% / 30px 8px; background-image: radial-gradient(circle at 4px 4px, #d9d4c8 3.5px, transparent 4px), radial-gradient(circle at 15px 4px, #d9d4c8 3.5px, transparent 4px), radial-gradient(circle at 26px 4px, #d9d4c8 3.5px, transparent 4px); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; }
.shot-crop { max-height: 560px; }
.shot-crop img { object-fit: cover; object-position: top; }
.caption { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* logo-free "built for / works with" strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; padding: 26px 0; align-items: baseline; }
.strip-label { font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.strip-items { display: flex; flex-wrap: wrap; gap: 6px 28px; font-weight: 600; color: var(--ink); font-size: .98rem; }
.strip-items span { white-space: nowrap; }
.strip-items small { font-weight: 400; color: var(--muted); }

/* sections */
.section { padding: 112px 0; }
.section-sm { padding: 80px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.surface { background: var(--surface); border-block: 1px solid var(--line); }

/* outcome rows */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; align-items: center; }
.feature-row + .feature-row { margin-top: 120px; }
.feature-row.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2 { font-size: clamp(1.7rem, 2.7vw, 2.2rem); }
.checks { list-style: none; padding: 0; margin: 24px 0 26px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%230e5e56' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tag-ai { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; font: 600 .7rem/1.5 var(--sans); letter-spacing: .04em; color: var(--brand); background: var(--brand-tint); vertical-align: 3px; }

/* audit journey */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line-strong); }
.steps li { padding: 28px 24px 0 0; position: relative; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -13px; left: 0; background: var(--bg); padding-right: 12px; font-family: var(--serif); font-size: 1.15rem; color: var(--brand); }
.surface .steps li::before { background: var(--surface); }
.steps p { font-size: .95rem; color: var(--muted); margin: 0; }

/* roles + security: quiet grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .who { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.card p, .cell p { font-size: .95rem; color: var(--muted); margin: 0; }
.cell { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.cell svg { width: 22px; height: 22px; color: var(--brand); margin-bottom: 14px; }

/* dark band: used once */
.band { background: var(--brand-deep); color: #c9dbd6; }
.band h2 { color: #fff; }
.band h2 em { color: #f3c55a; }
.band .lead { color: #a9c4bd; }
.band .eyebrow { color: #f3c55a; }

/* demo form */
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.band .checks li::before { background-color: rgba(255, 255, 255, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23f3c55a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.form-card { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 94, 86, .15); }
.req { color: #b4442d; } .opt { color: var(--muted); font-weight: 400; }
.form-card .btn { width: 100%; margin-top: 22px; }
.form-card small { display: block; text-align: center; color: var(--muted); margin-top: 12px; font-size: .8rem; }
.form-error { color: #b4442d; font-size: .9rem; margin: 14px 0 0; }
.form-done { display: none; text-align: center; padding: 40px 16px; } .form-done.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-footer { padding: 72px 0 36px; border-top: 1px solid var(--line); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer h4 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* lightbox (site.js) */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 20, 18, .86); display: grid; place-items: center; padding: 24px; overflow: auto; cursor: zoom-out; }
.lightbox img { max-width: min(1400px, 100%); border-radius: 10px; }
.lightbox button { position: fixed; top: 16px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #fff; font-size: 1.4rem; cursor: pointer; }

/* gentle reveal (site.js adds .js and .in) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .hero-shot { transform: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1020px) {
  .hero-grid, .feature-row, .cta-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .feature-row.flip { grid-template-columns: minmax(0, 1fr); }
  .feature-row.flip > :first-child { order: 0; }
  .hero-shot { transform: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .nav-cta .btn-ghost { display: none; }
  .nav { justify-content: space-between; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 80px 0; }
  .feature-row + .feature-row { margin-top: 80px; }
  .grid-4, .grid-3, .steps, .form-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .strip-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .nav-cta .btn-accent { padding: 0 14px; }
  .form-card { padding: 22px; }
}

/* =========================================================================================
   Shared page components (platform, ai, frameworks, security, demo) in the calm style
   ========================================================================================= */
.page-hero { padding: 84px 0 64px; text-align: center; position: relative; overflow: hidden; }
.page-hero .container { max-width: 860px; }
.page-hero .lead { margin-inline: auto; }
.page-hero .hero-actions { justify-content: center; margin-top: 26px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.section .center { max-width: 760px; margin-inline: auto; margin-bottom: 48px; }

/* module rows (platform / ai) */
.mod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; align-items: center; padding: 88px 0; scroll-margin-top: 140px; border-top: 1px solid var(--line); }
.mod:first-child { border-top: 0; }
.mod > .stage:first-child { order: 2; }
.mod h2 { font-size: clamp(1.7rem, 2.7vw, 2.2rem); }
.stage { position: relative; }
.stage .stack { display: grid; gap: 22px; }
.stage .stack > .shot:nth-child(2) { margin-left: 12%; margin-top: -8%; position: relative; }
.ai-badge { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 6px; font: 600 .68rem/1.6 var(--sans); letter-spacing: .05em; color: var(--brand); background: var(--brand-tint); vertical-align: 2px; }
h2 .ai-badge { vertical-align: middle; font-size: .72rem; }
.ai-strip { max-width: var(--max); margin: 32px auto 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .93rem; color: var(--muted); }

/* in-page module menu (platform) */
.subnav { position: sticky; top: 72px; z-index: 40; background: rgba(250, 248, 244, .94); backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.subnav .container::-webkit-scrollbar { display: none; }
/* Wide screens: wrap the module chips so none hide off the right edge. */
@media (min-width: 900px) { .subnav .container { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } }
.subnav a { flex: none; padding: 6px 12px; border-radius: 8px; font-size: .88rem; font-weight: 500; color: var(--text); text-decoration: none; }
.subnav a:hover { background: var(--sunk); color: var(--ink); }

/* dark bands (one per page) */
.night, .ai-sec { background: var(--brand-deep); color: #c9dbd6; }
.night h2, .night h3, .ai-sec h2, .ai-sec h3 { color: #fff; }
.night h2 em, .ai-sec h2 em { color: #f3c55a; }
.night .lead, .ai-sec .lead { color: #a9c4bd; }
.night .eyebrow, .ai-sec .eyebrow { color: #f3c55a; }
.night .checks li::before, .ai-sec .checks li::before, .cta .checks li::before { background-color: rgba(255, 255, 255, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23f3c55a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.night a, .ai-sec a { color: #f3c55a; }

/* closing call-to-action box (platform/ai/demo) */
.cta { background: var(--brand-deep); color: #c9dbd6; border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.cta h1, .cta h2, .cta h3 { color: #fff; }
.cta h1 em, .cta h2 em { color: #f3c55a; }
.cta .eyebrow { color: #f3c55a; }
.cta p { color: #a9c4bd; }
.cta.ai-end, .cta[style*="grid-template-columns:1fr"] { display: block; text-align: center; }
.cta.ai-end p, .cta[style*="grid-template-columns:1fr"] p { max-width: 560px; margin-inline: auto; }
.cta .hero-actions { justify-content: center; margin-top: 24px; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta .btn-ghost:hover { border-color: #fff; }
.cta .form, .cta .form-done { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.cta .form-done h3 { color: var(--ink); } .cta .form-done p { color: var(--muted); }
.cta .form .btn { width: 100%; margin-top: 20px; }
.cta .form small { display: block; text-align: center; color: var(--muted); margin-top: 12px; font-size: .8rem; }
.cta .form small a { color: inherit; text-decoration: underline; }
.field.full { grid-column: 1 / -1; }
.field textarea { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; font-size: .95rem; color: var(--ink); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 94, 86, .15); }
.form-done .big { font-size: 2.4rem; line-height: 1; margin-bottom: 10px; }
.night .btn-dark, .ai-sec .btn-dark { background: #fff; color: var(--brand-deep); }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* security grid */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sec { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.sec .ic { width: auto; height: auto; background: none !important; color: var(--brand) !important; margin-bottom: 14px; }
.sec .ic svg { width: 22px; height: 22px; }
.sec h3 { margin-bottom: 8px; }
.sec p { margin: 0; font-size: .95rem; color: var(--muted); }

/* AI page */
.ai-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 52px; text-align: left; border-top: 1px solid var(--line); }
.ai-pillar { padding: 22px 22px 0 0; }
.ai-pillar b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.ai-pillar span { font-size: .93rem; color: var(--muted); }
.ai-tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 8px; }
.ai-tile { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.ai-tile .cat { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.ai-tile h3 { margin-bottom: 6px; }
.ai-tile p { margin: 0; font-size: .93rem; color: var(--muted); }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 8px; }
.ai-card { padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ai-card h3 { margin-bottom: 6px; }
.ai-card p { margin: 0; font-size: .94rem; color: #a9c4bd; }

/* frameworks page */
.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fw-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.fw-card.star { grid-column: span 2; background: var(--brand-deep); border-color: transparent; color: #c9dbd6; }
.fw-card.star h3 { color: #fff; }
.fw-card[style] { background: var(--sunk) !important; }
.fw-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: 14px 0 8px; }
.fw-card p { color: var(--muted); font-size: .96rem; }
.fw-card.star p { color: #a9c4bd; }
.fw-card ul { margin: 12px 0 0; padding-left: 18px; font-size: .93rem; color: var(--text); }
.fw-card.star ul { color: #c9dbd6 !important; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--brand-tint) !important; color: var(--brand) !important; }
.fw-card.star .badge { background: rgba(255, 255, 255, .12) !important; color: #f3c55a !important; }
.annex { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 20px 0 6px; border-top: 1px solid rgba(255, 255, 255, .16); }
.annex div { padding: 14px 10px 0 0; }
.annex b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: #fff; }
.annex span { font-size: .8rem; color: #a9c4bd; }
.fw-mini { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fw-mini > div { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.fw-mini b { display: block; color: var(--ink); font-weight: 600; }
.fw-mini span { font-size: .9rem; color: var(--muted); }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.shot-pair h3 { margin: 22px 0 6px; }
.shot-pair p { color: var(--muted); font-size: .95rem; }
.widget { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 22px; }
.widget-title { font-size: .85rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.rows { display: grid; gap: 10px; }
.rows .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: .9rem; }
.rows .row code { flex: none; font: 600 .74rem var(--sans); color: #f3c55a; min-width: 62px; }
.rows .row .t { flex: 1; color: #dbe8e4; min-width: 0; }
.pill { flex: none; border-radius: 6px; padding: 2px 8px; font-size: .72rem; font-weight: 600; background: rgba(255, 255, 255, .12); color: #cfe5de; }

@media (max-width: 1020px) {
  .mod, .split, .cta { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mod > .stage:first-child { order: 0; }
  .sec-grid, .ai-tiles, .ai-grid, .fw-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-pillars { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 40px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 56px 0 44px; }
  .mod { padding: 64px 0; }
  .sec-grid, .ai-tiles, .ai-grid, .fw-grid, .ai-pillars, .fw-mini, .shot-pair { grid-template-columns: minmax(0, 1fr); }
  .fw-card.star { grid-column: auto; }
  .annex { grid-template-columns: 1fr 1fr; }
  .cta { padding: 28px 20px; }
  .cta .form { padding: 20px; }
  .stage .stack > .shot:nth-child(2) { margin: 0; }
}

/* legal + about pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.55rem; margin: 48px 0 12px; scroll-margin-top: 96px; }
.legal h3 { margin: 24px 0 6px; }
.legal ul { padding-left: 20px; margin: 0 0 1em; } .legal li { margin-bottom: 6px; }
.legal .meta { color: var(--muted); font-size: .92rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: .95rem; } .toc li { margin-bottom: 4px; }
.todo { background: #fff4d6; color: #7a5200; border: 1px dashed #e0b44a; border-radius: 4px; padding: 0 4px; font-weight: 500; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-grid h2 { margin-top: 0; }
.facts-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.facts-card dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .93rem; }
.facts-card dt { color: var(--muted); } .facts-card dd { margin: 0; color: var(--ink); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principles > div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.principles p { margin: 0; color: var(--muted); font-size: .95rem; }
.legal:has(.about-grid) { max-width: var(--max); }
@media (max-width: 860px) { .about-grid, .principles { grid-template-columns: minmax(0, 1fr); } .toc ol { columns: 1; } .facts-card dl { grid-template-columns: minmax(0, 1fr); } .facts-card dd { margin-bottom: 8px; } }
