/* Magazio — magazio.gr
   Χρώματα/αποστάσεις/γωνίες ΜΟΝΟ από τα tokens (tokens.css). */

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/commissioner-greek.woff2") format("woff2-variations"),
       url("/fonts/commissioner-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/commissioner-latin.woff2") format("woff2-variations"),
       url("/fonts/commissioner-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root { color-scheme: light dark; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }

.skip {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--surface); color: var(--text);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  border: 1px solid var(--border-strong); z-index: 10;
}
.skip:focus { top: var(--space-4); }

.wrap { width: min(1120px, 100% - 2 * var(--space-6)); margin-inline: auto; }
@media (max-width: 480px) { .wrap { width: calc(100% - 2 * var(--space-4)); } }

/* ---------- Header ---------- */
.site-header { padding-block: var(--space-6); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.logo img { height: 36px; width: auto; }
.header-link { font-weight: 600; text-decoration: none; }
.header-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-8) var(--space-12); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: var(--space-8); } }

.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.875rem; font-weight: 650;
  padding: 6px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--accent-tint);
  color: var(--text);
  border: 1px solid var(--border);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-copy { display: grid; gap: var(--space-5); padding-top: var(--space-4); }
.hero-copy .lede { font-size: 1.1875rem; color: var(--text-muted); max-width: 34em; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.hero-points li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--text); font-weight: 500; }
.hero-points svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--brand-text); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

/* ---------- Form ---------- */
.form-card { padding: var(--space-8) var(--space-6); scroll-margin-top: var(--space-6); }
@media (min-width: 480px) { .form-card { padding: var(--space-8); } }
.form-card h2 { font-size: 1.5rem; }
.form-card .sub { color: var(--text-muted); margin-top: var(--space-2); }

form { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.field { display: grid; gap: var(--space-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.label, legend { font-weight: 650; font-size: 0.9375rem; padding: 0; }
.optional { font-weight: 500; color: var(--text-subtle); }

input[type="email"], select {
  font: inherit;
  width: 100%;
  min-height: var(--button-height);
  padding: 0 var(--space-4);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 22px center, right 16px center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
input[type="email"]::placeholder { color: var(--text-subtle); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }

/* Επιλογή εργαζομένων: κουμπιά-χάπια */
.choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch-min); min-width: 64px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Checkboxes */
.check { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; }
.check input {
  flex: none; width: 22px; height: 22px; margin: 2px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.check-list { display: grid; gap: var(--space-3); }
.sub-field { margin-left: 34px; }
.sub-field[hidden] { display: none; }
.consent { font-size: 0.9375rem; color: var(--text-muted); }
.consent a { font-weight: 600; }

.field-error { color: var(--danger); font-size: 0.9375rem; font-weight: 600; }
.field-error:empty { display: none; }

.turnstile-box { min-height: 65px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--button-height);
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary[disabled] { cursor: progress; opacity: 0.75; }
.btn-block { width: 100%; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-subtle); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.form-status { border-radius: var(--radius-md); padding: var(--space-4); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { background: var(--danger-tint); color: var(--text); border: 1px solid var(--danger); }

.done { display: grid; gap: var(--space-4); justify-items: start; margin-top: var(--space-6); }
.done[hidden] { display: none; }
.done-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--success-tint); color: var(--on-success-tint);
}
.done-icon svg { width: 28px; height: 28px; }
.done p { color: var(--text-muted); }
.done .done-title { color: var(--text); font-size: 1.25rem; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-12); }
.section-head { display: grid; gap: var(--space-3); max-width: 44em; margin-bottom: var(--space-8); }
.section-head p { color: var(--text-muted); font-size: 1.0625rem; }
.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-text); }

.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.feature { display: grid; gap: var(--space-3); align-content: start; }
.feature p { color: var(--text-muted); }
.icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-text);
}
.icon svg { width: 24px; height: 24px; }

.band { background: var(--bg-subtle); border-block: 1px solid var(--border); }

.industries { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.industries li {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--button-height);
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 650;
}
.industries svg { width: 20px; height: 20px; color: var(--brand-text); }

.soon-tag {
  justify-self: start;
  font-size: 0.8125rem; font-weight: 700;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- When ---------- */
.when {
  background: var(--surface-inverse);
  color: var(--on-inverse);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  display: grid; gap: var(--space-5); justify-items: start;
}
.when p { color: var(--on-inverse-muted); font-size: 1.0625rem; max-width: 38em; }
.when .btn-accent { background: var(--accent); color: var(--on-accent); }
.when .btn-accent:hover { filter: brightness(1.05); }
.when :focus-visible { outline-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-8) var(--space-12); color: var(--text-muted); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }

/* ---------- Privacy page ---------- */
.doc { padding-block: var(--space-8) var(--space-12); }
.doc .card { max-width: 760px; margin-inline: auto; padding: var(--space-8); }
@media (max-width: 480px) { .doc .card { padding: var(--space-6) var(--space-5); } }
.doc h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.doc h2 { font-size: 1.25rem; margin-top: var(--space-8); }
.doc p, .doc ul { margin-top: var(--space-3); color: var(--text-muted); }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: var(--space-2); }
.doc strong { color: var(--text); }
.doc .meta { color: var(--text-subtle); font-size: 0.9375rem; margin-top: var(--space-2); }
.placeholder { background: var(--accent-tint); color: var(--text); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.back { display: inline-flex; margin-bottom: var(--space-6); font-weight: 600; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
