/* ==========================================================================
   koinoxrista.com.gr — Design system
   Παλέτα λογοτύπου: ink #151B2C · violet #7C5CFC · teal #22C3B0 · sky #38BDF8
   Προσβασιμότητα: μεγάλα γράμματα, υψηλό κοντράστ (WCAG AA), μεγάλοι στόχοι.
   ========================================================================== */

:root {
    --ink:        #151B2C;
    --ink-2:      #26304a;
    --muted:      #5b6478;
    --line:       #e2e6ef;
    --line-2:     #eef1f7;
    --bg:         #f5f7fb;
    --card:       #ffffff;
    --violet:     #7C5CFC;
    --violet-d:   #6a49ec;
    --violet-soft:#efeafe;
    --teal:       #17b3a0;
    --teal-soft:  #e2f7f3;
    --sky:        #38BDF8;
    --green:      #12855f;
    --green-soft: #e2f4ec;
    --red:        #c62f45;
    --red-soft:   #fce8ea;
    --amber:      #a86a00;
    --amber-soft: #fdf1dc;

    --radius:   14px;
    --radius-s: 9px;
    --shadow:   0 1px 2px rgba(21,27,44,.06), 0 8px 24px rgba(21,27,44,.06);
    --shadow-lg:0 12px 40px rgba(21,27,44,.14);

    --fs-base: 17px;
    --ff: "Segoe UI", "Helvetica Neue", Roboto, "Noto Sans", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--ff);
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--violet-d); }
a:hover { color: var(--violet); }

small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.center { text-align: center; }
.right  { text-align: right; }
.nowrap { white-space: nowrap; }
.mono   { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* --- Layout shell -------------------------------------------------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    background: var(--ink);
    color: #fff;
    position: sticky; top: 0; z-index: 40;
}
.topbar-inner {
    max-width: 1180px; margin: 0 auto; padding: .55rem 1rem;
    display: flex; align-items: center; gap: 1rem;
}
.topbar a { color: #dfe4f2; text-decoration: none; }
.topbar a:hover { color: #fff; }
.brand-link { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.qr-preview svg { width: 132px; height: 132px; display: block; }
/* Logo (white-background PNG) sits in a white chip on dark headers */
.brand-chip { background: #fff; border-radius: 9px; padding: 4px 10px; display: inline-flex; align-items: center; }
.brand-chip img { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav a {
    padding: .5rem .8rem; border-radius: 9px; font-weight: 600; font-size: .97rem;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.nav .sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); margin: 0 .25rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1rem 3rem; width: 100%; }
.container-narrow { max-width: 760px; }

.footer {
    margin-top: auto; border-top: 1px solid var(--line);
    padding: 1.2rem 1rem; color: var(--muted); font-size: .9rem; text-align: center;
    background: #fff;
}

/* --- Page header --------------------------------------------------------- */
.page-head {
    display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 1.3rem;
}
.page-head .titles { margin-right: auto; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: .2rem 0 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Cards --------------------------------------------------------------- */
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.3rem;
}
.card + .card { margin-top: 1.1rem; }
.card-head { display: flex; align-items: center; gap: .8rem; margin: -.2rem 0 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .actions { margin-left: auto; display: flex; gap: .5rem; }
.card-pad-0 { padding: 0; overflow: hidden; }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --- Stat tiles ---------------------------------------------------------- */
.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.stat .label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.stat .value { font-size: 1.7rem; font-weight: 800; margin-top: .15rem; letter-spacing: -.01em; }
.stat .value.pos { color: var(--green); }
.stat .value.neg { color: var(--red); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
    padding: .72rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
    background: var(--line-2); color: var(--ink); cursor: pointer; text-decoration: none;
    transition: background .12s, box-shadow .12s, transform .02s;
    min-height: 46px;
}
.btn:hover { background: #e6eaf3; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-d); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0f9a89; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a8283a; color: #fff; }
.btn-lg { font-size: 1.1rem; padding: .9rem 1.5rem; min-height: 54px; }
.btn-sm { font-size: .9rem; padding: .5rem .8rem; min-height: 38px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* --- Forms --------------------------------------------------------------- */
.field { margin-bottom: 1.05rem; }
.field > label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.input, .select, .textarea {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
    padding: .68rem .8rem; border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; min-height: 46px;
}
.textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus, .btn:focus-visible, a:focus-visible {
    outline: 3px solid rgba(124,92,252,.35); outline-offset: 1px;
    border-color: var(--violet);
}
.input.err, .select.err, .textarea.err { border-color: var(--red); }
.field-error { color: var(--red); font-size: .85rem; margin-top: .3rem; font-weight: 600; }
.inline-fields { display: flex; gap: .8rem; flex-wrap: wrap; }
.inline-fields > .field { flex: 1 1 160px; margin-bottom: 0; }
.checkbox { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.checkbox input { width: 20px; height: 20px; }

/* --- Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: .82rem; text-transform: none; letter-spacing: .01em; color: var(--muted); font-weight: 700; background: var(--line-2); }
table.data td.num, table.data th.num { text-align: right; }
table.data tbody tr:hover { background: #fafbfe; }
table.data tfoot td { font-weight: 800; border-top: 2px solid var(--ink); background: #fff; }
table.data .row-strong td { font-weight: 700; }

/* --- Badges / status ----------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
    background: var(--line-2); color: var(--ink-2);
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red   { background: var(--red-soft);   color: var(--red); }
.badge-amber { background: var(--amber-soft);  color: var(--amber); }
.badge-violet{ background: var(--violet-soft); color: var(--violet-d); }
.badge-teal  { background: var(--teal-soft);   color: #0f7d6f; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* --- Flash messages ------------------------------------------------------ */
.flash { display: flex; gap: .6rem; align-items: flex-start;
    padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600;
    border: 1px solid transparent; }
.flash-success { background: var(--green-soft); color: var(--green); border-color: #bfe6d4; }
.flash-error   { background: var(--red-soft);   color: var(--red);   border-color: #f3c6cd; }
.flash-info    { background: var(--violet-soft); color: var(--violet-d); border-color: #d9cffb; }
.flash-warning { background: var(--amber-soft); color: var(--amber); border-color: #f0dcb0; }

/* --- Wizard steps -------------------------------------------------------- */
.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.step {
    flex: 1 1 180px; display: flex; align-items: center; gap: .7rem;
    padding: .8rem 1rem; border-radius: 12px; background: #fff; border: 1.5px solid var(--line);
}
.step .n {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--line-2); color: var(--muted); font-weight: 800; flex: none;
}
.step.active { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,252,.12); }
.step.active .n { background: var(--violet); color: #fff; }
.step.done .n { background: var(--teal); color: #fff; }
.step .t { font-weight: 700; font-size: .98rem; }
.step .t small { display: block; color: var(--muted); font-weight: 500; }

/* --- Tabs ---------------------------------------------------------------- */
.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; flex-wrap: wrap; }
.tab {
    padding: .65rem 1rem; border: none; background: none; font: inherit; font-weight: 700;
    color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
    text-decoration: none;
}
.tab.active { color: var(--violet-d); border-bottom-color: var(--violet); }
.tab:hover { color: var(--ink); }

/* --- Misc ---------------------------------------------------------------- */
.divider { height: 1px; background: var(--line); margin: 1.2rem 0; border: 0; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty .icon { font-size: 2.2rem; opacity: .5; }
.stack > * + * { margin-top: 1rem; }
.flex { display: flex; gap: .7rem; align-items: center; }
.flex-between { display: flex; gap: .7rem; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.tag-line { display: flex; gap: .4rem; flex-wrap: wrap; }
.hide { display: none !important; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--violet); color: #fff;
    padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Auth / marketing ---------------------------------------------------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-aside { background: linear-gradient(160deg, var(--ink), #202a45); color: #fff; padding: 3rem; display: flex; flex-direction: column; }
.auth-aside .logo { height: 40px; margin-bottom: 2rem; }
.auth-aside h2 { color: #fff; font-size: 1.9rem; }
.auth-aside .feat { display: flex; gap: .7rem; margin: 1rem 0; align-items: flex-start; }
.auth-aside .feat .ic { color: var(--teal); font-weight: 800; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 420px; }
@media (max-width: 800px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }

@media (max-width: 640px) {
    :root { --fs-base: 16px; }
    .container { padding: 1rem .8rem 2.5rem; }
    .card { padding: 1rem; }
    h1 { font-size: 1.45rem; }
}

/* ==========================================================================
   Marketing / help pages (layout.site)
   ========================================================================== */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92);
    backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-head-inner { max-width: 1140px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; }
.site-brand img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; gap: .3rem; margin-left: 1rem; margin-right: auto; }
.site-nav a { padding: .5rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.site-nav a:hover { background: var(--line-2); color: var(--ink); }
.site-nav a.active { color: var(--violet-d); }
.site-actions { display: flex; gap: .5rem; align-items: center; }
@media (max-width: 760px) { .site-nav { display: none; } }

.hero { background: linear-gradient(160deg, var(--ink) 0%, #202a45 60%, #2a2450 100%); color: #fff; }
.hero-inner { max-width: 1140px; margin: 0 auto; padding: 3.6rem 1rem 3rem; display: grid;
    grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; font-size: 2.5rem; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 1rem; }
.hero p.lead { color: #c9d0e6; font-size: 1.2rem; margin: 0 0 1.6rem; }
.hero .cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero .trust { margin-top: 1.2rem; color: #97a0bd; font-size: .95rem; }
.hero-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-badges span { background: rgba(255,255,255,.1); color: #dfe4f2; border-radius: 999px; padding: .35rem .8rem; font-size: .9rem; font-weight: 600; }
.hero-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1rem; color: var(--ink); }
.hero-card img { width: 100%; border-radius: 12px; display: block; }
.hero-card .mock { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; } }

.section { max-width: 1140px; margin: 0 auto; padding: 3rem 1rem; }
.section h2 { font-size: 1.9rem; letter-spacing: -.01em; }
.section .section-sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 0 1.8rem; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; box-shadow: var(--shadow); }
.feature .fic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 1.4rem;
    background: var(--violet-soft); margin-bottom: .8rem; }
.feature h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

.steps-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
@media (max-width: 860px) { .steps-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-flow { grid-template-columns: 1fr; } }
.flow { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; position: relative; }
.flow .num { width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800;
    display: grid; place-items: center; margin-bottom: .6rem; }
.flow h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.flow p { margin: 0; color: var(--muted); font-size: .95rem; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1020px; margin: 0 auto;
    align-items: stretch; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; } }
.price-grid .price-card { max-width: none; margin: 0; display: flex; flex-direction: column; }
.price-grid .price-card > a.btn { margin-top: auto; }
.price-grid .price-card { border-color: var(--line); box-shadow: var(--shadow); }
.price-grid .price-card.featured { border: 2px solid var(--violet); box-shadow: var(--shadow-lg); }
.price-grid .price-card .amt { font-size: 2.3rem; }
.price-card { max-width: 460px; margin: 0 auto; background: #fff; border: 2px solid var(--violet); border-radius: 18px;
    padding: 2rem; text-align: center; box-shadow: var(--shadow-lg); }
.price-card .amt { font-size: 3rem; font-weight: 900; letter-spacing: -.02em; }
.price-card .amt small { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0; text-align: left; }
.price-card li { padding: .45rem 0; padding-left: 1.8rem; position: relative; }
.price-card li::before { content: "✓"; color: var(--teal); font-weight: 900; position: absolute; left: 0; }

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.05rem 1.2rem; font-weight: 700; font-size: 1.05rem; list-style: none;
    display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--violet); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 1.2rem 1.1rem; color: var(--ink-2); }
.faq-item .faq-body p { margin: 0 0 .6rem; }

.guide-toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.guide-toc ol { margin: .3rem 0 0; padding-left: 1.2rem; }
.guide-toc a { text-decoration: none; }
.guide-section { max-width: 820px; }
.guide-section h2 { scroll-margin-top: 80px; margin-top: 2rem; }
.guide-section ol, .guide-section ul { padding-left: 1.3rem; }
.guide-section li { margin: .4rem 0; }
.guide-note { background: var(--violet-soft); border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0; color: var(--ink-2); }
.guide-note b { color: var(--violet-d); }

.cta-band { background: linear-gradient(135deg, var(--violet), var(--violet-d)); color: #fff; text-align: center; }
.cta-band .section { padding: 2.6rem 1rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ece8ff; font-size: 1.1rem; }

.site-foot { background: var(--ink); color: #c4cbe0; margin-top: 2rem; }
.site-foot-inner { max-width: 1140px; margin: 0 auto; padding: 2.4rem 1rem 1.4rem; display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
.site-foot .muted { color: #97a0bd; }
.site-foot-links { display: flex; flex-direction: column; gap: .5rem; }
.site-foot-links a { color: #c4cbe0; text-decoration: none; }
.site-foot-links a:hover { color: #fff; }
.site-foot-legal { max-width: 1140px; margin: 0 auto; padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); color: #8b93ad; font-size: .9rem; }
.site-foot-legal a { color: #8b93ad; }

/* --- Cookie consent banner ------------------------------------------------ */
.kx-consent {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000;
    max-width: 560px; margin: 0 auto;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 32px rgba(21, 27, 44, .18);
    padding: 1rem 1.1rem; font-size: .88rem; color: var(--ink);
}
.kx-consent p { margin: 0 0 .7rem; line-height: 1.5; }
.kx-consent .kx-consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.kx-consent a { color: var(--violet-d); }
@media (max-width: 480px) {
    .kx-consent { left: .5rem; right: .5rem; bottom: .5rem; }
    .kx-consent .kx-consent-actions .btn { flex: 1 1 auto; text-align: center; }
}
