/* =====================================================================
   Product website: pages
   1. Home hero  2. Facts  3. Stories  4. Proof  5. Inner hero
   6. Features  7. Pricing  8. Splits and notes  9. Contact
   10. Legal and prose  11. Updates  12. 404
   ===================================================================== */

/* 1. Home hero ----------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(40px, 4.5vw, 72px); overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
	background:
		radial-gradient(40% 50% at 50% 30%, var(--accent-soft), transparent 70%),
		linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px;
	-webkit-mask-image: radial-gradient(60% 60% at 50% 20%, #000 20%, transparent 75%);
	mask-image: radial-gradient(60% 60% at 50% 20%, #000 20%, transparent 75%);
	opacity: .7;
}
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { max-width: 17ch; font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.5rem); }
.hero-lead { margin: 20px auto 30px; max-width: 36em; }
.hero .cta-row { justify-content: center; }
.hero-visual { position: relative; margin-top: clamp(36px, 4vw, 56px); }
.hero-stage { position: relative; padding-bottom: 56px; }
.hero-stage > .app { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .04); }
.hero-phone { position: absolute; right: clamp(-24px, -1vw, 0px); bottom: 0; width: 230px; filter: drop-shadow(0 30px 40px rgba(10, 12, 20, .35)); }
@media (min-width: 1101px) { .hero-stage .app-body { padding-right: 250px; } }
@media (max-width: 1100px) { .hero-phone { display: none; } .hero-stage { padding-bottom: 0; } }
@media (max-width: 640px) {
	.hero h1 { max-width: 12ch; }
	.hero .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
	.hero .cta-row .btn { width: 100%; }
}

/* 2. Facts strip ----------------------------------------------------------- */
.facts { padding-block: 40px 8px; }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.facts-list li { padding: 8px 24px; border-left: 1px solid var(--line); }
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.facts-list strong { display: block; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.facts-list span { display: block; margin-top: 6px; color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.45; max-width: 24ch; }
@media (max-width: 860px) { .facts-list { grid-template-columns: 1fr 1fr; gap: 24px 0; } .facts-list li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 400px) { .facts-list li { padding: 4px 12px; } }

/* 3. Stories (alternating) ----------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.is-flipped .story-grid { grid-template-columns: 7fr 5fr; }
.is-flipped .story-copy { order: 2; }
.story-copy h2 { margin-bottom: 18px; }
.story-text { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.6; max-width: 36em; margin-bottom: 24px; }
.story-copy .ticks { margin-bottom: 18px; }
.story-visual.is-phone { display: grid; place-items: center; padding: 40px 16px; border-radius: 28px; background: var(--band); }
@media (max-width: 900px) {
	.story-grid, .is-flipped .story-grid { grid-template-columns: 1fr; }
	.is-flipped .story-copy { order: 0; }
}
.stack-sec { background: var(--bg-2); border-block: 1px solid var(--line); }

/* 4. Proof ------------------------------------------------------------------------ */
.proof-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.proof-stats { display: grid; gap: 0; }
.proof-stats > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.proof-stats > div:last-child { border-bottom: 1px solid var(--line); }
.proof-stats dd { order: -1; font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.proof-stats dt { color: var(--ink-3); font-size: var(--fs-sm); }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }
.pricing-teaser { background: var(--bg-2); border-top: 1px solid var(--line); }

/* 5. Inner hero ------------------------------------------------------------------------ */
.page-hero { position: relative; padding-block: clamp(56px, 7vw, 112px) clamp(32px, 4vw, 56px); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); }
.page-hero .lead { margin-top: 22px; }
.page-hero .cta-row { margin-top: 32px; }
.page-hero.is-small { padding-block: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 32px); }
.page-hero.is-small h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem); letter-spacing: -.03em; line-height: 1.08; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: var(--fs-sm); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) { .crumbs a:hover { color: var(--accent-text); } }
.meta-line { margin-top: 14px; color: var(--ink-3); font-size: var(--fs-sm); }

/* 6. Features ------------------------------------------------------------------------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.subnav ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 9px; white-space: nowrap; font-size: var(--fs-sm); font-weight: 520; color: var(--ink-2); }
.subnav a .ic { width: 17px; height: 17px; color: var(--ink-3); }
.subnav a.is-current, .subnav a:hover { color: var(--ink); background: var(--surface-2); }
.subnav a.is-current .ic { color: var(--accent-text); }
.feature { scroll-margin-top: calc(var(--header-h) + 60px); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.no-visual .story-grid { grid-template-columns: 5fr 7fr; align-items: start; }
.feature.no-visual .story-copy { order: 0; }
.feature.no-visual .story-copy .story-text { margin-bottom: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; margin-top: 36px; }
@media (max-width: 1100px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
.pilot-note { display: flex; gap: 10px; align-items: baseline; margin-top: 20px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.badge-pilot { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11.5px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.mini-grid h3 { font-size: 1rem; margin: 10px 0 4px; }
.mini-grid p { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 860px) { .mini-grid { grid-template-columns: 1fr 1fr; } .feature.no-visual .story-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mini-grid { grid-template-columns: 1fr; } }
.also { background: var(--bg-2); border-top: 1px solid var(--line); }
.also-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.also-shots:empty { display: none; }
@media (max-width: 860px) { .also-shots { grid-template-columns: 1fr; } }

/* 7. Pricing ---------------------------------------------------------------------------- */
.pricing-main { padding-top: 0; }
.included { margin-top: 48px; padding: 28px 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.included h2, .addons h2 { margin-bottom: 18px; }
.addons { margin-top: 56px; }
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.addon { padding: 24px; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); }
.addon h3 { font-size: 1.0625rem; }
.addon-price { margin: 6px 0 10px; font-weight: 620; color: var(--accent-text); }
.addon p:last-child { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 860px) { .addon-grid { grid-template-columns: 1fr; } .included { padding: 22px 20px; } }
.compare { background: var(--bg-2); border-top: 1px solid var(--line); }
.compare h2 { margin-bottom: 32px; }
.table-scroll { position: relative; overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); }
.matrix th, .matrix td { padding: 13px 20px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix th[scope="row"] { text-align: left; font-weight: 450; color: var(--ink-2); width: 46%; }
.matrix thead th { position: sticky; top: 0; background: var(--surface); font-size: 1rem; font-weight: 640; padding-block: 20px; }
.matrix thead th small { display: block; font-weight: 450; color: var(--ink-3); font-size: var(--fs-xs); margin-top: 2px; }
.matrix .group th { text-align: left; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .02em; color: var(--ink); padding-block: 10px; }
.matrix td.is-featured, .matrix th.is-featured { background: var(--accent-soft); }
.matrix .ic { margin: 0 auto; }
.matrix .yes { color: var(--accent-text); stroke-width: 2; }
.matrix .no { color: var(--ink-3); opacity: .6; }
.matrix tbody:last-child tr:last-child > * { border-bottom: 0; }
/* Phones: each feature gets its own line with the three plan values under it,
   and the plan names stay pinned under the site header while you scroll. */
@media (max-width: 640px) {
	.table-scroll { overflow: visible; }
	.matrix { min-width: 0; font-size: .875rem; }
	.matrix thead, .matrix tbody { display: block; }
	.matrix tr { display: grid; grid-template-columns: repeat(3, 1fr); }
	.matrix thead { position: sticky; top: var(--header-h); z-index: 2; }
	.matrix thead tr { border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
	.matrix thead th { padding: 12px 4px; font-size: .9375rem; border-bottom: 0; }
	.matrix thead th:first-child { display: none; }
	.matrix th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 12px 16px 2px; border-bottom: 0; color: var(--ink); font-weight: 520; }
	.matrix td { padding: 6px 4px 12px; }
	.matrix .group th { grid-column: 1 / -1; padding-left: 16px; }
}
.setup-note { max-width: 64ch; margin: 28px auto 0; text-align: center; color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.55; }

/* 8. Splits and notes ----------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-wide { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-wide h2 { margin-bottom: 28px; }
.sticky-visual { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: 1fr; } .sticky-visual { position: static; } }
.note-card { max-width: 820px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.note-card p { color: var(--ink-2); margin: 14px 0 24px; max-width: 64ch; }
.facts-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.facts-dl > div { background: var(--surface); padding: 18px 20px; }
.facts-dl dt { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 4px; }
.facts-dl dd { overflow-wrap: anywhere; }
.prose .facts-dl { grid-template-columns: 1fr; }
@media (max-width: 760px) { .facts-dl { grid-template-columns: 1fr; } }

/* 9. Contact ----------------------------------------------------------------------------------- */
.contact-sec { padding-block: clamp(40px, 5vw, 80px) var(--section); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; grid-template-areas: "intro form" "side form"; gap: 0 clamp(32px, 6vw, 88px); align-items: start; }
.contact-intro { grid-area: intro; }
.contact-intro h1 { margin-top: 18px; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); letter-spacing: -.035em; line-height: 1.04; }
.contact-intro .lead { margin-top: 18px; }
.assure { display: grid; gap: 10px; margin: 24px 0 36px; }
.assure li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: var(--fs-sm); }
.assure .ic { flex: none; color: var(--accent-text); }
.contact-side { grid-area: side; }
.form-card { grid-area: form; }
.contact-direct { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-sm); }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 24px); outline: none; }
.lead-form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 16px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 7px; align-content: start; }
.field > label { font-size: var(--fs-sm); font-weight: 560; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field-check .check { font-size: var(--fs-sm); color: var(--ink-2); }
.field-check a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.field-error { display: flex; gap: 6px; align-items: center; color: var(--bad); font-size: var(--fs-xs); font-weight: 520; }
.field-error .ic { width: 15px; height: 15px; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; background: var(--bad-soft); color: var(--bad); font-size: var(--fs-sm); font-weight: 520; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.form-note { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: var(--fs-xs); }
.form-note .ic { width: 15px; height: 15px; }
.lead-form.is-sending button[type="submit"] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { display: grid; gap: 14px; justify-items: start; padding-block: 12px; }
.ok-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.ok-ic .ic { width: 26px; height: 26px; stroke-width: 2; }
.form-ok p { color: var(--ink-2); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "side"; } .contact-side { margin-top: 48px; } .assure { margin-bottom: 28px; } }
@media (max-width: 640px) { .form-row.two, .form-row.three { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* 10. Legal and prose --------------------------------------------------------------------------- */
.legal-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 80px); padding-bottom: var(--section); }
.legal-nav ul { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 2px; }
.legal-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--ink-2); font-size: var(--fs-sm); }
.legal-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 560; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
@media (max-width: 760px) { .legal-grid { grid-template-columns: 1fr; } .legal-nav ul { position: static; display: flex; flex-wrap: wrap; } }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.375rem; letter-spacing: -.015em; margin-top: 2em; color: var(--ink); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--ink); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius); background: var(--surface-2); font-size: .9em; }
.prose-lg { font-size: var(--fs-lg); line-height: 1.65; }
.prose-lg p:first-child { color: var(--ink); }
.lead-sm { font-size: 1.125rem; color: var(--ink); }

/* 11. Updates -------------------------------------------------------------------------------------- */
.updates { padding-top: 0; }
.update-list { border-top: 1px solid var(--line); max-width: 900px; }
.update { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.update time { color: var(--ink-3); font-size: var(--fs-sm); padding-top: 4px; }
.update h2 a { transition: color .15s var(--ease); }
@media (hover: hover) { .update h2 a:hover { color: var(--accent-text); } }
.update p { color: var(--ink-2); margin: 8px 0 4px; }
@media (max-width: 640px) { .update { grid-template-columns: 1fr; gap: 6px; } }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; color: var(--ink-3); font-size: var(--fs-sm); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.post-nav a { color: var(--accent-text); }
.empty-note { padding: 48px 0; color: var(--ink-3); }

/* 12. 404 ------------------------------------------------------------------------------------------- */
.nf { padding-bottom: var(--section); }
.nf-code { font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: .85; color: var(--accent-text); opacity: .9; margin-bottom: 12px; }
.nf-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 640px; margin-top: 36px; }
.nf-links a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-weight: 560; transition: border-color .15s var(--ease); }
.nf-links .ic { color: var(--ink-3); }
@media (hover: hover) { .nf-links a:hover { border-color: var(--accent); } }
@media (max-width: 520px) { .nf-links { grid-template-columns: 1fr; } }
.proof-grid h2 { margin-bottom: 18px; }

.steps-sec h2 + .card-grid { margin-top: 36px; }
.page-hero + .section { padding-top: clamp(32px, 4vw, 64px); }

/* Accessibility: links that stand alone on a line get a 24px target (WCAG 2.5.8); the language name in the footer uses the
   system font so that "Slovenščina" does not make every English page download the Latin Extended font file. */
dd a, .footer-mail a, .contact-direct a { display: inline-block; min-height: 24px; line-height: 24px; }
.site-footer a[hreflang] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Changelog ("What's new" on /updates/, data in inc/content/changelog.php) ------------- */
.h-md { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: -.025em; margin-bottom: 8px; }
.changelog { padding-top: 0; }
.changelog + .updates { padding-top: 0; }
.cl-month { max-width: 900px; margin-top: 40px; }
.cl-month-title { position: sticky; top: calc(var(--header-h) + 8px); z-index: 1; display: inline-block; margin: 0 0 4px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.cl-list { border-top: 1px solid var(--line); }
.cl-release { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.cl-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 0; padding-top: 3px; color: var(--ink-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.cl-ver { padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: var(--fs-xs); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cl-title { margin: 0 0 12px; font-size: 1.1875rem; letter-spacing: -.015em; }
.cl-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cl-items li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); }
.cl-tag { flex: none; min-width: 78px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; text-align: center; text-transform: uppercase; background: var(--surface-2); color: var(--ink-2); }
.cl-tag.is-new { background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 640px) {
	.cl-release { grid-template-columns: 1fr; gap: 8px; }
	.cl-meta { flex-direction: row; align-items: center; }
	.cl-items li { flex-direction: column; gap: 4px; }
	.cl-tag { min-width: 0; }
}
.name-story { padding-left: 18px; border-left: 2px solid var(--accent); color: var(--ink-2); font-style: normal; }
