/* Gift Owlerts Help Centre — styled after theindiecollab.com, layout after Lemon Squeezy docs */
:root {
  --ink: #06342F;
  --ink-soft: #3F5A52;
  --muted: #587065;
  --cream: #E8F8C6;
  --paper: #FBFEF3;
  --lime: #CBF24E;
  --plum: #30011E;
  --lilac: #DEC5E3;
  --lilac-pale: #F3E6F5;
  --sky: #B6DCFE;
  --line: #06342F1F;
  --radius: 18px;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --header-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; gap: 18px;
  padding: 0 24px; background: #e8f8c6e0; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.brand .name { font: 800 20px/1 var(--head); letter-spacing: -.02em; }
.brand .tag { font: 700 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; background: var(--lime);
  padding: 5px 8px; border-radius: 6px; transform: rotate(-2deg); }
.search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.search input { width: 100%; font: 15px var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 10px 16px 10px 40px; outline: none; }
.search input:focus { border-color: var(--ink); }
.search::before { content: "⌕"; position: absolute; left: 15px; top: 50%; transform: translateY(-52%); font-size: 20px; color: var(--muted); }
.search-results { position: absolute; top: 48px; left: 0; right: 0; background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: 14px; padding: 6px; display: none; max-height: 60vh; overflow: auto; }
.search-results.open { display: block; }
.search-results a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.search-results a:hover, .search-results a.active { background: var(--cream); }
.search-results small { display: block; color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--cream); font: 700 15px/1 var(--body);
  padding: 12px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.btn:hover { color: var(--lime); }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; font: 700 14px var(--body);
  color: var(--ink); padding: 8px 14px; }

/* Layout */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 48px; max-width: none; margin: 0; padding: 0 32px 0 max(24px, calc((100vw - 1320px) / 2 + 24px)); }
.sidebar { position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow: auto; padding: 32px 0 40px; }
.sidebar .group { margin-bottom: 22px; }
.sidebar .group-title { font: 700 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px 12px; }
.sidebar a { display: block; padding: 7px 12px; border-radius: 10px; text-decoration: none; font-size: 15.5px; line-height: 1.35; }
.sidebar a:hover { background: var(--cream); }
.sidebar a.current { background: var(--ink); color: var(--cream); font-weight: 700; }
.toc { position: sticky; top: var(--header-h); align-self: start; padding: 40px 0; font-size: 14px; }
.toc .label { font: 700 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-soft); }
.toc a.active { border-color: var(--ink); color: var(--ink); font-weight: 700; }

/* Article */
main { padding: 36px 0 80px; min-width: 0; }
.crumbs { font: 12.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
/* TIC .kg-metrics__title */
article h1 { font: 800 clamp(26px, 3.4vw, 50px)/1 var(--head); letter-spacing: -.03em; margin: 0 0 18px; max-width: 20ch; }
/* TIC *__title-accent: inherits size */
article h1 em, .hero h1 em, article h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
/* TIC .kg-hero__text */
article .lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; margin: 0 0 28px; }
/* TIC .kg-services__row-title */
article h2 { font: 800 clamp(24px, 2.6vw, 36px)/1.05 var(--head); letter-spacing: -.025em; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
/* TIC .kg-more-work__card-title */
article h3 { font: 700 21px/1.3 var(--head); letter-spacing: -.01em; margin: 30px 0 8px; }
/* TIC body copy: 17px / 1.55 / 500 / #3F5A52 */
article p, article li { max-width: 92ch; color: var(--ink-soft); }
article strong, article .ui, article a { color: var(--ink); }
article code, .kbd { font: 14px var(--mono); background: var(--cream); padding: 2px 6px; border-radius: 6px; }
.ui { font-weight: 700; } /* exact on-screen label */
article table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: 15.5px; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; }
article th { background: var(--ink); color: var(--cream); text-align: left; font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
article th, article td { padding: 11px 14px; vertical-align: top; }
article td { border-top: 1px solid var(--line); }
article tr:nth-child(even) td { background: #e8f8c655; }

/* Steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 22px 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 20px 58px; }
ol.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  border-radius: 999px; background: var(--lime); font: 700 14px/40px var(--mono); text-align: center; }
ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
ol.steps > li > strong:first-child { display: block; font: 700 18px/1.4 var(--head); margin-bottom: 2px; }

/* Callouts */
.callout { border-radius: 14px; padding: 16px 18px 16px 52px; margin: 22px 0; position: relative; max-width: 100%; }
.callout::before { position: absolute; left: 18px; top: 15px; font-size: 20px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout .title { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 6px; }
.callout.tip { background: var(--cream); } .callout.tip::before { content: "💡"; }
.callout.note { background: var(--lilac-pale); color: var(--plum); } .callout.note::before { content: "📝"; }
.callout.warn { background: #FFF1C9; } .callout.warn::before { content: "⚠️"; }
.callout.plan { background: var(--sky); } .callout.plan::before { content: "⭐"; }

/* Media "stage": every <figure class="media"> sits on the same brand backdrop (same bg as the video cards).
   site.js wraps the img/video/placeholder in a window (.win) with a browser bar. See README "Add images". */
figure.media { margin: 28px 0; max-width: 1000px; }
.stage { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; padding: 5.5% 6% 0;
  background: url(img/stage-bg.jpg) center / cover, linear-gradient(120deg, #DDF68E, var(--paper) 50%, var(--lilac-pale)); }
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--line); pointer-events: none; }
.win { position: relative; background: #fff; border-radius: 12px 12px 0 0; overflow: hidden;
  box-shadow: 0 1px 0 #06342F14, 0 18px 40px -12px #06342F40, 0 0 0 1px #06342F1A; }
.win .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F4F7EC; border-bottom: 1px solid #06342F14; }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: #06342F26; }
.win .bar span { margin: 0 auto; transform: translateX(-24px); font: 400 11.5px var(--mono); color: var(--muted);
  background: #fff; border-radius: 6px; padding: 2px 14px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win img, .win video, .win iframe { width: 100%; display: block; border: 0; }
/* frame variants: data-frame="card" (no bar, floats with full radius) · "phone" (narrow device) */
figure.media[data-frame="card"] .stage, figure.media[data-frame="phone"] .stage { padding: 6%; }
figure.media[data-frame="card"] .win { border-radius: 12px; }
figure.media[data-frame="phone"] .win { width: min(300px, 62%); margin: 0 auto; border-radius: 30px; border: 8px solid var(--ink); }
/* numbered callouts: <span class="pin" style="--x:30%;--y:40%">1</span> inside the figure */
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 800 14px var(--head); color: var(--ink); background: var(--lime); box-shadow: 0 0 0 3px #fff, 0 6px 14px #06342F55; }
figure.media figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
/* placeholder = an empty window on the stage, so the page already looks finished */
.media-ph { aspect-ratio: 16 / 8.4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 8px; padding: 24px; color: var(--plum); background: repeating-linear-gradient(135deg, #fff 0 14px, #FBF6FC 14px 28px); }
.media-ph .kind { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--lilac); padding: 4px 10px; border-radius: 6px; }
.media-ph .what { font-size: 15px; max-width: 46ch; }
.media-ph.video { color: var(--ink); background: repeating-linear-gradient(135deg, #fff 0 14px, #F6FBE6 14px 28px); }
.media-ph.video .kind { background: var(--lime); }
.media-ph.video::before { content: ""; width: 54px; height: 54px; border-radius: 50%; margin-bottom: 4px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23CBF24E'/%3E%3C/svg%3E") center / 26px no-repeat; }
@media (max-width: 860px) { .win .bar span { display: none; } .pin { width: 22px; height: 22px; font-size: 12px; } }

/* Prev / next + feedback */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px; text-decoration: none; }
.pager a:hover { border-color: var(--ink); }
.pager small { display: block; font: 700 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pager .next { text-align: right; grid-column: 2; }
.pager span { font: 700 17px var(--head); }
.feedback { margin-top: 32px; padding: 18px 20px; border-radius: 14px; background: var(--cream); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feedback button { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
.feedback button:hover { background: var(--ink); color: var(--cream); }

/* Home */
.home main { grid-column: 2 / 4; }
.hero { background: var(--cream); border-radius: 22px; padding: 56px 48px; margin-bottom: 36px; position: relative; overflow: hidden; }
.hero .eyebrow { font: 600 12.5px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
/* TIC .kg-work-hero__title */
.hero h1 { font: 800 clamp(42px, 7vw, 104px)/.94 var(--head); letter-spacing: -.04em; margin: 12px 0 28px; max-width: 15ch; }
.hero p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; max-width: 48ch; margin: 0 0 32px; color: var(--ink-soft); }
.hero .btn { font-size: 17px; padding: 16px 30px; } /* TIC .kg-hero__btn-primary */
.hero .sticker { position: absolute; right: 40px; top: 40px; background: var(--lime); font: 700 13px var(--mono); text-transform: uppercase;
  padding: 8px 12px; border-radius: 6px; transform: rotate(6deg); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { display: block; border-radius: var(--radius); padding: 24px; text-decoration: none; background: var(--paper); border: 1.5px solid var(--line); transition: transform .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--ink); color: var(--ink); }
.card .num { font: 700 12px var(--mono); color: var(--muted); }
.card h3 { font: 700 21px/1.15 var(--head); letter-spacing: -.02em; margin: 8px 0 6px; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.card.lilac { background: var(--lilac-pale); } .card.lime { background: var(--cream); } .card.sky { background: #B6DCFE66; }
/* TIC .kg-services__heading */
.section-title { font: 800 clamp(26px, 3vw, 42px)/1 var(--head); letter-spacing: -.025em; margin: 44px 0 18px; }

footer.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 24px; font-size: 14px; color: var(--muted); text-align: center; }

/* Responsive */
@media (max-width: 1180px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } .toc { display: none; } .home main { grid-column: 2; } }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; padding: 0 16px; gap: 0; }
  .sidebar { display: none; position: fixed; inset: var(--header-h) 0 0 0; height: auto; background: var(--paper); z-index: 15; padding: 20px 16px; }
  body.nav-open .sidebar { display: block; }
  .menu-toggle { display: inline-block; }
  .site-header .btn, .brand .tag, .brand .name { display: none; }
  .site-header { padding: 0 16px; gap: 10px; }
  .home main { grid-column: 1; }
  .hero { padding: 36px 24px; } .hero .sticker { display: none; }
  .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; }
}
/* videos: no stage/window wrapper, the file already has its own backdrop */
figure.media.bare > video { width: 100%; display: block; border: 0; border-radius: calc(var(--radius) + 6px); box-shadow: inset 0 0 0 1.5px var(--line); }
