/* ============================================================
   ed1.se — site styles
   Modern, responsive, dependency-free.
   Brand: edit green #A3D800 · Plugin/EU blue #003399
   ============================================================ */

:root {
    --green: #A3D800;
    --green-dark: #7fa800;
    --blue: #003399;
    --blue-dark: #00226b;
    --blue-soft: #e8eefb;
    --ink: #1b2434;
    --muted: #5b6577;
    --line: #e3e7ef;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(20, 30, 60, .08);
    --shadow-lg: 0 16px 48px rgba(20, 30, 60, .14);
    --container: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:hover { opacity: .85; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

/* ---- Header / nav ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 96px;
    transition: min-height .25s ease;
}
.site-header.is-scrolled .container { min-height: 60px; }
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .02em;
}
.brand img { height: 68px; width: auto; transition: height .25s ease; }
.site-header.is-scrolled .brand img { height: 42px; }

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
    padding: 8px 12px;
    border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); opacity: 1; }
.site-nav a.active { color: var(--blue); }

.lang-switch {
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
    font-size: .88rem;
    white-space: nowrap;
}
.lang-switch a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 4px 6px; }
.lang-switch a.current { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Hero ---- */
.hero {
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(163, 216, 0, .18), transparent 60%),
        radial-gradient(900px 480px at 5% 110%, rgba(0, 51, 153, .10), transparent 60%),
        var(--bg-soft);
    padding: clamp(56px, 9vw, 110px) 0;
}
.hero .container { max-width: 880px; text-align: center; }
.hero .kicker {
    display: inline-block;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 14px;
}
.hero p.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 30px;
}

.hero-img {
    max-width: 540px;
    margin: 40px auto 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
    font-family: inherit;
    line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-dark); opacity: 1; }
.btn-green { background: var(--green); color: #233000; box-shadow: var(--shadow); }
.btn-green:hover { background: #b5ec12; opacity: 1; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); opacity: 1; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }

/* ---- Plugin promo (EU blue) ---- */
.promo {
    background: linear-gradient(135deg, var(--blue) 0%, #0a47c2 100%);
    color: #fff;
    overflow: hidden;
}
.promo .container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}
.promo h2 { color: #fff; }
.promo p { color: rgba(255, 255, 255, .85); }
.promo .badge {
    display: inline-block;
    background: var(--green);
    color: #233000;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.promo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.promo .btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.promo .btn-ghost:hover { border-color: #fff; }
.promo .promo-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.promo .promo-img img {
    border-radius: 0;
    box-shadow: none;
    display: block;
}
.promo .promo-badge {
    position: absolute;
    top: 46px;
    left: -78px;
    width: 310px;
    transform: rotate(-45deg);
    background: var(--green);
    color: #233000;
    font-weight: 800;
    font-size: .88rem;
    letter-spacing: .02em;
    text-align: center;
    padding: 9px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    white-space: nowrap;
}

/* ---- Cards ---- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 10px rgba(20, 30, 60, .04);
}
.card .icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.card p { color: var(--muted); margin-bottom: 0; }

/* ---- Reference grid ---- */
.refs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.ref {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow .15s ease, transform .15s ease;
}
.ref:hover { box-shadow: var(--shadow); transform: translateY(-2px); opacity: 1; }
.ref img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ref .ref-body { padding: 16px 18px; }
.ref h3 { margin: 0 0 4px; font-size: 1.02rem; }
.ref p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---- Pricing ---- */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    align-items: stretch;
}
.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.plan.featured {
    border: 2px solid var(--blue);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.plan.featured .plan-flag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 999px;
    white-space: nowrap;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .plan-sites { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.plan .price .per { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .price-alt { color: var(--muted); font-size: .9rem; margin: 2px 0 22px; }
.plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    text-align: left;
    color: var(--muted);
    font-size: .95rem;
}
.plan ul li { padding: 6px 0 6px 26px; position: relative; }
.plan ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green-dark);
    font-weight: 800;
}
.plan .btn { margin-top: auto; }

.trial-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 26px; }

/* ---- Offer banner ---- */
.offer-banner {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
    background: #f3fadc;
    border: 2px dashed var(--green-dark);
    border-radius: 12px;
    padding: 14px 22px;
    font-size: 1rem;
}
.offer-banner code {
    background: var(--green);
    color: #233000;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 6px;
    font-family: inherit;
    letter-spacing: .04em;
}

/* ---- Billing cycle toggle ---- */
.cycle-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 36px;
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    background: #fff;
}
.cycle-btn {
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    color: var(--muted);
    padding: 9px 22px;
    border-radius: 999px;
    cursor: pointer;
}
.cycle-btn.active { background: var(--blue); color: #fff; }
.cycle-btn small { font-weight: 600; opacity: .85; }

/* ---- Feature list (product page) ---- */
.law-box {
    background: var(--blue-soft);
    border-left: 5px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 28px;
    margin: 0 0 18px;
}
.law-box strong { color: var(--blue-dark); }

.req-list { counter-reset: req; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.req-list li {
    counter-increment: req;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px 18px 64px;
    position: relative;
}
.req-list li::before {
    content: counter(req);
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- FAQ ---- */
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 22px;
    margin-bottom: 12px;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    padding: 18px 0;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 800; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin-top: 0; }

/* ---- Docs ---- */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    align-items: start;
}
.docs-toc {
    position: sticky;
    top: 84px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    font-size: .92rem;
    background: #fff;
}
.docs-toc h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.docs-toc ul { list-style: none; padding: 0; margin: 0; }
.docs-toc li { margin: 2px 0; }
.docs-toc a {
    display: block;
    text-decoration: none;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
}
.docs-toc a:hover { background: var(--bg-soft); color: var(--ink); opacity: 1; }

.docs-content h2 {
    margin-top: 2.2em;
    padding-top: 1.2em;
    border-top: 1px solid var(--line);
    font-size: 1.5rem;
}
.docs-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.docs-content code {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: .88em;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: .95rem;
}
.docs-content th, .docs-content td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}
.docs-content th { background: var(--bg-soft); }
.docs-content .tip {
    background: #f3fadc;
    border-left: 4px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 14px 20px;
    margin: 1.2em 0;
}

/* ---- Contact ---- */
.contact-box {
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 44px 28px;
    box-shadow: var(--shadow);
    max-width: 620px;
    margin: 0 auto;
}
.contact-box .email {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blue);
    text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--ink);
    color: #aab3c5;
    padding: 44px 0;
    margin-top: 0;
    font-size: .92rem;
}
.site-footer .container {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.site-footer a { color: #dfe5f0; text-decoration: none; font-weight: 600; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .promo .container { grid-template-columns: 1fr; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-toc { position: static; }
}
@media (max-width: 560px) {
    .site-header .container { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .site-nav { margin-left: 0; width: 100%; justify-content: flex-start; }
}
