:root {
    --bg: #0b0d10;
    --panel: #12161c;
    --panel2: #0f1318;
    --ink: #e8eef6;
    --text: #d7e0ec;
    --muted: #a7b2c2;
    --surface: #12161c;
    --surface-soft: #0f1318;
    --line: #243041;
    --purple: #2c7be5;
    --purple-dark: #74a8f1;
    --green: #7b61ff;
    --green-dark: #674de8;
    --purple-soft: rgba(44, 123, 229, .14);
    --green-soft: rgba(123, 97, 255, .12);
    --danger: #ff8b82;
    --danger-soft: rgba(180, 35, 24, .16);
    --shadow-sm: 0 10px 34px rgba(0, 0, 0, .24);
    --shadow: 0 26px 80px rgba(0, 0, 0, .38);
    --radius-sm: 18px;
    --radius: 28px;
    --max: 1360px;
    --pad: clamp(18px, 4vw, 58px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(1200px 800px at 20% 0%, #122033 0%, var(--bg) 55%);
    font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.publicEditOpen { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { touch-action: manipulation; }
.publicSite { overflow-x: hidden; }

.siteHeader {
    position: sticky;
    top: 12px;
    z-index: 100;
    width: min(var(--max), calc(100% - 28px));
    min-height: 72px;
    margin: 12px auto 0;
    padding: 10px 14px 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(18, 22, 28, .92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}
.siteBrand, .footerBrand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}
.siteBrand img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.headerTools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.siteNav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.navLink {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--ink);
    font-size: .94rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: .18s ease;
}
.navLink:hover, .navLink.active { color: #fff; background: linear-gradient(135deg, #2c7be5, #7b61ff); }
.navToggle {
    display: none;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 13px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--purple);
    font-weight: 800;
    cursor: pointer;
}
.navToggle i { font-size: 1.2rem; }

.hero, .pageHero, .siteMain { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.taleHero {
    position: relative;
    isolation: isolate;
    min-height: clamp(580px, 76vh, 820px);
    margin-top: 28px;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-radius: clamp(28px, 4vw, 48px);
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(44, 123, 229, .60), transparent 30%),
        radial-gradient(circle at 72% 86%, rgba(123, 97, 255, .48), transparent 34%),
        linear-gradient(135deg, #0b0d10 0%, #122033 58%, #19182e 125%);
    box-shadow: var(--shadow);
}
.heroGrid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, #000, transparent 90%);
}
.taleHero::before, .taleHero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 2px solid rgba(255,255,255,.16);
    border-radius: 50%;
}
.taleHero::before { width: 520px; height: 520px; right: -120px; top: -110px; }
.taleHero::after { width: 310px; height: 310px; right: 120px; bottom: -170px; }
.heroContent { width: min(830px, 100%); padding: clamp(42px, 7vw, 94px); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--green-dark);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.taleHero .eyebrow { color: #9fc5ff; }
.eyebrow i { font-size: 1.2rem; }
h1, h2, h3 { color: var(--ink); }
.taleHero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 7.2vw, 7.4rem);
    font-weight: 900;
    letter-spacing: -.07em;
    line-height: .9;
    text-wrap: balance;
}
.heroLead {
    max-width: 690px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
    line-height: 1.65;
}
.heroActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primaryAction, .secondaryAction, .cartButton, .readMoreButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 19px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.primaryAction, .cartButton { color: #fff; background: linear-gradient(135deg, #2c7be5, #7b61ff); box-shadow: 0 14px 32px rgba(44, 123, 229, .25); }
.taleHero .primaryAction { color: #fff; background: linear-gradient(135deg, #2c7be5, #7b61ff); }
.secondaryAction { color: #fff; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.10); }
.primaryAction:hover, .secondaryAction:hover, .cartButton:hover, .readMoreButton:hover { transform: translateY(-2px); filter: brightness(1.04); }
.heroMetrics { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 38px; color: rgba(255,255,255,.76); font-size: .92rem; }
.heroMetrics span { display: flex; align-items: baseline; gap: 7px; }
.heroMetrics strong { color: #fff; font-size: 1.6rem; }

.siteMain { padding: clamp(58px, 7vw, 104px) 0; }
.sectionIntro { margin-bottom: 28px; }
.sectionIntro h2 {
    max-width: 960px;
    margin: 0;
    font-size: clamp(2.2rem, 4.7vw, 5rem);
    line-height: .98;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.narrowIntro { max-width: 860px; }
.toolsIntro { margin-top: clamp(72px, 10vw, 140px); }
.featureRows { display: grid; gap: 20px; }
.featureRow {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: clamp(18px, 4vw, 44px);
    align-items: start;
    padding: clamp(24px, 4vw, 52px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18,22,28,.86);
    box-shadow: var(--shadow-sm);
}
.featureRow:nth-child(even) { background: linear-gradient(135deg, #12161c, #15172a); }
.featureIcon, .productIcon, .articleDetailIcon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--green));
    box-shadow: 0 14px 34px rgba(84, 69, 194, .22);
}
.featureIcon i, .productIcon i, .articleDetailIcon i { font-size: 2.35rem; }
.featureRow h2 { margin: 0 0 9px; font-size: clamp(1.65rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.lead { margin: 0 0 14px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.articleContent { color: var(--text); font-size: 1.03rem; line-height: 1.75; }
.articleContent > :first-child { margin-top: 0; }
.articleContent > :last-child { margin-bottom: 0; }
.articleContent p { margin: 0 0 1rem; }
.articleContent h2, .articleContent h3, .articleContent h4, .articleContent h5 { margin: 1.5em 0 .55em; line-height: 1.12; letter-spacing: -.03em; }
.articleContent a { color: var(--purple-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.articleContent ul, .articleContent ol { padding-left: 1.35rem; }
.articleContent li + li { margin-top: .35rem; }
.articleContent figure { margin: 22px 0; }
.articleContent img { border-radius: var(--radius-sm); }
.articleContent figure.videoembed { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: #111827; }
.articleContent figure.videoembed iframe { width: 100%; height: 100%; border: 0; }
.articleContent figure.imgleft { float: left; width: min(38%, 360px); margin: 8px 26px 18px 0; }
.articleContent figure.imgright { float: right; width: min(38%, 360px); margin: 8px 0 18px 26px; }
.articleContent::after { content: ""; display: block; clear: both; }

.toolGrid, .productGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.toolCard, .productCard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: clamp(22px, 3vw, 34px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18,22,28,.92);
    box-shadow: var(--shadow-sm);
}
.toolCard::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -54px;
    bottom: -58px;
    border-radius: 50%;
    background: var(--green-soft);
}
.toolCard > i { position: relative; z-index: 1; width: max-content; margin-bottom: 24px; color: var(--purple); font-size: 2.7rem; }
.toolCard h2, .toolCard h3, .productCard h2 { position: relative; z-index: 1; margin: 0 0 10px; font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.035em; }
.toolCard p, .productCard > p { position: relative; z-index: 1; margin: 0; color: var(--muted); line-height: 1.65; }
.detailedTools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detailedTool .articleContent { margin-top: 16px; }
.productGrid { margin-top: 34px; }
.productCard { gap: 12px; }
.productIcon { width: 64px; height: 64px; border-radius: 20px; }
.productIcon i { font-size: 2rem; }
.productMeta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 12px 0; }
.priceTag, .stockTag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 900;
}
.priceTag { color: var(--purple-dark); background: var(--purple-soft); }
.stockTag { color: var(--green-dark); background: var(--green-soft); }
.stockTag.soldOut { color: var(--danger); background: var(--danger-soft); }
.cardActions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: auto; }
.readMoreButton { color: #9fc5ff; border: 1px solid #334a68; background: #0f1318; box-shadow: none; }
.soldOutButton, .cartButton:disabled { color: #ffaaa3; background: rgba(180,35,24,.20); box-shadow: none; cursor: not-allowed; filter: none; opacity: .9; }

.pageHero {
    margin-top: 28px;
    padding: clamp(44px, 7vw, 92px);
    overflow: hidden;
    border-radius: clamp(28px, 4vw, 48px);
    background:
        radial-gradient(circle at 90% 10%, rgba(44,123,229,.22), transparent 24rem),
        linear-gradient(135deg, #12161c, #19182e);
    box-shadow: var(--shadow-sm);
}
.pageHero > div { max-width: 880px; }
.pageHero h1, .articleDetail h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 6.3rem);
    line-height: .92;
    letter-spacing: -.065em;
    text-wrap: balance;
}
.pageHero p:last-child { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.25rem); line-height: 1.65; }
.pageRows { margin-bottom: 34px; }
.pageContent:empty { display: none; }
.pageContent { max-width: 900px; margin: 40px auto 0; }

.articleDetail { max-width: 1040px; }
.articleDetailIcon { margin-bottom: 28px; }
.articleDetail > .eyebrow { margin-bottom: 18px; }
.articleDetail > .lead { max-width: 760px; margin-top: 22px; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.articleDetail .articleContent { margin-top: 34px; font-size: 1.08rem; }
.articleDetail .cardActions { margin-top: 30px; }

.siteFooter {
    padding: 36px max(18px, calc((100% - var(--max)) / 2)) 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
    background: rgba(18,22,28,.72);
}
.footerBrand img { display: block; width: 44px; height: 44px; object-fit: contain; }
.footerLinks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.footerLinks a { color: var(--muted); font-size: .92rem; font-weight: 700; text-decoration: none; }
.footerLinks a:hover { color: var(--purple-dark); }

.shopCart { position: fixed; right: 18px; bottom: 18px; z-index: 250; }
.cartToggle {
    min-height: 52px;
    padding: 12px 17px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--purple);
    box-shadow: 0 18px 50px rgba(57, 45, 145, .28);
    font-weight: 900;
    cursor: pointer;
}
.cartToggle strong { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 6px; border-radius: 50%; color: var(--purple-dark); background: var(--panel); }
.cartPanel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 64px;
    width: min(480px, calc(100vw - 24px));
    max-height: min(78vh, 780px);
    padding: 22px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 30px 90px rgba(20, 18, 57, .26);
}
.shopCart.open .cartPanel { display: block; }
.cartPanel h2 { margin: 0 0 16px; font-size: 1.65rem; }
.cartRow { display: grid; grid-template-columns: minmax(0, 1fr) 74px 38px; gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cartRow strong, .cartRow small { display: block; }
.cartRow small { margin-top: 3px; color: var(--muted); }
.cartRow input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.cartRow button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--danger); background: var(--danger-soft); font-size: 1.25rem; cursor: pointer; }
.cartTotal { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; font-size: 1.03rem; }
.checkoutForm { display: grid; gap: 14px; }
.checkoutGroup { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.checkoutGroup legend { padding: 0 7px; color: var(--ink); font-weight: 900; }
.checkoutGroupFields { display: grid; gap: 11px; }
.checkoutForm label:not(.checkoutCheck) { display: grid; gap: 6px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.checkoutForm input, .checkoutForm textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.checkoutForm textarea { min-height: 84px; resize: vertical; }
.checkoutForm input:focus, .checkoutForm textarea:focus { outline: 3px solid rgba(44,123,229,.18); border-color: #2c7be5; }
.checkoutCheck { display: flex; align-items: flex-start; gap: 9px; color: var(--text); font-size: .9rem; line-height: 1.5; }
.checkoutCheck input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.checkoutCheck a { color: var(--purple-dark); }
.checkoutMessage { min-height: 1.2em; margin: 0; color: var(--danger); font-size: .9rem; font-weight: 700; }
.muted { color: var(--muted); }

.publicEditableItem {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
}
.publicEditableItem > .demoCard,
.publicEditableItem > .toolCard,
.publicEditableItem > .productCard,
.publicEditableItem > .featureRow {
    width: 100%;
    flex: 1 1 auto;
}
.publicEditBar {
    display: flex;
    justify-content: flex-start;
    clear: both;
    margin: 10px 0 0;
    padding: 0 4px;
}
.publicEditButton {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #334155;
    border-radius: 999px;
    color: var(--ink);
    background: #1d2632;
    box-shadow: none;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
}
.publicEditButton:hover, .publicEditButton:focus-visible {
    border-color: #5f8fcf;
    color: #fff;
    background: #26364a;
}
.publicEditModal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(4, 6, 9, .82); backdrop-filter: blur(9px); }
.publicEditModal[hidden] { display: none !important; }
.publicEditDialog { width: min(980px, 100%); max-height: 92vh; padding: clamp(20px, 3vw, 32px); overflow: auto; border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: var(--panel); box-shadow: 0 34px 100px rgba(0,0,0,.35); }
.publicEditHead { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.publicEditHead h2 { margin: 0; color: var(--ink); }
.publicEditClose { width: 40px; height: 40px; border: 1px solid #334155; border-radius: 50%; color: var(--ink); background: #1d2632; font-size: 1.4rem; cursor: pointer; }
.publicEditClose:hover, .publicEditClose:focus-visible { color: #fff; border-color: #5f8fcf; background: #26364a; }
.publicEditDialog label { display: grid; gap: 6px; margin: 12px 0; color: var(--ink); font-weight: 700; }
.publicEditDialog input, .publicEditDialog textarea { width: 100%; padding: 11px 12px; border: 1px solid #607089; border-radius: 12px; color: #101827; background: #fff; }
.publicEditToolbar { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.publicEditToolbar button, .publicEditSave, .publicEditCancel {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #3a4a60;
    border-radius: 11px;
    color: var(--ink);
    background: #1d2632;
    font-weight: 700;
    cursor: pointer;
}
.publicEditToolbar button:hover, .publicEditToolbar button:focus-visible,
.publicEditCancel:hover, .publicEditCancel:focus-visible {
    color: #fff;
    border-color: #5f8fcf;
    background: #26364a;
}
.publicEditContent { min-height: 280px; padding: 16px; border: 1px solid #3a4a60; border-radius: 16px; color: var(--text); background: var(--panel2); line-height: 1.65; outline: none; }
.publicEditContent:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(44,123,229,.18); }
.publicEditContent a { color: #9fc5ff; text-decoration: underline; text-underline-offset: 3px; }
.publicEditActions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.publicEditSave { color: #fff; border-color: #2c7be5; background: #2c7be5; }
.publicEditSave:hover, .publicEditSave:focus-visible { border-color: #74a8f1; background: #2268c7; }
.publicEditMessage { min-height: 1.2em; color: var(--danger); font-weight: 700; }
.notFound { max-width: 760px; padding-top: 14vh; text-align: center; }
.notFound h1 { margin: 0 0 14px; font-size: clamp(2.5rem, 7vw, 5.5rem); letter-spacing: -.055em; }
.notFound a { display: inline-flex; margin-top: 16px; color: var(--purple-dark); font-weight: 800; }

@media (max-width: 1050px) {
    .toolGrid, .productGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .headerTools { gap: 7px; }
    .navLink { padding-inline: 10px; font-size: .88rem; }
}
@media (max-width: 880px) {
    .siteHeader { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: 22px; }
    .siteBrand img { width: 44px; height: 44px; }
    .headerTools { display: contents; }
    .navToggle { display: inline-flex; grid-column: 2; grid-row: 1; }
    .siteNav { display: none; grid-column: 1 / -1; width: 100%; padding-top: 8px; }
    .siteHeader.navOpen .siteNav { display: grid; gap: 6px; }
    .siteNav .navLink { display: flex; justify-content: flex-start; padding: 12px 14px; background: var(--surface-soft); }
    .siteNav .navLink.active, .siteNav .navLink:hover { background: var(--purple); }
    .languageSwitcher { grid-column: 1 / -1; justify-self: start; }
    .featureRow { grid-template-columns: 72px minmax(0, 1fr); }
    .featureIcon { width: 66px; height: 66px; border-radius: 20px; }
    .featureIcon i { font-size: 2rem; }
}
@media (max-width: 680px) {
    .siteHeader { width: calc(100% - 18px); top: 8px; margin-top: 8px; }
    .siteBrand img { width: 40px; height: 40px; }
    .hero, .pageHero, .siteMain { width: calc(100% - 24px); }
    .taleHero { min-height: 620px; margin-top: 16px; border-radius: 28px; }
    .heroContent { padding: 34px 24px; }
    .taleHero h1 { font-size: clamp(3rem, 15vw, 5rem); }
    .heroActions { display: grid; }
    .primaryAction, .secondaryAction { width: 100%; }
    .heroMetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .heroMetrics span { display: grid; gap: 1px; }
    .heroMetrics strong { font-size: 1.4rem; }
    .featureRow { grid-template-columns: 1fr; }
    .toolGrid, .productGrid, .detailedTools { grid-template-columns: 1fr; }
    .pageHero { padding: 38px 24px; border-radius: 28px; }
    .pageHero h1, .articleDetail h1 { font-size: clamp(2.55rem, 13vw, 4.4rem); }
    .articleContent figure.imgleft, .articleContent figure.imgright { float: none; width: 100%; margin: 18px 0; }
    .siteFooter { align-items: flex-start; flex-direction: column; }
    .footerLinks { justify-content: flex-start; }
    .shopCart { right: 10px; bottom: 10px; }
    .cartPanel { right: 0; width: calc(100vw - 20px); max-height: 82vh; padding: 17px; }
    .cardActions { display: grid; width: 100%; }
    .cardActions > * { width: 100%; }
}


/* TaleTrailr platform links and working demos */
.externalNavLink { color: #b9d4ff; }
.accountNavLink { border: 1px solid #334155; }
.registerNavLink { color: #fff; background: linear-gradient(135deg, #2c7be5, #7b61ff); }
.registerNavLink:hover { filter: brightness(1.08); }
.platformActions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 34px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(18,22,28,.82); }
.darkSecondary { color: var(--text); border-color: var(--line); background: var(--panel2); }
.demoSection { margin-top: clamp(72px, 10vw, 140px); }
.sectionLead { max-width: 760px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.demoGrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.demoCard { position: relative; min-height: 260px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: linear-gradient(145deg, rgba(18,22,28,.96), rgba(15,19,24,.96)); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.demoCard::after { content: ''; position: absolute; right: -70px; bottom: -90px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(123,97,255,.28), transparent 68%); }
.demoCard:hover { transform: translateY(-4px); border-color: #416a9f; }
.demoCard h3 { margin: 44px 0 10px; color: var(--ink); font-size: 1.45rem; }
.demoCard p { color: var(--muted); line-height: 1.65; }
.demoNumber { color: #7faef0; font-weight: 900; letter-spacing: .12em; }
.demoAction { position: absolute; left: 28px; bottom: 26px; color: #9fc5ff; font-weight: 800; }
.allRoutesAction { margin: 24px 0 0; }
.checkoutForm input, .checkoutForm textarea, .checkoutForm select { color: var(--text); background: var(--panel2); }
.publicEditDialog, .cartPanel { color: var(--text); background: var(--panel); }
.pageHero { border: 1px solid var(--line); background: linear-gradient(135deg, #12161c, #19182e); }
.siteFooter { border-color: var(--line); }
@media (max-width: 960px) { .demoGrid { grid-template-columns: 1fr; } }


/* Compact taalmenu zoals op het TaleTrailr-portaal */
.languageMenu { position: relative; flex: 0 0 auto; }
.languageMenu > summary { list-style: none; }
.languageMenu > summary::-webkit-details-marker { display: none; }
.languageMenuButton {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: var(--panel2);
    font-size: .84rem;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}
.languageMenuButton strong { color: var(--ink); font-weight: 500; }
.languageMenuButton > span { color: var(--muted); }
.languageMenuButton .languageChevron { transition: transform .16s ease; }
.languageMenu[open] .languageChevron { transform: rotate(180deg); }
.languageMenuPanel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 250;
    width: 210px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 19, 24, .98);
    box-shadow: var(--shadow-sm);
}
.languageMenuLink {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 400;
    text-decoration: none;
}
.languageMenuLink:hover, .languageMenuLink.active { color: var(--ink); background: rgba(44,123,229,.16); }
.languageCode { color: #9fc5ff; font-size: .76rem; font-weight: 500; letter-spacing: .04em; }
.languageMenuLink .la-check { color: #9fc5ff; }

/* Lichtere, compactere typografie gebaseerd op de oorspronkelijke TaleTrailr-CSS */
body { font-size: 16px; font-weight: 400; }
.navLink { font-size: .92rem; font-weight: 400; }
.navToggle { font-weight: 500; }
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .08em; }
.taleHero { min-height: clamp(440px, 64vh, 620px); }
.taleHero h1 {
    max-width: 760px;
    margin: 12px 0 10px;
    font-size: clamp(2rem, 4.4vw, 4rem);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.035em;
}
.heroLead { max-width: 62ch; font-size: 1.02rem; line-height: 1.55; }
.primaryAction, .secondaryAction { font-size: .92rem; font-weight: 500; }
.heroMetrics { margin-top: 26px; font-size: .84rem; }
.heroMetrics strong { font-size: 1.25rem; font-weight: 500; }
.sectionIntro h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 500; letter-spacing: -.025em; }
.featureRow { padding: clamp(20px, 3vw, 34px); }
.featureRow h2 { font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.lead, .sectionLead { font-size: 1rem; line-height: 1.55; }
.articleContent { font-size: 1rem; line-height: 1.6; }
.articleContent h2, .articleContent h3, .articleContent h4, .articleContent h5 { font-weight: 500; letter-spacing: -.015em; }
.toolCard h2, .toolCard h3, .productCard h2 { font-size: 1.25rem; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; }
.toolCard p, .productCard > p { line-height: 1.55; }
.pageHero { padding: clamp(34px, 6vw, 72px); }
.pageHero h1, .articleDetail h1 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.pageHero p:last-child { margin-top: 14px; font-size: 1.02rem; line-height: 1.55; }
.demoCard h3 { font-size: 1.25rem; font-weight: 500; }
.demoNumber, .demoAction, .footerLinks a { font-weight: 500; }

@media (max-width: 880px) {
    .languageMenu { grid-column: 1 / -1; justify-self: start; }
    .languageMenuPanel { right: auto; left: 0; }
}
@media (max-width: 680px) {
    .taleHero { min-height: 500px; }
    .taleHero h1 { font-size: clamp(2rem, 10vw, 3.25rem); }
    .pageHero h1, .articleDetail h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .languageMenuButton > span { display: inline; }
}

/* Startpagina: voorbeelden uit de CMS-rubriek "TaleTrailr in gebruik". */
.demoIcon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    color: #fff;
    background: rgba(44,123,229,.18);
    font-size: 1.15rem;
}
.demoCard .demoIcon + h3 { margin-top: 20px; }
