/* =====================================================================
   Plugin Stack design system - primary #ffa500
   Sections: 1 tokens, 2 base, 3 layout, 4 buttons, 5 header, 6 hero,
   7 cards, 8 forms, 9 flash/badges, 10 footer, 11 installer, 12 motion
   ===================================================================== */

/* 1. Tokens ----------------------------------------------------------- */
:root {
  --primary: #ffa500;
  --primary-light: #ffbf47;
  --primary-dark: #e08e00;
  --primary-darker: #a86900;
  --primary-soft: #ffe3ae;
  --primary-tint: #fff4dc;
  --primary-glow: rgba(255, 165, 0, .38);
  --on-primary: #1a1200;

  --ink-950: #0f0c08;
  --ink-900: #1a150e;
  --ink-800: #2a2218;
  --ink-700: #3d3426;
  --ink-600: #5a5040;
  --ink-500: #766c5a;
  --ink-400: #a0977f;
  --ink-300: #cdc5b1;
  --ink-200: #e7e1d3;
  --ink-100: #f3efe4;
  --ink-50:  #faf8f2;
  --white: #fff;

  --bg: var(--ink-50);
  --surface: var(--white);
  --surface-alt: var(--ink-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --border: var(--ink-200);

  --success: #1f7a45;  --success-soft: #e3f4ea;
  --danger:  #b3261e;  --danger-soft:  #fbe7e5;
  --info:    #1d5fa8;  --info-soft:    #e4effa;
  --warning-soft: var(--primary-tint);

  --font-heading: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-xs: .78rem;
  --text-sm: .9rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.3rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  --text-2xl: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.2rem, 1.6rem + 2.4vw, 3.3rem);
  --text-4xl: clamp(2.6rem, 1.8rem + 3.6vw, 4.5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 7rem;

  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(26, 21, 14, .06);
  --shadow-sm: 0 2px 8px rgba(26, 21, 14, .07);
  --shadow-md: 0 8px 24px rgba(26, 21, 14, .09);
  --shadow-lg: 0 18px 44px rgba(26, 21, 14, .13);
  --shadow-xl: 0 30px 70px rgba(26, 21, 14, .22);
  --shadow-glow: 0 0 0 1px var(--primary), 0 14px 40px var(--primary-glow);

  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --dur: .28s;
}

/* 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--text-base)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 var(--space-4); font-weight: 700; }
h1 { font-size: var(--text-3xl); } h2 { font-size: var(--text-2xl); } h3 { font-size: var(--text-lg); }
p { margin: 0 0 var(--space-4); max-width: 68ch; }
a { color: var(--primary-darker); text-underline-offset: 3px; }
a:hover { color: var(--ink-900); }
code { font-family: var(--font-mono); font-size: .9em; background: var(--ink-100); padding: .1em .4em; border-radius: var(--radius-xs); }
ul, ol { padding-left: 1.2rem; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; border-radius: var(--radius-xs); }
.section--dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--primary-light); }
::selection { background: var(--primary); color: var(--on-primary); }

.skip-link { position: absolute; left: var(--space-4); top: -60px; z-index: 300; background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600; transition: top var(--dur); }
.skip-link:focus { top: var(--space-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* 3. Layout ----------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 720px; }
.text-center { text-align: center; } .text-center p { margin-inline: auto; }
.section { padding: var(--space-8) 0; }
.section--tint { background: rgba(255, 244, 220, .78); }
.section--dark { background: var(--ink-900); color: var(--ink-100); }
.section--dark .section__lead { color: var(--ink-300); }
.section__head { margin-bottom: var(--space-7); max-width: 720px; }
.section__title { font-size: var(--text-2xl); }
.section__lead { font-size: var(--text-md); color: var(--text-muted); }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .section { padding: var(--space-7) 0; } }
.empty { padding: var(--space-6); border: 2px dashed var(--ink-300); border-radius: var(--radius-lg); color: var(--text-muted); }

/* 4. Buttons ---------------------------------------------------------- */
.btn {
  --fill: var(--ink-900);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border: 2px solid transparent; border-radius: var(--radius-pill);
  font: 600 var(--text-sm)/1 var(--font-body); text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur), border-color var(--dur);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill); transform: translateX(-102%); transition: transform .45s var(--ease); }
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn:hover::before { transform: none; }
.btn:hover::after { animation: shine .85s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--primary); color: var(--on-primary); --fill: var(--primary-dark); box-shadow: 0 8px 22px var(--primary-glow); }
.btn--primary:hover { color: var(--on-primary); box-shadow: 0 12px 30px var(--primary-glow); }
.btn--dark { background: var(--ink-900); color: var(--white); --fill: var(--primary); }
.btn--dark:hover { color: var(--on-primary); }
.btn--outline { border-color: var(--ink-900); color: var(--ink-900); --fill: var(--ink-900); }
.btn--outline:hover { color: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: var(--white); --fill: var(--white); }
.btn--outline-light:hover { color: var(--ink-900); border-color: var(--white); }
.btn--sm { padding: .6rem 1.1rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--text-base); }
.btn--block { width: 100%; }
@keyframes shine { to { left: 140%; } }

/* 5. Header ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 242, .88); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur); }
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink-900); }
.brand__name { font: 800 1.35rem/1 var(--font-heading); letter-spacing: -.03em; }
.brand--light { color: var(--white); } .brand--light:hover { color: var(--primary); }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav__list, .footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-5); }
.site-nav__actions { display: flex; align-items: center; gap: var(--space-4); }
.nav-link { position: relative; padding: .4rem 0; font-weight: 500; color: var(--ink-800); text-decoration: none; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--ink-900); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--ink-900); cursor: pointer; border-radius: var(--radius-sm); }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: var(--space-4); padding: var(--space-5) 1.25rem var(--space-6); background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all var(--dur) var(--ease); }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav__list { flex-direction: column; gap: var(--space-2); }
  .nav-link { display: inline-block; padding: .7rem 0; font-size: var(--text-md); }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
  .site-nav__actions .btn { width: 100%; }
}

/* 6. Hero, stats, steps ---------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink-950); color: var(--white); padding: var(--space-8) 0 var(--space-9); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,165,0,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,165,0,.08) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); animation: grid-drift 28s linear infinite; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: blob-float 16s ease-in-out infinite alternate; }
.blob--a { width: 460px; height: 460px; background: var(--primary); top: -140px; right: -80px; }
.blob--b { width: 340px; height: 340px; background: var(--primary-darker); bottom: -120px; left: 8%; animation-delay: -6s; opacity: .4; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: var(--space-7); }
.hero__title { font-size: var(--text-4xl); font-weight: 800; letter-spacing: -.035em; margin-bottom: var(--space-5); max-width: 15ch; }
.hero__lead { font-size: var(--text-md); color: var(--ink-300); max-width: 52ch; margin-bottom: var(--space-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero__content > * { opacity: 0; animation: rise .9s var(--ease) forwards; }
.hero__content > :nth-child(2) { animation-delay: .12s; } .hero__content > :nth-child(3) { animation-delay: .24s; }
.hero__visual { position: relative; opacity: 0; animation: rise 1s .3s var(--ease) forwards; }
.mockup { background: var(--ink-800); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl), 0 0 80px rgba(255,165,0,.18); animation: float 6s ease-in-out infinite; overflow: hidden; }
.mockup__bar { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; background: var(--ink-900); font-size: var(--text-xs); color: var(--ink-400); }
.mockup__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-600); } .mockup__bar i:first-child { background: var(--primary); }
.mockup__bar span { margin-left: .8rem; }
.mockup__body { padding: var(--space-5); }
.mockup__label { font-size: var(--text-xs); color: var(--ink-400); margin-bottom: var(--space-1); }
.mockup__status { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--primary-light); margin-bottom: var(--space-4); }
.mockup__key { font: 600 var(--text-sm)/1 var(--font-mono); background: var(--ink-950); padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1px dashed var(--primary-dark); color: var(--primary-soft); max-width: none; overflow-wrap: anywhere; }
.mockup__rows { display: grid; gap: .6rem; margin-top: var(--space-5); }
.mockup__rows span { height: 10px; border-radius: 99px; background: var(--ink-700); } .mockup__rows span:nth-child(2) { width: 75%; } .mockup__rows span:nth-child(3) { width: 50%; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
.chip--a { top: -16px; right: -10px; animation-delay: -1.5s; } .chip--b { bottom: -18px; left: -14px; background: var(--white); animation-delay: -3s; }
@media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; } .hero__visual { max-width: 460px; margin-top: var(--space-5); } .hero { padding-bottom: var(--space-8); } }

.stats { background: var(--ink-900); color: var(--white); border-top: 1px solid rgba(255,165,0,.25); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); padding: var(--space-6) 0; }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat__num { font: 800 var(--text-3xl)/1 var(--font-heading); color: var(--primary); letter-spacing: -.03em; }
.stat__label { font-size: var(--text-sm); color: var(--ink-300); }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.step { background: var(--surface); border: 1px solid var(--primary-soft); border-radius: var(--radius-lg); padding: var(--space-6); }
.step__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--primary); color: var(--on-primary); margin-bottom: var(--space-4); }
.step p { color: var(--text-muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.cta__inner { text-align: center; } .cta__inner p { margin-inline: auto; margin-bottom: var(--space-5); }

/* 7. Cards ------------------------------------------------------------ */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.card:hover, .card:focus-within { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card__media { display: grid; place-items: center; height: 190px; overflow: hidden; background: linear-gradient(135deg, var(--primary-tint), var(--primary-soft)); }
.media__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: var(--radius-lg); background: var(--ink-900); color: var(--primary); box-shadow: var(--shadow-md); transition: transform 1.2s var(--ease); }
.media__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .media__img { transform: scale(1.08); } .card:hover .media__icon { transform: scale(1.12) rotate(-4deg); }
.product-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.product-card__body p { margin: 0; color: var(--text-muted); }
.product-card__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.product-card__title { margin: 0; font-size: var(--text-lg); }
.product-card__title a { color: inherit; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card__price { margin-top: auto !important; padding-top: var(--space-3); color: var(--ink-800) !important; }
.stars { display: inline-flex; gap: 1px; color: var(--ink-300); } .stars__item.is-on { color: var(--primary-dark); } .stars__item.is-on svg { fill: currentColor; }
.price-card { padding: var(--space-6); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); will-change: transform; }
.price-card:hover { transform: scale(1.035); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.price-card--featured { background: var(--ink-900); color: var(--white); border-color: var(--primary); }

/* 8. Forms ------------------------------------------------------------ */
.form { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.field { display: grid; gap: .4rem; }
.label { font-weight: 600; font-size: var(--text-sm); }
.input, .select, .textarea { width: 100%; padding: .8rem 1rem; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid var(--ink-300); border-radius: var(--radius-sm); transition: border-color var(--dur), box-shadow var(--dur); }
.textarea { min-height: 140px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-500); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary-dark); box-shadow: 0 0 0 4px var(--primary-glow); }
.field__hint { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.field__error { margin: 0; font-size: var(--text-xs); color: var(--danger); font-weight: 600; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--ink-100); font-size: var(--text-sm); }
.table-wrap { overflow-x: auto; }

/* 9. Flash, badges ---------------------------------------------------- */
.flash-stack { display: grid; gap: var(--space-3); padding-top: var(--space-4); }
.flash { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); padding: .9rem 1.1rem; border-radius: var(--radius-md); border: 1px solid; animation: rise .4s var(--ease); }
.flash p { margin: 0; }
.flash--success { background: var(--success-soft); border-color: var(--success); color: #11522d; }
.flash--error { background: var(--danger-soft); border-color: var(--danger); color: #7a1912; }
.flash--info { background: var(--info-soft); border-color: var(--info); color: #123f70; }
.flash--warning { background: var(--warning-soft); border-color: var(--primary-dark); color: var(--ink-900); }
.flash__close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 .3rem; }
.badge { display: inline-block; padding: .2rem .7rem; border-radius: var(--radius-pill); background: var(--ink-100); color: var(--ink-700); font-size: var(--text-xs); font-weight: 600; }
.badge--primary { background: var(--primary); color: var(--on-primary); }

/* 10. Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink-950); color: var(--ink-300); padding-top: var(--space-8); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); padding-bottom: var(--space-7); }
.site-footer__brand p { margin-top: var(--space-4); max-width: 34ch; }
.footer-title { font: 700 var(--text-base)/1 var(--font-heading); color: var(--white); margin-bottom: var(--space-4); }
.footer-links { flex-direction: column; gap: .6rem; }
.footer-links a { position: relative; color: var(--ink-300); text-decoration: none; }
.footer-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.footer-links a:hover { color: var(--primary); } .footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-5) 0; border-top: 1px solid var(--ink-800); font-size: var(--text-sm); }
.site-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 11. Installer ------------------------------------------------------- */
.installer-page { background: var(--ink-950); }
.installer { min-height: 100vh; display: grid; place-items: center; padding: var(--space-6) 1rem; background: radial-gradient(circle at 80% 0%, rgba(255,165,0,.25), transparent 50%), var(--ink-950); }
.installer__card { width: min(100%, 640px); background: var(--surface); border-radius: var(--radius-xl); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-xl); }
.installer__card h1 { font-size: var(--text-2xl); margin-top: var(--space-5); } .installer__card h2 { font-size: var(--text-lg); margin-top: var(--space-5); }
.checks { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: .4rem; }
.checks li { display: flex; align-items: center; gap: .6rem; font-size: var(--text-sm); }
.checks .is-ok svg { color: var(--success); } .checks .is-fail { color: var(--danger); font-weight: 600; }
.credentials { display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
.credentials div { background: var(--ink-900); color: var(--white); padding: var(--space-4); border-radius: var(--radius-md); }
.credentials dt { font-size: var(--text-xs); color: var(--ink-300); } .credentials dd { margin: .2rem 0 0; } .credentials code { background: transparent; color: var(--primary); font-size: var(--text-md); user-select: all; overflow-wrap: anywhere; }
.checklist { display: grid; gap: .5rem; margin-bottom: var(--space-5); }

/* 12. Motion (Part 2 sections 13-20 follow this block) ---------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }
@keyframes blob-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(-50px, 40px) scale(1.15); } }
@keyframes grid-drift { to { background-position: 56px 56px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .hero__content > *, .hero__visual { opacity: 1 !important; transform: none !important; }
}


/* =====================================================================
   PART 2 - public storefront
   13 animated grid background, 14 page heroes + layout helpers, 15 listing + product,
   16 pricing, 17 docs, 18 support + forms, 19 content, 20 responsive
   ===================================================================== */

/* 13. Animated grid background ---------------------------------------- */
/* Site-wide layer: faint ink grid, with orange lines revealed around the pointer. */
:root { --cell: 56px; --grid-line: rgba(26, 21, 14, .06); --spot-line: rgba(255, 165, 0, .55); }
.site-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.site-bg__grid, .site-bg__glow, .grid-bg__lines, .grid-bg__spot {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--c, var(--grid-line)) 1px, transparent 1px), linear-gradient(90deg, var(--c, var(--grid-line)) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.site-bg__grid { -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25)); mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25)); }
.site-bg__glow, .grid-bg__spot {
  --c: var(--spot-line); opacity: 0; transition: opacity .5s;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), #000, transparent 72%);
  mask-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), #000, transparent 72%);
}
.site-bg.is-live .site-bg__glow, .grid-bg.is-live .grid-bg__spot { opacity: 1; }
.site-bg__cells, .grid-bg__cells { position: absolute; inset: 0; }
.site-bg__cells i, .grid-bg__cells i {
  position: absolute; width: var(--cell); height: var(--cell); opacity: 0;
  background: rgba(255, 165, 0, .16); box-shadow: inset 0 0 0 1px rgba(255, 165, 0, .55), 0 0 26px rgba(255, 165, 0, .35);
  animation: cell-pulse var(--life, 3.4s) ease-in-out forwards;
}
.site-bg__cells i { background: rgba(255, 165, 0, .09); box-shadow: inset 0 0 0 1px rgba(255, 165, 0, .35), 0 0 22px rgba(255, 165, 0, .2); }
@keyframes cell-pulse { 0% { opacity: 0; transform: scale(.82); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* Section-level grid: used in heroes, page headers, the CTA band and the footer. */
.grid-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; --c: var(--grid-line); }
.grid-bg__lines {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='224' viewBox='0 0 224 224'%3E%3Cpath d='M112 106v12M106 112h12' stroke='%23ffa500' stroke-width='1.5' fill='none' opacity='.7'/%3E%3C/svg%3E"),
    linear-gradient(var(--c) 1px, transparent 1px), linear-gradient(90deg, var(--c) 1px, transparent 1px);
  background-size: calc(var(--cell) * 4) calc(var(--cell) * 4), var(--cell) var(--cell), var(--cell) var(--cell);
  background-position: calc(var(--cell) * -2) calc(var(--cell) * -2), 0 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 35%, transparent 100%);
}
.grid-bg__scan { position: absolute; left: 0; right: 0; top: -160px; height: 160px; background: linear-gradient(180deg, transparent, rgba(255,165,0,.10) 70%, rgba(255,165,0,.32)); border-bottom: 1px solid rgba(255,165,0,.55); animation: grid-scan 9s linear infinite; }
@keyframes grid-scan { to { transform: translateY(1100px); } }
.hero .grid-bg, .section--dark .grid-bg, .site-footer .grid-bg { --grid-line: rgba(255, 165, 0, .13); --spot-line: rgba(255, 165, 0, .7); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg.grid-bg .blob { z-index: -1; }
.site-footer { position: relative; overflow: hidden; }
.site-footer > .container { position: relative; z-index: 1; }
.site-footer .grid-bg { background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: var(--cell) var(--cell); -webkit-mask-image: linear-gradient(0deg, transparent, #000 90%); mask-image: linear-gradient(0deg, transparent, #000 90%); opacity: .7; }
.cta { position: relative; overflow: hidden; }
.cta .container { position: relative; z-index: 1; }
@media (max-width: 760px) { :root { --cell: 40px; } .grid-bg__scan { animation-duration: 12s; } }

/* 14. Page heroes, shared layout helpers ----------------------------- */
.page-hero { position: relative; overflow: hidden; padding: var(--space-7) 0 var(--space-6); background: linear-gradient(180deg, rgba(255, 244, 220, .85), rgba(255, 244, 220, 0)); border-bottom: 1px solid var(--border); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--text-3xl); margin-bottom: var(--space-3); max-width: 22ch; }
.page-hero__lead { font-size: var(--text-md); color: var(--text-muted); max-width: 62ch; }
.page-hero--compact { padding: var(--space-6) 0 var(--space-5); }
.page-hero--compact h1 { font-size: var(--text-2xl); }
.section--flush { padding-top: var(--space-7); }
.narrow-wide { max-width: 860px; }
.kicker { margin: 0 0 var(--space-2); font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--primary-darker); }
.section--dark .kicker { color: var(--primary); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 var(--space-4); padding: 0; font-size: var(--text-sm); color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-300); }
.breadcrumbs a { color: var(--ink-700); text-decoration: none; } .breadcrumbs a:hover { color: var(--primary-darker); text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink-900); text-decoration: none; border-bottom: 2px solid var(--primary); padding-bottom: 1px; }
.link-arrow:hover { color: var(--primary-darker); } .link-arrow svg { transition: transform var(--dur) var(--ease); } .link-arrow:hover svg { transform: translateX(4px); }
.section__more { margin-top: var(--space-6); }
.section__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section__row .section__title { margin: 0; }
.state { text-align: center; padding: var(--space-7) var(--space-5); border: 2px dashed var(--ink-300); border-radius: var(--radius-lg); background: rgba(255,255,255,.7); }
.state h2 { font-size: var(--text-xl); } .state p { margin-inline: auto; color: var(--text-muted); }
.state--error { border-color: var(--danger); background: var(--danger-soft); }
.callout { padding: var(--space-4) var(--space-5); border-left: 4px solid var(--primary); background: var(--primary-tint); border-radius: var(--radius-sm); margin: 0 0 var(--space-5); max-width: none; }
.callout--help { margin-top: var(--space-6); }
.prose { max-width: 72ch; } .prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-6); } .prose h3 { margin-top: var(--space-5); }
.prose ul, .prose ol { margin: 0 0 var(--space-4); } .prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-4); } .prose th, .prose td { padding: .6rem .8rem; border: 1px solid var(--border); text-align: left; }
.prose pre { overflow-x: auto; padding: var(--space-4); background: var(--ink-900); color: var(--ink-100); border-radius: var(--radius-sm); }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose--page { background: var(--surface); padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Home extras */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 var(--space-4); padding: .4rem .9rem; border: 1px solid rgba(255,165,0,.4); border-radius: var(--radius-pill); background: rgba(255,165,0,.1); color: var(--primary-light); font: 600 var(--text-xs)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--primary-glow); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,165,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,165,0,0); } }
.hero__search { display: flex; align-items: center; gap: .5rem; max-width: 520px; padding: .35rem; margin-bottom: var(--space-4); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-pill); background: rgba(255,255,255,.07); backdrop-filter: blur(6px); }
.hero__search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.hero__search-input { flex: 1; min-width: 0; padding: .7rem 1rem; border: 0; background: transparent; color: inherit; font: inherit; }
.hero__search-input::placeholder { color: var(--ink-400); } .hero__search-input:focus { outline: none; }
.hero__search--light { background: var(--white); border-color: var(--ink-300); color: var(--text); margin-top: var(--space-5); } .hero__search--light .hero__search-input::placeholder { color: var(--ink-500); }
.btn--ghost-light { color: var(--ink-200); } .btn--ghost-light:hover { color: var(--primary); }
.hero__cta--center { justify-content: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0 0 var(--space-6); }
.chip-link { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-800); font-weight: 600; font-size: var(--text-sm); text-decoration: none; transition: all var(--dur) var(--ease); }
.chip-link span { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 99px; background: var(--primary-tint); font-size: var(--text-xs); }
.chip-link:hover { border-color: var(--primary); background: var(--primary); color: var(--on-primary); transform: translateY(-2px); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.bento__item { position: relative; padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur); }
.bento__item::before, .bento__item::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--primary); opacity: 0; transition: opacity var(--dur), transform var(--dur) var(--ease); }
.bento__item::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; transform: translate(6px, 6px); }
.bento__item::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; transform: translate(-6px, -6px); }
.bento__item:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.bento__item:hover::before, .bento__item:hover::after { opacity: 1; transform: none; }
.bento__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: var(--space-4); border-radius: var(--radius-md); background: var(--ink-900); color: var(--primary); }
.bento__item h3 { margin-bottom: var(--space-2); } .bento__item p { margin: 0; color: var(--text-muted); }
.steps--timeline { position: relative; counter-reset: s; }
.steps--timeline .step { position: relative; }
.step__num { position: absolute; top: var(--space-4); right: var(--space-5); font: 800 3rem/1 var(--font-heading); color: var(--primary-soft); }
.steps--timeline::before { content: ""; position: absolute; top: 58px; left: 8%; right: 8%; border-top: 2px dashed var(--primary-soft); z-index: 0; }
.steps--timeline .step { z-index: 1; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-7); align-items: start; }
.faq-layout > .section__head { position: sticky; top: calc(var(--header-h) + 20px); margin-bottom: 0; }
.faq { display: grid; gap: .75rem; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color var(--dur), box-shadow var(--dur); }
.faq__item[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--primary-tint); color: var(--primary-darker); font-weight: 700; transition: transform var(--dur) var(--ease), background var(--dur); }
.faq__item[open] summary::after { content: "\2212"; background: var(--primary); color: var(--on-primary); }
.faq__answer { padding: 0 1.25rem 1.1rem; color: var(--text-muted); } .faq__answer p { margin-bottom: .5rem; }

/* 15. Listing + product ---------------------------------------------- */
.toolbar { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: var(--space-4); align-items: end; padding: var(--space-4); margin-bottom: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.toolbar--inline { grid-template-columns: minmax(0, 320px) auto; }
.toolbar .field { margin: 0; } .toolbar__btn { align-self: end; }
.results-count { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.product-card__version { font: 600 var(--text-xs)/1 var(--font-mono); color: var(--ink-500); }
.badge--link { position: relative; z-index: 2; text-decoration: none; } .badge--link:hover { background: var(--primary); color: var(--on-primary); }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: 0; margin: var(--space-7) 0 0; }
.pagination__link { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-800); font-weight: 600; text-decoration: none; }
a.pagination__link:hover { border-color: var(--primary); background: var(--primary-tint); }
.pagination__link.is-current { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); } .pagination__link.is-disabled { opacity: .45; }
.pagination__gap { display: inline-grid; place-items: center; height: 2.6rem; color: var(--ink-400); }
.product-hero { display: flex; gap: var(--space-5); align-items: flex-start; }
.product-hero__icon { flex: none; width: 112px; height: 112px; border-radius: var(--radius-xl); overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-tint), var(--primary-soft)); box-shadow: var(--shadow-md); }
.product-hero__icon .media__icon { width: 76px; height: 76px; }
.product-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-3); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-7); align-items: start; }
.block { margin-bottom: var(--space-7); } .block h2 { font-size: var(--text-xl); padding-bottom: var(--space-3); margin-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.checklist-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1.25rem; padding: 0; margin: 0; }
.checklist-grid li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist-grid__icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); margin-top: 2px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 var(--space-4); }
.tags li { padding: .4rem .85rem; border: 1px solid var(--ink-300); border-radius: var(--radius-pill); background: var(--surface); font: 500 var(--text-sm)/1.2 var(--font-mono); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.gallery__item { margin: 0; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--ink-100); } .gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: grid; place-items: center; gap: .5rem; min-height: 220px; padding: var(--space-5); text-align: center; color: var(--ink-500); border: 2px dashed var(--ink-300); border-radius: var(--radius-md); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 28px 28px; }
.media-placeholder p { margin: 0; }
.timeline { list-style: none; padding: 0 0 0 1.4rem; margin: 0 0 var(--space-4); border-left: 2px solid var(--primary-soft); }
.timeline__item { position: relative; padding: 0 0 var(--space-5) var(--space-4); }
.timeline__item::before { content: ""; position: absolute; left: calc(-1.4rem - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
.timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .3rem; } .timeline__head time { color: var(--text-muted); font-size: var(--text-sm); }
.timeline__product { font-weight: 700; color: var(--ink-900); } .timeline__item p { margin: 0; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.link-list li { display: grid; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); transition: border-color var(--dur), transform var(--dur) var(--ease); }
.link-list li:hover { border-color: var(--primary); transform: translateX(4px); } .link-list a { font-weight: 600; color: var(--ink-900); } .link-list span { color: var(--text-muted); font-size: var(--text-sm); }
.link-list--cards { grid-template-columns: repeat(2, 1fr); }
.product-side { position: sticky; top: calc(var(--header-h) + 20px); }
.plan-box { padding: var(--space-5); background: var(--ink-900); color: var(--ink-100); border: 1px solid var(--primary-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg), 0 0 60px rgba(255,165,0,.12); }
.plan-box__title { font-size: var(--text-lg); color: var(--white); }
.plan-box a:not(.btn) { color: var(--primary-light); }
.plan-box__foot { margin: var(--space-4) 0 0; font-size: var(--text-xs); color: var(--ink-400); }
.plan-box__dl { display: flex; gap: .5rem; align-items: flex-start; margin-top: var(--space-4); font-size: var(--text-sm); color: var(--text-muted); }
.plan-panel__name { margin: var(--space-4) 0 .2rem; font-size: var(--text-sm); color: var(--ink-300); }
.plan-panel__price { margin: 0; font: 800 2.4rem/1.1 var(--font-heading); color: var(--white); } .plan-panel__price span { font: 500 var(--text-sm)/1 var(--font-body); color: var(--ink-300); }
.plan-panel__note { margin: .3rem 0 var(--space-4); font-size: var(--text-sm); color: var(--ink-300); }
.plan-panel__list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: .5rem; font-size: var(--text-sm); }
.plan-panel__list li { display: flex; align-items: flex-start; gap: .5rem; } .plan-panel__list svg { flex: none; margin-top: 3px; color: var(--primary); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,.1); }
.seg__btn { padding: .5rem 1rem; border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit; font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background var(--dur), color var(--dur); }
.seg__btn small { margin-left: .3rem; padding: .15rem .45rem; border-radius: 99px; background: var(--primary-soft); color: var(--on-primary); font-size: .68rem; }
.seg__btn.is-active { background: var(--primary); color: var(--on-primary); }
.section__row .seg { background: var(--ink-100); color: var(--ink-800); }
.js [data-plan-panel][hidden], .js [data-billing-panel][hidden], .js [data-billing-cta][hidden] { display: none !important; }

/* 16. Pricing --------------------------------------------------------- */
.price-card { display: flex; flex-direction: column; }
.price-card__name { margin-bottom: .2rem; } .price-card__name a { color: inherit; text-decoration: none; }
.price-card__tag { color: var(--text-muted); font-size: var(--text-sm); }
.price-card__price { margin: var(--space-3) 0 0; font: 800 2.3rem/1.1 var(--font-heading); } .price-card__price span { font: 500 var(--text-sm)/1 var(--font-body); color: var(--text-muted); }
.price-card__note { color: var(--text-muted); font-size: var(--text-sm); min-height: 2.6em; }
.price-card .plan-panel__list { margin: var(--space-3) 0 var(--space-5); color: var(--ink-700); }
.price-card__cta { display: grid; gap: .6rem; margin-top: auto; }
.table--compare { min-width: 780px; } .table--compare th[scope="row"] a { color: var(--ink-900); font-weight: 700; text-decoration: none; }
.table--compare small, .table--pricing small { display: block; color: var(--text-muted); font-weight: 400; }
.table--pricing td small { display: inline; } .table__action { text-align: right; }
.table tbody tr:hover { background: var(--primary-tint); }
.terms-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.terms-list li { display: flex; gap: .7rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.terms-list svg { flex: none; margin-top: 4px; color: var(--primary-dark); }

/* 17. Docs ------------------------------------------------------------ */
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.docs-card { padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.docs-card h2 { font-size: var(--text-lg); padding-bottom: var(--space-3); border-bottom: 2px solid var(--primary); display: inline-block; }
.docs-card ul { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: .8rem; }
.docs-card li { display: grid; } .docs-card a { font-weight: 600; color: var(--ink-900); } .docs-card span { color: var(--text-muted); font-size: var(--text-sm); }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.docs-nav { position: sticky; top: calc(var(--header-h) + 20px); padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.docs-nav__title { margin: var(--space-3) 0 .4rem; font: 700 var(--text-xs)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); } .docs-nav__title:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; } .docs-nav a { display: block; padding: .4rem .6rem; border-radius: var(--radius-xs); color: var(--ink-800); text-decoration: none; font-size: var(--text-sm); }
.docs-nav a:hover { background: var(--primary-tint); } .docs-nav a.is-active { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.docs-article { padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.docs-article__meta { margin-top: var(--space-5); color: var(--text-muted); font-size: var(--text-sm); }
.docs-pager { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); }
.docs-pager__link { flex: 1; max-width: 48%; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--ink-900); font-weight: 600; text-decoration: none; transition: border-color var(--dur); }
.docs-pager__link small { display: block; color: var(--text-muted); font-weight: 400; } .docs-pager__link:hover { border-color: var(--primary); } .docs-pager__link--next { text-align: right; margin-left: auto; }

/* 18. Support + forms ------------------------------------------------- */
.support-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.card--static:hover, .card--static:focus-within { transform: none; border-color: var(--border); box-shadow: var(--shadow-xs); }
.support-form { padding: clamp(1.25rem, 3vw, 2.25rem); } .support-form h2 { font-size: var(--text-xl); }
.label__opt { font-weight: 400; color: var(--text-muted); }
.support-side { display: grid; gap: var(--space-4); }
.side-card { padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.side-card__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-3); border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary); }
.side-card h3 { margin-bottom: .3rem; } .side-card p { color: var(--text-muted); margin-bottom: var(--space-3); }

/* 20. Responsive ------------------------------------------------------ */
@media (max-width: 1040px) { .product-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: var(--space-6); } .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  .product-layout, .docs-layout, .support-layout, .faq-layout { grid-template-columns: 1fr; }
  .product-side, .docs-nav, .faq-layout > .section__head { position: static; }
  .toolbar { grid-template-columns: 1fr 1fr; } .toolbar__search { grid-column: 1 / -1; } .toolbar__btn { grid-column: 1 / -1; }
  .docs-grid, .link-list--cards { grid-template-columns: 1fr; } .steps--timeline::before { display: none; }
}
@media (max-width: 620px) {
  .bento, .checklist-grid, .gallery { grid-template-columns: 1fr; }
  .product-hero { flex-direction: column; } .product-hero__icon { width: 88px; height: 88px; }
  .toolbar { grid-template-columns: 1fr; } .hero__search { max-width: none; }
  .docs-pager { flex-direction: column; } .docs-pager__link { max-width: none; }
  .page-hero h1 { font-size: var(--text-2xl); } .section__row { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .grid-bg__scan, .eyebrow__dot { animation: none !important; }
  .site-bg__cells i, .grid-bg__cells i { animation: none !important; opacity: .45; }
}

/* 19. Admin content manager ------------------------------------------ */
.admin-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: var(--space-5) 0; padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.admin-tabs a { padding: .55rem 1rem; border-radius: var(--radius-pill); color: var(--ink-800); font-weight: 600; text-decoration: none; }
.admin-tabs a:hover { background: var(--primary-tint); } .admin-tabs a.is-active { background: var(--ink-900); color: var(--white); }
.admin-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-6); align-items: start; }
.admin-form { padding: var(--space-5); display: grid; gap: var(--space-4); margin-bottom: var(--space-5); } .admin-form h2, .admin-form h3 { margin: 0; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); }
.admin-actions { display: flex; gap: .4rem; justify-content: flex-end; white-space: nowrap; } .inline-form { display: inline; }
.admin-log { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; } .admin-log li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; } .muted { display: block; color: var(--text-muted); font-weight: 400; }
@media (max-width: 960px) { .admin-split { grid-template-columns: 1fr; } }

/* 21. Accounts and authentication (Part 3) ---------------------------- */
.auth { position: relative; overflow: hidden; display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 120px); padding: var(--space-7) var(--space-4); }
.auth__card { position: relative; z-index: 1; width: 100%; max-width: 440px; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.auth__title { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.auth__lead { color: var(--text-muted); margin-bottom: var(--space-5); }
.auth__row { margin: 0; text-align: right; font-size: var(--text-sm); }
.auth__alt { margin: var(--space-5) 0 0; text-align: center; color: var(--text-muted); }
.auth__note { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--primary-tint); font-size: var(--text-sm); }
.auth .form { display: grid; gap: var(--space-4); }
.pw { position: relative; display: flex; } .pw .input { padding-right: 4.6rem; }
.pw__toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); padding: .35rem .7rem; border: 0; border-radius: var(--radius-xs); background: var(--ink-100); color: var(--ink-800); font: 600 var(--text-xs)/1 var(--font-body); cursor: pointer; }
.pw__toggle:hover { background: var(--primary-soft); }
.check--error { color: var(--danger); }
.nav-link--button { border: 0; background: none; font: inherit; cursor: pointer; }
.activity { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: .6rem; }
.activity li { display: grid; padding-bottom: .5rem; border-bottom: 1px solid var(--border); } .activity small { color: var(--text-muted); }
.h3 { font-size: var(--text-lg); }

/* 22. Checkout and orders (Part 4) ------------------------------------ */
.payment-banner { margin-bottom: var(--space-5); padding: .9rem 1.1rem; border-radius: var(--radius-md); border: 2px solid; font-size: var(--text-sm); }
.payment-banner--demo { background: #fff3cd; border-color: #d39e00; color: #5c4400; }
.payment-banner--test { background: #e8f1ff; border-color: #3b7ddd; color: #12315f; }
.checkout { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); align-items: start; }
.checkout__summary, .checkout__pay { padding: clamp(1.25rem, 3vw, 2rem); }
.checkout__product { font: 700 var(--text-xl)/1.2 var(--font-heading); margin: 0; }
.checkout__list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; margin: var(--space-4) 0; }
.checkout__list dt { color: var(--text-muted); } .checkout__list dd { margin: 0; font-weight: 600; text-align: right; }
.checkout__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-4); border-top: 2px solid var(--ink-900); margin: 0 0 var(--space-3); }
.checkout__total strong { font: 800 2rem/1 var(--font-heading); }
.checkout__pay { display: grid; gap: var(--space-4); }
.license-key { padding: 1rem 1.25rem; border: 2px dashed var(--primary); border-radius: var(--radius-md); background: var(--primary-tint); font: 700 1.15rem/1.4 var(--font-mono); letter-spacing: .06em; word-break: break-all; cursor: copy; user-select: all; }
.result--paid { border-top: 4px solid var(--success); } .result--failed, .result--review { border-top: 4px solid var(--danger); } .result--pending, .result--cancelled { border-top: 4px solid var(--primary); }
@media (max-width: 820px) { .checkout { grid-template-columns: 1fr; } }

/* 23. Customer area (Part 5) ------------------------------------------- */
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 20px); padding: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.account-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.account-nav a { display: block; padding: .55rem .8rem; border-radius: var(--radius-xs); color: var(--ink-800); text-decoration: none; font-weight: 500; }
.account-nav a:hover { background: var(--primary-tint); } .account-nav a.is-active { background: var(--ink-900); color: var(--white); font-weight: 600; }
.account-main { min-width: 0; }
.account-h { font-size: var(--text-lg); margin: var(--space-6) 0 var(--space-3); }
.account-card { padding: clamp(1.1rem, 2.5vw, 1.75rem); margin-bottom: var(--space-4); }
.account-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: var(--space-3); } .account-card__head .h3 { margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-4); }
.stat-card { display: grid; gap: .2rem; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-muted); text-decoration: none; transition: border-color var(--dur), transform var(--dur) var(--ease); }
.stat-card:hover { border-color: var(--primary); transform: translateY(-3px); } .stat-card__num { font: 800 2rem/1 var(--font-heading); color: var(--ink-900); }
.rows { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: .5rem; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.status { display: inline-block; padding: .2rem .65rem; border-radius: var(--radius-pill); background: var(--ink-100); color: var(--ink-800); font: 600 var(--text-xs)/1.4 var(--font-body); white-space: nowrap; }
.status--ok { background: #dcf5e4; color: #14532d; } .status--warn { background: #fff0c2; color: #6b4a00; } .status--bad { background: #fde0e0; color: #7a1616; }
.key { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: var(--space-3) 0; }
.key__value { flex: 1 1 260px; padding: .7rem .9rem; border: 2px dashed var(--primary); border-radius: var(--radius-sm); background: var(--primary-tint); font: 700 var(--text-md)/1.3 var(--font-mono); letter-spacing: .05em; word-break: break-all; }
.form-inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.thread { display: grid; gap: .75rem; margin: var(--space-4) 0; }
.thread__msg { max-width: 85%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.thread__msg--me { margin-left: auto; background: var(--primary-tint); border-color: var(--primary-soft); } .thread__msg p { margin: .3rem 0 0; } .thread__msg small { color: var(--text-muted); }
.flash--warning { background: #fff0c2; color: #6b4a00; border-color: #e0b84a; }
@media (max-width: 960px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; padding: .4rem; overflow-x: auto; } .account-nav ul { display: flex; gap: .25rem; } .account-nav a { white-space: nowrap; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .table--cards thead { position: absolute; left: -9999px; }
  .table--cards tr { display: block; margin-bottom: .75rem; padding: .5rem 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
  .table--cards th, .table--cards td { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem .9rem; border: 0; text-align: right; }
  .table--cards td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); text-align: left; }
  .table--cards th[scope="row"] { font-weight: 700; text-align: left; }
}
@media (max-width: 520px) { .stat-cards { grid-template-columns: 1fr 1fr; } .thread__msg { max-width: 100%; } .rows li { flex-wrap: wrap; } }
