/*
Theme Name: OctoLangWP
Theme URI: https://octolangwp.com
Author: OctoLang
Author URI: https://octolangwp.com
Description: Marketing theme for octolangwp.com. No build step, no dependencies. Every piece of copy lives in rendered HTML so OctoLangWP itself can translate the site.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: octolangwp-site
*/

/* Paleta z brand/README.md. Czwarty kolor dokładamy dopiero, gdy będzie potrzebny. */
:root {
    --brand: #5A31E0;
    --brand-dark: #4523c4;
    --brand-tint: #f3f0fe;
    --ink: #16123A;
    --ink-soft: #55506f;
    --ink-faint: #8a85a3;
    --line: #e6e3f2;
    --bg: #ffffff;
    --bg-alt: #faf9ff;
    --ok: #0f7a4d;
    --radius: 14px;
    --wrap: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.center { text-align: center; }
.center .section__lead { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .96rem; font-weight: 500; }
.site-nav a:hover { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 13px 24px; border-radius: 10px;
    font-weight: 600; font-size: .97rem; text-decoration: none; border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    cursor: pointer;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--block { display: block; text-align: center; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); }
.hero__eyebrow {
    display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--brand);
    background: #fff; border: 1px solid var(--line);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero p.hero__sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: .92rem; color: var(--ink-faint); }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 22px; margin-top: 48px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.card__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--brand-tint); color: var(--brand);
    font-weight: 700; font-size: .92rem; margin-bottom: 14px;
}

/* ---------- Meter callout ---------- */
.meter { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.meter__box { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: #fff; }
.meter__box--them { background: #fff8f8; border-color: #f2d9d9; }
.meter__box--us { background: #f4fbf7; border-color: #cfe9dc; }
.meter__box h3 { font-size: 1.05rem; }
.meter__box ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .97rem; }
.meter__box li { margin-bottom: 8px; }
.meter__figure { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; display: block; margin-bottom: 4px; }
.meter__box--them .meter__figure { color: #b23b3b; }
.meter__box--us .meter__figure { color: var(--ok); }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; margin-top: 44px; }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
table.compare th, table.compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 600; }
table.compare tbody th { font-weight: 600; color: var(--ink); }
table.compare td { color: var(--ink-soft); }
table.compare .is-us { background: var(--brand-tint); color: var(--ink); font-weight: 600; }
table.compare thead .is-us { color: var(--brand); }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; align-items: start; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: #fff; }
.tier--featured { border-color: var(--brand); box-shadow: 0 12px 34px rgba(90,49,224,.12); position: relative; }
.tier__tag {
    position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 11px; border-radius: 999px;
}
.tier__name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.tier__price { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; }
.tier__price small { font-size: .92rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.tier__sites { color: var(--ink-faint); font-size: .9rem; margin: 4px 0 20px; }
.tier ul { list-style: none; margin: 22px 0 0; padding: 0; font-size: .93rem; color: var(--ink-soft); }
.tier li { padding-left: 22px; position: relative; margin-bottom: 9px; }
.tier li::before {
    content: ""; position: absolute; left: 0; top: .5em;
    width: 11px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}
.tier--free li::before { border-color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.03rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: #fff; padding: 76px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #bdb8d4; max-width: 54ch; margin-inline: auto; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Prose (terms, privacy) ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 72px 24px 88px; }
.prose h1 { margin-bottom: .3em; }
.prose .updated { color: var(--ink-faint); font-size: .92rem; margin-bottom: 2.4em; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; }
.prose ul { padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); }
.prose th { background: var(--bg-alt); }

.notice-box { background: var(--brand-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 2em 0; }
.notice-box p { margin: 0; color: var(--ink); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 40px; font-size: .93rem; color: var(--ink-faint); }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Language switcher (renderowany przez wtyczkę) ---------- */
.octolang-switcher { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.octolang-switcher a { color: var(--ink-soft); text-decoration: none; }
.octolang-switcher a:hover { color: var(--brand); }

/* ---------- Dostępność ---------- */
/* Znaczniki ✓ i — w tabeli cennika są dekoracją; czytnik ekranu dostaje słowo. */
.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
    padding: 10px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .tiers { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .section { padding: 64px 0; }
    .hero { padding: 64px 0 56px; }
    .grid--3, .grid--2, .tiers, .meter { grid-template-columns: 1fr; }
    .site-nav { gap: 16px; }
    .site-nav a.is-hideable { display: none; }
}
