/* ABCERTA — website prototype stylesheet
   Brand tokens per Abcerta_Brand_and_Visual_Identity_v1 */

:root{
  --aubergine: #472C4C;
  --aubergine-2: #614051;
  --orange: #D85F2A;
  --cream: #F7F4EE;
  --cream-deep: #EFE9DD;
  --charcoal: #1F1A24;
  --muted: #5C5560;
  --border: #E2DACD;
  --serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --maxw: 1140px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }

h1,h2,h3,h4{
  font-family: var(--serif);
  color: var(--aubergine);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1{ font-size: 3.4rem; letter-spacing: -0.01em; }
h2{ font-size: 2.1rem; }
h3{ font-size: 1.35rem; }
p{ margin: 0 0 1em; }
.lede{ font-size: 1.25rem; color: var(--charcoal); }
.eyebrow{
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: .9em;
  display:block;
}
.muted{ color: var(--muted); }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section{ padding: 84px 0; }
section.tight{ padding: 56px 0; }
.section-head{ max-width: 680px; margin-bottom: 48px; }

/* header */
header.site{
  position: sticky; top:0; z-index: 50;
  background: rgba(247,244,238,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding: 18px 28px; max-width: var(--maxw); margin:0 auto; }
.logo{ font-family: var(--serif); font-size: 1.5rem; font-weight:700; color: var(--aubergine); letter-spacing: .01em; }
.logo span{ color: var(--orange); }
.navlinks{ display:flex; gap: 30px; list-style:none; margin:0; padding:0; align-items:center; }
.navlinks a{ font-size:.93rem; font-weight:500; color: var(--charcoal); }
.navlinks a:hover{ color: var(--aubergine); }
.navlinks a.active{ color: var(--aubergine); font-weight:700; }
.navcta{ margin-left: 8px; }

/* buttons */
.btn{
  display:inline-block;
  font-family: var(--sans);
  font-weight:600;
  font-size: .93rem;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor:pointer;
}
.btn-primary{ background: var(--orange); color:#fff; }
.btn-primary:hover{ background:#c05426; }
.btn-secondary{ background:transparent; color: var(--aubergine); border-color: var(--aubergine); }
.btn-secondary:hover{ background: var(--aubergine); color:#fff; }
.btn-ghost{ color: var(--aubergine); font-weight:600; font-size:.93rem; }
.btn-ghost:after{ content: " →"; }

/* hero */
.hero{ padding: 96px 0 70px; }
.hero h1{ max-width: 780px; }
.hero .lede{ max-width: 620px; margin: 22px 0 34px; }
.hero-ctas{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; }

/* callout / manifesto */
.callout{
  background: var(--aubergine);
  color: var(--cream);
  border-radius: 6px;
  padding: 56px;
}
.callout h2, .callout h3{ color:#fff; }
.callout .muted{ color: #cbb9cf; }

/* proof strip */
.stats{ display:grid; grid-template-columns: repeat(4,1fr); gap: 28px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding: 40px 0; }
.stat b{ display:block; font-family: var(--serif); font-size:2rem; color: var(--aubergine); }
.stat span{ font-size:.85rem; color: var(--muted); }

/* cards */
.grid{ display:grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
.card{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px;
}
.card.featured{ background: var(--cream-deep); border-color: var(--aubergine-2); }
.card h3{ margin-bottom:.4em; }
.card .tag{
  display:inline-block; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
  padding: 3px 9px; border-radius:3px; margin-bottom: 12px;
}
.tag-live{ background:#e4efe6; color:#2D5F3F; }
.tag-build{ background:#fbeecf; color:#8a6400; }
.tag-roadmap{ background:#eee; color:#5C5560; }

/* icon bits (no stock imagery — geometric only) */
.mark{ width:34px; height:34px; border-radius:3px; background: var(--aubergine); margin-bottom:16px; position:relative; }
.mark:after{ content:""; position:absolute; inset:8px; background: var(--orange); border-radius:2px; }

/* nova model diagram (geometric, brand-safe) */
.nova{ border:1px solid var(--border); border-radius:8px; overflow:hidden; background:#fff; }
.nova-row{ display:flex; }
.nova-band{ padding: 22px; text-align:center; color:#fff; font-family: var(--serif); font-weight:700; }
.nova-umbrella{ background: var(--aubergine); }
.nova-pillars{ background: var(--cream-deep); }
.nova-pillar{ flex:1; padding:26px 14px; text-align:center; border-right:1px solid var(--border); color: var(--aubergine); font-weight:700; font-family: var(--serif); font-size:.95rem; }
.nova-pillar:last-child{ border-right:none; }
.nova-foundation{ background: var(--aubergine-2); }
.nova-threads{ display:flex; justify-content:space-between; padding: 12px 22px; background: var(--cream); font-size:.78rem; color: var(--muted); font-weight:600; }

/* sector / who-we-help */
.sector-card{ position:relative; }
.sector-card.lead{ grid-column: span 2; }
.sector-card .eyebrow{ margin-bottom:.4em; }

/* footer */
footer.site{ background: var(--aubergine); color: var(--cream-deep); padding: 60px 0 34px; margin-top: 40px; }
footer.site a{ color: var(--cream-deep); }
footer.site .logo{ color:#fff; }
footer.site .logo span{ color: var(--orange); }
.foot-grid{ display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.foot-grid h4{ color:#fff; font-family: var(--sans); font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom: 14px; }
.foot-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; font-size:.9rem; }
.foot-bottom{ border-top:1px solid rgba(255,255,255,.15); padding-top: 22px; font-size:.82rem; color:#cbb9cf; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

/* misc page bits */
.pagehead{ background: var(--cream-deep); padding: 64px 0 48px; border-bottom:1px solid var(--border); }
.breadcrumb{ font-size:.82rem; color: var(--muted); margin-bottom: 16px; }
.two-col{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items:start; }
table.pricing{ width:100%; border-collapse:collapse; margin: 18px 0 30px; }
table.pricing th, table.pricing td{ text-align:left; padding: 12px 14px; border-bottom:1px solid var(--border); font-size:.92rem; }
table.pricing th{ font-family:var(--sans); text-transform:uppercase; letter-spacing:.06em; font-size:.72rem; color:var(--muted); }
.persona{ display:flex; gap:16px; align-items:flex-start; padding: 18px 0; border-bottom:1px solid var(--border); }
.persona:last-child{ border-bottom:none; }
.persona .mark{ flex-shrink:0; }
.pill{ display:inline-block; padding:4px 12px; border-radius:20px; background:var(--cream-deep); color:var(--aubergine-2); font-size:.78rem; font-weight:600; margin:0 6px 6px 0;}

form.enquiry{ display:flex; flex-direction:column; gap:16px; max-width:520px; }
form.enquiry label{ font-size:.85rem; font-weight:600; color:var(--aubergine); display:block; margin-bottom:6px; }
form.enquiry input, form.enquiry select, form.enquiry textarea{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:4px; font-family:var(--sans); font-size:.95rem; background:#fff;
}
form.enquiry textarea{ min-height:110px; resize:vertical; }

.article-card{ display:flex; flex-direction:column; gap:8px; }
.article-card .eyebrow{ margin-bottom:0; }
.article-date{ font-size:.78rem; color:var(--muted); }

@media (max-width: 860px){
  .navlinks{ display:none; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .grid-2, .two-col{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2,1fr); }
  h1{ font-size: 2.3rem; }
  .callout{ padding: 32px; }
  .foot-grid{ grid-template-columns: 1fr 1fr; }
  .nova-row{ flex-direction:column; }
  .nova-pillar{ border-right:none; border-bottom:1px solid var(--border); }
  .sector-card.lead{ grid-column: span 1; }
}

/* ===== v2 additions: icon system, hero graphic, gradients, texture, quiz ===== */

.icon-badge{
  width:52px; height:52px; border-radius:50%;
  background: var(--cream-deep);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.card.featured .icon-badge{ background:#fff; }
.icon-badge svg{ width:26px; height:26px; stroke: var(--aubergine); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.icon-badge.on-dark{ background: rgba(255,255,255,.14); }
.icon-badge.on-dark svg{ stroke:#fff; }

.card{ transition: transform .18s ease, box-shadow .18s ease; }
.card:hover{ transform: translateY(-4px); box-shadow: 0 14px 30px rgba(71,44,76,.10); }

.callout{ background: linear-gradient(135deg, var(--aubergine) 0%, var(--aubergine-2) 100%); }
footer.site{ background: linear-gradient(135deg, var(--aubergine) 0%, #3a2440 100%); }

.hero-grid{ display:grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items:center; }
.hero-graphic{ width:100%; max-width:420px; margin-left:auto; }

.dotbg{
  background-image: radial-gradient(circle, rgba(71,44,76,0.14) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}
.band-texture{
  background: repeating-linear-gradient(135deg, rgba(71,44,76,0.05) 0 2px, transparent 2px 26px);
}

.pillar-icon{ width:28px; height:28px; margin: 0 auto 10px; stroke: var(--aubergine); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

/* quiz / maturity tool */
.quiz-wrap{ max-width: 640px; margin: 0 auto; }
.progress-track{ height:6px; background: var(--border); border-radius:3px; overflow:hidden; margin-bottom: 34px; }
.progress-fill{ height:100%; background: var(--orange); transition: width .3s ease; }
.q-step{ display:none; }
.q-step.active{ display:block; }
.q-num{ font-size:.78rem; color:var(--muted); font-weight:600; letter-spacing:.06em; text-transform:uppercase; margin-bottom:10px; }
.option{
  display:flex; align-items:flex-start; gap:12px;
  border:1px solid var(--border); border-radius:8px;
  padding:16px 18px; margin-bottom:12px; cursor:pointer; background:#fff;
  transition: border-color .15s, background .15s;
}
.option:hover{ border-color: var(--aubergine-2); }
.option.selected{ border-color: var(--orange); background: var(--cream-deep); }
.option input{ margin-top:3px; }
.q-nav{ display:flex; justify-content:space-between; margin-top: 22px; }
.dim-row{ margin-bottom:18px; }
.dim-label{ display:flex; justify-content:space-between; font-size:.85rem; font-weight:600; color:var(--aubergine); margin-bottom:6px; }
.dim-bar{ height:10px; background: var(--border); border-radius:5px; overflow:hidden; }
.dim-fill{ height:100%; background: linear-gradient(90deg, var(--aubergine), var(--orange)); border-radius:5px; }
.score-hero{ text-align:center; padding: 30px 0; }
.score-hero b{ font-family: var(--serif); font-size:3.2rem; color: var(--aubergine); display:block; }
.gate-note{ font-size:.82rem; color:var(--muted); margin-top:10px; }

/* access-type labels (tools page) */
.pill-purchase{ background:#EAF1FB; color:#1F4E79; }
.pill-licenced{ background:var(--cream-deep); color:var(--aubergine-2); }
.pill-subscription{ background:#FBEECF; color:#8a6400; }
