/* ============================================================
   phenotypecosmetic.com — Systems Engineering & Complex
   Infrastructure Design. Magazine-style, blue palette,
   Playfair Display + Lato. Robust components (self-sufficient).
   ============================================================ */

:root {
  --primary-dark: #0D47A1;
  --primary: #1565C0;
  --blue: #42A5F5;
  --blue-200: #90CAF9;
  --tint: #E3F2FD;

  --ink: #16263d;
  --body: #3c4a5e;
  --muted: #69768a;
  --line: #dce7f3;
  --bg: #ffffff;
  --bg-alt: #f5f9fe;
  --dark: #0c1a2e;

  --radius: 8px;
  --maxw: 1180px;
  --shadow-sm: 0 2px 14px rgba(13,71,161,.07);
  --shadow-md: 0 14px 40px rgba(13,71,161,.13);
  --head: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-weight: 400; color: var(--body); background: var(--bg); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--head); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; }
p { margin-bottom: 1rem; }
section { position: relative; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #cdd9ea; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.eyebrow { display: inline-block; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; font-size: .76rem; color: var(--primary); margin-bottom: .8rem; }
.section--dark .eyebrow { color: var(--blue); }
.section-head { max-width: 760px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); font-weight: 300; }
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }

/* ---------- Buttons (ghost, fill on hover) ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .3px; padding: .8rem 1.7rem; border-radius: var(--radius); border: 2px solid var(--primary); background: transparent; color: var(--primary); cursor: pointer; transition: all .3s ease; white-space: nowrap; }
.btn:hover { background: var(--primary); color: #fff; }
.btn--solid { background: var(--primary); color: #fff; }
.btn--solid:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--primary-dark); }
.btn--lg { padding: 1rem 2.1rem; font-size: 1.02rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 40px; height: 40px; border-radius: 9px; flex: none; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--head); }
.brand small { display: block; font-family: var(--sans); font-weight: 400; font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.5rem); }
.nav-links a { font-family: var(--sans); font-weight: 700; font-size: .9rem; color: var(--ink); padding: .4rem 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--primary); transition: width .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1000px){
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; padding: 1rem clamp(1rem,4vw,2rem) 1.4rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .32s ease; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-actions .btn { display: none; }
}

/* ---------- Hero (angled bottom edge via clip-path) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--dark); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.55); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.9); font-weight: 300; font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero--angled { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 55px), 0 100%); padding-bottom: 55px; }
.hero--full { min-height: 88vh; display: flex; align-items: center; text-align: center; }
.hero--full .hero__inner { width: 100%; }
.hero--full .hero__cta { justify-content: center; }
.hero--full p { margin-inline: auto; }
.hero--center { text-align: center; }
.hero--center .hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero--article { min-height: 56vh; display: flex; align-items: flex-end; }
.hero--article .hero__overlay { background: linear-gradient(0deg, rgba(7,16,28,.9) 0%, rgba(7,16,28,.25) 100%); }
.hero--compact .hero__inner { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.hero--banner .hero__inner { padding-block: clamp(2.6rem, 6vw, 4.4rem); }
.hero__deco { position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; z-index: 1; }
.hero__deco::after { content: ""; position: absolute; inset: 40px; border: 2px solid rgba(66,165,245,.3); border-radius: 50%; }
.article-meta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; color: rgba(255,255,255,.85); font-size: .9rem; margin-top: 1rem; }
.article-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: .8rem; }
.breadcrumb a { color: rgba(255,255,255,.95); }
.breadcrumb .sep { opacity: .6; }
.breadcrumb--dark { color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb--dark a { color: var(--primary); }

/* ---------- Stats counter row (below hero) ---------- */
.stats-row { background: var(--primary-dark); }
.stats-row .inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.14); }
@media (max-width: 720px){ .stats-row .inner { grid-template-columns: repeat(2,1fr); } }
.stats-row .stat { background: var(--primary-dark); padding: 1.6rem 1rem; text-align: center; color: #fff; }
.stats-row .num { font-family: var(--head); font-weight: 700; font-size: clamp(1.8rem,4vw,2.6rem); color: #fff; line-height: 1; }
.stats-row .label { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .4rem; }

/* standalone stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,3vw,2rem); }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.8rem 1.3rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card .num { font-family: var(--head); font-weight: 700; font-size: clamp(2rem,5vw,3rem); color: var(--primary); line-height: 1; }
.stat-card .label { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Cards (flat, left accent border) ---------- */
.cards { display: grid; gap: clamp(1rem, 3vw, 1.8rem); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){ .cols-3, .cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card { background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.8rem 1.6rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-left-color: var(--blue); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--body); font-size: .96rem; margin-bottom: 0; }
.card .card-ico { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--primary); font-size: 1.4rem; margin-bottom: 1rem; }
.card-tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: .5rem; }
/* card that leads with an image (blog preview) */
.card--media { padding: 0; overflow: hidden; background: #fff; border-left-width: 1px; }
.card--media:hover { border-left-color: var(--line); }
.card--media > a:first-child, .card--media > img:first-child { display: block; }
.card--media img.thumb { width: 100%; height: 200px; object-fit: cover; }
.card--media .card-body { padding: 1.5rem 1.5rem 1.6rem; border-left: 4px solid var(--primary); }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 1.4rem 2.8rem; align-items: center; justify-content: center; }
.logo-strip .lp { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--muted); opacity: .7; display: flex; align-items: center; gap: .45rem; transition: all .25s ease; }
.logo-strip .lp:hover { opacity: 1; color: var(--primary); }
.logo-strip .lp::before { content: "◈"; color: var(--blue); }

/* ---------- Live chat widget ---------- */
.chat-widget { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 420px; box-shadow: var(--shadow-md); margin-inline: auto; }
.chat-top { background: var(--primary-dark); padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: .8rem; }
.chat-top .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.chat-top strong { color: #fff; display: block; font-family: var(--head); }
.chat-top span { font-size: .8rem; color: rgba(255,255,255,.8); }
.chat-body { padding: 1.3rem; display: grid; gap: .7rem; background: var(--bg-alt); }
.bubble { padding: .75rem 1rem; border-radius: 12px; max-width: 85%; font-size: .92rem; }
.bubble.in { background: #fff; border: 1px solid var(--line); color: var(--body); border-bottom-left-radius: 3px; }
.bubble.out { background: var(--primary); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.chat-input { display: flex; gap: .5rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: .65rem .9rem; border-radius: 30px; border: 1px solid var(--line); font-family: var(--sans); }
.chat-input button { border: 0; background: var(--primary); color: #fff; width: 42px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; border: 0; cursor: pointer; font-size: 1.4rem; box-shadow: var(--shadow-md); display: grid; place-items: center; transition: transform .25s ease; }
.chat-fab:hover { transform: scale(1.08); background: var(--primary-dark); }

/* ---------- Video poster (no iframe) ---------- */
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/9; }
.video-frame .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-frame .video-badge { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(7,16,28,.6), rgba(7,16,28,.15)); }
.video-frame .video-badge .pbtn { width: 76px; height: 76px; border-radius: 50%; background: rgba(21,101,192,.95); color: #fff; display: grid; place-items: center; font-size: 1.4rem; padding-left: 4px; box-shadow: 0 12px 32px rgba(13,71,161,.45); }
.video-frame .video-badge .plabel { position: absolute; left: 1.4rem; bottom: 1.2rem; color: #fff; font-family: var(--head); font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* ---------- Media split (about + image) ---------- */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
@media (max-width: 820px){ .media-split { grid-template-columns: 1fr; } }
.media-split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }

/* ---------- Process / Timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: 58px 1fr; gap: 1.2rem; padding-bottom: 2rem; position: relative; }
.tl-step:not(:last-child)::before { content: ""; position: absolute; left: 28px; top: 56px; bottom: 0; width: 2px; background: var(--line); }
.tl-num { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary); color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.tl-body h3 { margin-bottom: .35rem; }
.tl-body p { color: var(--muted); margin: 0; }

/* ---------- FAQ accordion (.acc-head IS the button) ---------- */
.accordion { display: grid; gap: .8rem; max-width: 840px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); overflow: hidden; }
.acc-head { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--head); font-weight: 600; font-size: 1.04rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc-head .chev { transition: transform .3s ease; color: var(--primary); font-size: 1.4rem; flex: none; line-height: 1; }
.acc-item.open .acc-head .chev { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel-inner { padding: 0 1.3rem 1.2rem; color: var(--body); }
/* defensive: if a button is nested inside .acc-head, neutralize it */
.acc-head > button { all: unset; cursor: pointer; display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 1rem; }

/* ---------- Tabs ---------- */
.tabs-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; border-bottom: 2px solid var(--line); }
.tab-btn { font-family: var(--sans); font-weight: 700; font-size: .92rem; cursor: pointer; padding: .75rem 1.2rem; border: 0; background: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s ease; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; animation: fade .4s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }

/* ---------- Pull quote / article ---------- */
.article-body { max-width: 760px; margin-inline: auto; font-size: 1.08rem; color: var(--body); }
.article-body h2 { margin: 2.2rem 0 1rem; }
.article-body h3 { margin: 1.6rem 0 .7rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.4rem; }
.article-body ul li { list-style: disc; margin-bottom: .5rem; }
.article-body ol li { list-style: decimal; margin-bottom: .5rem; }
.article-body img { border-radius: var(--radius); margin: 1.6rem 0; box-shadow: var(--shadow-sm); }
.article-body figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin: -1rem 0 1.6rem; }
.pull-quote { border-left: 4px solid var(--primary); background: var(--tint); padding: 1.3rem 1.6rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.8rem 0; font-family: var(--head); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.tag-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag { background: var(--tint); color: var(--primary-dark); padding: .4rem .9rem; border-radius: 30px; font-size: .85rem; font-weight: 700; }
.share-row { display: flex; gap: .6rem; align-items: center; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-dark); color: #fff; display: grid; place-items: center; font-weight: 700; transition: background .2s ease; }
.share-btn:hover { background: var(--primary); color: #fff; }

/* ---------- Split (sidebar + main) ---------- */
.split { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.split.left-aside { grid-template-columns: 1fr 2fr; }
@media (max-width: 900px){ .split, .split.left-aside { grid-template-columns: 1fr; } }
.sidebar-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); margin-bottom: 1.3rem; }
.sidebar-box h4 { margin-bottom: .9rem; }
.sidebar-box ul li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sidebar-box ul li:last-child { border-bottom: 0; }
.post-mini { display: grid; grid-template-columns: 64px 1fr; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.post-mini:last-child { border-bottom: 0; }
.post-mini img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.post-mini a { font-family: var(--head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.post-mini a:hover { color: var(--primary); }
.post-mini span { font-size: .78rem; color: var(--muted); }

/* ---------- Author bio ---------- */
.author-card { display: grid; grid-template-columns: 90px 1fr; gap: 1.2rem; align-items: center; background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.6rem; }
@media (max-width: 520px){ .author-card { grid-template-columns: 1fr; text-align: center; } }
.author-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.author-card h4 { margin-bottom: .3rem; }
.author-card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius); padding: clamp(2rem,5vw,3.4rem); text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.88); max-width: 540px; margin-inline: auto; }
.newsletter form { display: flex; gap: .6rem; max-width: 480px; margin: 1.4rem auto 0; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: .9rem 1.1rem; border-radius: var(--radius); border: 0; font-family: var(--sans); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px){ .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--sans); font-weight: 700; font-size: .88rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; font-family: var(--sans); font-size: 1rem; padding: .82rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #c0392b; font-size: .82rem; margin-top: .3rem; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; background: #e7f6ec; border: 1px solid #b7e3c5; color: #1d6b3a; padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 700; }
.form-success.show { display: block; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,3vw,2.2rem); box-shadow: var(--shadow-sm); }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Contact details / icon feature ---------- */
.feat-list { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1rem,3vw,1.8rem); }
@media (max-width: 760px){ .feat-list { grid-template-columns: 1fr; } }
.feat { display: flex; gap: 1rem; }
.feat .feat-ico { width: 50px; height: 50px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--primary); font-size: 1.3rem; }
.feat h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.feat p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Achievement / social proof badges ---------- */
.badges { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,3vw,1.8rem); }
@media (max-width: 820px){ .badges { grid-template-columns: repeat(2,1fr); } }
.badge-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; padding: 1.8rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s ease; }
.badge-item:hover { transform: translateY(-5px); }
.badge-medal { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--tint); color: var(--primary-dark); border: 2px solid var(--blue-200); }
.badge-item h4 { font-family: var(--head); }
.badge-item p { font-size: .86rem; color: var(--muted); margin: 0; }

/* ---------- Pricing / Plans (no prices) ---------- */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,3vw,1.8rem); align-items: stretch; }
@media (max-width: 900px){ .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.plan { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 2rem 1.7rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .3s ease; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan--featured { background: var(--primary-dark); color: #fff; border-top-color: var(--blue); position: relative; }
.plan--featured h3, .plan--featured .plan-name { color: #fff; }
.plan--featured .plan-tagline { color: rgba(255,255,255,.82); }
.plan--featured .plan-feat li { color: #dbe8fa; }
.plan-flag { position: absolute; top: 1.1rem; right: 1.1rem; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; padding: .3rem .7rem; border-radius: 30px; text-transform: uppercase; letter-spacing: .5px; }
.plan-name { font-family: var(--head); font-weight: 700; font-size: 1.4rem; margin-bottom: .4rem; }
.plan-tagline { color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; }
.plan-feat { display: grid; gap: .65rem; margin: 0 0 1.5rem; flex: 1; }
.plan-feat li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.plan-feat li::before { content: "✓"; color: var(--primary); font-weight: 800; flex: none; }
.plan--featured .plan-feat li::before { color: var(--blue); }

/* ---------- Comparison table ---------- */
.cmp-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-width: 540px; }
.cmp-table th, .cmp-table td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.cmp-table thead th { background: var(--primary-dark); color: #fff; font-family: var(--head); font-weight: 600; }
.cmp-table tbody tr:nth-child(even) td { background: var(--bg-alt); }
.cmp-table td.yes { color: #1d8a4e; font-weight: 700; }
.cmp-table td.no { color: #b9c2cf; }

/* ---------- Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,3vw,1.8rem); }
@media (max-width: 900px){ .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .team-grid { grid-template-columns: 1fr; } }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; transition: transform .3s ease; }
.team-card:hover { transform: translateY(-5px); }
.team-card img { width: 100%; height: 240px; object-fit: cover; }
.team-card .team-body { padding: 1.2rem; }
.team-card h4 { margin-bottom: .2rem; }
.team-card .role { color: var(--primary); font-weight: 700; font-size: .88rem; }
.team-card p { font-size: .88rem; color: var(--muted); margin: .5rem 0 0; }

/* ---------- Download resources ---------- */
.dl-list { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,3vw,1.6rem); }
@media (max-width: 900px){ .dl-list { grid-template-columns: 1fr; } }
.dl-item { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.dl-item:hover { transform: translateY(-4px); }
.dl-ico { width: 48px; height: 48px; border-radius: 8px; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.dl-item h4 { font-size: 1rem; margin-bottom: .15rem; }
.dl-item span { font-size: .82rem; color: var(--muted); }

/* ---------- Masonry gallery ---------- */
.masonry { columns: 3 240px; column-gap: 1rem; }
.masonry img { width: 100%; border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow-sm); transition: transform .3s ease; }
.masonry img:hover { transform: scale(1.02); }

/* ---------- Customer journey map ---------- */
.journey { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,3vw,1.6rem); counter-reset: jstep; }
@media (max-width: 900px){ .journey { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .journey { grid-template-columns: 1fr; } }
.journey-step { position: relative; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.3rem 1.4rem; }
.journey-step::before { counter-increment: jstep; content: counter(jstep); position: absolute; top: -18px; left: 1.3rem; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; }
.journey-step h4 { margin-bottom: .4rem; }
.journey-step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Data visualization / charts ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.bar-chart { display: grid; gap: 1rem; margin-top: 1rem; }
.bar-row { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; }
@media (max-width: 560px){ .bar-row { grid-template-columns: 1fr; gap: .3rem; } }
.bar-row .bar-label { font-size: .9rem; font-weight: 700; color: var(--ink); }
.bar-track { background: var(--tint); border-radius: 30px; height: 26px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--blue)); border-radius: 30px; display: flex; align-items: center; justify-content: flex-end; padding-right: .7rem; color: #fff; font-size: .8rem; font-weight: 700; width: 0; transition: width 1.2s ease; }
.donut-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.donut { --val: 75; width: 130px; height: 130px; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--val)*1%), var(--tint) 0); display: grid; place-items: center; position: relative; }
.donut::before { content: ""; position: absolute; inset: 16px; background: #fff; border-radius: 50%; }
.donut span { position: relative; font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--primary-dark); }
.donut-cap { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 600px; margin: 1rem auto 1.6rem; }

/* ---------- Legal docs ---------- */
.doc { max-width: 860px; margin-inline: auto; }
.doc h2 { margin: 2rem 0 .8rem; font-size: 1.45rem; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--body); }
.doc ul, .doc ol { margin: 0 0 1.2rem 1.4rem; }
.doc ul li { list-style: disc; margin-bottom: .5rem; }
.doc ol li { list-style: decimal; margin-bottom: .5rem; }
.doc-toc { background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 2.5rem; }
.doc-toc h4 { margin-bottom: .8rem; }
.doc-toc ol { margin-left: 1.2rem; }
.doc-toc ol li { list-style: decimal; margin-bottom: .35rem; }
.doc-table-wrap { overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .92rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-width: 640px; }
.doc-table th, .doc-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.doc-table th { background: var(--primary-dark); color: #fff; font-family: var(--head); font-weight: 600; font-size: .85rem; }
.doc-table tr:nth-child(even) td { background: var(--bg-alt); }

/* ---------- Footer / mega footer ---------- */
.site-footer { background: var(--dark); color: #aab8cc; padding-top: clamp(3rem,6vw,4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.4rem,3vw,2rem); padding-bottom: 2.4rem; }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: #fff; font-family: var(--head); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-grid a { color: #aab8cc; display: block; padding: .3rem 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--blue); }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand small { color: #7e8da3; }
.footer-brand p { font-size: .92rem; color: #8290a6; max-width: 290px; }
.footer-contact li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .92rem; align-items: flex-start; }
.footer-contact .ic { color: var(--blue); flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #7e8da3; }
.footer-bottom a { color: #7e8da3; }
.footer-bottom a:hover { color: var(--blue); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 1100; width: min(960px, calc(100% - 32px)); background: var(--dark); color: #d3deec; border-radius: 12px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow-md); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner.hide { display: none; }
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--blue); }
.cookie-actions { display: flex; gap: .6rem; }

/* ---------- Reveal (fail-safe: hidden only when JS active) ---------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1 !important; transform: none !important; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ---------- Misc ---------- */
.pill { display: inline-block; background: var(--tint); color: var(--primary-dark); padding: .3rem .8rem; border-radius: 30px; font-size: .8rem; font-weight: 700; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .6rem 1rem; z-index: 2000; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }
@media (prefers-reduced-motion: reduce){ *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
