/* Guide pages (built by guides-src/build.py). Uses the tokens from styles.css. */
.g { --g-accent: #2f5bd3; --g-tint: #eef2fb; --g-tint-line: #d9e2f5; padding-bottom: 0; }
.g .wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Hero */
.g-hero { margin: 16px auto 0; max-width: calc(var(--container) + 2 * var(--gutter)); padding-inline: 12px; }
.g-hero-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: radial-gradient(120% 90% at 50% -10%, #dfe7fa 0%, var(--g-tint) 40%, var(--surface) 100%); border: 1px solid var(--g-tint-line); padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px); text-align: center; }
.g-kicker { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--g-accent); }
.g-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; color: var(--ink); max-width: 17em; margin: 14px auto 0; text-wrap: balance; }
.g-sub { max-width: 40em; margin: 20px auto 0; font-size: 1.125rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.g-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.g-ctas a { text-decoration: none; }
.g-byline { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; font-size: .875rem; color: var(--muted); }
.g-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.g-byline strong { color: var(--ink); font-weight: 600; }
.g-def { max-width: 820px; margin: 40px auto 0; text-align: left; background: var(--surface); border: 1px solid var(--g-tint-line); border-radius: var(--radius-lg); padding: 24px 28px; box-shadow: var(--shadow-sm); }
.g-def p { margin-top: 10px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--text); letter-spacing: -.01em; }
.g-def strong { color: var(--ink); }

/* Contents grid */
.g-toc { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px auto 0; background: var(--surface); }
.g-toc a { display: block; padding: 16px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; line-height: 1.4; font-weight: 500; transition: background .2s var(--ease); }
.g-toc a:hover { background: var(--g-tint); }
.g-toc span { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--g-accent); margin-bottom: 8px; }

/* Sections */
.g-sec { padding-block: clamp(64px, 8vw, 104px) 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.g-sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; padding-bottom: 32px; }
.g-num { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .75rem; color: var(--g-accent); margin-bottom: 16px; }
.g-num::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.g-sec-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; color: var(--ink); text-wrap: balance; }
.g-sec-sum { font-size: 1.05rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.g-prose { max-width: 720px; }
.g-prose p, .g-prose li { font-size: 1rem; line-height: 1.75; color: var(--text); }
.g-prose p + p { margin-top: 14px; }
.g-prose h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.015em; color: var(--ink); margin: 44px 0 14px; }
.g-prose strong { color: var(--ink); font-weight: 600; }
.g-prose ul { display: grid; gap: 10px; margin-top: 12px; }
.g-prose ul li { position: relative; padding-left: 20px; }
.g-prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--g-accent); }
.g-prose a, .g-sec-sum a, .g-table td a { color: var(--g-accent); text-decoration: underline; text-underline-offset: 3px; }
.g-block { margin-top: 32px; }

/* Numbered key points */
.g-points { border-top: 1px solid var(--ink); }
.g-points li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.g-points li > span { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 300; color: var(--g-accent); line-height: 1; }
.g-points p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--text); letter-spacing: -.01em; }
.g-points mark { background: linear-gradient(transparent 62%, #dbe4fb 62%); color: var(--ink); font-weight: 500; }

/* Callout */
.g-rule { max-width: 1040px; background: var(--g-tint); border: 1px solid var(--g-tint-line); border-radius: var(--radius-lg); padding: 24px 28px; margin-top: 32px; }
.g-rule .g-kicker { font-size: .7rem; }
.g-rule p { margin-top: 10px; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }

/* Tables */
.g-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 8px; }
.g-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--text); }
.g-table tr:last-child > * { border-bottom: 0; }
.g-table thead th { font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--subtle); }
.g-table tbody th { font-weight: 600; color: var(--ink); width: 20%; }
.g-table .hl { background: var(--g-tint); color: var(--ink); }
.g-table thead .hl { background: var(--ink); color: #fff; }
.g-table .strike { color: var(--faint); text-decoration: line-through; }

/* Steps timeline */
.g-steps { max-width: 760px; counter-reset: step; position: relative; }
.g-steps li { position: relative; padding: 0 0 28px 52px; counter-increment: step; }
.g-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; display: grid; place-items: center; }
.g-steps li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line); }
.g-steps li:last-child::after { display: none; }
.g-steps h4 { font-size: 1.15rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; line-height: 30px; }
.g-steps p { margin-top: 4px; font-size: .95rem; line-height: 1.6; color: var(--muted); }

/* Card grids */
.g-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.g-cards.three { grid-template-columns: repeat(3, 1fr); }
.g-cards.four { grid-template-columns: repeat(4, 1fr); }
.g-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-xs); }
.g-card h4 { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.g-card p { margin-top: 6px; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.g-card .g-big { font-size: 1.9rem; font-weight: 500; letter-spacing: -.03em; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.g-card code, .g-prose code { font-family: var(--font-mono); font-size: .78rem; background: var(--g-tint); color: var(--g-accent); padding: 2px 6px; border-radius: 6px; }
.g-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.g-check::before { content: ""; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Example panel (illustrative app-style mock) */
.g-example { margin-top: 8px; border-radius: var(--radius-xl); background: radial-gradient(90% 120% at 50% 0%, #e3eafb, var(--g-tint) 55%, #f6f8fd); border: 1px solid var(--g-tint-line); padding: clamp(20px, 4vw, 48px); }
.g-window { max-width: 760px; margin-inline: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.g-window-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.g-window-bar b { color: var(--ink); font-weight: 600; }
.g-window-bar .dot { width: 18px; height: 18px; border-radius: 5px; background: var(--ink); }
.g-window-body { padding: 20px; display: grid; gap: 12px; }
.g-q { justify-self: end; max-width: 80%; background: var(--subtle); border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: .92rem; color: var(--ink); }
.g-a { font-size: .92rem; line-height: 1.6; color: var(--text); }
.g-prod { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.g-prod > span:first-child { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }
.g-prod b { color: var(--ink); font-weight: 600; }
.g-prod small { display: block; color: var(--muted); font-size: .8rem; }
.g-prod.you { border-color: var(--g-accent); background: var(--g-tint); }
.g-tag { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--subtle); color: var(--muted); white-space: nowrap; }
.g-prod.you .g-tag { background: var(--g-accent); color: #fff; }
.g-sheet { width: 100%; border-collapse: collapse; font-size: .82rem; }
.g-sheet th, .g-sheet td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.g-sheet th { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 500; }
.g-sheet .yes { color: #1f7a4d; font-weight: 600; }
.g-sheet .no { color: var(--faint); }
.g-caption { text-align: center; margin-top: 16px; font-size: .78rem; color: var(--faint); }

/* FAQ */
.g-faq { max-width: 860px; border-top: 1px solid var(--line); }
.g-faq details { border-bottom: 1px solid var(--line); }
.g-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 1.1rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--g-accent); transition: transform .2s var(--ease); }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { padding: 0 0 22px; max-width: 720px; line-height: 1.7; color: var(--text); }

/* Closing CTA + related */
.g-end { margin: clamp(72px, 9vw, 112px) auto 0; padding-inline: 12px; max-width: calc(var(--container) + 2 * var(--gutter)); }
.g-cta { border-radius: var(--radius-xl); background: radial-gradient(90% 140% at 85% 0%, #1d3566 0%, var(--navy-deep) 60%); color: #fff; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.g-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; text-wrap: balance; }
.g-cta p { margin-top: 12px; color: rgba(255,255,255,.72); line-height: 1.6; }
.g-cta .g-ctas { justify-content: flex-end; margin-top: 0; }
.g-cta .btn-primary { background: #fff; color: var(--ink); }
.g-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; margin-bottom: clamp(64px, 8vw, 96px); }
.g-related a { display: block; text-decoration: none; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s var(--ease); }
.g-related a:hover { border-color: var(--g-accent); }
.g-related span { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.g-related b { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; }

/* Guides index */
.g-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 40px 0 clamp(64px, 8vw, 96px); }
.g-list a { display: flex; flex-direction: column; gap: 10px; min-height: 200px; text-decoration: none; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.g-list a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.g-list b { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; }
.g-list p { color: var(--muted); line-height: 1.55; }
.g-list .more { margin-top: auto; font-size: .85rem; color: var(--g-accent); font-weight: 500; }

@media (max-width: 900px) {
  .g-toc { grid-template-columns: repeat(2, 1fr); }
  .g-sec-head { grid-template-columns: 1fr; align-items: start; }
  .g-cards.three, .g-cards.four { grid-template-columns: repeat(2, 1fr); }
  .g-cta { grid-template-columns: 1fr; }
  .g-cta .g-ctas { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .g-toc, .g-cards, .g-cards.three, .g-cards.four, .g-related, .g-list { grid-template-columns: 1fr; }
  .g-points li { grid-template-columns: 56px 1fr; }
  .g-hero { padding-inline: 8px; }
}

/* Labels inside boxes keep the small mono style */
.g-def p.g-kicker, .g-rule p.g-kicker { margin-top: 0; font-size: .7rem; line-height: 1.4; color: var(--g-accent); letter-spacing: .1em; }
.g-def p.g-kicker + p, .g-rule p.g-kicker + p { margin-top: 10px; }
.g-toc.cols-3 { grid-template-columns: repeat(3, 1fr); }
.g-card .g-big { color: var(--g-accent); }
@media (max-width: 900px) { .g-toc.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-toc.cols-3 { grid-template-columns: 1fr; } }

/* Navy hero (Kelian, 2026-10-20) */
.g-hero-card { background: radial-gradient(70% 90% at 50% -10%, #23407a 0%, #10224a 45%, var(--navy-deep) 100%); border-color: transparent; color: #fff; }
.g-hero h1 { color: #fff; }
.g-hero .g-sub { color: rgba(255,255,255,.72); }
.g-hero .g-kicker { color: #9db8ff; }
.g-hero .g-byline { color: rgba(255,255,255,.6); }
.g-hero .g-byline strong { color: #fff; }
.g-hero .g-avatar { background: #fff; color: var(--ink); }
.g-hero .btn-primary { background: #fff; color: var(--ink); }
.g-hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.g-hero .g-def { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.g-hero .g-def p { color: rgba(255,255,255,.85); }
.g-hero .g-def strong { color: #fff; }
.g-hero .g-def p.g-kicker { color: #9db8ff; }

/* Sourced stat cards */
.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-stat { display: flex; flex-direction: column; min-height: 200px; background: var(--navy-deep); color: #fff; border-radius: var(--radius-lg); padding: 24px; }
.g-stat b { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.g-stat p { margin-top: 12px; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.75); }
.g-stat em { display: block; margin-top: 10px; font-style: normal; font-size: .85rem; color: #9db8ff; font-weight: 500; }
.g-stat small { margin-top: auto; padding-top: 16px; font-size: .75rem; color: rgba(255,255,255,.5); }
.g-stat small a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 2px; }
.g-sources { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 16px; }
.g-sources summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.g-sources ol { margin-top: 12px; padding-left: 1.2em; list-style: decimal; display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.g-sources a { color: var(--g-accent); text-decoration: underline; word-break: break-word; }
@media (max-width: 900px) { .g-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-stats { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .g-toc a.toc-last { grid-column: span var(--span); } }

/* Tool cards (comparison articles) */
.g-tools { display: grid; gap: 16px; }
.g-tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; box-shadow: var(--shadow-xs); scroll-margin-top: calc(var(--header-h) + 16px); }
.g-tool.ours { border-color: var(--g-accent); box-shadow: 0 0 0 3px var(--g-tint); }
.g-tool-head .g-kicker { font-size: .68rem; }
.g-tool-head h3 { margin-top: 6px; font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.g-tool-head .price { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--g-tint); color: var(--ink); }
.g-tool-head a { display: block; margin-top: 10px; font-size: .8rem; color: var(--g-accent); text-decoration: underline; text-underline-offset: 2px; }
.g-tool-body p { font-size: .95rem; line-height: 1.6; color: var(--text); }
.g-tool-body dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin-top: 14px; font-size: .9rem; line-height: 1.5; }
.g-tool-body dt { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding-top: 3px; }
.g-tool-body dd { color: var(--text); }
.g-table td.yes { color: #1f7a4d; font-weight: 500; }
.g-table td.part { color: #8a5a00; }
@media (max-width: 760px) { .g-tool { grid-template-columns: 1fr; gap: 12px; } .g-tool-body dl { grid-template-columns: 1fr; gap: 2px; } .g-tool-body dt { padding-top: 8px; } }

/* Press kit */
.g-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.g-shots figure { margin: 0; }
.g-shots img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.g-shots figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.g-shots figcaption a, .g-logo a, .g-card p a { color: var(--g-accent); text-decoration: underline; text-underline-offset: 2px; }
.g-logo-box { height: 120px; display: grid; place-items: center; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); margin-bottom: 14px; padding: 16px; }
.g-logo-box.dark { background: var(--navy-deep); }
.g-logo-box img { max-width: 80%; max-height: 48px; width: auto; height: auto; }
.g-stat small a { color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .g-shots { grid-template-columns: 1fr; } }

/* Before / after (product page guide, 2026-10-26) */
.g-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-ba-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-xs); }
.g-ba-col .g-kicker { font-size: .68rem; }
.g-ba-col h4 { margin-top: 10px; font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.g-ba-col p, .g-ba-col li { margin-top: 8px; font-size: .92rem; line-height: 1.6; color: var(--muted); }
.g-ba-col ul { margin: 10px 0 0; padding-left: 18px; }
.g-ba-col li b { color: var(--ink); font-weight: 600; }
.g-ba-col.after { border-color: var(--g-accent); box-shadow: 0 0 0 3px var(--g-tint); }
.g-ba-col.after p, .g-ba-col.after li { color: var(--text); }
@media (max-width: 760px) { .g-ba { grid-template-columns: 1fr; } }
.g-stats + .g-table-wrap { margin-top: 24px; }

/* Motion (guide.js, 26 Oct 2026). Only under .g-anim, which guide.js adds when motion is allowed,
   so without JS or with reduced motion every element is simply shown. */
.g-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--g-accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.g-toc a.is-current { background: var(--g-tint); box-shadow: inset 0 -2px 0 var(--g-accent); }
.g-anim .g-r { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--gd, 0s); }
.g-anim .g-r.is-in { opacity: 1; transform: none; }
.g-anim tr.g-r { transform: none; transition-property: opacity; }
.g-anim .g-ba-col.after.g-r { transform: translateX(24px); }
.g-anim .g-ba-col.after.g-r.is-in { transform: none; }
.g-anim .g-steps li::after { transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease); transition-delay: calc(var(--gd, 0s) + .25s); }
.g-anim .g-steps li.is-in::after { transform: scaleY(1); }
.g-anim .g-steps li::before { transition: transform .5s var(--ease); transition-delay: var(--gd, 0s); transform: scale(.4); }
.g-anim .g-steps li.is-in::before { transform: none; }
.g-anim .g-points mark { background: linear-gradient(transparent 62%, #dbe4fb 62%) no-repeat 0 0 / 0% 100%; transition: background-size 1s var(--ease); transition-delay: calc(var(--gd, 0s) + .35s); }
.g-anim .g-points li.is-in mark { background-size: 100% 100%; }
.g-card, .g-tool, .g-stat, .g-related a { transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .7s var(--ease); }
.g-card:hover, .g-tool:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.g-anim .g-card.g-r.is-in:hover, .g-anim .g-tool.g-r.is-in:hover { transform: translateY(-2px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .g-progress { display: none; } .g-card:hover, .g-tool:hover { transform: none; } }

/* Brand-kit devices (26 Oct 2026): engine logos, typed question, dot-matrix agents and the dot P in the closing banner */
.g-eng { display: inline-flex; align-items: center; gap: 8px; }
.g-eng img { width: 16px; height: 16px; flex: none; }
.g-table th.hl .g-eng img[src*="openai"], .g-table th.hl .g-eng img[src*="perplexity"] { filter: brightness(0) invert(1); }   /* the highlighted column is navy */
.g-caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: g-blink 1s steps(1) infinite; }
@keyframes g-blink { 50% { opacity: 0; } }
.g-anim .g-example .g-a, .g-anim .g-example .g-prod { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--pi, 0s); }
.g-anim .g-example.is-typed .g-a, .g-anim .g-example.is-typed .g-prod { opacity: 1; transform: none; }
.g-cta { position: relative; overflow: hidden; isolation: isolate; }
.g-cta > * { position: relative; z-index: 1; }
.g-cta > .g-agents { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.35) 45%, #000 80%); mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.35) 45%, #000 80%); }
.g-cta-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.g-pmark { position: relative; width: 112px; height: 112px; isolation: isolate; }
.g-pmark::before { content: ""; position: absolute; inset: -55%; z-index: -1; background: radial-gradient(circle, rgba(7,16,31,.92) 30%, rgba(7,16,31,0) 68%); }
.g-pmark canvas { position: absolute; left: -30%; top: -30%; width: 160%; height: 160%; }
@media (max-width: 900px) {
  .g-cta-side { align-items: flex-start; }
  .g-cta > .g-agents { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6)); mask-image: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6)); }
}
@media (prefers-reduced-motion: reduce) { .g-caret { animation: none; } }

/* Guides index (26 Oct 2026): agents in the hero, typed mono headline, topic chips, dot-matrix card pictures */
.g-hero-agents { isolation: isolate; }
.g-hero-agents > * { position: relative; z-index: 1; }
.g-hero-agents > .g-agents { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(0,0,0,.12) 0%, rgba(0,0,0,.35) 55%, #000 100%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(0,0,0,.12) 0%, rgba(0,0,0,.35) 55%, #000 100%); }
.g-hero h1.g-type { font-family: var(--font-mono); font-weight: 700; letter-spacing: -.045em; max-width: 19em; }
.g-hero .g-caret { background: #fff; height: .9em; vertical-align: -.06em; }
.g-filters { display: none; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.js .g-filters { display: flex; }
.g-filters button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 .875rem/1 inherit; font-family: inherit; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.g-filters button span { font-family: var(--font-mono); font-size: .72rem; color: var(--g-accent); }
.g-filters button:hover { color: var(--ink); border-color: var(--g-tint-line); background: var(--g-tint); }
.g-filters button[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-xs); }
.g-filters button:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }
.js .g-filters + .g-list { margin-top: 20px; }
.g-list > a[hidden] { display: none; }
.g-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.g-dots { width: 64px; height: 78px; margin-top: -14px; flex: none; }
.g-card-kind { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.g-pop { animation: g-pop .45s var(--ease) both; animation-delay: var(--gd, 0s); }
@keyframes g-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .g-pop { animation: none; } }

/* "Which tool fits you" cards (tools comparison, 29 Oct 2026): brand kit navy card for Produkto with the dot-matrix
   agents and the P mark, a tinted free-start card, and plain cards for the rest. */
.g-fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.g-fit-card { position: relative; display: flex; flex-direction: column; min-height: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .7s var(--ease); }
.g-fit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.g-fit-card .g-kicker { font-size: .68rem; letter-spacing: .08em; color: var(--muted); }
.g-fit-card h3 { margin-top: 12px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.g-fit-card h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .25s var(--ease); }
.g-fit-card h3 a:hover { background-size: 100% 1px; }
.g-fit-card h3 span { font-weight: 400; color: var(--faint); font-size: .85em; }
.g-fit-card > p:not(.g-kicker) { margin-top: 8px; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.g-fit-meta { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.g-fit-meta .price { font-family: var(--font-mono); font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: var(--g-tint); color: var(--ink); }
.g-fit-meta a { font-size: .85rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.g-fit-meta a::after { content: " →"; }
.g-fit-meta a:hover { border-color: currentColor; }
.g-fit-card.ours { grid-column: span 2; min-height: 270px; overflow: hidden; isolation: isolate; border-color: transparent; color: #fff;
  background: radial-gradient(70% 130% at 90% 0%, #23407a 0%, #10224a 45%, var(--navy-deep) 100%); }
.g-fit-card.ours > * { position: relative; z-index: 1; }
.g-fit-card.ours > .g-agents { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.3) 50%, #000 90%); mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.3) 50%, #000 90%); }
.g-fit-card.ours .g-kicker { color: #9db8ff; }
.g-fit-pick { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.g-fit-pick img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.g-fit-card.ours h3 { margin-top: 0; color: #fff; font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.g-fit-card.ours > p:not(.g-kicker) { max-width: 34em; color: rgba(255,255,255,.75); font-size: .98rem; }
.g-fit-card.ours .price { background: rgba(47,191,113,.16); color: #7ee0aa; }
.g-fit-card.ours .g-fit-meta a { color: #fff; border-color: rgba(255,255,255,.35); }
.g-fit-card.ours .g-fit-meta a:hover { border-color: #fff; }
.g-fit-card.start { background: var(--g-tint); border-color: var(--g-tint-line); box-shadow: none; }
.g-fit-card.start .price { background: var(--surface); }
@media (max-width: 960px) { .g-fit { grid-template-columns: repeat(2, 1fr); } .g-fit-card.ours { grid-column: 1 / -1; } }
@media (max-width: 620px) { .g-fit { grid-template-columns: 1fr; } .g-fit-card { min-height: 0; }
  .g-fit-card.ours > .g-agents { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 62%, rgba(0,0,0,.55) 100%); mask-image: linear-gradient(180deg, transparent 0%, transparent 62%, rgba(0,0,0,.55) 100%); } }
@media (prefers-reduced-motion: reduce) { .g-fit-card:hover { transform: none; } }
