/* The public homepage. brickformer.io's colours: dark #1a1919, yellow #ffd321 / #ffe166 */
:root {
    --dark: #1a1919;
    --dark-2: #232121;
    --yellow: #ffd321;
    --yellow-light: #ffe166;
    --text: #f4f2ee;
    --muted: #aaa69e;
    --line: rgba(255, 255, 255, 0.12);
    --top-h: 60px;
}

* { box-sizing: border-box; }
html { margin: 0; }
body { margin: 0; background: var(--dark); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
a { color: var(--yellow); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; height: var(--top-h); display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 0 24px; background: var(--yellow); color: var(--dark); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--dark); text-decoration: none; font-size: 26px; white-space: nowrap; }
.brand img { height: 40px; }
.brand b { font-weight: 800; }
.who { font-size: 14px; min-width: 0; }
.who a { color: var(--dark); font-weight: 600; }
.who-user { display: flex; align-items: center; gap: 18px; }
/* Name over email, right-aligned, linking to the profile */
.who-id { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-decoration: none; max-width: 46vw; }
.who-id span, .who-id small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-id small { font-size: 12px; font-weight: 500; opacity: 0.75; }
.who-id:hover span { text-decoration: underline; }

.page { position: relative; min-height: calc(100vh - var(--top-h)); min-height: calc(100svh - var(--top-h));
    display: flex; flex-direction: column; justify-content: center; }

/* Full-page sections: Swiper, vertical (home.html), on wide screens */
@media (min-width: 861px) {
    .pages { height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); }
    .pages .page { height: 100%; min-height: 0; overflow: hidden; }
}
.pages { --swiper-pagination-color: var(--yellow); --swiper-pagination-bullet-inactive-color: var(--yellow);
    --swiper-pagination-bullet-size: 11px; --swiper-pagination-right: 18px; }
@media (max-width: 860px) {
    .pages, .pages .swiper-wrapper { display: block; height: auto; overflow: visible; }
    .swiper-pagination { display: none; }
}

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 32px 24px 56px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 .hl { color: var(--yellow); white-space: nowrap; }
.lead { margin: 0 0 30px; font-size: 18px; color: #d6d2ca; max-width: 560px; }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.cta { display: inline-block; padding: 16px 34px; border-radius: 14px; background: var(--yellow); color: var(--dark);
    font-size: 19px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(255, 211, 33, 0.25); transition: background 0.15s; }
.cta:hover { background: var(--yellow-light); }
.cta.ghost { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); box-shadow: none; }
.cta.busy { opacity: 0.7; cursor: progress; }

/* Before / after: the brick picture over the model, clipped at --pos */
.compare { position: relative; aspect-ratio: 1; width: 100%; max-width: calc(100vh - var(--top-h) - 100px); justify-self: center;
    border-radius: 22px; overflow: hidden; background: #e9ebef; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--yellow); pointer-events: none; }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--dark);
    display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare .tag { position: absolute; bottom: 14px; padding: 4px 12px; border-radius: 99px; background: rgba(26, 25, 25, 0.8);
    color: var(--yellow-light); font-size: 13px; font-weight: 700; pointer-events: none; }
.compare .tag.left { left: 14px; }
.compare .tag.right { right: 14px; }

.band { background: var(--dark-2); border-top: 1px solid var(--line); padding: clamp(16px, 4.5vh, 40px) 24px clamp(28px, 6vh, 56px); }
.band h2 { text-align: center; font-size: clamp(24px, min(3.2vw, 4.5vh), 36px); margin: 0 0 clamp(12px, 3vh, 28px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; width: 100%; }
.step { padding: 16px 16px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.03); }
.step-img { aspect-ratio: 4 / 3; max-height: 34vh; width: 100%; border-radius: 12px; overflow: hidden; background: #e9ebef; margin-bottom: 16px; }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--yellow); color: var(--dark); font-size: 18px; vertical-align: middle; }
.step h3 { display: inline; margin: 0 0 0 10px; font-size: 19px; color: var(--yellow-light); vertical-align: middle; }
.step p { margin: 12px 0 0; color: var(--muted); }

.page.last { justify-content: space-between; padding-bottom: 0; }
.plans-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.compare-plans { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; font-size: 16px; }
.compare-plans th, .compare-plans td { padding: clamp(7px, 1.6vh, 14px) 18px; }
/* Thin borders around every cell; none around the empty corner and the buttons */
.compare-plans thead th, .compare-plans tbody th, .compare-plans tbody td { border: 1px solid var(--line); }
.compare-plans thead th:first-child { border-top-color: transparent; border-left-color: transparent; }
.compare-plans tbody th { text-align: left; font-weight: 500; color: #d6d2ca; }
.compare-plans th small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.compare-plans td { text-align: center; width: 26%; }
.compare-plans thead th { font-size: 22px; color: #fff; vertical-align: top; }
.compare-plans thead th.premium { color: var(--yellow); }
.compare-plans tfoot th, .compare-plans tfoot td { padding-top: clamp(10px, 2.4vh, 22px); padding-bottom: clamp(10px, 2.4vh, 22px); }
.compare-plans .yes { color: var(--yellow); font-size: 20px; font-weight: 800; }
.compare-plans .no { color: var(--muted); }
.compare-plans thead th small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); font-weight: 400; }
.compare-plans td small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.compare-plans td.pass { color: #d6d2ca; }
.packs { max-width: 760px; margin: clamp(8px, 2vh, 18px) auto 0; width: 100%; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.packs b { color: #d6d2ca; }
.compare-plans .cta { font-size: 15px; padding: 10px 18px; white-space: nowrap; }

.contacts { align-items: center; text-align: center; }
.contacts p { margin: 0; color: #d6d2ca; }
.contacts p, .contacts .mail { font-size: 18px; line-height: 1.5; }
.contacts .mail { font-weight: 700; color: var(--yellow); text-decoration: none; }
.contacts .mail:hover { text-decoration: underline; }

/* Same header and footer sizes on every page: 60 px and 48 px */
footer { margin: clamp(10px, 3vh, 40px) -24px 0; height: 48px; display: flex; align-items: center; justify-content: flex-end;
    padding: 0 24px; background: var(--yellow); color: var(--dark); font-size: 13px; text-align: right; }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 32px; }
    .compare { max-width: 100%; }
    .steps { grid-template-columns: 1fr; }
    .compare-plans { font-size: 14px; }
    .compare-plans th, .compare-plans td { padding: 10px 8px; }
    .compare-plans .cta { padding: 9px 10px; font-size: 13px; }
    .step-img { max-height: none; }
    .top { padding: 0 16px; }
    .brand { font-size: 22px; }
    .brand img { height: 32px; }
}

.dialog-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.dialog { width: min(480px, 100%); padding: 28px; border-radius: 20px; background: var(--dark); border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); }
.dialog h2 { margin: 0 0 12px; color: var(--yellow-light); font-size: 22px; }
.dialog p { margin: 0 0 12px; color: #d6d2ca; font-size: 15px; }
.dialog p.reason { color: var(--muted); font-size: 14px; }
.dialog code { background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 4px; }
.dialog .cta { margin-top: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 800; padding: 12px 30px; }

/* Short laptop screens: the plans table tightens so the page still fits */
@media (max-height: 780px) and (min-width: 861px) {
    .compare-plans { font-size: 15px; }
    .compare-plans thead th { font-size: 19px; }
    .compare-plans th small { display: inline; margin-left: 8px; }
    .compare-plans .cta { padding: 8px 16px; font-size: 14px; }
    .compare-plans .yes { font-size: 17px; }
}
