/* === KANDYB STUDIO · site.css ===
   Clean white, emerald + pastel accents, bilingual PL primary / EN italic.
   ================================================================== */

:root {
    --primary: #1f7d6a;
    --primary-dark: #155c4f;
    --primary-light: #2c9e87;
    --mint-50: #e9f5f0;
    --mint-100: #d2ebe1;
    --peach-50: #fdf1e6;
    --peach-100: #fbdcc4;
    --lavender-50: #ece5fb;
    --lavender-100: #d8c8f6;
    --sky-50: #e6f0fb;
    --sky-100: #cee0f7;

    --ink: #0f1d2c;
    --ink-2: #3c4858;
    --ink-3: #4b5563;
    --muted: #6b7280;
    --muted-2: #9ca3af;
    --line: #e5e7eb;
    --line-2: #eef0f3;
    --accent-orange: #f5a06f;

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --shadow-card: 0 1px 2px hsla(220, 24%, 12%, 0.04), 0 12px 36px -16px hsla(220, 24%, 12%, 0.10);
    --shadow-cta: 0 10px 28px -8px hsla(170, 60%, 22%, 0.45);

    --container: 1280px;
    --pad-x: clamp(20px, 4vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(31, 125, 106, 0.05), transparent 60%),
        radial-gradient(1000px 600px at -10% 30%, rgba(245, 160, 111, 0.06), transparent 60%);
    background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* === WORDMARK (logo) === */
.wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
    text-decoration: none;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
}

.wordmark-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
    position: relative;
}

.wordmark-dot {
    color: var(--primary);
    position: relative;
}

.wordmark-dot::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 0.18em;
    width: 5px;
    height: 5px;
    background: var(--accent-orange);
    border-radius: 50%;
}

.wordmark-tag {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 2px;
}

.wordmark.sm .wordmark-name { font-size: 20px; }
.wordmark.sm .wordmark-tag { font-size: 10px; }
.wordmark.sm .wordmark-dot::after { width: 4px; height: 4px; top: 0.18em; }

/* === TOPNAV === */
.topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--pad-x);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line-2);
}

.brand { text-decoration: none; }

.topnav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 14.5px;
    font-weight: 500;
}

.topnav-links a {
    color: var(--ink-2);
    text-decoration: none;
    transition: color .15s;
}

.topnav-links a:hover { color: var(--primary); }

/* === Language toggle === */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    background: var(--mint-50);
    border-radius: 999px;
    border: 1px solid var(--mint-100);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.lang-toggle a {
    color: var(--muted) !important;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    line-height: 1;
    transition: background .15s, color .15s;
}

.lang-toggle a.active {
    background: #fff;
    color: var(--primary) !important;
    box-shadow: 0 2px 6px -2px hsla(220, 24%, 12%, 0.12);
}

.lang-toggle a:hover:not(.active) { color: var(--primary) !important; }

/* === CTA buttons === */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14.5px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
    line-height: 1;
    white-space: nowrap;
}

.cta-primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: var(--shadow-cta);
}

.cta-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px -8px hsla(170, 60%, 22%, 0.55);
}

.cta-outline {
    background: #fff;
    color: var(--ink) !important;
    border: 1.5px solid var(--line);
}

.cta-outline:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.cta-light {
    background: #fff;
    color: var(--primary) !important;
    box-shadow: 0 8px 20px -6px hsla(0, 0%, 0%, 0.15);
}

.cta-light:hover { transform: translateY(-1px); }

.cta-primary.cta-lg, .cta-outline.cta-lg {
    padding: 16px 28px;
    font-size: 15px;
}

/* === Section utilities === */
.section-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-eyebrow.light { color: rgba(255, 255, 255, 0.85); }

h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.025em; }

h1 {
    font-size: clamp(38px, 5.6vw, 68px);
    font-weight: 800;
    line-height: 1.04;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
    hyphens: auto;
}

h1 .accent {
    color: var(--primary);
    position: relative;
    white-space: nowrap;
}

h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 12px;
}

h2 .accent { color: var(--primary); }

h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.015em;
}

p { margin: 0 0 8px; color: var(--ink-3); }
p.en { font-style: italic; color: var(--muted); font-size: 0.92em; }
p .muted, span.muted { color: var(--muted); font-style: italic; }

/* === HERO === */
.hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) var(--pad-x) clamp(60px, 7vw, 100px);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.hero-text { max-width: 620px; }

.hero-en {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 24px;
    line-height: 1.4;
}

.hero-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-3);
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-ctas .cta { padding: 16px 28px; font-size: 15px; }

/* === HERO VISUAL (dashboard mock) === */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.hero-glow {
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(60% 60% at 30% 30%, rgba(31, 125, 106, 0.18), transparent 70%),
        radial-gradient(50% 50% at 80% 80%, rgba(245, 160, 111, 0.18), transparent 70%);
    filter: blur(20px);
    z-index: -1;
    border-radius: 50%;
}

.mock-window {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: grid;
    grid-template-columns: 56px 1fr;
    min-height: 360px;
}

.mock-side {
    background: linear-gradient(180deg, var(--mint-50), #fff);
    border-right: 1px solid var(--line-2);
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mock-logo {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.mock-logo svg { width: 22px; height: 22px; }

.mock-side-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(31, 125, 106, 0.08);
    position: relative;
}

.mock-side-icon.active { background: rgba(31, 125, 106, 0.22); }

.mock-side-icon::before {
    content: "";
    position: absolute;
    inset: 8px;
    background: var(--primary);
    border-radius: 3px;
    opacity: 0.6;
}

.mock-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(245, 160, 111, 0.18);
}

.mock-title { font-weight: 600; font-size: 15px; color: var(--ink); }

.mock-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 0.9fr;
    gap: 12px;
    flex: 1;
}

.mock-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 14px 12px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-card.chart { grid-row: 1 / 3; min-height: 230px; }
.mock-card.kpi { background: var(--mint-50); border-color: var(--mint-100); }
.mock-card.bars { background: #fff; }

.mock-card-head { display: flex; justify-content: space-between; align-items: center; }
.mock-card-label { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.mock-card-pill { font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(31, 125, 106, 0.10); padding: 3px 8px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; }
.mock-card-value { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.mock-card-delta { font-size: 11px; color: var(--primary); font-weight: 600; }

.mock-chart { width: 100%; height: 100%; margin-top: 4px; flex: 1; }

.bars-row { display: flex; align-items: flex-end; gap: 6px; height: 50px; margin-top: 4px; }
.bars-row span { flex: 1; background: var(--primary); border-radius: 3px 3px 0 0; opacity: 0.85; }
.bars-row span:nth-child(odd) { background: var(--accent-orange); opacity: 0.85; }

/* === SERVICES === */
.services {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px var(--pad-x) clamp(60px, 7vw, 100px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px 26px 26px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--mint-100);
    box-shadow: var(--shadow-card);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-icon svg { width: 24px; height: 24px; color: var(--primary); }
.service-icon.mint { background: var(--mint-50); }
.service-icon.peach { background: var(--peach-50); }
.service-icon.peach svg { color: #d77a3a; }
.service-icon.lavender { background: var(--lavender-50); }
.service-icon.lavender svg { color: #6b4ed1; }

.service-card h3 { margin-bottom: 6px; }
.service-card p { font-size: 15px; line-height: 1.55; }
.service-card p.en { margin-top: 4px; font-size: 13.5px; }

/* === PROJECTS === */
.projects {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x) clamp(60px, 7vw, 100px);
}

.section-head { margin-bottom: 28px; max-width: 720px; }
.section-head h2 { margin-bottom: 8px; }
.section-sub { font-size: 16px; color: var(--ink-3); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 32px 32px 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
    isolation: isolate;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -22px hsla(220, 24%, 12%, 0.22);
}

.project-card .project-arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 14px -4px hsla(0, 0%, 0%, 0.12);
    transition: transform .2s, background .2s, color .2s;
}

.project-card:hover .project-arrow {
    background: var(--primary);
    color: #fff;
    transform: translate(4px, -2px);
}

.project-hossa { background: linear-gradient(135deg, var(--peach-50), #fff6ee 60%, var(--peach-100)); }
.project-thesis { background: linear-gradient(135deg, var(--mint-50), #f0faf6 60%, var(--mint-100)); }
.project-pfe { background: linear-gradient(135deg, var(--lavender-50), #f4eefc 60%, var(--lavender-100)); }
.project-dobranoc { background: linear-gradient(135deg, #1f2647, #2b3473 60%, #3f4ba0); color: #f3f3ff; }
.project-dobranoc h3, .project-dobranoc p { color: #f3f3ff; }
.project-dobranoc p.en { color: rgba(243, 243, 255, 0.7); }
.project-dobranoc .project-tag { background: rgba(255, 255, 255, 0.18); color: #fff; }
.project-dobranoc .project-tag.light { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.75); }
.project-dobranoc .project-arrow { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
.project-dobranoc:hover .project-arrow { background: #fff; color: var(--ink); }

.project-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.project-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    background: #fff;
    color: var(--ink-2);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-tag.light { background: rgba(255, 255, 255, 0.5); color: var(--ink-3); }

.project-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.025em; }
.project-card p { font-size: 14.5px; line-height: 1.5; max-width: 420px; margin: 0 0 6px; }
.project-card p.en { font-size: 13px; margin-top: 2px; }

.project-visual {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-top: 24px;
}

/* === Project phone mocks === */
.project-phone {
    width: 196px;
    height: 280px;
    background: linear-gradient(180deg, #1a1a1f, #0d0d11);
    border-radius: 32px 32px 8px 8px;
    padding: 10px;
    box-shadow: 0 24px 40px -16px hsla(220, 24%, 12%, 0.35);
    transform: translateY(28px) rotate(-3deg);
    position: relative;
}

.project-phone::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 8px;
    background: #000;
    border-radius: 999px;
    z-index: 2;
}

.phone-screen {
    background: #fff;
    border-radius: 24px 24px 4px 4px;
    width: 100%;
    height: 100%;
    padding: 26px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

/* Hossa phone */
.project-hossa .phone-screen { background: linear-gradient(180deg, #fff, #fff7ef); }
.phone-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.phone-big { font-size: 56px; font-weight: 800; color: #d77a3a; line-height: 1; letter-spacing: -0.04em; margin: 2px 0 4px; }
.phone-sub { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.phone-bar { display: block; width: 100%; height: 6px; border-radius: 999px; background: #f1e2d5; margin-top: 8px; overflow: hidden; }
.phone-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f5a06f, #d77a3a); border-radius: 999px; }

/* Thesis phone */
.project-thesis .phone-screen { background: linear-gradient(180deg, #fff, #eef8f3); padding-top: 20px; }
.chat-line { display: inline-block; padding: 7px 10px; border-radius: 12px; font-size: 10.5px; font-weight: 500; line-height: 1.35; max-width: 90%; }
.chat-line.you { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; margin-top: 10px; }
.chat-line.ai { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--mint-100); border-bottom-left-radius: 4px; }
.chat-line.short { font-size: 10px; }

/* PFE phone */
.project-pfe .phone-screen { background: linear-gradient(180deg, #fff, #f3edff); }
.quiz-q { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.quiz-bar { display: block; height: 6px; border-radius: 999px; background: #e6d9fb; margin: 4px 0 10px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8b6df0, #6b4ed1); border-radius: 999px; }
.quiz-opt { display: block; font-size: 11px; padding: 8px 10px; background: #fff; border-radius: 8px; border: 1px solid #ebe5fc; color: var(--ink-2); font-weight: 500; }
.quiz-opt.correct { background: rgba(31, 125, 106, 0.10); border-color: rgba(31, 125, 106, 0.25); color: var(--primary); font-weight: 700; }

/* Dobranoc phone */
.project-dobranoc .phone-screen { background: linear-gradient(180deg, #1a2046, #2b3473); padding-top: 22px; align-items: center; text-align: center; }
.moon { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #ffe4a6 70%, #f5a06f); box-shadow: 0 0 24px rgba(245, 199, 111, 0.6); margin-top: 6px; }
.dobranoc-label { color: #fff; font-weight: 700; font-size: 14px; margin-top: 8px; }
.dobranoc-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 0.14em; }
.wave { display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 14px; height: 28px; }
.wave i { width: 4px; background: linear-gradient(180deg, #a3b8ff, #f5a06f); border-radius: 2px; opacity: 0.85; }
.wave i:nth-child(1) { height: 30%; }
.wave i:nth-child(2) { height: 60%; }
.wave i:nth-child(3) { height: 80%; }
.wave i:nth-child(4) { height: 100%; }
.wave i:nth-child(5) { height: 70%; }
.wave i:nth-child(6) { height: 45%; }
.wave i:nth-child(7) { height: 25%; }

/* === CONTACT === */
.contact {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x) clamp(60px, 6vw, 100px);
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 65%, var(--primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(40px, 5vw, 60px) clamp(28px, 4vw, 56px);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 160, 111, 0.4), transparent 60%);
    border-radius: 50%;
}

.contact-card h2 { color: #fff; }
.contact-card h2 .accent { color: var(--accent-orange); }
.contact-card p { color: rgba(255, 255, 255, 0.86); font-size: 16px; }
.contact-card p .en { color: rgba(255, 255, 255, 0.66); font-style: italic; }

.contact-card .cta { padding: 18px 28px; font-size: 16px; justify-self: end; }

/* === FOOTER === */
.site-footer {
    max-width: var(--container);
    margin: 0 auto;
    padding: 26px var(--pad-x) 36px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    border-top: 1px solid var(--line-2);
    font-size: 13px;
    color: var(--muted);
}

.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-copy { text-align: center; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.footer-links a:hover { color: var(--primary); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { min-height: 320px; order: 1; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-card { grid-template-columns: 1fr; gap: 24px; }
    .contact-card .cta { justify-self: flex-start; }
}

@media (max-width: 820px) {
    .topnav-links { gap: 18px; font-size: 14px; }
    .topnav-links a:not(.cta) { display: none; }
    .projects-grid { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; text-align: center; gap: 16px; }
    .footer-left { justify-content: center; }
    .footer-copy { text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    .project-card { padding: 24px 24px 0; min-height: 320px; }
    .project-phone { width: 160px; height: 230px; }
    .phone-big { font-size: 44px; }
}

@media (max-width: 560px) {
    h1 { font-size: 38px; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .cta { justify-content: center; }
    .mock-window { min-height: 300px; }
    .mock-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .mock-card.chart { grid-row: auto; min-height: 160px; }
}

/* ==================== SUBPAGE STYLES ==================== */
.subpage-main { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

.subpage-hero {
    padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 4vw, 48px);
    border-bottom: 1px solid var(--line-2);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.crumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}

.app-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.tagline-pl { font-size: 20px; color: var(--ink-2); font-weight: 500; margin: 0 0 6px; line-height: 1.4; }
.tagline-en { font-size: 15px; color: var(--muted); font-style: italic; margin: 0 0 20px; line-height: 1.4; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    background: var(--mint-50);
    color: var(--primary-dark);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.meta-tag.live { background: var(--mint-50); color: var(--primary-dark); }
.meta-tag.beta { background: var(--peach-50); color: #b65a1a; }

.subpage-hero-visual { display: flex; justify-content: center; align-items: center; }
.subpage-hero-visual .project-phone { transform: translateY(0) rotate(-2deg); }

.subpage-content {
    padding: clamp(40px, 5vw, 60px) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.col h2 {
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    margin-bottom: 14px;
}

.col p { font-size: 15px; line-height: 1.65; color: var(--ink-3); margin-bottom: 14px; }
.col p.en { color: var(--muted); font-size: 14px; font-style: italic; }

ul.features { list-style: none; padding: 0; margin-top: 8px; }
ul.features li {
    position: relative;
    padding-left: 24px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-3);
    margin-bottom: 10px;
}
ul.features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 14px;
    height: 2px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.subpage-screens { padding: 16px 0 clamp(40px, 5vw, 60px); }
.subpage-screens h2 {
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    margin-bottom: 20px;
}

.screen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.screen {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--mint-50), #fff);
    aspect-ratio: 9 / 16;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.screen img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 28px -10px hsla(220, 24%, 12%, 0.25);
}

.screen.placeholder {
    flex-direction: column;
    gap: 10px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.screen.placeholder svg { width: 36px; height: 36px; color: var(--primary); opacity: 0.55; }

.subpage-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: clamp(40px, 5vw, 60px);
}

.subpage-cta h3 { color: #fff; font-size: 22px; margin: 0 0 4px; }
.subpage-cta p { color: rgba(255,255,255,0.82); font-size: 14px; margin: 0; }
.subpage-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--ink);
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: transform .15s;
}
.subpage-cta a:hover { transform: translateY(-2px); }

/* Legal pages */
.legal {
    padding: clamp(32px, 4vw, 48px) 0 clamp(40px, 5vw, 60px);
    max-width: 820px;
}

.legal h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin: 28px 0 10px;
    letter-spacing: -0.01em;
}

.legal p, .legal li {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-3);
    margin-bottom: 10px;
}

.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--primary); text-decoration: underline; }

.legal .lang {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--ink);
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 8px;
    letter-spacing: 0.06em;
    vertical-align: middle;
}
.legal .lang.en { background: var(--primary); }

.legal .meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.divider {
    border: 0;
    border-top: 1px dashed var(--line);
    margin: 36px 0;
}

@media (max-width: 820px) {
    .subpage-hero { grid-template-columns: 1fr; }
    .subpage-content { grid-template-columns: 1fr; gap: 28px; }
    .screen-grid { grid-template-columns: 1fr; }
}

/* === Przyciski do sklepów na stronach aplikacji === */
.store-cta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin: 0 0 28px;
}
.store-cta-label { font-size: 13px; font-weight: 700; color: #6b7280; letter-spacing: .01em; }
.store-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    border: 1px solid transparent; transition: transform .15s, box-shadow .15s, opacity .15s;
}
.store-btn::before { font-size: 15px; line-height: 1; }
.store-btn.gp { background: #0f172a; color: #fff; }
.store-btn.gp::before { content: "▶"; color: #34d399; }
.store-btn.as { background: #fff; color: #0f172a; border-color: #d7d9de; }
.store-btn.as::before { content: ""; }
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,23,42,.14); }
