/* ShapeKode Apps / Smart Product Table — shared styles. No external requests. */
:root {
  --brand: #4b3bdb;
  --brand-strong: #3626b8;
  --brand-soft: #efedff;
  --brand-tint: #c9c3ff;
  --accent: #0e9f6e;
  --accent-soft: #e6f8f0;
  --ink: #1a1646;
  --text: #34315a;
  --muted: #5f5b84;
  --line: #e4e2f3;
  --bg: #ffffff;
  --bg-alt: #f7f6fd;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(26, 22, 70, .06), 0 8px 24px rgba(26, 22, 70, .07);
  --radius: 16px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a79dff;
    --brand-strong: #c3bcff;
    --brand-soft: #24204d;
    --brand-tint: #3a3373;
    --accent: #34d399;
    --accent-soft: #10332a;
    --ink: #f3f2ff;
    --text: #d5d3ef;
    --muted: #a7a4c8;
    --line: #2f2b55;
    --bg: #110f26;
    --bg-alt: #17153a;
    --card: #1b1840;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--brand-soft); color: var(--ink); padding: .1em .4em; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 5; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0; line-height: 1.1; }
.brand span { line-height: 1.15; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
@media (max-width: 720px) { .nav .nav-optional { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: 12px; text-decoration: none; border: 1px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #110f26; } }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-secondary:hover { color: var(--brand); border-color: var(--brand-tint); }
.btn-disabled, .btn[aria-disabled="true"] { background: var(--brand-soft); color: var(--muted); border: 1px dashed var(--brand-tint); cursor: not-allowed; box-shadow: none; }
.btn-disabled:hover, .btn[aria-disabled="true"]:hover { color: var(--muted); background: var(--brand-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.btn-col { display: flex; flex-direction: column; gap: 6px; }
.btn-note { font-size: .85rem; color: var(--muted); margin: 0; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 420px at 85% -10%, var(--brand-soft), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Media frames */
.shot { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--brand-soft); box-shadow: 0 20px 50px rgba(54, 38, 184, .16); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .97rem; }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.icon-badge svg { width: 24px; height: 24px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); vertical-align: middle; }
.tag-biz { background: var(--accent-soft); color: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-list strong { color: var(--ink); }

/* Layout chips */
.layout-card { text-align: left; padding: 20px; }
.layout-card .mini { height: 74px; border-radius: 10px; background: var(--brand-soft); margin-bottom: 14px; padding: 10px; display: grid; gap: 6px; }
.mini i { display: block; border-radius: 4px; background: var(--brand-tint); }
.mini-classic { grid-template-rows: 10px repeat(3, 1fr); }
.mini-classic i:first-child { background: var(--brand); opacity: .55; }
.mini-compact { grid-template-rows: 8px repeat(5, 1fr); gap: 3px !important; }
.mini-compact i:first-child { background: var(--brand); opacity: .55; }
.mini-modern { grid-template-rows: repeat(3, 1fr); }
.mini-modern i { border-radius: 8px; }
.mini-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.mini-mobile { grid-template-rows: repeat(3, 1fr); justify-content: center; grid-template-columns: 44%; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding: 24px 24px 24px 76px; }
.steps > li::before { content: counter(step); position: absolute; left: 24px; top: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { .steps > li::before { color: #110f26; } }

/* Pricing */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--brand); }
.price-card .badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .price-card .badge { color: #110f26; } }
.card .price, .price { font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 4px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { margin-top: 12px; }
.price-card .check-list li { font-size: .95rem; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: 32px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.compare caption { text-align: left; padding: 16px 20px 0; font-weight: 700; color: var(--ink); }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { color: var(--ink); background: var(--bg-alt); font-size: .9rem; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { color: var(--muted); }
.compare td.yes { color: var(--accent); font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.fine { font-size: .88rem; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 6px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #5b4cf0, #3626b8); color: #fff; border-radius: 24px; padding: 48px 32px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e4e1ff; }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .btn-secondary { box-shadow: none; }
@media (prefers-color-scheme: dark) { .cta-band .btn-secondary { background: #fff; color: #1a1646; border-color: #fff; } }

/* Docs pages */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; padding-top: .2em; }
.doc h3 { margin-top: 1.5em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc .meta { color: var(--muted); font-size: .95rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0 1.5em; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc thead th { background: var(--bg-alt); color: var(--ink); }
.doc .table-scroll { overflow-x: auto; }
.doc .table-scroll table { min-width: 0; }
.doc td code { overflow-wrap: anywhere; }
.callout { border: 1px solid var(--brand-tint); background: var(--brand-soft); border-radius: 12px; padding: 16px 20px; margin: 1.5em 0; }
.callout p:last-child { margin-bottom: 0; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--bg-alt); margin: 24px 0; }
.toc h2 { font-size: 1rem; margin: 0 0 .5em; padding: 0; }
.toc ol { margin: 0; }

/* Hub */
.app-card { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.app-card:hover { border-color: var(--brand-tint); transform: translateY(-2px); color: inherit; }
.app-card img { width: 96px; height: 96px; border-radius: 22px; }
.app-card h2 { font-size: 1.4rem; margin-bottom: .25em; }
.app-card .more { color: var(--brand); font-weight: 600; }
.soon { border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; color: var(--muted); display: grid; place-items: center; text-align: center; min-height: 100%; }
@media (max-width: 520px) { .app-card { grid-template-columns: 1fr; } .app-card img { width: 72px; height: 72px; border-radius: 17px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .92rem; color: var(--muted); background: var(--bg-alt); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer p { margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
