/* Marketing pages */
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { width: min(760px, 100%); }
.center { text-align: center; justify-content: center; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none; } }

.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--background) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav > .wrap { height: 60px; }
.nav-links { display: flex; gap: 22px; font-size: 13.5px; color: var(--muted-foreground); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--foreground); }
@media (max-width: 820px) { .nav-links { display: none; } }

.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 20% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(500px 280px at 85% 10%, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 85%); opacity: .7; }
.hero-inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 99px; text-decoration: none; font-size: 13px; background: var(--background); box-shadow: var(--shadow-sm); }
.pill svg { width: 14px; height: 14px; }
.pill .badge svg { width: 12px; height: 12px; }
.hero h1 { font-size: clamp(38px, 7vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted-foreground); max-width: 640px; }
.hero .btn.lg svg { width: 18px; height: 18px; }

.mock { margin-top: 26px; width: 100%; max-width: 1040px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg), 0 0 0 8px color-mix(in srgb, var(--muted) 60%, transparent); overflow: hidden; text-align: left; }
.mock-bar { height: 38px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--muted); }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-url { margin: 0 auto; font-size: 12px; color: var(--muted-foreground); background: var(--background); border: 1px solid var(--border); border-radius: 6px; padding: 2px 40px; }
.mock-body { display: grid; grid-template-columns: 190px 1fr 230px; min-height: 340px; }
.mock-side { border-right: 1px solid var(--border); padding: 14px 10px; display: grid; align-content: start; gap: 2px; }
.mock-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 8px 14px; }
.mock-logo .logo-mark { width: 22px; height: 22px; }
.mock-nav { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 7px; font-size: 13px; color: var(--muted-foreground); }
.mock-nav svg { width: 15px; height: 15px; }
.mock-nav.active { background: var(--accent); color: var(--foreground); font-weight: 500; }
.mock-main { padding: 20px; display: grid; gap: 14px; align-content: start; }
.mock-title { font-weight: 600; font-size: 16px; }
.mock-q { border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: grid; gap: 8px; }
.mock-qt { font-weight: 500; }
.mock-opt { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.mock-opt svg { width: 15px; height: 15px; }
.mock-opt.correct { border-color: color-mix(in srgb, var(--success) 50%, var(--border)); background: var(--success-soft); color: var(--success); }
.mock-ai { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.mock-ai svg { width: 15px; height: 15px; flex: none; }
.mock-cursor { width: 7px; height: 15px; background: currentColor; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-stats { border-left: 1px solid var(--border); padding: 20px 16px; display: grid; gap: 12px; align-content: start; }
.mock-stat { border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
.mock-num { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.spark span { flex: 1; background: linear-gradient(180deg, var(--brand), var(--brand-2)); border-radius: 3px; opacity: .85; }
@media (max-width: 900px) { .mock-body { grid-template-columns: 1fr; } .mock-side, .mock-stats { display: none; } }

.audience { padding: 34px 20px 10px; display: grid; gap: 14px; }
.aud-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted-foreground); font-weight: 500; }
.aud-row span { display: inline-flex; gap: 8px; align-items: center; }
.aud-row svg { width: 16px; height: 16px; }

.section { padding: 80px 20px 20px; }
.section-head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 36px; max-width: 680px; margin-inline: auto; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.035em; }
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; background: var(--card); transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--ring); transform: translateY(-2px); }
.tile.span2 { grid-column: span 2; }
.tile h3 { font-size: 16px; }
.tile-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--muted); }
.tile-icon svg { width: 19px; height: 19px; }
.tile-icon.brand { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bars { display: grid; gap: 8px; margin-top: 6px; }
.bars div { position: relative; height: 26px; background: var(--muted); border-radius: 6px; overflow: hidden; }
.bars span { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--success) 25%, transparent); }
.bars .warn span { background: color-mix(in srgb, var(--warning) 30%, transparent); }
.bars em { position: relative; font-style: normal; font-size: 12px; padding-left: 10px; line-height: 26px; font-family: var(--mono); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile.span2 { grid-column: auto; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: grid; gap: 8px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-foreground); font-weight: 600; font-size: 13px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pack { border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: grid; gap: 4px; }
.pack svg { width: 20px; height: 20px; color: var(--brand); margin-bottom: 6px; }
@media (max-width: 860px) { .packs { grid-template-columns: 1fr 1fr; } }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.price { padding: 26px; display: grid; gap: 14px; position: relative; }
.price.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.popular { position: absolute; top: -11px; left: 24px; }
.amount { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.amount span { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13.5px; }
.price li { padding-left: 24px; position: relative; }
.price li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--muted-foreground); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; }

.cta { margin: 90px 0 30px; border-radius: 20px; padding: 56px 28px; text-align: center; display: grid; gap: 14px; justify-items: center; color: #fff;
  background: radial-gradient(500px 200px at 20% 0%, rgb(255 255 255 / .18), transparent), linear-gradient(120deg, #0b1437, #3b5bfd 45%, #00b8a9); }
.cta h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 700; letter-spacing: -0.035em; }
.cta p { opacity: .85; }
.cta-btn { background: #fff; color: #18181b; }
.cta-btn svg { width: 18px; height: 18px; }

.footer { padding-top: 24px; padding-bottom: 40px; display: grid; gap: 14px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer nav { gap: 18px; }
.footer a { text-decoration: none; }
.wrap-sm { flex-wrap: wrap; }

.prose { padding: 60px 20px; display: grid; gap: 14px; }
.prose h1 { font-size: 34px; }
.prose h2 { font-size: 18px; margin-top: 12px; }
.prose p, .prose li { color: var(--muted-foreground); }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 700; color: var(--foreground); }
.prose td { color: var(--muted-foreground); }

/* Test template pages (/templates) */
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--foreground); }
.tpl-hero { padding: 48px 20px 8px; display: grid; gap: 16px; }
.tpl-hero h1 { font-size: clamp(32px, 5.5vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.tpl-hero .btn.lg svg { width: 18px; height: 18px; }
.tpl-samples { padding: 40px 20px 0; display: grid; gap: 14px; }
.tpl-samples h2, .tpl-more h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.tpl-qs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tpl-q { border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: grid; gap: 8px; background: var(--card); }
.tpl-qt { font-weight: 500; }
.tpl-opt { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.tpl-blank { color: var(--muted-foreground); border-style: dashed; }
.tpl-copy { padding-top: 40px; padding-bottom: 0; }
.tpl-copy h2 { font-size: 22px; letter-spacing: -0.03em; margin-top: 16px; }
.tpl-copy ul { display: grid; gap: 6px; padding-left: 20px; }
.tpl-copy b { color: var(--foreground); font-weight: 600; }
.tpl-index { padding-top: 28px; }
.tpl-more { padding-top: 10px; display: grid; gap: 16px; }
.tpl-card { text-decoration: none; transition: border-color .2s, transform .2s; }
.tpl-card:hover { border-color: var(--ring); transform: translateY(-2px); }
@media (max-width: 520px) { .tpl-grid { grid-template-columns: 1fr; } }

/* Search landing pages, guides and the score calculator */
.seo-links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.seo-links a { color: inherit; text-decoration: none; }
.seo-links a:hover { color: var(--foreground); }
.tpl-copy h3 { font-size: 16px; color: var(--foreground); margin-top: 6px; }
.tpl-copy ol { display: grid; gap: 6px; padding-left: 20px; }
.guide-list { display: grid; gap: 8px; padding-left: 20px; }
.calc { padding: 20px; display: grid; gap: 18px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.calc-out > div { border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: grid; gap: 4px; }
.calc-out b { font-size: 24px; letter-spacing: -0.03em; }
@media (max-width: 640px) { .calc-grid, .calc-out { grid-template-columns: 1fr 1fr; } }

/* Arabic and Kurdish pages */
html[dir="rtl"] body { font-family: 'Noto Sans Arabic', Figtree, system-ui, sans-serif; }
html[dir="rtl"] .tpl-hero h1, html[dir="rtl"] .tpl-copy h2 { letter-spacing: 0; line-height: 1.3; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .crumbs li + li::before { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .tpl-copy ul, html[dir="rtl"] .tpl-copy ol, html[dir="rtl"] .guide-list { padding-left: 0; padding-right: 20px; }
.lang-switch { display: flex; gap: 10px; }
.lang-switch a { color: var(--muted-foreground); text-decoration: none; }
.lang-switch a:hover { color: var(--foreground); }

/* ---------- Enterprise look: midnight hero, aurora glow, glass ---------- */
:root { --midnight: #060a18; --midnight-2: #0b1437; --on-dark: #e8ecff; --on-dark-muted: #a3acd0; --glass: rgb(255 255 255 / .06); --glass-border: rgb(255 255 255 / .12); }

.nav.nav-dark { background: color-mix(in srgb, var(--midnight) 82%, transparent); border-bottom-color: var(--glass-border); color: var(--on-dark); }
.nav.nav-dark .nav-links { color: var(--on-dark-muted); }
.nav.nav-dark .nav-links a:hover { color: #fff; }
.nav.nav-dark .btn.ghost { color: var(--on-dark); }
.nav.nav-dark .btn.ghost:hover { background: var(--glass); }
.nav.nav-dark .btn:not(.ghost) { background: #fff; color: var(--midnight); }

.hero { background: var(--midnight); color: #fff; padding: 88px 0 64px; isolation: isolate; }
.hero-bg { opacity: 1;
  background:
    radial-gradient(700px 380px at 18% -5%, rgb(59 91 253 / .55), transparent 70%),
    radial-gradient(620px 360px at 88% 8%, rgb(0 184 169 / .35), transparent 70%),
    radial-gradient(900px 420px at 50% 115%, rgb(59 91 253 / .35), transparent 70%),
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: none; animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { 0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; filter: hue-rotate(0deg); } 100% { background-position: 60px 20px, -50px 30px, 0 -20px, 0 0, 0 0; filter: hue-rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero .lead { color: var(--on-dark-muted); }
.hero h1 { color: #fff; }
.hero .gradient-text { background: linear-gradient(100deg, #8ea2ff, #3ee0cf 70%); -webkit-background-clip: text; background-clip: text; }
.hero .pill { background: var(--glass); border-color: var(--glass-border); color: var(--on-dark); box-shadow: none; }
.hero .pill .badge.brand { background: rgb(142 162 255 / .18); color: #c9d3ff; }
.btn.glass { background: var(--glass); color: #fff; border-color: var(--glass-border); backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgb(255 255 255 / .12); opacity: 1; }
.btn.brand { background: linear-gradient(120deg, #3b5bfd, #2f49e8 45%, #00b8a9); }
.trust { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--on-dark-muted); font-size: 13px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; color: #3ee0cf; }
.hero .mock { border-color: var(--glass-border); box-shadow: 0 40px 120px -30px rgb(59 91 253 / .55), 0 0 0 1px var(--glass-border), 0 0 0 10px rgb(255 255 255 / .04); }

.ent { border-radius: 24px; padding: clamp(28px, 5vw, 56px); background: var(--midnight); color: #fff; display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; position: relative; overflow: hidden; isolation: isolate; }
.ent::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 300px at 0% 0%, rgb(59 91 253 / .45), transparent 70%), radial-gradient(520px 300px at 100% 100%, rgb(0 184 169 / .3), transparent 70%); }
.ent-head { display: grid; gap: 16px; align-content: start; }
.ent-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.035em; }
.ent-head .lead { color: var(--on-dark-muted); font-size: 16px; }
.ent .eyebrow { color: #8ea2ff; }
.ent-mail { color: var(--on-dark-muted); }
.ent-mail a { color: #fff; }
.ent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ent-grid article { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px; padding: 18px; display: grid; gap: 8px; align-content: start; transition: border-color .2s, transform .2s; }
.ent-grid article:hover { border-color: rgb(142 162 255 / .5); transform: translateY(-2px); }
.ent-grid svg { width: 20px; height: 20px; color: #3ee0cf; }
.ent-grid h3 { font-size: 15px; }
.ent-grid p { color: var(--on-dark-muted); font-size: 13.5px; }
.ent-grid a { color: #fff; }
@media (max-width: 900px) { .ent { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ent-grid { grid-template-columns: 1fr; } }

.tile-icon.brand, .avatar, .logo-mark { background: linear-gradient(135deg, #3b5bfd, #00b8a9); }
.price.featured { border-color: #3b5bfd; box-shadow: 0 0 0 1px #3b5bfd, 0 30px 80px -30px rgb(59 91 253 / .45); }
.cta { background: radial-gradient(500px 220px at 15% 0%, rgb(59 91 253 / .6), transparent 70%), radial-gradient(500px 220px at 100% 100%, rgb(0 184 169 / .45), transparent 70%), var(--midnight); border: 1px solid rgb(255 255 255 / .06); }
.footer a[href^="mailto"] { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.hero .mock { color: var(--foreground); }

/* ===================== Design polish v2: typography, rhythm, bento, motion ===================== */
body { font-feature-settings: 'ss01', 'cv11'; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.section { padding: 112px 20px 0; }
.section-head { gap: 14px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; }
.section-head p { font-size: 16.5px; line-height: 1.65; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); font-size: 11.5px; letter-spacing: .1em; }
.ent .eyebrow { background: rgb(142 162 255 / .12); border-color: rgb(142 162 255 / .25); width: fit-content; }
.tile p, .steps p, .price p { line-height: 1.6; font-size: 14.5px; }
.tile h3 { font-size: 17px; letter-spacing: -0.02em; }

/* Bento: fixed areas so every row is full */
.bento { gap: 16px; }
.bento-features { grid-template-columns: repeat(3, 1fr); grid-template-areas: 'bank bank ai' 'studio secure ai' 'results results share' 'results results fast'; }
.a-bank { grid-area: bank; } .a-ai { grid-area: ai; } .a-studio { grid-area: studio; } .a-secure { grid-area: secure; }
.a-results { grid-area: results; } .a-share { grid-area: share; } .a-fast { grid-area: fast; }
@media (max-width: 900px) { .bento-features { grid-template-columns: 1fr 1fr; grid-template-areas: 'bank bank' 'ai ai' 'studio secure' 'results results' 'share fast'; } }
@media (max-width: 620px) { .bento-features { grid-template-columns: 1fr; grid-template-areas: 'bank' 'ai' 'studio' 'secure' 'results' 'share' 'fast'; } }

/* Tiles: soft depth + cursor spotlight + gradient edge on hover */
.tile { position: relative; padding: 26px; border-radius: 18px; gap: 12px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--muted) 35%, var(--card))); box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 1px 2px rgb(16 24 64 / .04); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%); }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: 0 24px 60px -28px rgb(59 91 253 / .45); }
.tile:hover::before { opacity: 1; }
.tile-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent); }
.tile-icon svg { width: 20px; height: 20px; }
.tile-icon.brand { border: 0; box-shadow: 0 10px 24px -10px rgb(59 91 253 / .8); }

/* Dark AI tile with live typing demo */
.tile-dark { background: radial-gradient(380px 260px at 100% 0%, rgb(0 184 169 / .25), transparent 70%), radial-gradient(420px 300px at 0% 100%, rgb(59 91 253 / .4), transparent 70%), #070b1c; color: #fff; border-color: rgb(255 255 255 / .08); }
.tile-dark .muted { color: #a3acd0; }
.tile-dark::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(142 162 255 / .18), transparent 60%); }
.ai-demo { margin-top: auto; display: grid; gap: 10px; }
.ai-prompt { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 12px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); font-size: 13.5px; color: #e8ecff; min-height: 44px; }
.ai-prompt svg { width: 15px; height: 15px; color: #3ee0cf; flex: none; }
.ai-out { display: grid; gap: 8px; }
.ai-q { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); font-size: 13px; color: #d5dbf5; opacity: 0; transform: translateY(8px); }
.ai-q .badge { margin-left: auto; background: rgb(255 255 255 / .08); color: #c9d3ff; border-color: transparent; }
.ai-q .badge.success { background: rgb(62 224 207 / .14); color: #3ee0cf; }
.ai-demo.play .ai-q { animation: rise .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(1.8s + var(--d) * .45s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Results tile */
.bars { gap: 9px; margin-top: 4px; }
.bars div { height: 30px; border-radius: 8px; }
.bars span { width: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--success) 30%, transparent), color-mix(in srgb, var(--success) 18%, transparent)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bars .warn span { background: linear-gradient(90deg, color-mix(in srgb, var(--warning) 35%, transparent), color-mix(in srgb, var(--warning) 20%, transparent)); }
.bars em { line-height: 30px; }
.is-in .bars span, .bars.is-in span { width: var(--w); }
.bars div:nth-child(2) span { transition-delay: .1s; } .bars div:nth-child(3) span { transition-delay: .2s; } .bars div:nth-child(4) span { transition-delay: .3s; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.kpis div { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; background: var(--card); }
.kpis b { font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 12px; color: var(--muted-foreground); }
.embed-line { margin-top: auto; display: block; font-size: 12px; padding: 10px 12px; border-radius: 10px; background: #070b1c; color: #8ea2ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Steps, packs, pricing refinements */
.steps li, .pack, .price { border-radius: 18px; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.steps li { padding: 26px; background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--muted) 35%, var(--card))); }
.step-n { background: linear-gradient(135deg, #3b5bfd, #00b8a9); color: #fff; box-shadow: 0 8px 20px -8px rgb(59 91 253 / .8); }
.pack { padding: 18px; background: var(--card); }
.pack:hover, .steps li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: 0 20px 50px -28px rgb(59 91 253 / .4); }
.price { border-radius: 20px; padding: 30px; }
.amount { font-size: 46px; }

/* Brand button sheen */
.btn.brand { position: relative; overflow: hidden; }
.btn.brand::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn.brand:hover::after { transform: translateX(120%); }
.btn { transition: background .2s, border-color .2s, opacity .2s, transform .15s, box-shadow .2s; }
.btn.lg:hover { transform: translateY(-1px); }

/* Nav condenses on scroll */
.nav { transition: background .3s, box-shadow .3s; }
.nav.scrolled { box-shadow: 0 10px 30px -20px rgb(0 0 0 / .6); }

/* Hero mock: 3D tilt follows the pointer */
.hero .mock { transform: perspective(1400px) rotateX(var(--rx, 6deg)) rotateY(var(--ry, 0deg)); transform-origin: 50% 0; transition: transform .6s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.hero-inner > *:not(.mock) { animation: hero-in .9s cubic-bezier(.2,.8,.2,1) both; }
.hero-inner > *:nth-child(2) { animation-delay: .06s; } .hero-inner > *:nth-child(3) { animation-delay: .12s; } .hero-inner > *:nth-child(4) { animation-delay: .18s; } .hero-inner > *:nth-child(5) { animation-delay: .24s; }
.hero .mock { animation: mock-in 1.2s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
@keyframes mock-in { from { opacity: 0; transform: perspective(1400px) rotateX(18deg) translateY(40px); } }

/* Scroll reveal */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .8s cubic-bezier(.2,.8,.2,1) var(--rd, 0s), translate .8s cubic-bezier(.2,.8,.2,1) var(--rd, 0s), transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .hero-inner > *, .hero .mock { animation: none; }
  .ai-q { opacity: 1; transform: none; }
  .bars span { width: var(--w); transition: none; }
  .tile, .btn.brand::after { transition: none; }
}
.ai-q { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; flex-wrap: nowrap; }
.ai-q b { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11.5px; background: rgb(142 162 255 / .18); color: #c9d3ff; }
.ai-q span:not(.badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-q .badge { margin-left: 0; }
.bank-demo { margin-top: 6px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 12px 30px -24px rgb(16 24 64 / .35); }
.bank-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-size: 13px; }
.bank-search svg { width: 15px; height: 15px; }
.bank-search span:first-of-type { flex: 1; }
.bank-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; border-top: 1px solid var(--border); }
.bank-row:first-of-type { border-top: 0; }
.bank-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bank-row:nth-child(n+3) { transition: background .3s; }
.tile:hover .bank-row:nth-child(2) { background: var(--brand-soft); }
@media (max-width: 620px) { .bank-row .badge:not(:first-child) { display: none; } }
.tile { display: flex; flex-direction: column; }
.tile > .chips, .tile > .bars { margin-top: 4px; }
.ai-demo, .kpis, .embed-line { margin-top: auto; }
.a-ai .ai-demo { padding-top: 14px; }
.ai-q span:not(.badge) { white-space: normal; overflow: visible; line-height: 1.4; }
.a-results .kpis { padding-top: 12px; }

/* ===================== Friendly theme (Jotform-inspired): Figtree, navy ink, pastel hero, cream bands ===================== */
:root:not([data-theme='dark']) {
  --foreground: #0b1640; --muted-foreground: #4d5585; --border: #e3e6f0; --input: #d9ddeb; --primary: #0b1640; --primary-foreground: #fff;
  --brand: #3b5bfd; --brand-2: #0bb5a1; --brand-soft: #eef1ff; --cream: #fbf6ec; --navy: #0b1640;
}
body { font-family: var(--font); letter-spacing: -0.005em; }
h1, h2, h3 { color: var(--foreground); font-weight: 700; }
.btn { border-radius: 6px; font-weight: 600; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15.5px; }
.btn.brand { background: #3b5bfd; box-shadow: 0 8px 20px -10px rgb(59 91 253 / .7); }
.btn.brand:hover { background: #2f49e8; opacity: 1; }
.btn-navy { background: var(--navy); color: #fff; }
.section-head h2 { font-weight: 700; letter-spacing: -0.035em; }
.eyebrow { background: transparent; border: 0; padding: 0; color: #4d5585; font-weight: 700; letter-spacing: .14em; }
.eyebrow::before, .eyebrow::after { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.tile, .steps li { background: #fff; box-shadow: 0 1px 2px rgb(11 22 64 / .04), 0 8px 24px -16px rgb(11 22 64 / .18); border-color: #e7e9f2; }
.tile-dark { background: radial-gradient(380px 260px at 100% 0%, rgb(11 181 161 / .28), transparent 70%), radial-gradient(420px 300px at 0% 100%, rgb(59 91 253 / .45), transparent 70%), var(--navy); }

/* Nav: white, navy text */
.nav.nav-light { background: rgb(255 255 255 / .92); border-bottom: 1px solid #eceef5; color: var(--navy); }
.nav.nav-light .nav-links { color: #343c6a; font-weight: 500; font-size: 15px; gap: 26px; }
.nav.nav-light .nav-links a:hover { color: #3b5bfd; }
.nav.nav-light .logo { color: var(--navy); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.nav-login { color: var(--navy); font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 0 12px; }
.nav-login:hover { color: #3b5bfd; }
.nav.nav-light .btn.sm { height: 36px; padding: 0 16px; border-radius: 6px; }
.nav.nav-light .btn.ghost { color: var(--navy); }
.nav.nav-light .btn:not(.ghost):not(.btn-navy) { background: var(--navy); color: #fff; }
.nav.nav-light .lang-switch a { color: #4d5585; }

/* Hero: pastel gradient + AI prompt box with glowing border */
.jf-hero { position: relative; overflow: hidden; padding: 72px 0 64px; isolation: isolate; }
.jf-hero-bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 420px at 12% 10%, #dfe3ff, transparent 70%), radial-gradient(640px 420px at 88% 0%, #ffe6d6, transparent 70%), radial-gradient(760px 420px at 60% 100%, #d9f6ef, transparent 70%), #f4f2ff;
  animation: jf-drift 16s ease-in-out infinite alternate; }
@keyframes jf-drift { to { background-position: 40px 20px, -40px 30px, 0 -30px, 0 0; filter: hue-rotate(-8deg); } }
.jf-hero-inner { display: grid; justify-items: center; text-align: center; gap: 22px; max-width: 900px; }
.jf-kicker { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4d5585; }
.jf-kicker span { display: inline-flex; align-items: center; gap: 10px; }
.jf-kicker span::before { content: ''; width: 22px; height: 1.5px; background: currentColor; opacity: .55; }
.jf-kicker-free { color: #7c3aed; background: linear-gradient(90deg, #3b5bfd, #0bb5a1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.jf-hero h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; color: var(--navy); }
.jf-ai { background: linear-gradient(100deg, #3b5bfd 10%, #8b5cf6 55%, #0bb5a1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jf-prompt { width: 100%; text-align: left; background: #fff; border-radius: 16px; padding: 18px 18px 14px; position: relative; isolation: isolate;
  box-shadow: 0 0 0 2px transparent, 0 20px 60px -24px rgb(59 91 253 / .45); }
.jf-prompt::before { content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: 18px; padding: 2px;
  background: conic-gradient(from var(--ang, 0deg), #3b5bfd, #8b5cf6, #f97316, #facc15, #0bb5a1, #3b5bfd);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: jf-spin 6s linear infinite; }
.jf-prompt::after { content: ''; position: absolute; inset: -10px; z-index: -2; border-radius: 26px; filter: blur(22px); opacity: .45;
  background: conic-gradient(from var(--ang, 0deg), #3b5bfd, #8b5cf6, #f97316, #facc15, #0bb5a1, #3b5bfd); animation: jf-spin 6s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes jf-spin { to { --ang: 360deg; } }
.jf-prompt textarea { width: 100%; border: 0; resize: none; font: inherit; font-size: 17px; color: var(--navy); background: transparent; outline: none; min-height: 84px; }
.jf-prompt textarea::placeholder { color: #8e95b8; }
.jf-prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.jf-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; white-space: nowrap; flex: none; padding: 0 14px; border: 1px solid #dde1ee; border-radius: 99px; font-size: 13.5px; font-weight: 500; color: #343c6a; text-decoration: none; transition: border-color .2s, background .2s; }
.jf-chip svg { width: 15px; height: 15px; }
.jf-chip:hover { border-color: #3b5bfd; background: #f5f7ff; }
.jf-go { height: 46px; padding: 0 24px; border-radius: 99px; background: #0bb5a1; color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 10px 24px -12px rgb(11 181 161 / .9); }
.jf-go:hover { background: #089e8c; opacity: 1; }
.jf-go svg { width: 17px; height: 17px; }
.jf-label { width: 100%; text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b7299; margin-top: 10px; }
.jf-recs { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: left; }
.jf-recs a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px; background: rgb(255 255 255 / .85); border: 1px solid #e7e9f2; border-radius: 12px; text-decoration: none; backdrop-filter: blur(6px); transition: transform .25s, box-shadow .25s, border-color .25s; }
.jf-recs a:hover { transform: translateY(-3px); border-color: #c9d1ff; box-shadow: 0 14px 30px -18px rgb(11 22 64 / .35); }
.jf-recs b { font-size: 14.5px; color: var(--navy); }
.jf-recs span:last-child { grid-column: 2; font-size: 12.5px; color: #6b7299; }
.jf-ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.jf-ico svg { width: 19px; height: 19px; }
.jf-ico.c1 { background: #ffe9dc; color: #ea580c; } .jf-ico.c2 { background: #dcfce7; color: #15803d; } .jf-ico.c3 { background: #e0e7ff; color: #3b5bfd; } .jf-ico.c4 { background: #f3e8ff; color: #7c3aed; }
@media (max-width: 900px) { .jf-recs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .jf-recs { grid-template-columns: 1fr; } .jf-go { width: 100%; justify-content: center; } }

/* Navy band with rings and sign-up card */
.jf-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 88px 0; isolation: isolate; }
.jf-band-inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.jf-band h2 { color: #fff; font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.04em; }
.jf-trusted { font-weight: 700; background: linear-gradient(90deg, #8ea2ff, #f9a8d4, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jf-band-lead { color: #c8cde6; font-size: 17px; max-width: 640px; line-height: 1.6; }
.jf-ring { position: absolute; z-index: -1; border-radius: 50%; border: 22px solid rgb(59 91 253 / .28); }
.jf-ring.r1 { width: 300px; height: 300px; left: -120px; top: 60px; }
.jf-ring.r2 { width: 360px; height: 360px; right: -150px; bottom: -60px; border-color: rgb(11 181 161 / .22); }
.jf-ring.r3 { width: 60px; height: 60px; border-width: 12px; left: 14%; top: 40px; border-color: rgb(142 162 255 / .35); animation: jf-bob 6s ease-in-out infinite; }
@keyframes jf-bob { 50% { transform: translateY(18px); } }
.jf-signup { width: min(380px, 100%); background: #fff; border-radius: 14px; padding: 20px; display: grid; gap: 10px; margin-top: 10px; position: relative;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .2), 0 0 40px rgb(142 162 255 / .45); }
.jf-signup .btn { height: 48px; border-radius: 8px; font-size: 15.5px; justify-content: center; }
.jf-btn-primary { background: #3b5bfd; color: #fff; }
.jf-btn-primary:hover { background: #2f49e8; opacity: 1; }
.jf-btn-dark { background: #1f2333; color: #fff; }
.jf-btn-outline { background: #fff; color: var(--navy); border-color: #d9ddeb; }
.jf-or { display: flex; align-items: center; gap: 10px; color: #8e95b8; font-size: 12px; text-transform: uppercase; }
.jf-or::before, .jf-or::after { content: ''; flex: 1; height: 1px; background: #e3e6f0; }
.jf-free { color: #4d5585; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.jf-final { margin-top: 110px; }

/* Cream section: three friendly columns with mini product art */
.jf-cream { background: var(--cream); padding: 88px 0; }
.jf-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.jf-three article { display: grid; gap: 14px; align-content: start; }
.jf-three h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; color: var(--navy); }
.jf-three p { color: #343c6a; font-size: 16px; line-height: 1.6; }
.jf-art { aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; padding: 22px; overflow: hidden; }
.jf-art.a1 { background: #dbeafe; } .jf-art.a2 { background: #ffe4d6; } .jf-art.a3 { background: #e9e3ff; }
.jf-mini { width: 100%; max-width: 270px; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 20px 40px -24px rgb(11 22 64 / .45); display: grid; gap: 8px; font-size: 12.5px; color: #343c6a; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.jf-three article:hover .jf-mini { transform: translateY(-6px) rotate(-1deg); }
.jf-mini-head { font-weight: 700; color: var(--navy); font-size: 13px; }
.jf-mini-row { display: flex; gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid #eceef5; border-radius: 8px; }
.jf-mini-row i { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid #9aa2c7; flex: none; }
.jf-mini-row.on { border-color: #3b5bfd; background: #f2f4ff; }
.jf-mini-row.on i { background: #3b5bfd; border-color: #3b5bfd; }
.jf-mini-add { color: #3b5bfd; font-weight: 600; padding: 4px 2px; }
.jf-mini-cand { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #f0f1f7; }
.jf-mini-cand span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #eef1ff; color: #3b5bfd; font-weight: 700; font-size: 10px; }
.jf-mini-cand b { margin-left: auto; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.jf-mini-cand b.ok { background: #dcfce7; color: #15803d; } .jf-mini-cand b.warn { background: #ffedd5; color: #c2410c; }
.jf-mini-big { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 8px; }
.jf-mini-big span { font-size: 12px; font-weight: 500; color: #6b7299; }
.jf-mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.jf-mini-bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #3b5bfd, #8b5cf6); }
@media (max-width: 860px) { .jf-three { grid-template-columns: 1fr; } }

/* Footer: big columns */
.jf-footer { border-top: 1px solid #eceef5; padding: 64px 0 34px; margin-top: 0; }
.jf-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.jf-foot-brand { display: grid; gap: 12px; align-content: start; }
.jf-foot-brand .logo { color: var(--navy); font-weight: 700; font-size: 18px; }
.jf-foot-brand p { color: #4d5585; max-width: 260px; }
.jf-foot-mail { display: inline-flex; gap: 8px; align-items: center; color: var(--navy); font-weight: 600; text-decoration: none; }
.jf-foot-mail svg { width: 16px; height: 16px; }
.jf-footer nav { display: grid; gap: 10px; align-content: start; }
.jf-footer nav b { color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.jf-footer nav a { color: #4d5585; text-decoration: none; font-size: 14.5px; }
.jf-footer nav a:hover { color: #3b5bfd; }
.jf-foot-sub { margin-top: 10px; }
.jf-copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid #eceef5; color: #6b7299; font-size: 13px; }
@media (max-width: 900px) { .jf-foot-grid { grid-template-columns: 1fr 1fr; } .jf-foot-brand { grid-column: 1 / -1; } }

/* Shared marketing pages pick up the same friendly look */
.tpl-hero { padding-top: 56px; }
.tpl-hero h1 { color: var(--navy); font-weight: 800; }
.cta { background: var(--navy); border-radius: 18px; }
.cta-btn { background: #fff; color: var(--navy); border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .jf-hero-bg, .jf-prompt::before, .jf-prompt::after, .jf-ring.r3 { animation: none; } }
.jf-prompt::after { display: none; }
.jf-prompt { box-shadow: 0 0 34px -4px rgb(139 92 246 / .35), 0 0 70px -10px rgb(11 181 161 / .3), 0 24px 60px -30px rgb(11 22 64 / .5); }
.jf-prompt-bar { flex-wrap: nowrap; }
.jf-prompt-bar > .row { flex: 1 1 auto; gap: 8px; }
.jf-go { flex: none; }
@media (max-width: 560px) { .jf-prompt-bar { flex-wrap: wrap; } }
.tile-dark h3, .ent h2, .ent h3, .cta h2, .jf-band h2, .hero h1 { color: #fff; }
@media (max-width: 560px) {
  .jf-kicker { gap: 6px; font-size: 11.5px; }
  .jf-kicker span::before { display: none; }
  .jf-prompt-bar > .row { flex-wrap: wrap; padding: 0; gap: 8px; }
  .jf-chip { padding: 0 12px; font-size: 13px; }
}

/* SEO resources strip and guide byline */
.byline { margin-top: -4px; }
.resources { padding-top: 40px; display: grid; gap: 12px; }
.resources h2 { font-size: 20px; letter-spacing: -0.02em; }
.resource-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.resource-links a { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--foreground); font-weight: 500; font-size: 14px; background: var(--card); transition: border-color .2s, transform .2s; }
.resource-links a:hover { border-color: var(--brand); transform: translateY(-2px); }
.resource-links svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
/* Accessible teal: white text needs at least 4.5:1 contrast */
.jf-go { background: #087f72; box-shadow: 0 10px 24px -12px rgb(8 127 114 / .9); }
.jf-go:hover { background: #066a5f; }

/* Live quiz preview in the "Teach and play live" section */
.live-demo { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 6px; align-items: start; }
.live-code { grid-row: span 2; display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .1); text-align: center; }
.live-code span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #a3acd0; }
.live-code b { font-family: var(--mono); font-size: 26px; letter-spacing: .06em; color: #fff; white-space: nowrap; }
.live-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.live-tiles span { padding: 10px 12px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .2); }
.live-tiles .t0 { background: #e5484d; } .live-tiles .t1 { background: #3b5bfd; } .live-tiles .t2 { background: #f5a524; } .live-tiles .t3 { background: #12a594; }
.live-tiles .ok { outline: 2px solid #fff; outline-offset: 2px; }
.live-board { display: grid; gap: 6px; }
.live-board div { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 9px; background: rgb(255 255 255 / .06); font-size: 13px; color: #e9ecfb; }
.live-board em { font-style: normal; font-weight: 800; color: #f5c542; }
.live-board b { font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .live-demo { grid-template-columns: 1fr; } .live-code { grid-row: auto; } }

.nav-links a { white-space: nowrap; }
@media (max-width: 1040px) { .nav-links a[href='/services'], .nav-links a[href='#enterprise'] { display: none; } }

/* Phone menu: the ☰ button opens the header links as a panel; Log in stays visible on phones. */
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--background); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--foreground); transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-login { white-space: nowrap; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav.nav-open .nav-links { display: grid; position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0; box-sizing: border-box; gap: 0; padding: 8px 20px 14px; max-height: calc(100dvh - 70px); overflow: auto; background: var(--background); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px -18px rgb(16 24 64 / .25); font-size: 16px; }
  .nav.nav-open .nav-links a { display: block !important; padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--foreground); }
  .nav.nav-open .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 440px) {
  .nav > .wrap { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .nav .logo { font-size: 15px; gap: 6px; }
  .nav .logo img { width: 22px; height: 22px; }
  .nav .row { gap: 6px; }
  .nav-login, .nav .btn.ghost.sm { padding: 0 6px; }
  .nav .btn.sm:not(.ghost) { padding: 0 10px; }
  .nav-toggle { width: 36px; height: 36px; }
}
@media (max-width: 340px) { .nav .logo { font-size: 0; } }
/* Arabic and Kurdish button labels are longer: on phones the logo icon stands alone. */
@media (max-width: 440px) { [dir='rtl'] .nav .logo { font-size: 0; gap: 0; } [dir='rtl'] .nav .logo img { width: 28px; height: 28px; } }

.show-sm, .nav-lang { display: none; }
@media (max-width: 640px) { .show-sm { display: inline; } }
@media (max-width: 820px) { .nav .lang-switch { display: none; } }

.jf-mini-cand span { font-size: 11.5px !important; }
.live-code span { font-size: 11.5px; }

/* Free AI quiz generator */
.aiq-form { display: grid; gap: 14px; }
.aiq-wait, .aiq-err, .aiq-end { padding: 18px; display: grid; gap: 12px; margin-top: 16px; }
.aiq-wait { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
.aiq-quiz { display: grid; gap: 12px; margin-top: 16px; }
.aiq-q { padding: 18px; display: grid; gap: 10px; }
.aiq-p { font-size: 17px; line-height: 1.4; }
.aiq-opts { display: grid; gap: 8px; }
.aiq-opt { text-align: start; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--card); color: var(--foreground); font: inherit; font-size: 15px; cursor: pointer; }
.aiq-opt:hover { border-color: var(--brand); }
.aiq-opt.right { border-color: #16a34a; background: #f0fdf4; color: #14532d; }
.aiq-opt.wrong { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
.aiq-q.done .aiq-opt { cursor: default; }
.aiq-exp { padding: 10px 12px; border-radius: 10px; background: var(--muted); }
.aiq-share { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
