/* ==========================================================================
   oberon.ie — design system
   Concept: "the site is a matter file."
   Two worlds: paper (the firm's work — cool legal-document white, ledger
   ruling, Caslon) and the system (navy panels where Oberon visibly works —
   mono type, cyan/gold data accents). Magenta is stamp ink: CTAs, active
   states, the margin line. Used sparingly, it stays loud.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('/fonts/libre-caslon-text-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('/fonts/libre-caslon-text-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('/fonts/libre-caslon-text-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/fonts/public-sans.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ----------------------------------------------------------------- tokens */
:root {
  --paper: #FAFAF8;
  --paper-2: #F2F1EC;          /* alternate section tint */
  --ink: #131C2E;
  --ink-soft: #4C566B;
  --ledger: #DDE1E9;           /* feint ruling */
  --navy: #0A1628;
  --navy-2: #101D33;
  --navy-3: #1A2744;
  --brand: #B44593;            /* stamp ink */
  --brand-deep: #8E3574;
  --pink: #DD3675;
  --cyan: #29C4FF;
  --gold: #FFCE4B;
  --green: #34C98E;            /* delivery/success signal in system windows */
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --nav-h: 72px;
  --radius: 6px;
  --container: 1160px;
  --margin-rule: rgba(180, 69, 147, .38);  /* counsel's margin line */
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.nav-dark :focus-visible, .syswin :focus-visible { outline-color: var(--gold); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------- typography */
.display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.display em, .h-section em, .prefooter-title em {
  font-style: italic; font-weight: 400; color: var(--brand);
}
.h-section { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 34em; }

/* Section eyebrow: quiet small-caps label */
.file-ref {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.file-ref::before {
  content: '';
  display: inline-block;
  width: 1.6em; height: 1px;
  background: var(--brand);
  vertical-align: middle;
  margin-right: .8em;
}
.on-dark .file-ref, .prefooter .file-ref { color: rgba(255,255,255,.55); }

/* Small numeric marker on cards */
.clause {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  color: rgba(180,69,147,.55);
  letter-spacing: .1em;
}

/* --------------------------------------------------------------- devices */
/* Ledger panel: feint ruled lines like an accounts ledger page */
.ledger-panel {
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--ledger) 31px, var(--ledger) 32px),
    var(--paper);
}
/* Counsel's margin: single vertical rule to the left of key passages */
.margin-note {
  border-left: 2px solid var(--margin-rule);
  padding-left: 1.4rem;
}

/* Offer badge */
.stamp {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(180,69,147,.08);
  border: 1px solid rgba(180,69,147,.35);
  border-radius: 999px;
  padding: .5em 1.1em;
}

/* Presentation panel (light card with a window bar) */
.syswin {
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  border: 1px solid var(--ledger);
  box-shadow: 0 18px 44px -22px rgba(10, 22, 40, .25);
  overflow: hidden;
  font-size: .92rem;
}
.syswin-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ledger);
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.syswin-bar span:last-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.syswin-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ledger); flex-shrink: 0; }
.syswin-bar .dot:first-child { background: var(--brand); }
.syswin-body { padding: 1.1rem 1.25rem 1.3rem; }
.syswin .mono { font-family: var(--mono); }
.syswin .t-cyan { color: #0E7FB8; }
.syswin .t-gold { color: #A97B00; }
.syswin .t-green { color: #14805E; }
.syswin .t-dim { color: var(--ink-soft); }

/* WIP entry chip: the product's own timeline vocabulary */
.wip-code {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .28em .7em;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: .95em 1.6em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-sm { font-size: .88rem; padding: .7em 1.15em; }
.btn-lg { font-size: 1.08rem; padding: 1.05em 1.9em; }

/* CTA footnote: the friction-removal line under primary CTAs */
.cta-note {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: .7rem;
}
.on-dark .cta-note, .prefooter .cta-note { color: rgba(255,255,255,.55); }

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 248, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--ledger); box-shadow: 0 6px 24px -18px rgba(10,22,40,.35); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: .4em 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-signin { font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-signin:hover { color: var(--brand-deep); }
.nav-burger {
  display: none;
  background: none; border: 0; padding: 10px; margin-left: auto; cursor: pointer;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none;
  border-top: 1px solid var(--ledger);
  background: var(--paper);
  padding: 1rem 24px 1.4rem;
}
.nav-mobile a { display: block; padding: .7rem 0; font-weight: 500; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.nav-mobile-actions { margin-top: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.nav-mobile-actions .btn { text-align: center; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--navy); color: #DCE4F2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 44em; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }

/* ------------------------------------------------------------- prefooter */
.prefooter {
  background:
    radial-gradient(1200px 500px at 75% -10%, rgba(180,69,147,.28), transparent 60%),
    var(--navy);
  color: #fff;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  text-align: center;
}
.prefooter .file-ref { justify-self: center; }
.prefooter .file-ref::before { background: var(--gold); }
.prefooter-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: #fff; }
.prefooter-sub { color: rgba(255,255,255,.66); max-width: 36em; margin: 0 auto 2.2rem; }
.prefooter-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--navy-2); color: rgba(255,255,255,.72); font-size: .95rem; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-top: 4rem; padding-bottom: 3rem;
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 1rem; }
.footer-tag { font-family: var(--serif); font-style: italic; color: #fff; margin-bottom: .4rem; }
.footer-note { font-size: .85rem; color: rgba(255,255,255,.5); max-width: 24em; }
.footer-col h3 {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 1.1rem;
}
.footer-col a { display: block; padding: .28rem 0; }
.footer-newsletter p { font-size: .9rem; color: rgba(255,255,255,.6); }
.newsletter-row { display: flex; gap: .6rem; }
.newsletter-row input[type="email"] {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: #fff; padding: .65em .9em; font-size: .92rem; font-family: var(--sans);
}
.newsletter-row input[type="email"]::placeholder { color: rgba(255,255,255,.35); }
.newsletter-msg { font-size: .85rem; min-height: 1.2em; margin: .5rem 0 0; color: var(--gold); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.4rem; padding-bottom: 1.6rem;
  font-size: .82rem; color: rgba(255,255,255,.45);
}
.footer-base p { margin: 0; }
.footer-fileref { font-family: var(--mono); letter-spacing: .06em; }

/* ------------------------------------------------------------ forms (public) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form-grid .span-2 { grid-column: span 2; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--ledger);
  border-radius: var(--radius);
  padding: .7em .85em;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(180,69,147,.15);
}
.field textarea { resize: vertical; min-height: 8.5em; }
.field-hint { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.consent-row { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--ink-soft); }
.consent-row input { margin-top: .3em; }
.form-alert { border-radius: var(--radius); padding: .9em 1.1em; font-size: .95rem; margin-bottom: 1.2rem; }
.form-alert.is-error { background: #FBEAEA; color: #8C2B2B; border: 1px solid #EFC9C9; }
.form-alert.is-success { background: #E7F6EF; color: #14634A; border: 1px solid #BFE7D4; }
.hp-field { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }

/* ------------------------------------------------------------ cookie note */
.cookie-note {
  position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 150;
  max-width: 430px;
  background: var(--navy); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 50px -12px rgba(10,22,40,.55);
  display: flex; align-items: center; gap: 1rem;
  font-size: .85rem;
}
.cookie-note p { margin: 0; }

/* ---------------------------------------------------------------- reveals */
[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--d, 0ms);
}
[data-animate].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .btn, .nav { transition: none; }
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: block; }
  .nav-mobile:not([hidden]) { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .prefooter-ctas .btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   Home page
   ========================================================================== */
.hero { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-copy .lede { margin-top: 1.4rem; }

/* trust ledger row */
.trust { border-top: 1px solid var(--ledger); border-bottom: 1px solid var(--ledger); background: #fff; }
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin: 0; padding: 1.9rem 0;
}
.trust-row div { border-left: 1px solid var(--ledger); padding-left: 1.4rem; }
.trust-row div:first-child { border-left: 0; padding-left: 0; }
.trust-row dt { font-size: .78rem; letter-spacing: .04em; color: var(--ink-soft); }
.trust-row dd {
  margin: .2rem 0 0;
  font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--ink);
}

/* attendance note (loss framing) */
.attendance { max-width: 62em; }
.attendance-body { max-width: 38em; margin-top: 1.6rem; }
.attendance-body p { color: var(--ink-soft); }
.attendance-body strong { color: var(--ink); }
.attendance-kicker { font-family: var(--serif); font-size: 1.25rem; color: var(--ink) !important; margin-top: 1.4rem; }
.attendance-kicker em { color: var(--brand); }

/* clause grid (features) */
.clause-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.clause-card {
  background: #fff;
  border: 1px solid var(--ledger);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  position: relative;
}
.clause-card .clause { position: absolute; top: 1.45rem; right: 1.5rem; margin: 0; }
.clause-card h3 { font-size: 1.22rem; margin: 0 0 .6rem; padding-right: 2.6rem; }
.clause-card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.clause-chips { margin-top: 1rem !important; display: flex; gap: .45rem; flex-wrap: wrap; }
.clause-chips .wip-code { color: var(--brand-deep); border-color: rgba(180,69,147,.4); background: rgba(180,69,147,.05); }
.section-more { margin-top: 2.4rem; font-weight: 600; }
.section-more a { text-decoration: none; }
.section-more a:hover { text-decoration: underline; }
.link-light { color: var(--gold); }
.link-light:hover { color: #fff; }

/* AI grid (dark) */
.lede-dark { color: rgba(220,228,242,.62); }
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.ai-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
}
.ai-card h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.ai-card p { font-size: .95rem; color: rgba(220,228,242,.68); margin: 0; }
.ai-card .t-gold { color: var(--gold); font-family: var(--mono); font-size: .82em; }
.ai-card-wide { grid-column: span 2; }

/* pricing tease */
.pricing-tease {
  display: grid; grid-template-columns: 1.3fr .7fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.pricing-tease-copy p { color: var(--ink-soft); max-width: 34em; }
.pricing-tease-copy strong { color: var(--ink); }
.pricing-tease-stamp { text-align: center; padding: 2.4rem 1.6rem; border: 1px dashed var(--ledger); border-radius: 10px; }
.pricing-tease-stamp .stamp { font-size: 1rem; margin-bottom: 1.2rem; }
.pricing-tease-note { font-size: .88rem; color: var(--ink-soft); margin: 1.2rem auto 0; max-width: 20em; }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote-card {
  margin: 0; background: #fff;
  border: 1px solid var(--ledger); border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.5rem;
}
.quote-card blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.08rem; line-height: 1.55; color: var(--ink);
}
.quote-card blockquote::before { content: '\201C'; color: var(--brand); margin-right: .05em; }
.quote-card blockquote::after { content: '\201D'; color: var(--brand); margin-left: .05em; }
.quote-card figcaption { font-size: .88rem; color: var(--ink-soft); }
.quote-card figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* onboarding steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff; border: 1px solid var(--ledger); border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.5rem;
}
.step::after {
  content: '';
  position: absolute; top: 50%; right: -1.4rem; width: 1.4rem; height: 1px;
  background: var(--ledger);
}
.step:last-child::after { display: none; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--brand); color: var(--brand);
  font-family: var(--mono); font-size: .95rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.steps-cta { margin-top: 2.6rem; text-align: center; }

/* home responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.5rem; }
  .trust-row div:nth-child(3) { border-left: 0; padding-left: 0; }
  .clause-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-tease { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
}
@media (max-width: 640px) {
  .clause-grid, .ai-grid { grid-template-columns: 1fr; }
  .ai-card-wide { grid-column: span 1; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   Inner pages (page hero, contact/demo)
   ========================================================================== */
.hero-page { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.display-page { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.015em; }
.display-page em { font-style: italic; color: var(--brand); }

.contact-grid {
  display: grid; grid-template-columns: 1.5fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-aside { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-card {
  background: #fff; border: 1px solid var(--ledger); border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.contact-card h2 { font-size: 1.25rem; margin-bottom: .8rem; }
.contact-card p { font-size: .93rem; color: var(--ink-soft); }
.contact-line { display: flex; gap: .8rem; margin: 0 0 .55rem; font-size: .95rem; }
.contact-label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); min-width: 4.4em; padding-top: .25em;
}
.demo-list { margin: 0; padding: 0 0 0 1.1em; font-size: .93rem; color: var(--ink-soft); }
.demo-list li { margin-bottom: .5em; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Product-led components: the system, shown
   ========================================================================== */

/* Browser frame around real product screenshots */
.appframe {
  background: #fff;
  border: 1px solid var(--ledger);
  border-radius: 12px;
  box-shadow: 0 30px 70px -30px rgba(10, 22, 40, .38);
  overflow: hidden;
}
.appframe-bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ledger);
}
.appframe-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #D8DCE4; }
.appframe-bar .dot:nth-child(1) { background: #F4BEBE; }
.appframe-bar .dot:nth-child(2) { background: #F4E3B2; }
.appframe-bar .dot:nth-child(3) { background: #BFE3CD; }
.appframe-url {
  flex: 1; max-width: 340px; margin: 0 auto;
  font-family: var(--sans); font-size: .72rem; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--ledger); border-radius: 999px;
  padding: .28em 1em; text-align: center;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.appframe img { display: block; width: 100%; height: auto; }
.appframe-caption {
  font-size: .85rem; color: var(--ink-soft);
  margin: .9rem 0 0;
}

/* Screenshot + copy rows */
.shot-row {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.4rem, 5vw, 4rem) 0;
}
.shot-row.is-flipped { grid-template-columns: .85fr 1.15fr; }
.shot-row.is-flipped .shot-media { order: 2; }
.shot-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .7rem; }
.shot-copy p { color: var(--ink-soft); }

/* Benefit callouts under/beside screenshots */
.callouts { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.callouts li {
  position: relative;
  padding: .34rem 0 .34rem 2.1rem;
  font-size: .95rem; color: var(--ink-soft);
}
.callouts li strong { color: var(--ink); }
.callouts li::before {
  content: '';
  position: absolute; left: 0; top: .52rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.6 11.6 3.4 8.4l1.2-1.2 2 2 4.8-4.8 1.2 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.6 11.6 3.4 8.4l1.2-1.2 2 2 4.8-4.8 1.2 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hero screenshot sizing */
.hero-shot .appframe { transform: translateY(0); }
.hero-shot .appframe-caption { text-align: right; }

@media (max-width: 960px) {
  .shot-row, .shot-row.is-flipped { grid-template-columns: 1fr; }
  .shot-row.is-flipped .shot-media { order: 0; }
}

/* solo full-width appframe (AI section) + dark-section caption */
.appframe-solo { max-width: 980px; margin: 0 auto; }
.on-dark-caption { max-width: 980px; margin: 1rem auto 0; color: rgba(220,228,242,.6); text-align: left; }
.on-dark-caption em { color: var(--gold); font-style: italic; }
.ai-grid-tight { margin-top: clamp(2rem, 4vw, 3rem); }
.section-dark .section-more { text-align: center; }

/* hero: modern glow + floating live-file chips */
.hero-glow {
  background:
    radial-gradient(900px 480px at 82% 18%, rgba(180,69,147,.10), transparent 65%),
    radial-gradient(600px 380px at 95% 60%, rgba(255,206,75,.10), transparent 60%),
    var(--paper);
}
.hero-shot { position: relative; }
.hero-shot .appframe { box-shadow: 0 40px 90px -30px rgba(10,22,40,.45); }
.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff;
  border: 1px solid var(--ledger);
  border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(10,22,40,.35);
  font-size: .8rem; font-weight: 600; color: var(--ink);
  padding: .55em 1em;
  white-space: nowrap;
}
.float-chip .wip-code { color: #14805E; border-color: rgba(20,128,94,.4); background: rgba(20,128,94,.07); }
.float-chip-1 { top: -1.1rem; left: -1.4rem; transform: rotate(-1.5deg); }
.float-chip-2 { bottom: 4rem; right: -1rem; transform: rotate(1.2deg); color: var(--brand-deep); }
@media (max-width: 960px) {
  .float-chip-1 { left: 0; }
  .float-chip-2 { right: 0; }
}
@media (max-width: 640px) {
  .float-chip { font-size: .7rem; }
}

/* AI page helpers */
p.appframe-caption.appframe-solo { text-align: left; }
.callouts-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; margin-top: 2rem; }
@media (max-width: 900px) { .callouts-3col { grid-template-columns: 1fr; } }
.ai-how { max-width: 980px; margin: 0 auto; }

/* FAQ (shared) */
.faq { max-width: 46em; }
.faq details {
  background: #fff; border: 1px solid var(--ledger); border-radius: var(--radius);
  margin-bottom: .8rem; padding: 0 1.3rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 1.05rem 0;
  list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.1rem; color: var(--brand);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--ink-soft); font-size: .95rem; padding-bottom: 1.1rem; margin: 0; }

/* rate/comparison table (shared) */
.rate-card { overflow-x: auto; border: 1px solid var(--ledger); border-radius: var(--radius); background: #fff; }
.rate-card table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.rate-card th {
  text-align: left; font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  padding: .9rem 1.3rem; border-bottom: 1px solid var(--ledger);
}
.rate-card td { padding: .95rem 1.3rem; border-bottom: 1px solid var(--ledger); vertical-align: top; }
.rate-card tr:last-child td { border-bottom: 0; }
.rate-card td:first-child { font-weight: 600; }
.rate-card td.rate { font-family: var(--mono); white-space: nowrap; }
.rate-card td.rate span { color: var(--ink-soft); font-size: .8em; }
.rate-card td:last-child { color: var(--ink-soft); font-size: .9rem; }
.rate-note { max-width: 44em; margin-top: 1.6rem; color: var(--ink-soft); }
.rate-note strong { color: var(--ink); }

/* prevent grid/flex min-content blowout on narrow screens */
.shot-media, .shot-copy, .hero-copy, .hero-shot,
.calc-ledger-col, .pricing-tease-copy, .footer-col { min-width: 0; }
.shot-media .appframe img { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .float-chip { white-space: normal; max-width: 86%; }
  .appframe-url { max-width: 220px; }
}

/* the hidden attribute must beat .cookie-note's display:flex */
.cookie-note[hidden] { display: none; }
