/* PDTHUB — the product's own palette, so the site and the till look like one
   thing. Anything a visitor recognises here they will recognise on the screen
   in front of them at the counter. */

:root {
    --bg: #181a20;
    --surface: #21242c;
    --surface-alt: #2a2e38;
    --border: #3a3f4c;
    --text: #eceff4;
    --muted: #969eaf;
    --accent: #388ee0;
    --accent-soft: rgba(56, 142, 224, .14);
    --success: #2f9e63;
    --danger: #d24a4a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }

/* ------------------------------------------------------------------ bar -- */

.bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 24px;
    background: rgba(24, 26, 32, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.brand { flex: none; }
.brand img { width: 150px; }

.bar-links { display: flex; gap: 22px; flex: 1; }
.bar-links a { color: var(--muted); font-size: 14.5px; }
.bar-links a:hover { color: var(--text); text-decoration: none; }

.bar-right { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 38px;
    padding: 9px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#lang {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.portal-menu { position: relative; }
.portal-menu summary { list-style: none; white-space: nowrap; }
.portal-menu summary::-webkit-details-marker { display: none; }
.portal-menu summary::after { content: "⌄"; margin-left: 8px; color: var(--muted); }
.portal-menu[open] summary { border-color: var(--accent); background: var(--surface); }

.portal-options {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 270px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

.portal-options::before {
    content: "";
    position: absolute;
    right: 24px;
    top: -6px;
    width: 10px;
    height: 10px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}

.portal-options > span {
    display: block;
    padding: 5px 9px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.portal-options a {
    display: block;
    padding: 10px;
    color: var(--text);
    border-radius: 8px;
}

.portal-options a:hover { background: var(--surface-alt); text-decoration: none; }
.portal-options b, .portal-options small { display: block; }
.portal-options b { font-size: 14px; }
.portal-options small { color: var(--muted); font-size: 11px; margin-top: 1px; }

/* --------------------------------------------------------------- buttons -- */

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #2f7fcc; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }

.bar .btn { padding: 8px 16px; font-size: 14px; }

/* ----------------------------------------------------------------- hero -- */

.hero {
    position: relative;
    padding: 92px 0 88px;
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(900px 480px at 75% 20%, rgba(56, 142, 224, .19), transparent 70%),
        var(--bg);
    background-size: 44px 44px, 44px 44px, auto, auto;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 62px;
}

.hero-copy { text-align: left; }
.hero-copy .lead { margin-left: 0; max-width: 590px; }
.hero-copy .cta { justify-content: flex-start; }

.eyebrow {
    color: var(--accent);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(32px, 5.2vw, 52px);
    line-height: 1.12;
    margin: 0 0 20px;
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(25px, 3.4vw, 34px);
    line-height: 1.2;
    margin: 0 0 18px;
    letter-spacing: -.01em;
}

h3 { font-size: 19px; margin: 0 0 8px; }

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 30px;
}

.hero .lead { margin-bottom: 32px; }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-trust {
    display: flex;
    gap: 10px 18px;
    flex-wrap: wrap;
    margin-top: 27px;
}

.hero-trust span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.hero-trust b { font-weight: 500; }
.hero-trust i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(47,158,99,.12); }

.hero-visual { position: relative; min-width: 0; padding: 36px 0 32px; }

.product-frame {
    width: min(700px, 55vw);
    overflow: hidden;
    border: 1px solid #444b59;
    border-radius: 14px;
    background: #12141a;
    box-shadow: 0 34px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.035);
    transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
    transform-origin: center;
}

.product-frame img { width: 100%; }

.frame-bar {
    min-height: 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    color: var(--muted);
    background: #242730;
    border-bottom: 1px solid #404551;
    font-size: 10px;
    letter-spacing: .06em;
}

.frame-bar > b { color: #cfd5df; font-weight: 600; text-align: center; }
.frame-dots { display: flex; gap: 5px; }
.frame-dots i { width: 7px; height: 7px; border-radius: 50%; background: #626a79; }
.frame-dots i:first-child { background: #d65a5a; }
.frame-dots i:nth-child(2) { background: #d3a447; }
.frame-dots i:last-child { background: #42a56b; }
.live { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 7px var(--success); }

.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: rgba(33,36,44,.96);
    border: 1px solid #454b58;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0,0,0,.32);
    color: #dce1e9;
    font-size: 12px;
    font-weight: 600;
}

.hero-chip i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(47,158,99,.18); color: #67d495; font-style: normal; }
.chip-local { left: -24px; bottom: 4px; }
.chip-fiscal { right: -24px; top: 4px; }

/* ------------------------------------------------------------- chooser -- */

.chooser { background: #1b1e25; }
.chooser .lead { margin-bottom: 0; }

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 38px;
}

.product-card {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 32px;
    color: var(--text);
    background: linear-gradient(145deg, #262a34, #20232b);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.product-card::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -100px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(56,142,224,.14);
    filter: blur(4px);
}

.product-card.hospitality::after { background: rgba(123,91,214,.16); }
.product-card.fuel::after { background: rgba(61,199,151,.16); }
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 45px rgba(0,0,0,.22); text-decoration: none; }
.product-card h3 { margin: 8px 0 10px; font-size: 25px; }
.product-card p { max-width: 440px; margin: 0 0 24px; color: var(--muted); }
.product-kicker { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.hospitality .product-kicker { color: #a995ed; }
.fuel .product-kicker { color: #5fd6a4; }

.product-symbol {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 20px;
    border-radius: 11px;
    background: rgba(123,91,214,.16);
    color: #a995ed;
    font-size: 18px;
}

.product-symbol.barcode { background-color: var(--accent-soft); }
.product-symbol.barcode::after { content: ""; width: 23px; height: 21px; background: repeating-linear-gradient(90deg, #6eb4f4 0 2px, transparent 2px 4px, #6eb4f4 4px 5px, transparent 5px 8px); }
.product-symbol.fuel { background-color: rgba(61,199,151,.16); }
.product-symbol.fuel::after { content: ""; width: 23px; height: 9px; border-radius: 2px; background: linear-gradient(90deg, #3dc797 0 60%, rgba(61,199,151,.30) 60%); }
.card-link { position: relative; z-index: 1; color: var(--text); font-size: 14px; }
.card-link span { color: var(--accent); margin-left: 5px; }

/* ---------------------------------------------------------------- bands -- */

.band { padding: 78px 0; border-top: 1px solid var(--border); }
.band.alt { background: #1b1e25; }

.band h2 { text-align: center; }
.band .eyebrow { text-align: center; }
.band.alt .lead, .band .lead { text-align: center; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; }

.ticks li {
    position: relative;
    padding: 0 0 0 34px;
    margin-bottom: 14px;
    color: var(--muted);
}

/* A tick rather than a bullet: every line here is a thing it does, not an
   item on a list. */
.ticks li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    width: 8px;
    height: 14px;
    border: solid var(--success);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.note {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14.5px;
}

/* -------------------------------------------------------------- figures -- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    margin-top: 40px;
}

.split figure, .wide figure { margin: 0; }

.split img, .wide img {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.split figcaption { padding-top: 18px; }
.split figcaption p { color: var(--muted); margin: 0; }

.wide {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.wide .lead { text-align: left; margin: 0 0 6px; }
.wide .ticks { margin-top: 18px; }

/* ----------------------------------------------------------------- grid -- */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.grid article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.grid p { color: var(--muted); margin: 0; font-size: 15px; }

/* --------------------------------------------------------------- setup -- */

.setup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.setup-grid article { position: relative; padding: 28px 24px; background: var(--surface); border-right: 1px solid var(--border); }
.setup-grid article:last-child { border-right: 0; }
.setup-grid article > span { display: block; margin-bottom: 23px; color: var(--accent); font: 700 12px/1 "Segoe UI", sans-serif; letter-spacing: .08em; }
.setup-grid h3 { font-size: 17px; }
.setup-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- footer -- */

footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--muted);
    font-size: 14.5px;
}

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot p { margin: 0; }
.footer-links { display: flex; gap: 8px; }
.footer-links a + a::before { content: "·"; margin-right: 8px; color: var(--border); }

/* ------------------------------------------------------------ narrower -- */

@media (max-width: 900px) {
    .split, .wide, .grid, .hero-grid { grid-template-columns: 1fr; }
    .product-cards { grid-template-columns: 1fr 1fr; }

    .bar { gap: 12px; }
    .nav-toggle { display: block; margin-left: auto; }
    .bar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px 18px 16px;
        background: rgba(24,26,32,.98);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 34px rgba(0,0,0,.3);
    }
    .bar-links.open { display: flex; }
    .bar-links a { padding: 10px 8px; font-size: 15px; }
    .bar-right { margin-left: auto; }

    .hero { padding: 64px 0 60px; }
    .hero-grid { gap: 32px; }
    .hero-copy { text-align: center; }
    .hero-copy .lead { margin-left: auto; }
    .hero-copy .cta, .hero-trust { justify-content: center; }
    .hero-visual { width: min(760px, 100%); margin: 0 auto; padding: 28px 20px; }
    .product-frame { width: 100%; transform: none; }
    .chip-local { left: 0; }
    .chip-fiscal { right: 0; }

    .setup-grid { grid-template-columns: 1fr 1fr; }
    .setup-grid article:nth-child(2) { border-right: 0; }
    .setup-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .band { padding: 56px 0; }
}

@media (max-width: 620px) {
    .wrap { padding: 0 18px; }
    .bar { padding: 11px 14px; gap: 8px; }
    .brand img { width: 124px; }
    .nav-toggle { width: 39px; }
    .bar-right { gap: 6px; }
    #lang { max-width: 78px; padding: 7px 6px; }
    .bar .btn { padding: 8px 10px; }
    .portal-menu summary::after { display: none; }
    .portal-options { position: fixed; top: 65px; right: 12px; width: min(270px, calc(100vw - 24px)); }

    .hero { padding-top: 50px; }
    .hero-trust { display: grid; grid-template-columns: 1fr; justify-items: center; }
    .hero-visual { padding: 24px 0 45px; }
    .frame-bar { grid-template-columns: auto 1fr; }
    .frame-bar > b { text-align: right; }
    .live { display: none; }
    .hero-chip { padding: 9px 11px; font-size: 10.5px; }
    .chip-local { bottom: 5px; }
    .chip-fiscal { top: 3px; }

    .product-cards, .setup-grid { grid-template-columns: 1fr; }
    .product-card { min-height: 0; padding: 26px; }
    .setup-grid article { border-right: 0; border-bottom: 1px solid var(--border); }
    .setup-grid article:nth-child(2) { border-bottom: 1px solid var(--border); }
    .setup-grid article:last-child { border-bottom: 0; }
    .footer-links { display: block; }
}

/* ------------------------------------------------------------------ form -- */

.form { max-width: 760px; margin: 34px auto 0; text-align: left; }

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form label { display: block; }
.form label.full { margin-bottom: 18px; }

.form label span {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: var(--muted);
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    font: inherit;
    font-size: 15px;
}

.form textarea { resize: vertical; min-height: 96px; }

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Off-screen rather than display:none — some bots skip what is not rendered,
   and the point is that they DO fill it in. */
.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-foot {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.form-foot .note {
    margin: 0;
    padding: 0;
    border: 0;
    flex: 1;
    min-width: 220px;
}

.form-foot .note.ok  { color: var(--success); }
.form-foot .note.bad { color: #d9534f; }

.form button[disabled] { opacity: .6; cursor: default; }

@media (max-width: 700px) {
    .row { grid-template-columns: 1fr; }
}
