/* entriko website. One typeface (Manrope), one accent, soft rounded panels on a tinted page.
   Tokens are defined once here; see ../../DESIGN.md. */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0e1626;
  --muted: #566070;
  --muted-on-dark: #aab4c8;
  --line: #d9dde4;
  --line-dark: #2c3a58;
  --page: #f3f4fb;
  --paper: #ffffff;
  --chalk: #f3f4fb;
  --card-line: #e4e7f2;
  --brand: #1d3fbb;
  --brand-dark: #16318f;
  --mark: #f3e38a;
  --t-blue: #e8edff; --t-yellow: #fbf3c4; --t-pink: #ffe3ec; --t-mint: #dff5ea; --t-lilac: #ece6ff; --t-peach: #ffe9d9;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(1.5rem, 4vw, 3.5rem);
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4.5rem;
  --soft: 0 30px 60px -30px rgb(29 63 187 / 0.35), 0 8px 20px -12px rgb(14 22 38 / 0.15);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: var(--s1) var(--s2); z-index: 10; }
.skip:focus { left: var(--s2); top: var(--s2); }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.narrow { max-width: 42rem; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 450; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 480; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0 0 var(--s2); padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
code { font-size: 0.92em; background: var(--page); padding: 0.05em 0.35em; border-radius: 4px; }
.lead { font-size: 1.25rem; line-height: 1.55; max-width: 36rem; }
section h2 + p { margin-top: var(--s2); }

/* header: a floating pill */
.top { padding-top: 1rem; position: relative; z-index: 2; }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem var(--s3); background: var(--paper); border: 1px solid var(--card-line); border-radius: 999px; padding: 0.55rem 0.6rem 0.55rem 1.5rem; box-shadow: 0 14px 34px -26px rgb(29 63 187 / 0.5); }
.brand { font-weight: 750; font-size: 1.4rem; letter-spacing: -0.05em; color: var(--ink); text-decoration: none; margin: 0; }
.top-row .brand { margin-right: auto; }
.top nav { display: flex; align-items: center; gap: 0.25rem var(--s3); }
.top nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; font-weight: 500; padding-block: 0.4rem; }
.top nav a:hover { text-decoration: underline; }
.top nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--brand); text-underline-offset: 6px; }
@media (max-width: 47.99rem) {
  .top-row { border-radius: 26px; padding: 0.7rem 0.8rem 0.4rem 1.2rem; row-gap: 0; }
  .top nav { order: 3; flex-basis: 100%; gap: 0; justify-content: space-between; margin-inline: -0.3rem; }
  .top nav a { padding: 0.8rem 0.3rem; font-size: 0.92rem; }
}

.button { display: inline-block; background: var(--ink); color: #fff; font-weight: 650; text-decoration: none; padding: 0.9rem 1.7rem; border-radius: 999px; }
.button:hover { background: var(--brand); color: #fff; }
.button.small { padding: 0.55rem 1.15rem; font-size: 0.95rem; }
@media (pointer: coarse) { .button.small { padding-block: 0.7rem; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.note { font-size: 0.95rem; color: var(--muted); margin-top: var(--s2); max-width: 34rem; }
.mark { background: var(--mark); padding: 0 0.35em; border-radius: 4px; font-size: 0.75rem; font-weight: 650; color: var(--ink); }
.callout { background: var(--page); border-left: 4px solid var(--brand); padding: var(--s3); margin-block: var(--s3); border-radius: 0 12px 12px 0; }
.callout p:last-child { margin-bottom: 0; }

/* home */
main.home { position: relative; overflow-x: clip; }
main.home::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 52rem; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38rem 26rem at 80% 12%, rgb(111 140 255 / 0.22), transparent 70%),
    radial-gradient(30rem 22rem at 96% 46%, rgb(243 227 138 / 0.4), transparent 70%),
    radial-gradient(28rem 20rem at 58% 4%, rgb(255 170 200 / 0.22), transparent 70%); }
.hero { padding-block: var(--s5) var(--s4); display: grid; gap: var(--s4); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: var(--s3); }
@media (min-width: 62rem) { .hero { grid-template-columns: 1.05fr 1fr; gap: var(--s5); } }

/* home sections are big rounded panels on the tinted page */
main.home > section.wrap { background: var(--paper); border-radius: 32px; padding: var(--pad); margin-block: 1.25rem; }
main.home > section.wrap > h2:first-child { max-width: 22ch; }

/* hero visual: platforms around one screen */
.hub { position: relative; padding: 1.5rem 0 1rem; }
.hub-card { display: grid; grid-template-columns: 9.5rem 1fr; background: #fff; border: 1px solid var(--card-line); border-radius: 24px; box-shadow: var(--soft); overflow: hidden; }
.hub-side { padding: 1rem 0.7rem; border-right: 1px solid #eef0f6; background: #fafbfe; font-size: 0.85rem; }
.hub-side .b { font-weight: 750; font-size: 1.05rem; letter-spacing: -0.04em; margin: 0 0.5rem 1rem; }
.hub-side ul { list-style: none; padding: 0; margin: 0; }
.hub-side li { margin: 0 0 0.15rem; padding: 0.45rem 0.6rem; border-radius: 9px; color: var(--muted); }
.hub-side li.on { background: var(--t-blue); color: var(--brand); font-weight: 650; }
.hub-main { padding: 1rem 1.1rem 1.2rem; min-width: 0; }
.hub-title { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-weight: 650; font-size: 1.05rem; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0.9rem 0; }
.hub-tile { border: 1px solid #eceef5; border-radius: 14px; padding: 0.7rem 0.75rem; background: #fff; }
.hub-tile b { display: block; font-size: 0.92rem; font-weight: 650; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 2.4rem; margin: 0.55rem 0 0.35rem; }
.spark i { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; opacity: 0.9; }
.spark.y i { background: #e2c335; }
.spark.p i { background: #e46b97; }
.state { font-size: 0.78rem; font-weight: 650; }
.hub-create { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0 0 0.9rem; font-size: 0.85rem; }
.hub-create > span:first-child { color: var(--muted); margin-right: 0.2rem; }
.hub-create .p { border: 1px solid var(--card-line); background: #fff; border-radius: 999px; padding: 0.25rem 0.75rem; font-weight: 600; }
.hub-ask { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.65rem 0.9rem; border-radius: 12px; background: var(--ink); color: #fff; font-size: 0.9rem; }
.hub-ask span:first-child { color: var(--muted-on-dark); }
.chip-f { display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; border: 1px solid var(--card-line); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.85rem; font-weight: 600; box-shadow: 0 10px 24px -14px rgb(14 22 38 / 0.35); white-space: nowrap; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
@media (min-width: 62rem) {
  .hub { padding: 2.5rem 0 2rem; }
  .hub-chips { display: block; margin: 0; }
  .hub-chips .chip-f { position: absolute; }
  .c-site { top: -2%; left: 4%; --dot: #1d3fbb; }
  .c-tt { top: -2%; left: 36%; --dot: #14b8a6; }
  .c-yt { top: -2%; right: 4%; --dot: #e5483f; }
  .c-fb { bottom: -2%; left: 4%; --dot: #3b82f6; }
  .c-ig { bottom: -2%; left: 34%; --dot: #d946a8; }
  .c-ads { bottom: -2%; right: 4%; --dot: #e2c335; }
}
@media (max-width: 40rem) { .hub-card { grid-template-columns: 1fr; } .hub-side { display: none; } .hub-grid { grid-template-columns: 1fr; } .spark { height: 1.8rem; } }

/* shared bits used inside the scenes */
.badge { display: inline-block; border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.78rem; font-weight: 650; white-space: nowrap; }
.high { background: var(--brand); color: #fff; }
.med { background: var(--mark); color: var(--ink); }
.low { background: var(--line); color: var(--muted); }
.ch { background: #fff; border-radius: 12px; padding: 0.55rem 0.8rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; }
.ch + .ch { margin-top: 0.45rem; }
.ask-q { background: var(--ink); color: #fff; border-radius: 14px 14px 14px 3px; padding: 0.7rem 0.95rem; margin: 0 0 0.6rem; max-width: 85%; font-weight: 550; }
.ask-a { background: #fff; border-radius: 14px 14px 3px 14px; padding: var(--s2); margin-left: auto; max-width: 92%; }
.ask-a p { margin: 0 0 0.4rem; }
.ask-a ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.ask-a li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 0.8rem; padding: 0.45rem 0; border-top: 1px solid var(--line); margin: 0; font-size: 0.93rem; }
.ask-a li span:last-child { color: var(--muted); }

/* ---- the scroll story: What you can do ----
   Without JavaScript, or on a phone, each step is its text followed by its picture.
   On a wide screen the heading and the picture stay in place and the steps change as you scroll. */
.story-pin { display: flex; flex-direction: column; gap: var(--s3); }
.story-head { order: -1; }
.story-left, .story-list, .story-stage { display: contents; }
.story-list { list-style: none; padding: 0; margin: 0; }
.story-list li { order: calc(var(--i) * 2); margin: var(--s3) 0 0; }
.story-list h3 { margin: 0.3rem 0 0.3rem; }
.story-list p { margin: 0; color: var(--muted); max-width: 30rem; }
.tag-g { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--brand); background: var(--t-blue); border-radius: 999px; padding: 0.1rem 0.7rem; }
.tag-g.t-build { color: #8a4b00; background: var(--t-peach); }
.tag-g.t-dist { color: #14633d; background: var(--t-mint); }
.tag-g.t-ai { color: #5b3bb0; background: var(--t-lilac); }
.scene { order: calc(var(--i) * 2 + 1); border-radius: 28px; padding: clamp(1rem, 3vw, 1.75rem); background: linear-gradient(160deg, #eef1ff, #f8f1ff 60%, #fff7d6); min-height: 18rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.mini { font-size: 0.8rem; font-weight: 650; color: var(--muted); margin: 0 0 0.5rem; }
.sk { background: #e3e7f5; border-radius: 8px; height: 0.8rem; margin-bottom: 0.6rem; }
.sk.short { width: 55%; }

@media (min-width: 62rem) and (min-height: 38rem) {
  .story-on .story-track { height: calc(var(--n) * 85vh + 100vh); }
  .story-on .story-pin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s4); align-items: center; }
  .story-on .story-head { order: 0; }
  .story-on .story-left { display: block; }
  .story-on .story-list { display: block; margin-top: var(--s3); }
  .story-on .story-stage { display: block; position: relative; height: min(34rem, 74vh); }
  .story-on .story-list li { margin: 0; padding: 0.7rem 0 0.7rem 1rem; border-left: 3px solid var(--line); opacity: 0.45; transition: opacity 0.3s, border-color 0.3s; cursor: pointer; }
  .story-on .story-list li.on { opacity: 1; border-left-color: var(--brand); }
  .story-on .story-list li h3 { margin-top: 0; }
  .story-on .story-list li p { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
  .story-on .story-list li.on p { max-height: 8rem; margin-top: 0.3rem; }
  .story-on .story-list .tag-g { display: none; }
  .story-on .story-list li.on .tag-g { display: inline-block; }
  .story-on .scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s; }
  .story-on .scene.on { opacity: 1; visibility: visible; }
}

/* things pop up one after another when their scene comes into view */
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.story-on .scene:not(.on) .pop { opacity: 0; }
.story-on .scene.on .pop { animation: pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; animation-delay: calc(var(--d, 0) * 140ms); }
.story-on .scene.on .bar i { animation: grow-x 0.9s ease-out both; animation-delay: 0.35s; transform-origin: left; }
.story-on .scene.on .vs2 i { animation: grow-y 0.8s ease-out both; animation-delay: calc(0.3s + var(--d, 0) * 120ms); transform-origin: bottom; }
.story-on .scene.on .area path.ln { stroke-dasharray: 1; animation: draw 1.2s ease-out both; }
@media (prefers-reduced-motion: reduce) { .story-on .scene .pop, .story-on .scene i, .story-on .scene path { animation: none !important; opacity: 1 !important; } }

/* scene 1: a website with its problems flagged */
.site { position: relative; width: min(100%, 30rem); margin: 0 auto; }
.site-bar { background: #fff; border-radius: 14px 14px 0 0; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--card-line); }
.url { display: inline-block; background: var(--page); border-radius: 999px; padding: 0.15rem 0.8rem; font-size: 0.8rem; color: var(--muted); }
.site-page { background: #fff; border-radius: 0 0 14px 14px; padding: 1rem 1rem 1.2rem; }
.site-page .nav { width: 40%; margin-bottom: 1.1rem; }
.site-page .h1 { height: 1.5rem; width: 78%; }
.site-imgs { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.site-imgs .img { flex: 1; height: 5rem; border-radius: 12px; background: linear-gradient(135deg, #dfe6ff, #fbf3c4); margin: 0; }
.flag { position: absolute; display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; border: 1px solid var(--card-line); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.82rem; font-weight: 650; box-shadow: 0 12px 26px -14px rgb(14 22 38 / 0.45); white-space: nowrap; }
.flag i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #e5483f; }
.flag.f1 { top: 34%; right: -1%; }
.flag.f2 { top: 7%; left: 34%; }
.flag.f3 { bottom: 4%; left: 4%; }
.flag.f2 i { background: #e2a000; }
.flag.f3 i { background: #d946a8; }

/* scene 2: traffic */
.traffic { background: #fff; border-radius: 18px; padding: 1.1rem; }
.area { width: 100%; height: auto; display: block; margin-bottom: 0.8rem; }
.bar { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 0.6rem; font-size: 0.88rem; margin-top: 0.5rem; }
.bar i { display: block; height: 0.7rem; border-radius: 999px; background: var(--brand); width: var(--w); }

/* scene 3: social platforms pop up */
.plats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.plat { background: #fff; border-radius: 16px; padding: 0.8rem 0.9rem; }
.plat b { display: flex; align-items: center; gap: 0.45rem; font-size: 0.95rem; }
.spark.t i { background: #14b8a6; }

/* scene 4: ads, what you spent and what came back */
.ads { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.ad { background: #fff; border-radius: 16px; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ad b { font-size: 0.95rem; }
.vs2 { display: flex; align-items: flex-end; gap: 0.8rem; height: 7rem; }
.vs2 > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; font-size: 0.78rem; color: var(--muted); text-align: center; }
.vs2 i { display: block; height: var(--h); background: var(--brand); border-radius: 8px 8px 0 0; margin-bottom: 0.35rem; }
.vs2 i.g { background: #14b8a6; }
.ad .badge { align-self: flex-start; }

/* scene 5: build */
.build { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0.7rem; align-items: stretch; }
.build .bio { background: #fff; border-radius: 18px; padding: 1rem; text-align: center; width: auto; margin: 0; }
.bio .av { width: 3rem; height: 3rem; border-radius: 50%; margin: 0 auto 0.5rem; background: linear-gradient(135deg, #6f8cff, #f3e38a); }
.bio b { display: block; font-weight: 700; }
.bio small { color: var(--muted); }
.bio .pill { display: block; margin-top: 0.5rem; padding: 0.45rem; border-radius: 999px; border: 1px solid var(--card-line); font-size: 0.85rem; font-weight: 600; }
.bio .pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.build .col { display: grid; gap: 0.7rem; }
.card-s { background: #fff; border-radius: 16px; padding: 0.85rem 0.9rem; }
.card-s .row-s { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; align-items: center; }
.pill-s { font-size: 0.75rem; font-weight: 650; border-radius: 999px; padding: 0.15rem 0.6rem; background: var(--t-blue); color: var(--brand); }
.btn-s { margin-left: auto; font-size: 0.78rem; font-weight: 650; background: var(--ink); color: #fff; border-radius: 999px; padding: 0.2rem 0.8rem; }

/* scene 6: distribute */
.dist { position: relative; width: min(100%, 26rem); margin: 0 auto; padding: 2.4rem 0; }
.dist-card { background: #fff; border-radius: 18px; padding: 1rem; }
.dist .chip-f { position: absolute; }
/* the label sits just above the suggestions card */
.dist .s1 { top: 0.3rem; right: 0.5rem; --dot: #1d3fbb; }
@media (max-width: 40rem) { .dist .chip-f { font-size: 0.78rem; padding: 0.3rem 0.65rem; } }

/* scene 7: ask */
.askbox { display: flex; flex-direction: column; justify-content: center; }
.askbox .ask-a { margin-top: 0; }

/* closing band */
.cta-split { margin-block: 1.25rem; display: grid; border-radius: 32px; overflow: hidden; }
@media (min-width: 52rem) { .cta-split { grid-template-columns: 1fr 1fr; } }
.cta-split .l { background: var(--ink); color: #fff; padding: clamp(1.5rem, 4vw, 3rem); display: flex; align-items: center; }
.cta-split .l h2 { max-width: 14ch; }
.cta-split .r { padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(135deg, #dfe6ff, #f0e6ff 55%, #fff1bd); display: flex; flex-direction: column; justify-content: center; gap: 1rem; align-items: flex-start; }
.cta-split .r p { margin: 0; font-size: 1.15rem; max-width: 26rem; }

/* text pages: one centred panel */
.page-head { padding-block: var(--s4) var(--s3); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-head .lead { margin-top: var(--s2); }
.narrow-page .page-head, .narrow-page > .wrap { width: min(100% - 2rem, 46rem); }
.narrow-page > .wrap:not(.page-head) { background: var(--paper); border-radius: 28px; padding: clamp(1.25rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.55rem; margin: var(--s4) 0 var(--s1); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--s3) 0 0.3rem; }
.updated { color: var(--muted); font-size: 0.93rem; margin-bottom: var(--s1); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; margin-bottom: var(--s3); }
th, td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; background: var(--page); }
.faq details { border-bottom: 1px solid var(--line); padding-block: var(--s2); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; line-height: 1.35; }
.faq details p { margin: var(--s1) 0 0; max-width: 40rem; color: var(--muted); }
@media (max-width: 40rem) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; left: -9999px; }
  tr { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 0; }
  td:first-child { font-weight: 600; margin-bottom: 0.25rem; }
  td:last-child { color: var(--muted); font-size: 0.95rem; }
}

/* the early access form */
.form { display: grid; gap: var(--s1); }
.form label { font-weight: 600; margin-top: var(--s1); }
.form input, .form textarea { font: inherit; padding: 0.75rem 0.9rem; border: 1px solid #aab1be; border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form button { justify-self: start; margin-top: var(--s2); border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.form button:disabled { opacity: 0.6; cursor: wait; }
.form-msg { margin: var(--s1) 0 0; min-height: 1.5em; font-weight: 560; }
.form-msg.good { color: #14633d; }
.form-msg.bad { color: #a32020; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer: a dark rounded block */
.foot { margin: var(--s4) 1rem 1rem; border-radius: 32px; background: var(--ink); color: #fff; }
.foot .brand, .foot a { color: #fff; }
.foot .muted { color: var(--muted-on-dark); }
.foot-row { display: grid; gap: var(--s3) var(--s4); align-items: start; padding-block: var(--s4); }
@media (min-width: 52rem) { .foot-row { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.foot nav a { text-decoration: none; font-size: 0.97rem; }
.foot nav a:hover, .foot nav a:focus-visible { text-decoration: underline; color: var(--mark); }
.foot-head { font-weight: 650; font-size: 0.85rem; color: var(--muted-on-dark); margin: 0 0 0.25rem; }
@media (pointer: coarse) { .foot nav a { padding-block: 0.6rem; } .faq summary { padding-block: 0.3rem; } }

@media (max-width: 24rem) {
  .wrap, .narrow-page .page-head, .narrow-page > .wrap { width: calc(100% - 1.5rem); }
  .button { padding: 0.8rem 1.2rem; }
}

/* the website flags on a narrow screen: smaller, and kept inside the picture */
@media (max-width: 40rem) {
  .flag { font-size: 0.74rem; padding: 0.28rem 0.6rem; }
  .flag.f2 { left: auto; right: 2%; top: 15%; }
  .flag.f1 { right: 2%; }
}


/* ---- who it's for: cards that slide sideways as you scroll ---- */
.h-head { max-width: 40rem; }
.h-view { margin-top: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; }
.h-cards { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.h-card { flex: 0 0 min(23rem, 84%); scroll-snap-align: start; background: var(--page); border-radius: 28px; padding: clamp(1.25rem, 3vw, 1.75rem); margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.h-card h3 { font-size: 1.3rem; }
.h-intro { color: var(--muted); margin: 0 0 var(--s1); }
.h-card dl { margin: auto 0 0; display: grid; gap: 0.7rem; }
.h-card dl > div { background: #fff; border-radius: 18px; padding: 0.8rem 1rem; }
.h-card dt { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }
.h-card dd { margin: 0; font-size: 0.97rem; }
.h-ico { width: 1.7rem; height: 1.7rem; border-radius: 9px; display: grid; place-items: center; background: var(--bg); }
.h-ico svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 62rem) and (min-height: 46rem) {
  .h-on .h-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .h-on .h-view { overflow: hidden; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .h-on .h-cards { width: max-content; will-change: transform; }
  .h-on .h-card { flex: 0 0 24rem; }
}

/* hero labels on mid-width laptops: a little smaller, spaced so none overlap */
@media (min-width: 62rem) and (max-width: 76rem) {
  .hub-chips .chip-f { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
  .c-tt { left: 33%; }
  .c-ig { left: 38%; }
}
@media (min-width: 62rem) and (max-width: 66rem) { .c-ig { left: 40%; } .c-tt { left: 38%; } }


/* platform logos and brand colors */
:root { --c-yt: #FF0000; --c-tt: #25F4EE; --c-ig: #FF0069; --c-fb: #0866FF; --c-gads: #4285F4; --c-meta: #0467DF; --c-ga: #E37400; --c-g: #4285F4; }
.logo { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.16em; }
.logo.yt { color: var(--c-yt); } .logo.tt { color: #000; } .logo.ig { color: var(--c-ig); } .logo.fb { color: var(--c-fb); }
.logo.gads { color: var(--c-gads); } .logo.meta { color: var(--c-meta); } .logo.ga { color: var(--c-ga); } .logo.g { color: var(--c-g); } .logo.web { color: var(--brand); }
.chip-f .logo, .hub-tile b .logo, .plat b .logo, .ad b .logo, .pill-s .logo, .mini .logo, .nm .logo, .bar .logo { margin-right: 0.4rem; }
.chip-f .logo + .logo { margin-left: -0.15rem; }
.chip-f, .hub-tile b, .plat b, .ad b, .mini, .nm, .bar span:first-child { display: inline-flex; align-items: center; }
.hub-tile b, .plat b, .ad b { display: flex; }
.pill-s { display: inline-flex; align-items: center; }
.ch .nm, .ask-a li .nm { display: inline-flex; align-items: center; gap: 0; }
.ask-a li .nm { color: var(--ink); }
/* charts in each platform's own color */
.spark.web i { background: var(--brand); }
.spark.yt i { background: var(--c-yt); }
.spark.tt i { background: var(--c-tt); }
.spark.ig i { background: var(--c-ig); }
.spark.fb i { background: var(--c-fb); }
.spark.gads i { background: var(--c-gads); }
.vs2 i { background: var(--pc); opacity: 0.35; }
.vs2 i.g { background: var(--pc); opacity: 1; }
.bar:nth-of-type(1) i { background: var(--c-g); }
.bar:nth-of-type(2) i { background: #94a3b8; }
.bar:nth-of-type(3) i { background: #7c5cff; }

.foot .fine { font-size: 0.8rem; max-width: 22rem; margin-top: 0.8rem; }


/* the card in focus pops in the brand color, the others step back */
.h-card { transition: background 0.35s, color 0.35s, opacity 0.35s; }
.h-focus .h-card:not(.on) { opacity: 0.55; }
.h-focus .h-card.on { background: var(--brand); color: #fff; }
.h-focus .h-card.on .h-intro { color: rgb(255 255 255 / 0.85); }
.h-focus .h-card.on dl > div { color: var(--ink); box-shadow: 0 10px 24px -16px rgb(14 22 38 / 0.6); }


/* headings in the brand color (the logo stays black); light text on dark blocks keeps its own color */
h1, h2 { color: var(--brand); }
.cta-split .l h2, .foot h2 { color: #fff; }

/* the founder card at the top of the About page */
.founder { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.25rem; margin: 0 0 var(--s4); background: var(--page); border-radius: 24px; }
.avatar { flex: none; width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; background: var(--brand); box-shadow: 0 10px 24px -14px rgb(29 63 187 / 0.6); }
.avatar.initials { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; }
.founder-text p { margin: 0; }
.founder-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.founder-role { color: var(--muted); margin-bottom: 0.7rem !important; }
.li-badge { display: inline-flex; align-items: center; gap: 0.55rem; background: #fff; border: 1px solid var(--card-line); border-radius: 999px; padding: 0.35rem 0.9rem 0.35rem 0.4rem; font-weight: 650; font-size: 0.92rem; color: var(--ink); text-decoration: none; }
.li-badge:hover { border-color: #0a66c2; color: #0a66c2; }
.li-mark { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 6px; background: #0a66c2; color: #fff; font-weight: 800; font-size: 0.85rem; letter-spacing: -0.04em; }
@media (max-width: 30rem) { .founder { flex-direction: column; align-items: flex-start; } }

.consent { position: fixed; inset: auto var(--s2) var(--s2) var(--s2); max-width: 44rem; margin-inline: auto; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 30px rgba(14,22,38,.15); padding: var(--s2) var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; font-size: 0.95rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 22rem; line-height: 1.5; }
.consent-actions { display: flex; gap: 0.5rem; }
.consent .button { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover { background: var(--page); color: var(--ink); }
