/* ==========================================================================
   CodePossum — pages.css
   Page-level composition: hero, ticker, showcase, services, values, process,
   FAQ, CTA, service/approach/about/contact/legal pages, 404.
   ========================================================================== */

/* ---------- Shared two-column split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split--flip > :last-child { order: 1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(60px, 8vw, 96px); padding-bottom: clamp(60px, 8vw, 104px); overflow: clip; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(4, 117, 254, .16) 1.5px, transparent 1.5px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 26px 26px, 140px 140px;
  -webkit-mask-image: radial-gradient(58% 56% at 72% 26%, #000 0%, transparent 72%);
  mask-image: radial-gradient(58% 56% at 72% 26%, #000 0%, transparent 72%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 460px at 88% 4%, rgba(4, 117, 254, .11), transparent 70%),
    radial-gradient(560px 420px at 2% 86%, rgba(90, 160, 255, .12), transparent 70%);
}
.hero-watermark {
  position: absolute;
  top: -3vw; left: -1vw;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(140px, 20vw, 300px);
  line-height: 1;
  color: rgba(4, 117, 254, .045);
  pointer-events: none;
  user-select: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy .lead { margin-top: 22px; }
.hero-copy .btn-row { margin-top: 32px; }
.hero-note {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--muted);
  font-size: .98rem;
}
.hero-note .brace { font-family: var(--font-display); font-weight: 900; color: var(--blue-text); }

.hero-art { position: relative; }
.hero-art-frame {
  position: relative;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #f7fbff 0%, #e9f2ff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  padding: clamp(14px, 2vw, 26px);
}
.hero-art-frame img { width: 100%; border-radius: calc(var(--radius-l) - 10px); }
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-m);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .92rem;
  animation: floaty 7s ease-in-out infinite;
}
.float-chip svg { width: 19px; height: 19px; color: var(--blue); flex: 0 0 auto; }
.chip-1 { top: 5%; left: -5%; animation-delay: 0s; }
.chip-2 { bottom: 9%; left: -8%; animation-delay: -2.6s; }
.chip-3 { top: 21%; right: -7%; animation-delay: -4.4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }
@media (max-width: 1100px) {
  .chip-1 { left: 2%; } .chip-2 { left: 0; } .chip-3 { right: 2%; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin-inline: auto; width: 100%; margin-top: 14px; }
  .chip-2 { display: none; }
  .float-chip { font-size: .84rem; padding: 10px 13px; }
}

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding-block: 20px; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: #5f6f87;
  white-space: nowrap;
}
.ticker-item .brace { color: var(--blue-text); font-weight: 900; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: 100%; }
  .ticker-group { flex-wrap: wrap; justify-content: center; }
  .ticker-group:nth-child(2) { display: none; }
}

/* ---------- Showcase ---------- */
.showcase-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.showcase-switch {
  display: inline-flex; gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-s);
}
.showcase-switch button {
  border: 0; background: transparent;
  border-radius: 999px;
  padding: 11px 19px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .93rem;
  color: var(--muted);
  transition: background .22s var(--ease), color .22s var(--ease);
  white-space: nowrap;
}
.showcase-switch button:hover { color: var(--ink); }
.showcase-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.showcase-panels { margin-top: 6px; perspective: 1200px; }
.showcase-panel { animation: panel-in .5s var(--ease); }
.showcase-panel[hidden] { display: none; }
.tilt { transform-style: preserve-3d; transition: transform .3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .tilt { transition: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .showcase-panel { animation: none; } }
@media (max-width: 640px) {
  .showcase-switch { width: 100%; overflow-x: auto; }
}

/* Browser mockup (panel A) */
.browser { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-l); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: #cfdaeb; }
.browser-url {
  flex: 1; max-width: 430px; margin-inline: auto;
  background: var(--mist); border-radius: 999px; padding: 7px 16px;
  font-size: .84rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; overflow: hidden;
}
.browser-url svg { width: 13px; height: 13px; flex: 0 0 auto; color: #1d7a44; }
.mock-site { padding: clamp(18px, 2.6vw, 30px); background: #fff; }
.mock-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.mock-brand { display: flex; gap: 10px; align-items: center; font-family: var(--font-display); font-weight: 900; font-size: 1rem; }
.mock-brand .mk-dot { width: 27px; height: 27px; border-radius: 9px; background: linear-gradient(135deg, #16436b, #2f7d6d); }
.mock-links { display: flex; gap: 16px; font-size: .84rem; color: #3d4a61; font-weight: 700; }
.mock-hero {
  border-radius: 18px;
  background: linear-gradient(180deg, #e3f1ff 0%, #f7fbff 100%);
  padding: clamp(16px, 2.4vw, 28px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: center;
  overflow: hidden;
}
.mock-hero h4 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.15; }
.mock-hero p { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.mock-btn {
  display: inline-flex; margin-top: 14px;
  background: #16436b; color: #fff;
  border-radius: 999px; padding: 9px 18px;
  font-family: var(--font-display); font-weight: 800; font-size: .84rem;
}
.mock-scene svg { width: 100%; height: auto; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.mock-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.mock-card .mc-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--mist-2); display: grid; place-items: center; color: #16436b; }
.mock-card .mc-ic svg { width: 16px; height: 16px; }
.mock-card strong { font-family: var(--font-display); font-weight: 800; font-size: .9rem; }
.mock-card span { font-size: .8rem; color: var(--muted); }
@media (max-width: 700px) { .mock-hero { grid-template-columns: 1fr; } .mock-cards { grid-template-columns: 1fr; } }

/* App mockup (panel B) */
.app-frame { display: grid; grid-template-columns: 205px 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-l); min-height: 400px; }
.app-side { background: var(--navy); color: #c6d8f2; padding: 20px 14px; display: grid; align-content: start; gap: 3px; }
.app-logo { display: flex; gap: 10px; align-items: center; color: #fff; font-family: var(--font-display); font-weight: 900; padding: 4px 10px 16px; font-size: .98rem; }
.app-logo .app-logo-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--blue-cta); display: grid; place-items: center; font-size: .7rem; font-weight: 900; color: #fff; }
.app-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: #b6c9e6; }
.app-nav-item svg { width: 16px; height: 16px; opacity: .9; }
.app-nav-item.is-active { background: rgba(255, 255, 255, .13); color: #fff; }
.app-main { padding: clamp(16px, 2.4vw, 24px); display: grid; align-content: start; gap: 16px; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.app-title { font-family: var(--font-display); font-weight: 900; font-size: 1.12rem; }
.app-tabs { display: inline-flex; gap: 4px; background: var(--mist); border-radius: 999px; padding: 4px; }
.app-tabs button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font-family: var(--font-display); font-weight: 800; font-size: .86rem; color: var(--muted); transition: background .2s, color .2s; }
.app-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.app-table { display: grid; gap: 8px; }
.app-row {
  display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: .9rem; background: #fff;
  animation: panel-in .4s var(--ease) both;
}
.app-row .ar-main { font-weight: 700; }
.app-row .ar-sub { color: var(--muted); font-size: .84rem; }
.status { justify-self: start; font-family: var(--font-display); font-weight: 800; font-size: .76rem; padding: 4px 11px; border-radius: 999px; }
.status--new { background: var(--mist-2); color: var(--blue-dark); }
.status--ok { background: #e2f5ea; color: #166b3c; }
.status--wait { background: #fdf1de; color: #8a5a10; }
@media (max-width: 820px) {
  .app-frame { grid-template-columns: 1fr; }
  .app-side { display: none; }
}

/* Automation demo (panel C) */
.demo-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.inquiry-card { padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 16px; align-content: start; }
.bubble { background: var(--mist); border-radius: 18px 18px 18px 5px; padding: 16px 18px; }
.bubble .who { font-family: var(--font-display); font-weight: 800; font-size: .83rem; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.bubble .who .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.bubble p { font-weight: 600; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.steps-card { padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 11px; align-content: start; }
.demo-step {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 13px;
  color: var(--muted); font-weight: 700; font-size: .94rem;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.demo-step .st-icon {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--line-2);
  display: grid; place-items: center;
  flex: 0 0 auto;
  font-size: .8rem;
  transition: background .25s, border-color .25s;
}
.demo-step.is-running { border-color: var(--blue); color: var(--ink); background: #fff; }
.demo-step.is-running .st-icon { border-color: var(--blue); border-top-color: transparent; animation: spin .7s linear infinite; }
.demo-step.is-done { border-color: #bfe6cd; color: var(--ink); }
.demo-step.is-done .st-icon { background: #1d7a44; border-color: #1d7a44; color: #fff; }
.demo-step.is-done .st-icon::after { content: "✓"; font-weight: 900; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .demo-step.is-running .st-icon { animation: none; border-top-color: var(--blue); } }
.demo-result { border: 1.5px solid var(--line-2); border-radius: 15px; padding: 16px 18px; display: grid; gap: 9px; background: #fff; animation: panel-in .45s var(--ease); }
.demo-result[hidden] { display: none; }
.demo-result .dr-row { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.demo-result .dr-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dr-row .k { color: var(--muted); font-weight: 600; }
.dr-row .v { font-family: var(--font-display); font-weight: 800; text-align: right; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--muted); }
.demo-note svg { width: 16px; height: 16px; color: var(--blue); flex: 0 0 auto; margin-top: 3px; }
.panel-label { margin-top: 14px; }

/* ---------- Service cards (What we do) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { padding: 26px 24px 24px; display: grid; gap: 13px; align-content: start; text-decoration: none; color: inherit; }
.service-card h2, .service-card h3 { font-size: 1.16rem; }
.service-card p { font-size: .95rem; color: var(--muted); }
.service-card .link-more { margin-top: 6px; font-size: .95rem; }
.service-card:hover .icon-chip { background: var(--blue); color: #fff; transition: background .25s var(--ease), color .25s var(--ease); }
.service-card .icon-chip { transition: background .25s var(--ease), color .25s var(--ease); }

/* ---------- The Possum Way (navy band) ---------- */
.way-band { position: relative; overflow: clip; }
.way-band::before {
  content: "{ }";
  position: absolute; right: -50px; top: -90px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(220px, 30vw, 400px);
  line-height: 1;
  color: rgba(102, 156, 255, .07);
  pointer-events: none;
}
.way-band::after {
  content: "";
  position: absolute; left: -12%; bottom: -50%;
  width: 64%; height: 110%;
  background: radial-gradient(closest-side, rgba(4, 117, 254, .28), transparent 72%);
  pointer-events: none;
}
.way-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4vw, 52px); }
@media (max-width: 860px) { .way-grid { grid-template-columns: 1fr; } }
.way-num { font-family: var(--font-display); font-weight: 900; color: #6ea8ff; letter-spacing: .04em; font-size: .95rem; }
.way-item h3 { margin: 12px 0 10px; font-size: 1.35rem; }
.way-item p { color: #b9c9e6; font-size: .99rem; }

/* ---------- Process ---------- */
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-line { position: absolute; top: 27px; left: 28px; right: 21%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.process-line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), #74b3ff); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease) .25s; }
.process-grid.is-visible .process-line i { transform: scaleX(1); }
.step { position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem;
  color: var(--blue-text);
  box-shadow: var(--shadow-s);
  position: relative; z-index: 1;
}
.step h3 { margin: 16px 0 8px; font-size: 1.14rem; }
.step p { color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; gap: 26px; }
  .process-line { display: none; }
}

/* ---------- Process: pinned, scroll-driven scene (progressive) ---------- */
.process-scene { position: relative; }
@supports (animation-timeline: view()) {
  @media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
    .process-scene { height: 250vh; view-timeline-name: --process; }
    .process-sticky { position: sticky; top: max(96px, 12vh); }
    .process-grid .step {
      opacity: .22;
      animation: sda-step-on linear both;
      animation-timeline: --process;
    }
    .process-grid .step:nth-of-type(2) { animation-range: contain 3% contain 25%; }
    .process-grid .step:nth-of-type(3) { animation-range: contain 27% contain 49%; }
    .process-grid .step:nth-of-type(4) { animation-range: contain 51% contain 73%; }
    .process-grid .step:nth-of-type(5) { animation-range: contain 75% contain 97%; }
    .process-grid .process-line i {
      transition: none;
      animation: sda-line linear both;
      animation-timeline: --process;
      animation-range: contain 3% contain 82%;
    }
  }
}
@keyframes sda-step-on { from { opacity: .22; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sda-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid #d9e4f4; }
.faq details:first-of-type { border-top: 1px solid #d9e4f4; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 2px; cursor: pointer;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.16rem);
  list-style: none;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq-icon { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); flex: 0 0 auto; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2.6px; border-radius: 2px; background: var(--blue); translate: -50% -50%; transition: transform .3s var(--ease), background .3s; }
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon { background: var(--blue); border-color: var(--blue); }
details[open] .faq-icon::before, details[open] .faq-icon::after { background: #fff; }
details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 2px 24px; max-width: 68ch; color: var(--muted); }
.faq-answer p + p { margin-top: 10px; }
.faq-wrap { position: relative; }

/* ---------- Generative brace field ---------- */
.fx-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-card .fx-field { z-index: 1; }
.cta-card > div { position: relative; z-index: 2; }

/* ---------- Final CTA ---------- */
@property --mx { syntax: '<percentage>'; inherits: false; initial-value: 72%; }
@property --my { syntax: '<percentage>'; inherits: false; initial-value: 28%; }
.cta-wrap { padding-block: var(--section-y); }
.cta-card {
  position: relative; overflow: clip;
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--navy);
  color: #fff;
  padding: clamp(38px, 6vw, 72px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
  box-shadow: var(--shadow-l);
  transition: --mx .35s ease-out, --my .35s ease-out;
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(580px 440px at var(--mx, 72%) var(--my, 28%), rgba(4, 117, 254, .34), transparent 72%);
  pointer-events: none;
}
.cta-card::after {
  content: "{ }";
  position: absolute; left: -30px; bottom: -110px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(180px, 24vw, 320px);
  line-height: 1;
  color: rgba(102, 156, 255, .08);
  pointer-events: none;
}
.cta-card h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3rem); }
.cta-card--slim { grid-template-columns: 1fr; }
.cta-card--slim .btn-row { margin-top: 28px; }
.cta-card .lead { color: #b9c9e6; margin-top: 14px; }
.cta-card .btn-row { margin-top: 28px; position: relative; z-index: 1; }
.cta-art { position: relative; }
.cta-art img { width: 100%; max-width: 420px; margin-inline: auto; border-radius: var(--radius-l); animation: floaty 9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cta-art img { animation: none; } }
@media (max-width: 900px) { .cta-card { grid-template-columns: 1fr; } .cta-art img { max-width: 340px; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding-top: clamp(52px, 7vw, 84px); padding-bottom: clamp(44px, 6vw, 72px); overflow: clip; }
.page-hero .hero-bg::before { -webkit-mask-image: radial-gradient(52% 62% at 82% 20%, #000 0%, transparent 74%); mask-image: radial-gradient(52% 62% at 82% 20%, #000 0%, transparent 74%); }
.page-hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.35rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
.page-hero .lead { margin-top: 20px; }
.page-hero .btn-row { margin-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); font-weight: 700; text-decoration: none; display: inline-block; padding-block: 4px; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs .sep { color: #b9c6da; }
.art-card {
  background: linear-gradient(180deg, #f7fbff 0%, #eaf3ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(14px, 2.2vw, 26px);
  box-shadow: var(--shadow-m);
}
.art-card img { width: 100%; border-radius: calc(var(--radius-l) - 10px); }
.quick-points { display: grid; gap: 11px; margin-top: 26px; list-style: none; padding: 0; }
.quick-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.quick-points svg { width: 20px; height: 20px; color: var(--blue); flex: 0 0 auto; margin-top: 3px; }

/* ---------- Benefits grid (service pages) ---------- */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit { padding: clamp(22px, 3vw, 30px); display: grid; gap: 12px; align-content: start; }
.benefit .icon-chip { width: 48px; height: 48px; border-radius: 14px; }
.benefit .icon-chip svg { width: 23px; height: 23px; }
.benefit h3 { font-size: 1.18rem; }
.benefit p { color: var(--muted); font-size: .96rem; }

/* ---------- Ideas section ---------- */
.ideas { display: flex; flex-wrap: wrap; gap: 12px; }
.idea-chip {
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .94rem;
}
.ideas-note { margin-top: 20px; color: var(--muted); font-size: .93rem; }

/* ---------- Approach page ---------- */
.approach-steps { display: grid; gap: clamp(26px, 4vw, 44px); position: relative; }
.approach-step { display: grid; grid-template-columns: 74px 1fr; gap: clamp(16px, 3vw, 30px); align-items: start; }
.approach-step .step-num { width: 64px; height: 64px; font-size: 1.15rem; }
.approach-step h3 { margin: 4px 0 10px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.approach-step p { color: var(--muted); max-width: 66ch; }
.approach-step .step-list { margin-top: 14px; display: grid; gap: 8px; list-style: none; padding: 0; }
.approach-step .step-list li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; font-size: .97rem; }
.approach-step .step-list svg { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; margin-top: 4px; }
.phases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .phases-grid { grid-template-columns: 1fr; } }
.phase-card { padding: 26px 24px; display: grid; gap: 12px; align-content: start; }
.phase-card .phase-tag { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-text); }

/* ---------- About page ---------- */
.about-lockup { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-m); padding: clamp(18px, 3vw, 34px); }
.about-lockup img { width: 100%; }
.wordplay-card { position: relative; overflow: clip; border-radius: var(--radius-l); background: var(--mist); border: 1px solid var(--line); padding: clamp(26px, 4vw, 44px); }
.wordplay-card::after { content: "{ }"; position: absolute; right: -16px; bottom: -70px; font-family: var(--font-display); font-weight: 900; font-size: clamp(150px, 20vw, 240px); line-height: 1; color: rgba(4, 117, 254, .07); }
.wordplay-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.wordplay-card p { margin-top: 12px; color: var(--muted); max-width: 54ch; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .about-facts { grid-template-columns: 1fr; } }
.about-fact { padding: 24px; display: grid; gap: 10px; align-content: start; }
.about-fact .af-k { font-family: var(--font-display); font-weight: 900; color: var(--blue-text); font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; }
.about-fact p { font-size: .95rem; color: var(--muted); }

/* ---------- Find your fit (matcher) ---------- */
.fit-card { padding: clamp(24px, 4vw, 40px); display: grid; gap: 26px; }
.fit-q { border: 0; padding: 0; margin: 0; }
.fit-q legend { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.fit-options { display: flex; flex-wrap: wrap; gap: 10px; }
.fit-opt { position: relative; }
.fit-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fit-opt span {
  display: inline-flex; align-items: center;
  padding: 11px 18px; min-height: 44px;
  border-radius: 999px; border: 1.5px solid var(--line-2);
  background: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.fit-opt:hover span { border-color: var(--blue); transform: translateY(-1px); }
.fit-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.fit-opt input:focus-visible + span { outline: 3px solid rgba(4, 117, 254, .55); outline-offset: 2px; }
.fit-result { border-top: 1px dashed var(--line-2); padding-top: 22px; }
.fit-result-card { display: grid; gap: 14px; }
.fit-result-card .fit-tag { font-family: var(--font-display); font-weight: 800; color: var(--blue-text); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.fit-result-card h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.fit-result-card .lead { margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(22px, 3vw, 34px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(22px, 3vw, 36px); }
.brief-meter { margin-top: 18px; display: grid; gap: 8px; }
.brief-meter-bar { height: 8px; border-radius: 999px; background: var(--mist-2); overflow: hidden; }
.brief-meter-bar i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--blue-cta), #74b3ff); transition: width .35s var(--ease); }
.brief-live { display: grid; gap: 10px; font-size: .92rem; }
.brief-live .bl-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.brief-live .bl-row:last-child { border-bottom: 0; padding-bottom: 0; }
.brief-live .bl-k { color: var(--muted); font-weight: 600; }
.brief-live .bl-v { font-weight: 700; text-align: right; }
.brief-live .bl-desc { color: var(--muted); }
.contact-side { display: grid; gap: 18px; }
.side-card { padding: 24px; display: grid; gap: 12px; align-content: start; }
.side-card h2, .side-card h3 { font-size: 1.08rem; }
.side-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.side-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: .95rem; }
.side-steps .ss-num { width: 30px; height: 30px; border-radius: 50%; background: var(--mist-2); color: var(--blue-dark); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: .85rem; }
.side-steps strong { display: block; font-family: var(--font-display); }
.placeholder-box { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 20px; background: #fff; display: grid; gap: 8px; }
.placeholder-box .ph-tag { font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: #b0402f; }
.placeholder-box p { font-size: .93rem; color: var(--muted); }
.placeholder-box .ph-line { font-weight: 700; color: var(--ink); }
.no-send-note { display: flex; gap: 12px; align-items: flex-start; background: var(--mist); border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; color: #2c3850; }
.no-send-note svg { width: 19px; height: 19px; color: var(--blue); flex: 0 0 auto; margin-top: 2px; }
.char-count { font-size: .84rem; color: var(--muted); text-align: right; margin-top: 6px; }
.char-count.is-over { color: #a5271c; font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-status { margin-top: 16px; font-weight: 700; color: var(--blue-dark); min-height: 1.5em; }
.form-status.is-error { color: #a5271c; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; }
.prose .updated { color: var(--muted); font-size: .93rem; margin-bottom: 26px; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 2.1em 0 .55em; }
.prose h2:first-of-type { margin-top: .4em; }
.prose p { color: #2a3140; }
.prose p + p { margin-top: .9em; }
.prose ul, .prose ol { padding-left: 1.35em; display: grid; gap: 8px; margin-block: .9em; color: #2a3140; }
.prose .callout { background: var(--mist); border-radius: var(--radius-s); padding: 18px 22px; margin-block: 1.4em; }
.prose .callout p { margin: 0; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-nav { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 4px; }
@media (max-width: 860px) { .legal-nav { position: static; display: flex; flex-wrap: wrap; } }
.legal-nav a { padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: .94rem; color: var(--muted); text-decoration: none; }
.legal-nav a:hover { background: var(--mist); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--mist-2); color: var(--blue-dark); }

/* ---------- 404 ---------- */
.err-hero { position: relative; text-align: center; padding-block: clamp(60px, 9vw, 110px); overflow: clip; }
.err-code {
  position: absolute; left: 50%; top: 40px;
  translate: -50% 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(150px, 30vw, 300px);
  line-height: 1;
  color: var(--mist);
  z-index: 0;
  pointer-events: none; user-select: none;
}
.err-art { position: relative; z-index: 1; width: min(400px, 78%); margin: 0 auto 8px; }
.err-art img { width: 100%; }
.err-hero .lead { margin: 18px auto 0; }
.err-hero .btn-row { justify-content: center; margin-top: 30px; }
