/* Incredigital public site, v5. Fonts and brand colours come from Dashboard > Settings > Branding. */
:root {
  --paper: #f7f5ef;
  --ink: #0b1d1b;
  --teal: #00796b;
  --coral: #ff6a4d;
  --night: #0b1d1b;

  --surface: color-mix(in srgb, #ffffff 70%, var(--paper));
  --mist: color-mix(in srgb, var(--teal) 7%, color-mix(in srgb, var(--paper) 88%, #ffffff));
  --text: color-mix(in srgb, var(--ink) 84%, var(--paper));
  --muted: color-mix(in srgb, var(--ink) 58%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 28%, transparent);
  --teal-soft: color-mix(in srgb, var(--teal) 10%, var(--paper));
  --teal-bright: color-mix(in srgb, var(--teal) 62%, #7ff2dd);
  --night-text: #e6eeeb;
  --night-muted: #9fb5af;
  --night-line: rgba(255, 255, 255, .12);

  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --display-weight: 800;
  --h-scale: 1;
  --track: 1;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --r: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; font-size: calc(100% * var(--text-scale, 1)); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.62 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: var(--display-weight); color: var(--ink); margin: 0; text-wrap: balance; line-height: 1.08; letter-spacing: calc(-.03em * var(--track)); }
h1 { font-size: calc(clamp(2.5rem, 6vw, 4.6rem) * var(--h-scale)); line-height: 1.02; letter-spacing: calc(-.04em * var(--track)); }
h2 { font-size: calc(clamp(1.85rem, 3.8vw, 3rem) * var(--h-scale)); line-height: 1.06; letter-spacing: calc(-.035em * var(--track)); }
h3 { font-size: 1.32rem; font-weight: 700; line-height: 1.2; letter-spacing: calc(-.02em * var(--track)); }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--text); max-width: 58ch; }
.muted { color: var(--muted); }
.hl { font-style: normal; color: var(--teal); }
.dark .hl { color: var(--teal-bright); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .74rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex: none; }
.eyebrow.plain::before { display: none; }
.dark .eyebrow { color: var(--teal-bright); }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(68px, 9vw, 120px); }
.section.tight { padding-block: clamp(48px, 6.5vw, 84px); }
.section.flush-top { padding-top: 0; }
.section.mist { background: var(--mist); }
.section.dark, .dark { background: var(--night); color: var(--night-text); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead, .dark .muted { color: var(--night-muted); }
.lined { border-top: 1px solid var(--line); }
.head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.head > .lead { margin-top: 4px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4.5vw, 52px); }
.head-row .head { margin-bottom: 0; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent; background: var(--ink); color: var(--paper); font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--teal)); transform: translateY(-2px); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--coral) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; border-radius: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s; }
.text-link:hover { border-color: var(--ink); }
.text-link .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover .ic { transform: translateX(3px); }
.dark .text-link { color: #fff; border-color: rgba(255,255,255,.35); }
.dark .text-link:hover { border-color: #fff; }
.prose a, .answer a, .foot-about a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a:not(.btn) { display: block; padding: 8px 13px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--text); transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links .menu-mail { margin-left: 6px; }
.nav-links .menu-mail a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }
.nav-links .menu-mail .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav-links .menu-mail a:hover .ic { transform: translate(2px, -2px); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .nav { min-height: 66px; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .nav-links { display: none; }
  .nav.open .nav-links { position: fixed; z-index: 1; left: 0; right: 0; top: calc(66px + env(safe-area-inset-top, 0px)); bottom: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--paper); overflow-y: auto; }
  .nav.open .nav-links a:not(.btn):not(.menu-mail) { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-radius: 0; border-bottom: 1px solid var(--line); font: var(--display-weight) 1.65rem/1.1 var(--display); letter-spacing: calc(-.03em * var(--track)); color: var(--ink); background: none; }
  .nav.open .nav-links a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
  .nav-links .menu-mail { margin: 0; }
  .nav.open .nav-links .menu-mail a { gap: 10px; }
  .nav.open .nav-links .menu-mail .ic { width: 22px; height: 22px; }
  .site-header:has(.nav.open) { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-cta { display: none; }
}

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .eyebrow { font-size: .68rem; letter-spacing: .1em; }
  .mobile-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translateY(120%); transition: transform .3s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; box-shadow: 0 14px 30px -12px rgba(11, 29, 27, .5); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 7vw, 96px) 0 clamp(52px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.hero-copy { display: grid; gap: 22px; justify-items: start; align-self: center; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy .lead { max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 4px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof .ic { width: 16px; height: 16px; color: var(--teal); }

.map { position: relative; background: var(--night); color: var(--night-text); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); display: grid; grid-template-rows: auto 1fr auto; gap: 22px; min-height: 100%; overflow: hidden; }
.map-top, .map-foot { display: flex; justify-content: space-between; align-items: center; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.map-top .live { display: inline-flex; align-items: center; gap: 8px; }
.map-top .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; align-self: center; }
.map-cell { display: grid; gap: 14px; padding: 18px 16px 16px; border: 1px solid var(--night-line); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.map-cell svg { width: 52px; height: 52px; display: block; }
.map-cell strong { display: block; font: 700 1rem/1.2 var(--display); color: #fff; letter-spacing: -.01em; }
.map-cell span { display: block; font-size: .84rem; color: var(--night-muted); margin-top: 3px; }
.map-shape { display: inline-block; }
.map-shape svg { overflow: visible; }
/* Four small idle animations, one per theme. Slow, and off for people who prefer reduced motion. */
.sh-grow { transform-box: fill-box; transform-origin: 0% 100%; animation: sh-grow 8s ease-in-out infinite; }
@keyframes sh-grow { 0%, 100% { transform: scale(.84); } 45%, 62% { transform: scale(1); } }
.sh-turn { transform-origin: 24px 24px; animation: sh-turn 22s linear infinite; }
@keyframes sh-turn { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
.sh-piece { animation: sh-piece 8s ease-in-out infinite; }
.sh-piece.p1 { --dx: -3px; --dy: -3px; } .sh-piece.p2 { --dx: 3px; --dy: -3px; } .sh-piece.p3 { --dx: -3px; --dy: 3px; } .sh-piece.p4 { --dx: 3px; --dy: 3px; }
@keyframes sh-piece { 0% { transform: translate(0, 0); } 28%, 46% { transform: translate(var(--dx), var(--dy)); } 72%, 100% { transform: translate(0, 0); } }
.sh-ring { transform-origin: 24px 24px; animation: sh-ring 5s ease-out infinite; opacity: 0; }
@keyframes sh-ring { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.tools-label { font: 500 .72rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.tools ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; color: var(--muted); }
body.editing .tools ul { display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .map { max-width: 560px; min-height: 0; }
}

/* ---------- Ticker ---------- */
.ticker { position: relative; background: var(--night); color: var(--night-text); overflow: hidden; border-block: 1px solid var(--night); }
.ticker-track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker:hover .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; padding-block: 15px; }
.ticker-item span { padding-inline: 26px; font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker-item i { display: block; width: 9px; height: 9px; border-radius: 2px; background: var(--coral); transform: rotate(45deg); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-pause { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--night-line); background: var(--night); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.ticker:hover .ticker-pause, .ticker-pause:focus-visible, .ticker.paused .ticker-pause { opacity: 1; }
.ticker-pause svg { width: 12px; height: 12px; }

/* ---------- Service menu (pillars) ---------- */
.menu { border-top: 1px solid var(--line); }
.menu-row { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px clamp(20px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.menu-row .num { font: 500 .8rem/1.6 var(--mono); color: var(--muted); padding-top: 6px; }
.menu-row h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: calc(-.03em * var(--track)); }
.menu-row .name { display: block; font: 500 .72rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.menu-row p { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.menu-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; align-self: start; }
.menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; margin-inline: -12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; transition: background .2s; }
.menu-links a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.menu-links a small { font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: auto; }
.menu-links a .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.menu-links a:hover .ic { transform: translateX(3px); color: var(--ink); }
@media (max-width: 760px) {
  .menu-row { grid-template-columns: 1fr; gap: 14px; }
  .menu-row .num { display: none; }
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { position: relative; display: grid; gap: 14px; align-content: start; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .tile-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.card-foot .ic { width: 18px; height: 18px; color: var(--ink); transition: transform .2s var(--ease); }
.card:hover .card-foot .ic { transform: translateX(3px); }
.price { font-weight: 600; color: var(--ink); }
.price.free { color: var(--teal); }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.work-card { position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.work-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.work-media { position: relative; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); overflow: hidden; }
.work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-media .ph { position: absolute; inset: 0; overflow: hidden; }
.work-media .ph-shape { position: absolute; right: -8%; bottom: -14%; width: 62%; height: auto; opacity: .9; transition: transform .35s var(--ease); }
.work-card:hover .ph-shape { transform: translate(-6px, -6px); }
.work-media .ph-label { position: absolute; left: 18px; top: 16px; font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.work-media .play { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(11,29,27,.85); color: #fff; font: 600 .78rem/1 var(--body); }
.work-media .play .ic { width: 14px; height: 14px; }
.work-meta { display: grid; gap: 8px; padding: 20px 22px 22px; align-content: start; }
.work-meta .ind { font: 500 .68rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.work-meta h2, .work-meta h3 { font-size: 1.22rem; }
.work-meta p { color: var(--muted); font-size: .95rem; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card { position: relative; display: grid; gap: 12px; align-content: start; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-card img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card time { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-card h2, .post-card h3 { font-size: 1.22rem; }
.post-card p { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .text-link { margin-top: 4px; font-size: .92rem; }

.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.quote { position: relative; display: grid; gap: 18px; margin: 0; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.quote .qm { width: 26px; height: 26px; color: var(--teal); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.quote .demo-tag { position: absolute; top: 14px; right: 14px; font: 600 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); border: 1px solid var(--coral); padding: 5px 8px; border-radius: 999px; }

/* ---------- How we work (dark) ---------- */
.rules-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.rules { margin: 0; padding: 0; list-style: none; display: grid; }
.rules li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--night-line); }
.rules li:last-child { border-bottom: 1px solid var(--night-line); }
.rules .num { font: 500 .78rem/1.7 var(--mono); color: var(--teal-bright); }
.rules h3 { font-size: 1.18rem; margin-bottom: 6px; }
.rules p { color: var(--night-muted); font-size: .98rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(44px, 6vw, 80px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--night-line); }
.stat strong { display: block; font: var(--display-weight) clamp(2rem, 3.6vw, 2.9rem)/1 var(--display); letter-spacing: -.03em; color: #fff; }
.stat span { display: block; margin-top: 10px; color: var(--night-muted); font-size: .95rem; }
@media (max-width: 860px) { .rules-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 .74rem/1 var(--mono); letter-spacing: .12em; color: var(--teal); margin-bottom: 8px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Learn ---------- */
.learn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.channels { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s; }
.channel:hover { border-color: var(--line-strong); }
.channel .ch-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex: none; }
.channel strong { display: block; color: var(--ink); }
.channel > span:not(.ch-ic) { display: grid; gap: 1px; font-size: .9rem; color: var(--muted); }
.channel .ext { margin-left: auto; color: var(--muted); }
@media (max-width: 860px) { .learn { grid-template-columns: 1fr; } }

.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--night); }
.video-frame iframe, .video-frame video, .video-frame .yt, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt { padding: 0; border: 0; background: var(--night); cursor: pointer; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--coral); box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .2s var(--ease); animation: play-light 5s ease-in-out infinite; }
@keyframes play-light { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14); } }
.yt-play::after { content: ""; position: absolute; left: 28px; top: 22px; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.yt:hover .yt-play { transform: scale(1.06); }
.video-cap { margin-top: 12px; font-size: .95rem; color: var(--muted); }
.video-cap strong { color: var(--ink); font-weight: 600; }
.videos.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.faq .plus .ic { width: 15px; height: 15px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq .answer { padding: 0 0 22px; color: var(--text); max-width: 66ch; }
.faq .answer p + p { margin-top: 10px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Contact / CTA ---------- */
.cta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cta-copy { display: grid; gap: 18px; justify-items: start; }
.contact-lines { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.contact-lines li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 600; }
.contact-lines a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--line-strong); }
.contact-lines .ic { color: var(--teal); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--muted); }
.copy-btn .ic { width: 14px; height: 14px; color: inherit; }
.copy-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.next-steps { margin: 0; padding: 0 0 0 22px; display: grid; gap: 6px; color: var(--text); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.input[aria-invalid="true"] { border-color: var(--coral); }
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230b1d1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.checks label:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.field-error { color: #b23a1f; font-size: .88rem; font-weight: 500; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 4px; }
.form-foot small { color: var(--muted); font-size: .88rem; }
.recaptcha-note { font-size: .78rem; color: var(--muted); }
.recaptcha-note a { color: inherit; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--teal); background: var(--teal-soft); }
.notice .ic { color: var(--teal); }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding: clamp(56px, 7vw, 88px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-about { display: grid; gap: 16px; align-content: start; justify-items: start; max-width: 40ch; color: var(--night-muted); font-size: .95rem; }
.foot-about a { color: #fff; text-decoration: none; font-weight: 600; }
.foot-about .foot-note { font-size: .88rem; }
.foot-h { font: 500 .7rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--night-muted); margin: 0 0 16px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: var(--night-text); text-decoration: none; font-size: .95rem; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--night-line); font-size: .85rem; color: var(--night-muted); }
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 72px); }
.page-hero.no-line { border-bottom: 0; margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; list-style: none; font: 500 .7rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li[aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.intro { display: grid; gap: 18px; justify-items: start; max-width: 780px; }
.intro h1 { max-width: 16ch; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.panel { display: grid; gap: 18px; padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.panel h2 { font-size: 1.25rem; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ic { width: 20px; height: 20px; color: var(--teal); margin-top: 3px; }
.price-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }

.prose { max-width: 70ch; font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: 12px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--teal); color: var(--ink); font-size: 1.12rem; }
.prose pre { padding: 18px 20px; border-radius: 12px; background: var(--night); color: var(--night-text); overflow: auto; font-size: .9rem; }
.prose code { font-family: var(--mono); font-size: .9em; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .1em .35em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.h1-kicker { display: flex; align-items: center; gap: 10px; font: 500 .74rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.h1-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 24px 1fr; gap: 6px 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature .f-ic { width: 24px; height: 24px; display: grid; place-items: center; color: var(--teal); margin-top: 1px; }
.feature .f-ic .ic { width: 20px; height: 20px; }
.feature h3 { font-size: 1.08rem; }
.feature p { grid-column: 2; color: var(--muted); font-size: .96rem; }

.example { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--night); color: var(--night-text); }
.example .eyebrow { color: var(--teal-bright); }
.example h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 14px 0 12px; }
.example p { color: var(--night-muted); max-width: 64ch; }
@media (max-width: 720px) { .example { grid-template-columns: 1fr; align-items: start; } }

.meta-row { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .95rem; }
.meta-row strong { display: block; font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.meta-row a { color: var(--ink); }
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
.story h2 { font-size: 1.35rem; margin: 12px 0 14px; }
.story .prose { font-size: 1rem; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.cover { border-radius: var(--r-lg); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery img { border-radius: var(--r); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.article-head { display: grid; gap: 18px; justify-items: start; max-width: 800px; }
.article-head h1 { max-width: 20ch; }
.article-cover { margin-top: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); }
.author-box { display: flex; gap: 18px; align-items: flex-start; max-width: 70ch; margin-top: clamp(36px, 5vw, 56px); padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.author-box .author-mark { flex: none; }
.author-box p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.author-box a { color: var(--teal); }
.notfound { display: grid; gap: 18px; justify-items: start; max-width: 620px; min-height: 40vh; align-content: center; }

.group { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); }
.group-name { display: grid; gap: 12px; align-content: start; }
.group-name h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.group-name p { color: var(--muted); max-width: 40ch; }
.group:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .group { grid-template-columns: 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sh-grow, .sh-turn, .sh-piece, .sh-ring, .yt-play, .ticker-track { animation: none !important; }
  .sh-grow, .sh-turn { transform: none !important; }
  .sh-turn { transform: rotate(45deg) !important; }
  .sh-ring { display: none; }
  .ticker-track { width: 100%; flex-wrap: wrap; }
  .ticker-item[aria-hidden] { display: none; }
  .ticker-pause { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Front-end editor (visible only to logged-in team) ---------- */
.ed-bar { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: #0b1d1b; color: #fff; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); font: 500 .9rem/1 var(--body); }
.ed-bar a, .ed-bar button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 999px; border: 0; background: transparent; color: #fff; text-decoration: none; cursor: pointer; font: inherit; }
.ed-bar a:hover, .ed-bar button:hover { background: rgba(255,255,255,.1); }
.ed-bar .ic { width: 16px; height: 16px; }
.ed-bar .ed-save { background: var(--coral); color: #0b1d1b; font-weight: 600; }
.ed-bar .ed-save:hover { background: #ff8a70; }
.ed-bar .ed-count { font-size: .78rem; color: #9bb7b1; padding: 0 8px; }
body.editing [data-ed] { outline: 1.5px dashed color-mix(in srgb, var(--teal) 55%, transparent); outline-offset: 4px; border-radius: 4px; cursor: text; transition: outline-color .2s; min-width: 1ch; }
body.editing [data-ed]:hover { outline-color: var(--teal); }
body.editing [data-ed]:focus { outline: 2px solid var(--coral); background: color-mix(in srgb, var(--coral) 8%, transparent); }
body.editing [data-ed].changed { outline-color: var(--coral); }
.ed-tools { position: absolute; z-index: 95; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: #0b1d1b; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
.ed-tools button { width: 34px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font: 700 .85rem/1 var(--body); }
.ed-tools button:hover { background: rgba(255,255,255,.12); }
.ed-chip { position: absolute; z-index: 20; top: 12px; right: 12px; display: none; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: #0b1d1b; color: #fff !important; font: 600 .8rem/1 var(--body); text-decoration: none; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
body.editing [data-edit-url] { position: relative; }
body.editing [data-edit-url] > .ed-chip { display: inline-flex; }
.ed-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 99; padding: 12px 18px; border-radius: 12px; background: #0b1d1b; color: #fff; font: 500 .95rem/1.3 var(--body); box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
@media (max-width: 720px) { .ed-bar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
