/* CodeNyte design system.
   Light base, near-monochrome ink, ONE pop colour (indigo). Flat: no shadows,
   no glass, 0-radius corners, hairline borders. Hierarchy by size and spacing.
   Type: Manrope (headings), Source Sans 3 (body), Crimson Pro (numerals only). */

:root {
    --paper:   #ffffff;
    --band:    #f4f4f1;
    --ink:     #14151a;
    --ink-2:   #4a4f5a;
    --ink-3:   #777d89;
    --line:    #e3e3de;
    --line-2:  #cfcfc8;
    --pop:     #2b1fd9;
    --pop-ink: #1f16a8;
    --wrap:    1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    background: var(--paper);
    color: var(--ink-2);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    min-height: 100vh;
    background: var(--paper);
    overflow-x: hidden;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
    font-family: 'Manrope', system-ui, sans-serif;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}
h1 { font-size: clamp(2.15rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; }
p  { margin-bottom: 1rem; max-width: 68ch; }
a.inline {
    color: var(--pop-ink); text-decoration: none;
    border-bottom: 1px solid rgba(43, 31, 217, 0.3);
}
a.inline:hover { border-bottom-color: var(--pop-ink); }
p:last-child { margin-bottom: 0; }

/* ── Shell ─────────────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }

header.site {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
header.site .inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; height: 68px;
    display: flex; align-items: center; gap: 2rem;
}
.logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.03em;
    color: var(--ink); text-decoration: none; margin-right: auto;
}
.logo span { color: var(--pop); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
    font-size: 0.9375rem; font-weight: 400; color: var(--ink-2);
    text-decoration: none; padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.nav-links a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--pop); }
.nav-cta {
    font-size: 0.9375rem; font-weight: 600; text-decoration: none;
    background: var(--pop); color: #fff; padding: 0.55rem 1.15rem;
}
.nav-cta:hover { background: var(--pop-ink); }
.nav-toggle { display: none; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem; font-weight: 600; text-decoration: none;
    padding: 0.8rem 1.6rem; border: 1px solid transparent;
}
.btn-primary { background: var(--pop); color: #fff; }
.btn-primary:hover { background: var(--pop-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ── Section label (sentence case, NOT monospace small caps) ───────── */
.eyebrow, .kicker {
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem; font-weight: 700; letter-spacing: 0;
    text-transform: none; color: var(--pop);
    display: flex; align-items: center; gap: 0.625rem;
    margin-bottom: 1rem;
}
.eyebrow::before, .kicker::before {
    content: ''; width: 22px; height: 2px; background: var(--pop); flex: none;
}

/* ── Hero: asymmetric split, content left ──────────────────────────── */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4.5rem; align-items: center;
    padding-top: 5.5rem; padding-bottom: 5.5rem;
}
.hero.simple .wrap { display: block; }
.hero h1 { max-width: 20ch; }
.hero.simple h1 { max-width: 30ch; }
.hero.simple .lede { max-width: 62ch; }
.hero .lede {
    font-size: 1.1875rem; color: var(--ink-2); max-width: 54ch; margin-top: 1.5rem;
}

/* Live portfolio panel (right side of the hero) */
.panel { border: 1px solid var(--line); background: var(--paper); }
.panel-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line);
    background: var(--band);
}
.panel-head b {
    font-family: 'Manrope', sans-serif; font-size: 0.9375rem;
    font-weight: 700; color: var(--ink);
}
.panel-head em {
    font-style: normal; font-size: 0.8125rem; color: var(--ink-3);
}
.panel-row {
    display: flex; align-items: flex-start; gap: 0.875rem;
    padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--line);
    text-decoration: none;
}
.panel-row:last-child { border-bottom: 0; }
.panel-row:hover { background: var(--band); }
.panel-row .dot {
    width: 7px; height: 7px; background: var(--pop); flex: none; margin-top: 0.5rem;
}
.panel-row > span { display: block; flex: 1 1 auto; min-width: 0; }
.panel-row > span.dot { flex: none; }
.panel-row .pr-name {
    display: block;
    font-family: 'Manrope', sans-serif; font-size: 0.9375rem;
    font-weight: 700; color: var(--ink);
}
.panel-row .pr-job { display: block; font-size: 0.875rem; color: var(--ink-3); line-height: 1.45; }
.panel-row .pr-dom {
    font-size: 0.8125rem; color: var(--pop); margin-left: auto;
    flex: none; padding-top: 0.15rem;
}

/* ── Stats strip ───────────────────────────────────────────────────── */
.strip { border-bottom: 1px solid var(--line); background: var(--band); }
.strip .wrap {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem; padding-top: 2.25rem; padding-bottom: 2.25rem;
}
.strip .item .n {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 2.5rem; font-weight: 600; line-height: 1;
    letter-spacing: -0.02em; color: var(--ink);
}
.strip .item .l {
    font-size: 0.9375rem; color: var(--ink-3); margin-top: 0.35rem;
    letter-spacing: 0; text-transform: none;
}

/* ── Blocks ────────────────────────────────────────────────────────── */
.block { padding: 5rem 0; border-bottom: 1px solid var(--line); }
.block.alt { background: var(--band); }
.lead-answer { font-size: 1.1875rem; color: var(--ink-2); }

/* ── Cards with hairline stroke icons ──────────────────────────────── */
/* Individually bordered, gapped: an incomplete last row reads as intended
   whitespace instead of a hole in a seamless block. */
.grid, .cards {
    display: grid; gap: 1.25rem; margin-top: 2.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    background: var(--paper); border: 1px solid var(--line); padding: 1.75rem;
}
.block.alt .card { background: var(--paper); border-color: var(--line-2); }
.card .ic { color: var(--pop); margin-bottom: 1.1rem; height: 26px; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card > h3 > a { text-decoration: none; }
.card > h3 > a:hover { color: var(--pop); }
.card p { font-size: 0.9375rem; color: var(--ink-3); margin-bottom: 0; max-width: none; }

/* ── Steps ─────────────────────────────────────────────────────────── */
.steps {
    counter-reset: step; display: grid; gap: 2rem; margin-top: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.step { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.step::before {
    counter-increment: step; content: counter(step);
    font-family: 'Crimson Pro', Georgia, serif;
    display: block; font-size: 1.375rem; font-weight: 600;
    color: var(--ink-3); line-height: 1; margin-bottom: 0.6rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { font-size: 0.9375rem; color: var(--ink-3); margin-bottom: 0; max-width: none; }

/* ── Comparison table ──────────────────────────────────────────────── */
.cmp-wrap { overflow-x: auto; margin-top: 2.5rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
.cmp th, .cmp td {
    text-align: left; padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line); vertical-align: top;
}
.cmp thead th {
    font-family: 'Manrope', sans-serif; font-size: 0.9375rem; font-weight: 700;
    letter-spacing: 0; text-transform: none; color: var(--ink);
    border-bottom: 2px solid var(--ink);
}
.cmp tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.cmp td { color: var(--ink-2); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: var(--band); }
.block.alt .cmp tbody tr:hover td, .block.alt .cmp tbody tr:hover th { background: var(--paper); }
.cmp .col-a { color: var(--ink-2); }
.cmp .col-b { color: var(--pop-ink); font-weight: 600; }

/* ── Product list ──────────────────────────────────────────────────── */
.prod {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1.5rem; text-decoration: none; padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}
.prod:first-of-type { border-top: 1px solid var(--line); }
.prod > div {
    flex: 1 1 auto; min-width: 0;
    display: grid; grid-template-columns: 230px minmax(0, 1fr);
    gap: 0.3rem 2rem; align-items: start;
}
.prod:hover .pn { color: var(--pop); }
.prod .pn {
    font-family: 'Manrope', sans-serif; font-size: 1.1875rem;
    font-weight: 700; color: var(--ink); letter-spacing: -0.02em;
}
.prod .pn { grid-column: 1; grid-row: 1; }
.prod .pd { font-size: 0.9375rem; color: var(--ink-3); max-width: 68ch; grid-column: 2; grid-row: 1 / span 2; }
.prod .pdom { font-size: 0.875rem; color: var(--pop); text-transform: lowercase; grid-column: 1; grid-row: 2; }
.prod > div { align-content: start; }
.prod .arr { font-size: 1.25rem; color: var(--line-2); flex: none; }
.prod:hover .arr { color: var(--pop); }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq-item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.faq-item p { font-size: 1rem; color: var(--ink-2); margin-bottom: 0; }

/* ── CTA band ──────────────────────────────────────────────────────── */
.cta { padding: 4.5rem 2rem; background: var(--ink); border-bottom: 1px solid var(--ink); }
.cta > h2, .cta > p, .cta > .btn-row { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.cta h2 { color: #fff; margin-bottom: 0.75rem; }
.cta p { color: rgba(255,255,255,0.72); max-width: 58ch; }
.cta > p { max-width: 62ch; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--band); }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta .btn-ghost:hover { border-color: #fff; }

/* ── Footer ────────────────────────────────────────────────────────── */
footer.site { padding: 3rem 0 2.5rem; }
footer.site .cols {
    display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
footer.site .f-logo {
    font-family: 'Manrope', sans-serif; font-size: 1.0625rem;
    font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
    text-transform: none;
}
footer.site .f-about { font-size: 0.9375rem; color: var(--ink-3); margin-top: 0.65rem; max-width: 34ch; }
footer.site h4 {
    font-family: 'Manrope', sans-serif; font-size: 0.9375rem;
    font-weight: 700; color: var(--ink); margin-bottom: 0.85rem;
}
footer.site ul { list-style: none; display: grid; gap: 0.55rem; }
footer.site ul a { font-size: 0.9375rem; color: var(--ink-3); text-decoration: none; }
footer.site ul a:hover { color: var(--pop); }
footer.site .f-base {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
footer.site .f-copy { font-size: 0.875rem; color: var(--ink-3); letter-spacing: 0; }
footer.site .f-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
footer.site .f-links a { font-size: 0.875rem; color: var(--ink-3); text-decoration: none; letter-spacing: 0; }
footer.site .f-links a:hover { color: var(--pop); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .grid, .cards, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 3rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .hero h1, .hero.simple h1 { max-width: none; }
    footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .wrap, header.site .inner { padding-left: 1.25rem; padding-right: 1.25rem; }
    header.site .inner { height: auto; padding-top: 0.85rem; padding-bottom: 0.85rem; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
    .nav-links { order: 3; width: 100%; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
    .nav-links a { font-size: 0.875rem; }
    .logo { margin-right: auto; }
    .block { padding: 3.25rem 0; }
    .cta { padding: 3.25rem 0; }
    .btn { width: 100%; justify-content: center; }
    .nav-cta { padding: 0.45rem 0.95rem; font-size: 0.875rem; }
    .panel-head { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
    /* Na waskim ekranie wiersz panelu jest siatka, nie zawijanym flexem: przy dluzszym
       opisie flex przenosil tresc do drugiej linii i kwadrat akcentu zostawal sam nad
       nazwa, raz tak, raz inaczej, zaleznie od dlugosci opisu. */
    .panel-row { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.875rem; }
    .panel-row .dot { margin-top: 0.45rem; }
    .panel-row .pr-dom { grid-column: 2; margin-left: 0; padding-left: 0; padding-top: 0; width: auto; }
    .prod { flex-direction: column; gap: 0.5rem; }
    .prod > div { grid-template-columns: 1fr; gap: 0.35rem; }
    .prod .pn, .prod .pd, .prod .pdom { grid-column: 1; grid-row: auto; }
    .prod .arr { display: none; }
    .strip .wrap { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .grid, .cards, .grid-2 { grid-template-columns: 1fr; gap: 1rem; }
    footer.site .cols { grid-template-columns: 1fr; gap: 2rem; }
}
