/* SignaNova theme: tokens, layout, components. WCAG 2.2 AA throughout. */

:root {
	--navy: #16324F;
	--navy-2: #1E3F5F;
	--teal: #2BB3C0;          /* decorative only: fills, icons on dark */
	--teal-text: #17777F;     /* teal as text or small accents on light: 5.3:1 */
	--teal-light: #9ADCE3;    /* text on navy: 10.5:1 */
	--tint: #EEF3F6;
	--line: #C9D3DC;
	--text: #2B3A48;
	--muted: #5E6B78;
	--amber: #9A6200;
	--white: #FFFFFF;
	--radius: 12px;
	--radius-sm: 8px;
	--wrap: 1200px;
	--gutter: 16px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--shadow: 0 1px 2px rgba(22, 50, 79, 0.06), 0 8px 24px rgba(22, 50, 79, 0.06);
}

/* Inter, self-hosted (SIL Open Font License, see assets/fonts/LICENSE-Inter-OFL.txt). Latin and Latin Extended cover English and Croatian. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); 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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); 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; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); }
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.sn-section--navy :focus-visible, .sn-hero :focus-visible, .sn-header :focus-visible { outline-color: var(--teal-light); }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding: 0; }
.sn-list-plain { list-style: none; }

/* Type scale: three sizes plus captions */
.sn-h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.sn-h1--display { font-size: clamp(2.25rem, 5.5vw, 4rem); color: var(--white); }
.sn-h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.18; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.sn-h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--navy); }
.sn-h4 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; color: var(--navy); }
.sn-lead { font-size: 1.125rem; line-height: 1.6; max-width: 36rem; }
.sn-lead--navy { color: var(--navy); font-weight: 600; font-size: 1.375rem; }
.sn-intro { color: var(--muted); max-width: 42rem; margin-top: 0.75rem; font-size: 1.0625rem; }
.sn-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 1rem; }
.sn-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 1rem; }
.sn-note { color: var(--muted); font-size: 0.9375rem; font-style: italic; margin-top: 2rem; max-width: 60rem; }
.sn-closing-line { margin-top: 2rem; font-style: italic; color: var(--teal-text); font-size: 1.0625rem; }
.sn-closing-line.is-dark { color: var(--teal-light); }
.sn-time { color: var(--teal-text); margin-right: 0.35rem; }

/* Layout */
.sn-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sn-section { padding: clamp(3rem, 7vw, 6rem) 0; }
.sn-section--tint { background: var(--tint); }
.sn-section--navy { background: var(--navy); color: #DCE6EE; }
.sn-section--navy .sn-h2, .sn-section--navy .sn-h3, .sn-section--navy .sn-h4 { color: var(--white); }
.sn-section--navy .sn-intro { color: #DCE6EE; }
.sn-section--navy p { color: #DCE6EE; }
.sn-section--page { padding-bottom: clamp(2rem, 4vw, 3rem); }
.sn-section-head { margin-bottom: 2rem; }
.sn-grid { display: grid; gap: 1.25rem; margin-top: 1rem; }
.sn-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sn-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sn-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sn-grid--5 { grid-template-columns: repeat(5, 1fr); }
.sn-grid--plain { gap: 2rem; }
.sn-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.sn-split--form { align-items: start; }
.sn-prose > * { max-width: 48rem; }
.sn-prose h2 { font-size: 1.5rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.sn-prose h3 { font-size: 1.2rem; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.sn-prose-narrow > * { max-width: 44rem; }
.sn-prose-narrow > * + *, .sn-prose > * + * { margin-top: 1rem; }
.sn-prose-narrow > h2, .sn-prose > h2 { margin-top: 2rem; }
.sn-prose-narrow ul, .sn-prose ul { padding-left: 1.25rem; }
.sn-prose-narrow li + li, .sn-prose li + li { margin-top: 0.35rem; }

/* Components */
.sn-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.75rem; }
.sn-section--tint .sn-card { box-shadow: none; }
.sn-section:not(.sn-section--tint) .sn-card { background: var(--tint); box-shadow: none; }
.sn-card__head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.sn-card__head .sn-h3 { flex: 1 1 auto; }
.sn-card p { color: var(--text); font-size: 0.9875rem; }
.sn-card--link { text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.sn-card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sn-circle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: 0 0 auto; background: var(--teal); color: var(--navy); }
.sn-circle--navy { background: var(--navy); color: var(--white); }
.sn-icon { width: 1.3rem; height: 1.3rem; }
.sn-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.3rem 0.75rem; border-radius: 999px; color: var(--navy); }
.sn-badge.is-live { background: var(--teal); }
.sn-badge.is-dev { background: #C7D3DC; }
.sn-btn { display: inline-block; font-weight: 700; font-size: 1rem; padding: 0.8rem 1.4rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; line-height: 1.2; min-height: 44px; }
.sn-btn--primary { background: var(--teal); color: var(--navy); }
.sn-btn--primary:hover { background: #22A3B0; color: var(--navy); }
.sn-btn--secondary { background: var(--navy); color: var(--white); }
.sn-btn--secondary:hover { background: var(--navy-2); color: var(--white); }
.sn-btn--ghost { background: transparent; color: var(--white); border-color: var(--teal-light); }
.sn-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.sn-textlink { font-weight: 600; }
.sn-benefit { display: flex; gap: 1rem; align-items: flex-start; }
.sn-benefit p { font-size: 0.9875rem; }
.sn-benefit--dark .sn-h4 { color: var(--white); }
.sn-bullets { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.9rem; }
.sn-bullets li { display: flex; gap: 0.9rem; align-items: center; }
.sn-bullets .sn-circle { width: 2.25rem; height: 2.25rem; }
.sn-bullets .sn-icon { width: 1.05rem; height: 1.05rem; }
.sn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.sn-stat__n { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--teal-text); line-height: 1; }
.sn-stat__t { color: var(--text); font-size: 0.9875rem; margin-top: 0.4rem; max-width: 22rem; }
.sn-tile { background: var(--tint); border-radius: var(--radius); padding: 1.25rem; }
.sn-tile__t { color: var(--teal-text); margin-bottom: 0.35rem; }
.sn-tile p { font-size: 0.9375rem; }
.sn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.sn-pair img { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 551 / 812; }
.sn-pair figcaption { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); font-style: italic; }
.sn-chain { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; margin-top: 1rem; }
.sn-chain__step { background: var(--white); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.6rem; align-content: start; position: relative; }
.sn-chain__step.is-last { background: var(--navy); }
.sn-chain__step.is-last .sn-h4 { color: var(--white); }
.sn-chain__step.is-last p { color: #DCE6EE; }
.sn-chain__step p { font-size: 0.9375rem; }
.sn-chain__step:not(:last-child)::after { content: "→"; position: absolute; right: -0.95rem; top: 1.5rem; color: var(--teal-text); font-weight: 700; font-size: 1.1rem; }
.sn-whynow { margin-top: 2.5rem; background: var(--navy); color: #DCE6EE; border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.sn-whynow__label { color: var(--teal-light); font-weight: 700; margin-bottom: 0.5rem; }
.sn-whynow p { color: #DCE6EE; }

/* Header */
.sn-skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.sn-skip:focus { top: 1rem; }
.sn-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.sn-home .sn-header, .sn-header.is-dark { background: var(--navy); border-bottom-color: var(--navy); }
.sn-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.sn-logo { display: inline-flex; margin-right: auto; }
.sn-logo img { width: auto; height: 32px; }
.sn-logo__white { display: none; }
.sn-home .sn-logo__navy { display: none; }
.sn-home .sn-logo__white { display: block; }
.sn-nav { display: flex; align-items: center; gap: 1.25rem; }
.sn-nav__list { list-style: none; display: flex; gap: 1.25rem; }
.sn-nav__list a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 0.5rem 0.1rem; display: inline-block; }
.sn-nav__list a:hover, .sn-nav__list .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }
.sn-home .sn-nav__list a { color: var(--white); }
.sn-nav__cta { padding: 0.6rem 1.1rem; font-size: 0.9375rem; }
.sn-lang { font-size: 0.875rem; text-transform: uppercase; }
.sn-lang ul { list-style: none; display: flex; gap: 0.5rem; }
.sn-menu-toggle { display: none; background: none; border: 0; color: var(--navy); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.sn-home .sn-menu-toggle { color: var(--white); }
.sn-menu-toggle .sn-icon { width: 1.5rem; height: 1.5rem; }
.sn-menu-toggle__close { display: none; }
.sn-menu-toggle[aria-expanded="true"] .sn-menu-toggle__open { display: none; }
.sn-menu-toggle[aria-expanded="true"] .sn-menu-toggle__close { display: block; }

/* Hero */
.sn-hero { background: var(--navy); color: #DCE6EE; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.sn-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.sn-hero__text .sn-lead { color: #DCE6EE; margin-top: 1.25rem; }
.sn-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.sn-hero__tagline { margin-top: 1.5rem; font-style: italic; color: var(--teal-light); }
.sn-hero__media { background: #0B1E33; border-radius: var(--radius); padding: 1rem; display: grid; place-items: center; }
.sn-hero__avatar img { max-height: 520px; width: auto; }
.sn-video { width: 100%; border-radius: var(--radius-sm); background: #000; }
.sn-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.sn-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }
.sn-hero__transcript { margin-top: 0.75rem; font-size: 0.875rem; }
.sn-hero__transcript a { color: var(--teal-light); }

/* Closing */
.sn-closing .sn-phone img { border-radius: var(--radius); }
.sn-closing__tagline { margin-top: 0.75rem; font-style: italic; color: var(--teal-light); font-size: 0.9375rem; }

/* Founder */
.sn-founder { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.sn-founder__photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }

/* Form */
.sn-form { background: var(--tint); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1rem; }
.sn-field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.35rem; color: var(--navy); }
.sn-field input, .sn-field select, .sn-field textarea { width: 100%; font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--text); min-height: 44px; }
.sn-field input:focus-visible, .sn-field select:focus-visible, .sn-field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.sn-field input:user-invalid, .sn-field textarea:user-invalid { border-color: var(--amber); }
.sn-field--check { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.sn-field--check .sn-field__error { flex-basis: 100%; }
.sn-field--check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 0.2rem; flex: 0 0 auto; }
.sn-field--check label { font-weight: 400; color: var(--text); margin: 0; flex: 1 1 0; min-width: 0; }
.sn-form__required { font-size: 0.8125rem; color: var(--muted); }
.sn-field__error { margin: 0.35rem 0 0; font-size: 0.875rem; color: #7A4A00; font-weight: 600; }
.sn-field [aria-invalid="true"] { border-color: var(--amber); border-width: 2px; }
.sn-btn.is-busy { opacity: 0.7; pointer-events: none; }
.sn-form__status { padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.sn-form__status.is-ok { background: #D9F2F4; color: var(--navy); }
.sn-form__status.is-error { background: #FCEBD2; color: #5C3A00; }
.sn-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.sn-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; font-size: 0.9375rem; color: var(--muted); }
.sn-footer__inner { display: grid; gap: 0.75rem; }
.sn-footer img { height: 28px; width: auto; }
.sn-footer__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.sn-footer__list a { color: var(--muted); }
.sn-footer__list a:hover { color: var(--navy); }

/* Responsive */
@media (max-width: 1024px) {
	.sn-grid--4, .sn-grid--5 { grid-template-columns: repeat(2, 1fr); }
	.sn-chain { grid-template-columns: 1fr; }
	.sn-chain__step:not(:last-child)::after { content: "↓"; right: auto; left: 1.25rem; top: auto; bottom: -1.1rem; }
	.sn-split, .sn-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
	.sn-hero__avatar img { max-height: 420px; }
}
@media (max-width: 768px) {
	.sn-grid--2, .sn-grid--3, .sn-grid--4, .sn-grid--5, .sn-stats, .sn-pair { grid-template-columns: 1fr; }
	.sn-menu-toggle { display: inline-flex; }
	.sn-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; flex-direction: column; align-items: stretch; gap: 1rem; }
	.sn-home .sn-nav { background: var(--navy); }
	.sn-nav.is-open { display: flex; }
	.sn-nav__list { flex-direction: column; gap: 0.25rem; }
	.sn-nav__list a { display: block; padding: 0.75rem 0; font-size: 1.125rem; }
	.sn-nav__cta { text-align: center; }
	.sn-founder { grid-template-columns: 1fr; }
	.sn-founder__photo { width: 160px; height: 160px; }
	.sn-h1--display { font-size: 2.125rem; }
	body { font-size: 1.0625rem; }
}
@media (max-width: 400px) {
	.sn-card { padding: 1.25rem; }
	.sn-form { padding: 1.25rem; }
}
@media print {
	.sn-header, .sn-footer__nav, .sn-btn, .sn-menu-toggle { display: none !important; }
	.sn-section--navy, .sn-hero { background: #fff !important; color: #000 !important; }
}
