/* ============================================================
   ExaMinds - design system v2 · "Editorial"
   A journal/letterpress aesthetic instead of a SaaS template:
   warm paper ground, near-black ink, one copper accent, Fraunces
   serif display type, hairline rules, numbered sections, no
   drop-shadow card grids. Credible for government; distinctive
   for AI. All theme decisions live in the :root variables.
   ============================================================ */

:root {
  /* Palette - brand/BRAND.md */
  --paper: #F7F4EE;       /* warm off-white ground */
  --paper-deep: #EFEAE0;  /* slightly darker paper for alternating bands */
  --ink: #15191E;         /* near-black: text, dark bands */
  --ink-soft: #2A2F36;    /* dark-band card surfaces */
  --copper: #BC5327;      /* the accent; use with intent, not everywhere */
  --copper-deep: #A34620; /* hover + copper used as text on paper */
  --copper-bright: #D96B3C; /* copper on dark backgrounds (contrast) */
  --muted: #6E6A60;       /* secondary text on paper */
  --muted-dark: #A9A49A;  /* secondary text on ink */
  --line: #D9D2C4;        /* hairline rules on paper */
  --line-dark: #3A4048;   /* hairline rules on ink */

  /* Type system (chosen pairing "F2"): IBM Plex Serif headlines over IBM Plex
     Sans body - the established-but-modern, big-consultancy register (IBM /
     Deloitte / PwC family). Self-hosted; see css/fonts.css. */
  --serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;   /* headings */
  --sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;  /* body */
  /* The wordmark stays in Fraunces - the chosen C1 "Multiplied" logo identity -
     giving the mark its own distinctive display face above the Plex hierarchy. */
  --logo: 'Fraunces', Georgia, 'Times New Roman', serif;

  --max-w: 1140px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--copper); color: var(--paper); }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; line-height: 1.3; }
p  { margin-bottom: 1em; }
a  { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--copper); }
a:hover { color: var(--copper-deep); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
sup { font-size: 0.55em; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

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

/* Serif italic accent word inside headlines */
.accent-i { font-style: italic; color: var(--copper-deep); }

/* Micro-label: small caps eyebrow used throughout */
.micro {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper-deep);
  display: inline-block; margin-bottom: 18px;
}

/* ---------- Typographic logo (no image file needed) ---------- */
.logo {
  font-family: var(--logo); font-weight: 560; font-size: 27px;
  letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.logo .x { /* the copper × of the C1 "Multiplied" wordmark */
  color: var(--copper); font-weight: 600; font-style: normal;
  padding: 0 0.02em; position: relative; top: -0.05em;
}
.logo:hover { color: var(--ink); }
.on-dark .logo { color: var(--paper); }
.on-dark .logo .x { color: var(--copper-bright); }


/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; color: var(--ink); padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--copper-deep); }
.nav-links a.active { border-bottom-color: var(--copper); color: var(--copper-deep); }
.nav-links a.nav-cta {
  border: 1px solid var(--ink); padding: 10px 22px; border-radius: 0;
  font-weight: 600; transition: background 0.15s, color 0.15s;
}
.nav-links a.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 10px 0 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 28px; width: 100%; text-align: center; }
  .nav-links a.nav-cta { width: auto; margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hero { padding: 108px 0 84px; position: relative; }
.hero h1 { max-width: 15ch; margin-bottom: 30px; }
.hero .lede {
  font-size: 1.18rem; max-width: 56ch; color: var(--muted); margin-bottom: 42px;
}
.hero-rule { border: none; border-top: 1px solid var(--ink); margin-bottom: 26px; width: 72px; }
/* Oversized ghost × watermark, echoing the wordmark */
.hero::after {
  content: '\00d7';
  position: absolute; right: 2%; top: 30px;
  font-family: var(--serif); font-size: clamp(200px, 30vw, 420px);
  line-height: 1; color: var(--copper); opacity: 0.07;
  pointer-events: none; user-select: none;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Interior page hero: same language, smaller scale */
.page-hero { padding: 84px 0 60px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 18ch; margin-bottom: 20px; }
.page-hero p { max-width: 58ch; color: var(--muted); font-size: 1.12rem; margin-bottom: 0; }

/* ---------- Buttons: rectangular, letterpress ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 13.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 30px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; }
.on-dark .btn { border-color: var(--paper); color: var(--paper); }
.on-dark .btn:hover { background: var(--paper); color: var(--ink); }
.on-dark .btn-primary { background: var(--copper-bright); border-color: var(--copper-bright); color: var(--ink); }
.on-dark .btn-primary:hover { background: var(--copper); border-color: var(--copper); color: #fff; }

/* ---------- Stat strip ---------- */
.stat-strip {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-strip .stat { padding: 34px 26px; border-left: 1px solid var(--line); }
.stat-strip .stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--serif); font-weight: 560; font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1; display: block; margin-bottom: 10px;
}
.stat .num em { font-style: italic; color: var(--copper-deep); }
.stat .label { font-size: 13.5px; color: var(--muted); letter-spacing: 0.02em; }
@media (max-width: 800px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip .stat:nth-child(3) { border-left: none; }
  .stat-strip .stat { border-top: 1px solid var(--line); }
  .stat-strip .stat:nth-child(-n+2) { border-top: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-band { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Numbered section header: "01 - Title" editorial furniture */
.sec-head { display: flex; align-items: baseline; gap: 22px; border-top: 1px solid var(--ink); padding-top: 22px; margin-bottom: 54px; }
.sec-head .no { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--copper-deep); flex-shrink: 0; }
.sec-head h2 { flex: 1; }
.sec-head .sec-note { max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 800px) { .sec-head { flex-wrap: wrap; } .sec-head .sec-note { max-width: none; } }

/* ---------- Entry list (replaces card grids): ruled editorial columns ---------- */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
@media (max-width: 900px) { .entries { grid-template-columns: 1fr; gap: 36px; } }
.entry { border-top: 1px solid var(--line); padding-top: 24px; }
.entry .kicker {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper-deep); display: block; margin-bottom: 12px;
}
.entry h3 { margin-bottom: 12px; }
.entry p { font-size: 15.5px; color: var(--muted); }
.entry ul { margin-top: 10px; }
.entry li {
  font-size: 15px; padding: 9px 0 9px 26px; position: relative;
  border-bottom: 1px solid var(--line);
}
.entry li:last-child { border-bottom: none; }
.entry li::before { content: '\00d7'; position: absolute; left: 2px; color: var(--copper); font-weight: 600; }
.entry .more { font-size: 14px; font-weight: 600; }

/* ---------- Dark band (AI practice, CTA) ---------- */
.on-dark { background: var(--ink); color: var(--muted-dark); }
.on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark .micro { color: var(--copper-bright); }
.on-dark .sec-head { border-top-color: var(--paper); }
.on-dark .sec-head .no { color: var(--copper-bright); }
.on-dark .sec-head .sec-note { color: var(--muted-dark); }
.on-dark .entry { border-top-color: var(--line-dark); }
.on-dark .entry .kicker { color: var(--copper-bright); }
.on-dark .entry p { color: var(--muted-dark); }
.on-dark .entry li { border-bottom-color: var(--line-dark); }
.on-dark .entry li::before { color: var(--copper-bright); }
.on-dark a { text-decoration-color: var(--copper-bright); }
.on-dark a:hover { color: var(--copper-bright); }
.on-dark .accent-i { color: var(--copper-bright); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Manifesto list: numbered principles */
.principles { counter-reset: p; }
.principles li { counter-increment: p; padding: 20px 0 20px 58px; position: relative; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: 22px;
  font-family: var(--serif); font-style: italic; color: var(--copper-deep); font-size: 1.05rem;
}
.principles strong { display: block; font-family: var(--serif); font-weight: 560; font-size: 1.15rem; margin-bottom: 3px; }
.principles li p { margin: 0; font-size: 15px; color: var(--muted); }
.on-dark .principles li { border-color: var(--line-dark); }
.on-dark .principles strong { color: var(--paper); }
.on-dark .principles li p { color: var(--muted-dark); }
.on-dark .principles li::before { color: var(--copper-bright); }

/* ---------- Product rows: editorial listing, not app-store cards ---------- */
.product-row {
  /* Fixed-width CTA column (last track) so every row's button occupies the same
     horizontal band - buttons line up on both edges regardless of label length. */
  display: grid; grid-template-columns: 96px 1fr 190px; gap: 36px; align-items: start;
  border-top: 1px solid var(--line); padding: 40px 0;
}
.product-row:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .product-row { grid-template-columns: 72px 1fr; } .product-row .row-cta { grid-column: 2; } }
.product-tile {
  width: 96px; height: 96px; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 560; font-size: 40px; color: var(--paper);
  background: var(--ink); border-radius: 22px;
}
@media (max-width: 720px) { .product-tile { width: 72px; height: 72px; font-size: 30px; border-radius: 17px; } }
.product-tile.t-copper { background: var(--copper); }
.product-tile.t-paper { background: var(--paper-deep); color: var(--ink); border: 1px solid var(--line); }
/* Image tile - for products with a real app icon (e.g. ZivoLog). The <img> carries
   the .product-tile sizing/radius; object-fit keeps the square icon undistorted, the
   white base + hairline border make it read as an app icon on the paper background. */
.product-tile.is-logo { padding: 0; background: #fff; object-fit: cover; border: 1px solid var(--line); }
.product-row .kicker {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper-deep); display: block; margin-bottom: 8px;
}
.product-row h3 { font-size: 1.6rem; margin-bottom: 10px; }
.product-row p { color: var(--muted); max-width: 62ch; margin-bottom: 8px; }
.product-row .facts { font-size: 13.5px; color: var(--muted); font-style: italic; font-family: var(--serif); }
/* Buttons fill the fixed CTA column → identical width across all product rows.
   On mobile the column collapses, so the button reverts to its natural width. */
.row-cta { align-self: center; }
.row-cta .btn { display: block; width: 100%; text-align: center; }
@media (max-width: 720px) { .row-cta .btn { display: inline-block; width: auto; } }

/* ---------- Big CTA ---------- */
.cta-final { text-align: left; }
.cta-final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; margin-bottom: 24px; }
.cta-final p { max-width: 52ch; margin-bottom: 36px; }

/* ---------- Contact form: underline fields, editorial stationery ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin: 22px 0 2px;
}
input, textarea, select {
  width: 100%; font-family: var(--sans); font-size: 17px; color: var(--ink);
  padding: 10px 2px; background: transparent;
  border: none; border-bottom: 1px solid var(--ink); border-radius: 0;
}
select { appearance: none; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom: 2px solid var(--copper); }
textarea { resize: vertical; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 20px 0 26px; font-style: italic; font-family: var(--serif); }
.form-status { margin-top: 18px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: var(--copper-deep); }
.form-status.err { display: block; color: #9B2226; }

/* Contact info list */
.contact-info li { border-top: 1px solid var(--line); padding: 20px 0; }
.contact-info li:last-child { border-bottom: 1px solid var(--line); }
.contact-info .k {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 4px;
}
.contact-info .v { font-size: 1.1rem; font-family: var(--serif); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 72px 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .logo { font-size: 30px; margin-bottom: 18px; display: inline-block; }
.site-footer p { font-size: 15px; max-width: 40ch; }
.site-footer h4 {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--paper); margin-bottom: 16px;
}
.site-footer li { margin-bottom: 10px; font-size: 15px; }
.site-footer a { text-decoration: none; color: var(--muted-dark); }
.site-footer a:hover { color: var(--paper); }
.social-links { display: flex; gap: 16px; margin-top: 22px; }
.social-links svg { width: 20px; height: 20px; fill: var(--muted-dark); transition: fill 0.15s; }
.social-links a:hover svg { fill: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px;
}
/* Giant ghost wordmark along the footer's bottom edge */
.footer-ghost {
  font-family: var(--logo); font-weight: 560; text-align: center;
  font-size: clamp(72px, 14vw, 190px); line-height: 0.72; letter-spacing: -0.02em;
  color: var(--paper); opacity: 0.05; user-select: none; pointer-events: none;
  transform: translateY(18%);
}
.footer-ghost .x { color: var(--copper-bright); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
