/* CadTab — strona główna (cadtab.com, /pl/, /de/, /es/, /pt/, /it/). Ładowana PO /style.css i /assets/header.css (górny pasek).
   Bez zewnętrznych fontów i skryptów; CSP style-src 'self' — w HTML żadnych atrybutów style="". */
:root { --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
        --frame:#1b1e25; --chrome:#22262f; --x-axis:#ef4444; --y-axis:#22c55e; --grid: color-mix(in srgb, var(--line) 70%, transparent); }
@media (prefers-color-scheme: light) { :root { --frame:#ffffff; --chrome:#eceef2; } }

body.home { background-image: none; }
.home main { max-width: none; margin: 0; padding: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; }


/* hero = przestrzeń modelu: siatka, układ współrzędnych, krzyż kursora z odczytem X/Y */
.hero { position: relative; overflow: hidden; padding: 72px 0 0;
        background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
        background-size: 32px 32px; background-position: -1px -1px; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 18px; max-width: 15em; text-wrap: balance; }
.hero .sub { font-size: clamp(17px, 2vw, 20px); max-width: 40em; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 12px; font-size: 17px;
       font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.pri { background: var(--accent); color: var(--accent-ink); }
.btn.pri:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.alt { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn.alt:hover { border-color: var(--muted); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn .arr { font-family: var(--mono); }
.specs { display: flex; flex-wrap: wrap; row-gap: 4px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.specs span { white-space: nowrap; }
.specs span:not(:last-child)::after { content: "·"; margin: 0 .6em; opacity: .6; }

.ucs { position: absolute; left: 24px; bottom: 24px; width: 56px; height: 56px; z-index: 0; font: 600 11px var(--mono); }
.ucs::before, .ucs::after { content: ""; position: absolute; left: 0; bottom: 0; }
.ucs::before { width: 48px; height: 2px; background: var(--x-axis); }
.ucs::after { width: 2px; height: 48px; background: var(--y-axis); }
.ucs b { position: absolute; font-weight: 600; }
.ucs .ux { left: 52px; bottom: -6px; color: var(--x-axis); }
.ucs .uy { left: -3px; bottom: 50px; color: var(--y-axis); }
.coords { position: absolute; right: 16px; top: 14px; z-index: 2; margin: 0; font-size: 12px; color: var(--muted); padding: 4px 8px;
          border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.coords b { display: inline-block; min-width: 6ch; text-align: right; color: var(--ink); font-weight: 500; }
.xhair { position: absolute; inset: 0; pointer-events: none; z-index: 0; display: none; }
.hero.track .xhair { display: block; }
.xhair i { position: absolute; left: 0; top: 0; background: var(--accent); opacity: .75; }
.xhair .xh { width: 100%; height: 1px; }
.xhair .xv { height: 100%; width: 1px; }
.xhair .xb { width: 11px; height: 11px; background: transparent; border: 1px solid var(--accent); opacity: 1; }
@media (hover: none), (pointer: coarse) { .coords { display: none; } }

/* zrzut ekranu w ramie karty przeglądarki */
.tabframe { margin: 48px 0 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--chrome);
            overflow: hidden; box-shadow: 0 -10px 60px -20px rgba(0,0,0,.35); }
.tabbar { display: flex; align-items: flex-end; height: 40px; padding: 0 10px; }
.tab { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 10px 10px 0 0; background: var(--frame);
       font-size: 13px; color: var(--ink); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab svg { width: 16px; height: 16px; flex: none; }
.urlbar { background: var(--frame); padding: 6px 10px 8px; }
.urlbar span { display: block; padding: 5px 12px; border-radius: 8px; background: var(--chrome); font-size: 13px; color: var(--muted); }
.urlbar b { color: var(--ink); font-weight: 500; }
.shot { display: block; width: 100%; height: auto; background: var(--frame); }

/* sekcje */
.sec { padding: 88px 0 0; }
.sec h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
.sec .lede { max-width: 44em; margin: 0 0 32px; }
.eyebrow { display: block; margin: 0 0 12px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 24px 24px 8px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; }
.steps h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px;
                    border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
                    font: 700 14px var(--mono); vertical-align: 2px; }
.steps p { font-size: 16px; }
ol.steps { padding: 0; margin: 0; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feat svg { width: 28px; height: 28px; color: var(--accent); }
.feat h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.feat p { margin: 0; font-size: 15px; line-height: 1.55; }
.feat .tag { display: inline-block; margin-top: 10px; font: 12px var(--mono); color: var(--muted); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split ul { margin: 0 0 24px; padding: 0; list-style: none; }
.split li { position: relative; padding: 8px 0 8px 28px; color: var(--muted); font-size: 17px; line-height: 1.5; border-top: 1px solid var(--line); }
.split li::before { content: "+"; position: absolute; left: 4px; top: 7px; font: 600 16px var(--mono); color: var(--accent); }
.phone { justify-self: center; width: min(320px, 100%); border: 1px solid var(--line); border-radius: 28px; padding: 10px; background: var(--chrome); }
.phone .shot { border-radius: 20px; }

.home .plans { margin: 0 0 14px; }
.home .plans .card h3 { margin: 0; font-size: 20px; }
.home .plans .price { font-size: 28px; }
.home .plans .card { padding: 20px; }
.more { font-size: 16px; }
.more a { font-weight: 600; }

.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 32px 14px 0; font-size: 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 22px var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; max-width: 46em; font-size: 16px; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.home .join { max-width: 760px; margin: 0; }
.home .join h2 { font-size: 26px; }
.home footer { max-width: 1160px; margin: 72px auto 0; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
.home footer .tm { font-size: 12px; margin: 8px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .feats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .ucs { display: none; }
  .btn { width: 100%; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .steps { border-top: 0; }
  .feats { grid-template-columns: 1fr; }
  .tabframe { margin-top: 36px; border-radius: 10px 10px 0 0; }
  .urlbar { display: none; }
  .sec { padding-top: 64px; }
}
