:root {
    --bg: #eef3f9;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: #ffffff;
    --ink: #10273b;
    --muted: #556b80;
    --line: #d5e0ec;
    --brand: #ff5a1f;
    --brand-strong: #f04200;
    --teal: #0f9f99;
    --blue: #2a6eb5;
    --navy: #12253d;
    --navy-strong: #0d1b2d;
    --radius: 22px;
    --shadow-main: 0 30px 70px rgba(20, 40, 70, 0.14);
    --shadow-soft: 0 16px 36px rgba(20, 40, 70, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    background: radial-gradient(circle at 10% 6%, #faefe9 0%, transparent 36%),
                radial-gradient(circle at 96% 14%, #e6f0fc 0%, transparent 42%),
                linear-gradient(180deg, #f6f9fd 0%, var(--bg) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.42;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(48, 75, 104, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(48, 75, 104, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.8) 24%, rgba(0, 0, 0, 0.2) 100%);
}

.app {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 56px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(211, 222, 235, 0.95);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--navy);
}

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(18, 37, 61, 0.16);
    background: #fff;
}

.topbar nav {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.topbar nav a {
    text-decoration: none;
    color: #425769;
    font-size: 13px;
    font-weight: 600;
}

.topbar nav a:hover {
    color: var(--ink);
}

.top-cta {
    text-decoration: none;
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(105deg, var(--brand), var(--brand-strong));
    box-shadow: 0 14px 30px rgba(240, 66, 0, 0.28);
}

.top-cta-btn {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.top-logout-form {
    margin: 0;
}

.top-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.top-login {
    border: 1px solid #cfdae8;
    background: rgba(245, 249, 254, 0.96);
    color: #24415a;
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

.top-login:hover {
    border-color: #b5c6db;
    color: #183247;
}

.hero {
    padding: 96px 0 82px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    border: 1px solid #d6e4f4;
    background: rgba(236, 244, 253, 0.88);
    color: #1f4f82;
    padding: 8px 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
}

h1 {
    margin: 18px 0 18px;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 13ch;
}

.hero-lead {
    margin: 0;
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.78;
    font-size: clamp(16px, 1.7vw, 19px);
}

.hero-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-target {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #3c566d;
    max-width: 62ch;
    font-weight: 600;
}

.btn {
    text-decoration: none;
    border-radius: 13px;
    padding: 13px 17px;
    font-weight: 700;
    font-size: 14px;
    transition: transform .22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #fff;
    background: linear-gradient(105deg, var(--brand), var(--brand-strong));
    box-shadow: 0 16px 34px rgba(240, 66, 0, 0.3);
}

.btn.ghost {
    color: #203b54;
    border: 1px solid #cfdae8;
    background: rgba(245, 249, 254, 0.94);
}

.hero-signals {
    margin-top: 34px;
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.signal {
    border-radius: 14px;
    border: 1px solid #d6e0eb;
    background: rgba(255, 255, 255, 0.88);
    padding: 13px 14px;
    color: #3e556a;
    font-size: 14px;
}

.panel {
    border-radius: var(--radius);
    border: 1px solid #d1dceb;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(10px);
}

.radar {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.radar-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
}

.radar-head h2 {
    margin: 0;
    font-size: 22px;
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.01em;
}

.radar-head span {
    font-size: 12px;
    color: #4f6478;
    font-weight: 600;
}

.mini-chart {
    height: 170px;
    border-radius: 16px;
    border: 1px solid #d8e2ef;
    background: linear-gradient(180deg, #fcfdff 0%, #f5f9fe 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

.chart-legend {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #496177;
    font-size: 12px;
    line-height: 1.45;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.legend-dot.a {
    background: rgba(47, 128, 237, 0.95);
}

.legend-dot.b {
    background: rgba(15, 159, 153, 0.92);
}

.legend-dot.c {
    background: rgba(255, 90, 31, 0.92);
}

.mini-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 90, 124, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 90, 124, 0.09) 1px, transparent 1px);
    background-size: 30px 30px;
}

.line-wrap {
    position: absolute;
    inset: 0;
}

.chart-line {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 10 8;
    animation: flow 8s linear infinite;
}

.chart-line.a {
    stroke: rgba(47, 128, 237, 0.9);
}

.chart-line.b {
    stroke: rgba(15, 159, 153, 0.85);
    animation-duration: 10s;
}

.chart-line.c {
    stroke: rgba(255, 90, 31, 0.85);
    animation-duration: 7s;
}

@keyframes flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -240; }
}

.radar-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.kpi {
    border-radius: 12px;
    border: 1px solid #d9e2ee;
    background: #fff;
    padding: 12px;
}

.kpi .label {
    display: block;
    font-size: 11px;
    color: #62778a;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.kpi .value {
    font-family: "Outfit", sans-serif;
    font-size: 30px;
    line-height: 1;
}

.risk-list {
    border-radius: 12px;
    border: 1px solid #d9e2ee;
    background: #fff;
    padding: 12px;
}

.risk-list h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-family: "Outfit", sans-serif;
    letter-spacing: 0.01em;
}

.risk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px dashed #dbe4ef;
    color: #3f5569;
    font-size: 13px;
}

.risk-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.risk-badge {
    border-radius: 999px;
    border: 1px solid #f8d2bf;
    background: #fff1ea;
    color: #bc4f20;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 7px;
    text-transform: uppercase;
}

.section {
    padding: 40px 0;
    scroll-margin-top: 112px;
}

.section-head {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-margin-top: 112px;
}

.section-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #4d657a;
    font-weight: 700;
}

.section-head h2 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: 15ch;
}

.section-head p {
    margin: 0;
    max-width: 66ch;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.start-now-head {
    margin-top: 56px;
    scroll-margin-top: 112px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature {
    border-radius: 18px;
    border: 1px solid #d2ddec;
    background: rgba(255, 255, 255, 0.86);
    padding: 24px;
    min-height: 210px;
    box-shadow: var(--shadow-soft);
    transition: transform .24s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature .num {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #1a4e84;
    background: #eaf2ff;
    margin-bottom: 12px;
}

.feature h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.01em;
}

.feature p {
    margin: 0;
    color: #506477;
    font-size: 15px;
    line-height: 1.75;
}

.screen-preview {
    margin: 0 0 10px;
    border-radius: 12px;
    border: 1px solid #d8e3ef;
    background: linear-gradient(180deg, #fbfdff 0%, #f1f6fc 100%);
    padding: 10px;
    display: grid;
    gap: 6px;
}

.screen-preview span {
    font-size: 12px;
    color: #3f5b73;
    line-height: 1.4;
    border-radius: 8px;
    border: 1px solid #e2eaf4;
    background: #fff;
    padding: 6px 8px;
}

.not-for-everyone {
    margin-top: 16px;
    padding: 20px 22px;
}

.not-for-everyone h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.01em;
}

.not-for-everyone p {
    margin: 0;
    color: #4d6378;
    line-height: 1.7;
}

.analytics-board {
    padding: 26px;
}

.board-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 14px;
}

.board-left,
.board-right {
    border-radius: 16px;
    border: 1px solid #dae3ef;
    background: #fff;
    padding: 16px;
}

.board-left h3,
.board-right h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-family: "Outfit", sans-serif;
}

.bar-list {
    display: grid;
    gap: 11px;
}

.bar-item {
    display: grid;
    gap: 6px;
}

.bar-item span {
    font-size: 13px;
    color: #516477;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.bar-track {
    height: 10px;
    border-radius: 999px;
    background: #edf3fa;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(105deg, #2a6eb5, #0f9f99);
}

.table {
    display: grid;
    gap: 8px;
}

.table-row {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr 0.6fr;
    gap: 8px;
    font-size: 13px;
    padding: 8px 0;
    border-top: 1px dashed #dde6ef;
}

.table-row:first-child {
    border-top: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a7c8d;
    font-weight: 700;
    padding-top: 0;
}

.table-row strong {
    color: #1e3f58;
}

.board-note {
    margin: 10px 0 0;
    color: #63798d;
    font-size: 12px;
    line-height: 1.6;
}


.pricing-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 16px;
    align-items: start;
}

.pricing-note {
    padding: 20px 22px;
    margin-top: 12px;
}

.pricing-note h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.02em;
}

.pricing-note p {
    margin: 0;
    color: #455c72;
    font-size: 14px;
    line-height: 1.7;
}

.pricing-note ul {
    margin: 0;
    padding-left: 18px;
    color: #455c72;
    font-size: 14px;
    line-height: 1.75;
    display: grid;
    gap: 4px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.plan {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid #d7e1ee;
    background: #fff;
    padding: 22px;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease;
}

.plan.active {
    border-color: #ffc4a7;
    box-shadow: 0 18px 40px rgba(255, 90, 31, 0.24);
}

.plan.active::after {
    content: "Wybrany";
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(105deg, var(--brand), var(--brand-strong));
}

.plan h3 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 21px;
}

.plan-price {
    margin: 9px 0 8px;
    font-family: "Outfit", sans-serif;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.plan-price small {
    font-size: 13px;
    color: #5a6d80;
    font-family: "Manrope", sans-serif;
}

.plan p {
    margin: 0 0 16px;
    color: #566a7d;
    font-size: 14px;
    line-height: 1.7;
}

.plan button {
    margin-top: auto;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(105deg, var(--navy), var(--navy-strong));
}

.signup-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    align-items: start;
}

.signup-card,
.meta-card {
    padding: 24px;
}

.signup-card h3,
.meta-card h3 {
    margin: 0 0 14px;
    font-family: "Outfit", sans-serif;
    font-size: 30px;
    letter-spacing: -0.02em;
}

.status {
    border-radius: 12px;
    padding: 11px 12px;
    border: 1px solid transparent;
    margin-bottom: 14px;
    font-size: 14px;
}

.status.ok {
    background: #e8faf3;
    border-color: #bde9db;
    color: #145d4c;
}

.status.err {
    background: #fff2ea;
    border-color: #f3cab6;
    color: #812f0a;
}

.status ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    align-items: start;
}

.field {
    display: grid;
    gap: 6px;
    align-content: start;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5d7387;
    font-weight: 700;
}

input,
select {
    border: 1px solid #d4deea;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    color: #1a3449;
    min-height: 40px;
    line-height: 1.2;
    font-family: inherit;
}

select {
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.25 5.25 7 9l3.75-3.75' fill='none' stroke='%23607b95' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
}

select::-ms-expand {
    display: none;
}

input:focus,
select:focus {
    outline: none;
    border-color: #8db6e5;
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.16);
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    box-shadow: none;
    accent-color: var(--brand);
}

input[type="checkbox"]:focus {
    outline: 2px solid rgba(47, 128, 237, 0.35);
    outline-offset: 2px;
    box-shadow: none;
}

.tax-lookup-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
}

.lookup-btn {
    border: 1px solid #d4deea;
    background: #f6f9fd;
    color: #1f3e57;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lookup-btn:hover {
    border-color: #b9cae2;
    background: #edf4fd;
}

.lookup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lookup-status {
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
    color: #5f7488;
}

.lookup-status.ok {
    color: #177258;
}

.lookup-status.err {
    color: #9f3e13;
}

.submit {
    width: 100%;
    border: none;
    border-radius: 13px;
    padding: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(105deg, var(--brand), var(--brand-strong));
    box-shadow: 0 16px 32px rgba(240, 66, 0, 0.28);
}

.password-strength-wrap {
    gap: 6px;
}

.password-strength-bar {
    height: 8px;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}

.password-strength-bar span {
    display: block;
    height: 100%;
    width: 8%;
    border-radius: 999px;
    background: #8fa1b5;
    transition: width .2s ease, background-color .2s ease;
}

.password-strength-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 10px;
}

.password-strength-meta strong {
    font-size: 12px;
    color: #30495f;
}

.password-strength-meta span {
    font-size: 12px;
    color: #5d7286;
}

.password-strength-wrap.is-weak .password-strength-bar span {
    background: #d24b1f;
}

.password-strength-wrap.is-medium .password-strength-bar span {
    background: #b67c13;
}

.password-strength-wrap.is-strong .password-strength-bar span {
    background: #1e8f63;
}

.legal-consent {
    border-top: 1px dashed #dce5ef;
    padding-top: 10px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    gap: 9px;
}

.consent-required-note {
    margin: 0 0 4px;
    font-size: 12px;
    color: #5e7488;
    line-height: 1.5;
}

.required-mark {
    color: #b63f10;
    font-weight: 800;
}

.legal-consent label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: #445a6f;
    font-weight: 600;
}

.legal-consent a {
    color: #1f5b95;
    text-decoration: none;
    border-bottom: 1px solid rgba(31, 91, 149, 0.35);
}

.legal-consent a:hover {
    color: #153f66;
    border-bottom-color: rgba(21, 63, 102, 0.5);
}

.meta-list {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.meta-row {
    border-top: 1px dashed #dce5ef;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #425b70;
    font-size: 14px;
}

.meta-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.meta-row strong {
    color: #1f3e57;
}

.faq-panel {
    padding: 14px 18px;
}

.faq-panel details {
    border-top: 1px dashed #d8e3ef;
    padding: 14px 0;
}

.faq-panel details:first-child {
    border-top: 0;
}

.faq-panel summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #1f3e57;
    list-style: none;
    position: relative;
    padding-right: 26px;
}

.faq-panel summary::-webkit-details-marker {
    display: none;
}

.faq-panel summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: #526a7f;
    font-size: 20px;
    line-height: 1;
}

.faq-panel details[open] summary::after {
    content: "-";
}

.faq-panel p {
    margin: 10px 0 0;
    color: #4f667b;
    font-size: 14px;
    line-height: 1.7;
}

.final-cta-section {
    padding-top: 20px;
}

.final-cta {
    padding: 32px 28px;
    text-align: center;
    border-color: #ffc9b1;
    background: linear-gradient(130deg, rgba(255, 242, 235, 0.95) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.final-cta h2 {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.02;
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.03em;
}

.final-cta p {
    margin: 12px auto 20px;
    max-width: 50ch;
    color: #4c6277;
    line-height: 1.7;
}

.collaboration-cta {
    padding: 22px;
    margin-bottom: 18px;
    border-color: #cfdced;
    background: linear-gradient(125deg, rgba(245, 250, 255, 0.95) 0%, rgba(255, 246, 240, 0.96) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.collaboration-copy h3 {
    margin: 8px 0 8px;
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.06;
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.02em;
    color: #122c43;
}

.collaboration-copy p {
    margin: 0;
    max-width: 68ch;
    color: #4c6277;
    line-height: 1.72;
}

.collaboration-link {
    flex-shrink: 0;
    white-space: nowrap;
}

.contact-card {
    padding: 18px;
    border-color: #ccd9e8;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(248, 252, 255, 0.9) 100%);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-item {
    flex: 1 1 240px;
    border-radius: 14px;
    border: 1px solid #d6e1ee;
    background: #fff;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: #c2d2e6;
    box-shadow: 0 10px 24px rgba(16, 37, 57, 0.08);
}

.contact-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #6a8196;
    font-weight: 700;
}

.contact-item strong {
    color: #1d3d57;
    font-size: 14px;
    line-height: 1.35;
}

.contact-item a {
    color: #1f5b95;
    text-decoration: none;
    border-bottom: 1px solid rgba(31, 91, 149, 0.35);
}

.contact-item a:hover {
    color: #153f66;
    border-bottom-color: rgba(21, 63, 102, 0.5);
}

#dane-kontaktowe .section-head h2 {
    font-size: clamp(30px, 4vw, 42px);
    max-width: none;
}

#dane-kontaktowe .section-head p {
    font-size: 14px;
    line-height: 1.65;
}

.footer {
    padding: 24px 0 10px;
    text-align: center;
    font-size: 12px;
    color: #667c90;
    display: grid;
    gap: 8px;
}

.footer-links {
    display: inline-flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-socials {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cfdbea;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #2b4d6a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.social-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.social-link:hover {
    color: #16354e;
    border-color: #afc4da;
    background: #fff;
}

.footer-links a {
    color: #355571;
    text-decoration: none;
    border-bottom: 1px solid rgba(53, 85, 113, 0.28);
    font-weight: 600;
}

.footer-links a:hover {
    color: #1c354b;
    border-bottom-color: rgba(28, 53, 75, 0.48);
}

.cookies-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #355571;
    text-decoration: none;
    border-bottom: 1px solid rgba(53, 85, 113, 0.28);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
}

.cookies-link:hover {
    color: #1c354b;
    border-bottom-color: rgba(28, 53, 75, 0.48);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 95;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent-card {
    width: min(980px, 100%);
    border-radius: 16px;
    border: 1px solid #d6e0ec;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 22px 48px rgba(16, 37, 57, 0.18);
    padding: 14px;
    pointer-events: auto;
}

.cookie-consent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.cookie-consent-head h3 {
    margin: 0;
    font-size: 18px;
    font-family: "Outfit", sans-serif;
}

.cookie-inline-link {
    border: none;
    background: none;
    color: #345973;
    border-bottom: 1px solid rgba(52, 89, 115, 0.4);
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

.cookie-inline-link:hover {
    color: #1c374d;
    border-bottom-color: rgba(28, 55, 77, 0.5);
}

.cookie-consent-card p {
    margin: 0;
    color: #4a6276;
    font-size: 13px;
    line-height: 1.65;
}

.cookie-consent-card p a {
    color: #1f5b95;
}

.cookie-settings {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d9e2ec;
    display: grid;
    gap: 8px;
}

.cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3d566d;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.cookie-switch input {
    min-height: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

.cookie-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-btn {
    border: 1px solid #d2deeb;
    background: #edf3fb;
    color: #1d3a54;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.cookie-btn.ghost {
    background: #fff;
}

.cookie-btn.primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(105deg, var(--brand), var(--brand-strong));
}

.login-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(11, 25, 41, 0.48);
    backdrop-filter: blur(5px);
}

.login-modal-backdrop.open {
    display: flex;
}

.login-modal {
    width: min(520px, 100%);
    padding: 22px;
    position: relative;
}

.login-modal h3 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.02em;
    font-family: "Outfit", sans-serif;
}

.login-modal p {
    margin: 0 0 12px;
    color: #566b7e;
    font-size: 14px;
    line-height: 1.6;
}

.google-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 10px;
    border-radius: 10px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 12px;
}

.google-auth-btn:hover {
    border-color: #c6cacf;
    background: #f8fbff;
}

.google-g {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    background: conic-gradient(
        #4285f4 0deg 80deg,
        #34a853 80deg 170deg,
        #fbbc05 170deg 260deg,
        #ea4335 260deg 360deg
    );
    color: #fff;
}

.auth-divider {
    margin: 0 0 10px;
    font-size: 12px;
    color: #60778b;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #d8e2ee;
    background: #fff;
    color: #466077;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.login-form {
    display: grid;
    gap: 10px;
}

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
    color: #4e6478;
    font-size: 13px;
    font-weight: 600;
}

.remember-row input {
    min-height: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 5px;
    margin: 0;
}

.forgot-password-link {
    color: #2b5b86;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(43, 91, 134, 0.35);
    width: fit-content;
}

.forgot-password-link:hover {
    color: #1f4465;
    border-bottom-color: rgba(31, 68, 101, 0.5);
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #5f7488;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle:hover {
    color: #304e67;
    background: #f2f7fd;
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(47, 128, 237, 0.35);
    outline-offset: 1px;
}

.password-toggle-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.login-modal .login-register-hint {
    margin: 24px 0 0;
    color: #51697f;
    font-size: 13px;
    text-align: center;
}

.login-register-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #235984;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 1px solid rgba(35, 89, 132, 0.35);
}

.login-register-link:hover {
    color: #173e5f;
    border-bottom-color: rgba(23, 62, 95, 0.5);
}

.fade {
    opacity: 1;
    transform: translateY(0);
}

.js .fade {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.js .fade.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 70px;
    }

    .radar {
        position: static;
    }

    h1 {
        max-width: none;
    }

    .feature-grid,
    .board-grid,
    .pricing-layout,
    .signup-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app {
        width: min(1280px, calc(100% - 28px));
    }

    .topbar {
        gap: 10px;
        padding: 10px 12px;
    }

    .brand {
        font-size: 16px;
        gap: 8px;
    }

    .brand-logo {
        width: 24px;
        height: 24px;
    }

    .topbar nav {
        display: none;
    }

    .top-actions {
        margin-left: auto;
        gap: 6px;
    }

    .top-login,
    .top-cta,
    .top-cta-btn {
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 10px;
        white-space: nowrap;
    }

    .top-cta {
        box-shadow: 0 8px 18px rgba(240, 66, 0, 0.22);
    }

    .section {
        padding: 68px 0;
    }

    .pricing-grid,
    .form-grid,
    .radar-kpis,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        display: grid;
    }

    .collaboration-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .collaboration-link {
        width: 100%;
        text-align: center;
    }

    .tax-lookup-row {
        grid-template-columns: 1fr;
    }

    .plan-price {
        font-size: 38px;
    }

    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-consent-card {
        padding: 12px;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1 1 180px;
    }
}

@media (max-width: 420px) {
    .topbar {
        flex-wrap: wrap;
    }

    .top-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
