/* smartplaygrounds.ro – public pages (generated by scripts/build-site.js) */

/* Headings: Outfit, served from this site (SIL Open Font License), latin + latin-ext for ă â î ș ț.
   Body text uses the device font (no download). */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/outfit-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/outfit-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --soft: #f5f7ff;
    --brand: #5b4bea;
    --brand-dark: #4335c9;
    --brand-soft: #eceaff;
    --pink: #e9468f;
    --green: #10b981;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
    --display: 'Outfit', system-ui, sans-serif;
    --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 88px 0; }
.section.soft { background: var(--soft); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1rem; padding: 14px 24px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(91, 75, 234, 0.35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; border-radius: 11px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(91, 75, 234, 0.45); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
    .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 420px) { .nav-actions .btn-primary { display: none; } }

/* hero */
.hero { padding: 72px 0 40px; background: radial-gradient(circle at 85% 0%, #ece9ff 0, transparent 45%), radial-gradient(circle at 0% 40%, #fdeaf3 0, transparent 35%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; color: var(--muted); }
.checks li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 6px; }
.frame { border-radius: 16px; background: #0b0f19; padding: 34px 0 0; box-shadow: 0 30px 80px rgba(30, 27, 75, 0.35); position: relative; overflow: hidden; border: 1px solid #1f2937; }
.frame::before { content: ''; position: absolute; top: 13px; left: 16px; width: 10px; height: 10px; border-radius: 50%; background: #f87171; box-shadow: 16px 0 #fbbf24, 32px 0 #34d399; }
.frame img { width: 100%; }
.hero .frame { transform: perspective(1600px) rotateY(-8deg) rotateX(2deg); }
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero .frame { transform: none; }
}

/* cards & grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 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: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.6em; }
.card a.more { font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.section-head { margin-bottom: 44px; }

/* comparison */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-family: var(--display); color: var(--ink); background: #fafbff; }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 26%; }
.compare .no { color: #b91c1c; }
.compare .yes { color: #047857; }
@media (max-width: 640px) { .compare th, .compare td { padding: 12px; font-size: 0.9rem; } }
.table-scroll { overflow-x: auto; }

/* screenshot tabs */
.shots-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.shots-tabs button { font-family: var(--display); font-weight: 600; font-size: 0.95rem; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.shots-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.shot-caption { text-align: center; color: var(--muted); margin-top: 18px; }

/* case study */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #0f766e, #155e75); color: #e6fffb; border-radius: 26px; padding: 48px; }
.case h2, .case h3 { color: #fff; }
.case ul { padding-left: 1.1em; }
.case .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; padding: 30px; } }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* pricing */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -14px; left: 26px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; }
.price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--ink); margin: 6px 0 2px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 0.97rem; border-bottom: 1px dashed var(--line); }
.plan li::before { content: '✓'; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.plan li.off { color: #94a3b8; }
.plan li.off::before { content: '–'; color: #cbd5e1; }
.note { color: var(--muted); font-size: 0.92rem; }

/* faq */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--display); font-weight: 700; 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.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 22px 18px; color: var(--text); }

/* forms */
.form-card { background: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
label.f input, label.f select, label.f textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 11px; background: #fff; color: var(--ink); width: 100%; }
label.f textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-msg { margin-top: 12px; font-weight: 600; }
.form-msg.ok { color: #047857; }
.form-msg.err { color: #b91c1c; }
.demo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

/* dialog (registration) */
dialog.reg { border: 0; border-radius: 22px; padding: 0; width: min(640px, 94vw); box-shadow: var(--shadow); }
dialog.reg::backdrop { background: rgba(15, 23, 42, 0.6); }
dialog.reg .inner { padding: 30px; }
dialog.reg .close { float: right; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); }

/* article pages */
.page-hero { padding: 64px 0 36px; background: var(--soft); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.prose { padding: 48px 0 72px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose .frame { margin: 30px 0; }
.callout { background: var(--brand-soft); border-radius: 16px; padding: 22px 26px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--brand), #7c3aed 55%, var(--pink)); color: #fff; border-radius: 26px; padding: 54px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }

/* footer */
.site-footer { background: #0b1020; color: #94a3b8; padding: 60px 0 30px; font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .hero { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card { transition: none; }
}
