/* The brief: the white-label site's look (its ground, its orange and amber,
   Montserrat in English and Geologica in Greek, the pill with the disc) for a
   page people fill in. Text never under 15px, and the grey kept light enough
   to read on the dark ground. Selected things turn orange; nothing floats in
   frosted glass. */

:root {
    --bg: #0a0a0e;
    --panel: #141419;
    --field: #1b1b21;
    --tile: #2a2a32;
    --edge: #33333c;
    --ink: #f5f5f7;
    /* Every word on the page is white: the owner asked for no grey text.
       Hints and notes are told apart by size, not by colour. */
    --ink-2: var(--ink);
    --ink-soft: var(--ink);
    --art-grey: #8b8d94; /* only inside the drawings beside the choices */
    --orange: #ff6b35;
    --amber: #ffb800;
    --orange-wash: rgba(255, 107, 53, 0.13);
    --grad: linear-gradient(100deg, var(--orange), var(--amber));
    --font: 'Montserrat', system-ui, sans-serif;
    --w-reg: 400; --w-med: 500; --w-semi: 600; --w-bold: 700;
    color-scheme: dark;
}

/* Geologica sets heavier than Montserrat at the same number, as on the
   white-label site, so Greek steps down. */
html[data-lang="el"] {
    --font: 'Geologica', system-ui, sans-serif;
    --w-reg: 300; --w-med: 400; --w-semi: 500; --w-bold: 600;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Transparent, so the light behind (z-index -1) is not painted over. The
       ground is on html and in the light itself. */
    background: transparent;
    color: var(--ink);
    font-family: var(--font);
    font-weight: var(--w-reg);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1:focus { outline: none; }

/* The white-label homepage's moving light (its mesh-bg.css, as it is), full
   on the first and last screens. On the questions it steps back, so the
   answers are what the eye goes to. */
@property --s-start-0 { syntax: '<percentage>'; inherits: false; initial-value: 9%; }
@property --s-end-0 { syntax: '<percentage>'; inherits: false; initial-value: 58.89%; }
@property --c-0 { syntax: '<color>'; inherits: false; initial-value: hsla(6, 74%, 40%, 1); }
@property --y-0 { syntax: '<percentage>'; inherits: false; initial-value: 16%; }
@property --x-0 { syntax: '<percentage>'; inherits: false; initial-value: 13%; }
@property --c-1 { syntax: '<color>'; inherits: false; initial-value: hsla(350, 75%, 32%, 0.91); }
@property --x-1 { syntax: '<percentage>'; inherits: false; initial-value: 14%; }
@property --s-start-1 { syntax: '<percentage>'; inherits: false; initial-value: 9%; }
@property --s-end-1 { syntax: '<percentage>'; inherits: false; initial-value: 58.89%; }
@property --y-1 { syntax: '<percentage>'; inherits: false; initial-value: 89%; }
@property --y-2 { syntax: '<percentage>'; inherits: false; initial-value: 23%; }
@property --c-2 { syntax: '<color>'; inherits: false; initial-value: hsla(345, 50%, 4%, 1); }
@property --x-2 { syntax: '<percentage>'; inherits: false; initial-value: 23%; }
@property --s-start-2 { syntax: '<percentage>'; inherits: false; initial-value: 2%; }
@property --s-end-2 { syntax: '<percentage>'; inherits: false; initial-value: 60%; }

@keyframes mesh-bg {
    0% {
        --s-start-0: 9%; --s-end-0: 58.89%; --c-0: hsla(6, 74%, 40%, 1); --x-0: 13%; --y-0: 16%;
        --s-start-1: 9%; --s-end-1: 58.89%; --c-1: hsla(350, 75%, 32%, 0.91); --x-1: 14%; --y-1: 89%;
        --s-start-2: 2%; --s-end-2: 60%; --c-2: hsla(345, 50%, 4%, 1); --x-2: 23%; --y-2: 23%;
    }
    100% {
        --s-start-0: 4%; --s-end-0: 60%; --c-0: hsla(18, 80%, 38%, 1); --x-0: 95%; --y-0: 18%;
        --s-start-1: 4.6%; --s-end-1: 60%; --c-1: hsla(34, 84%, 43%, 1); --x-1: 97%; --y-1: 47%;
        --s-start-2: 4%; --s-end-2: 73%; --c-2: hsla(44, 88%, 45%, 1); --x-2: 92%; --y-2: 91%;
    }
}

.glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: hsla(348, 48%, 9%, 1);
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 1288 1288' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        radial-gradient(circle at var(--x-0) var(--y-0), var(--c-0) var(--s-start-0), transparent var(--s-end-0)),
        radial-gradient(circle at var(--x-1) var(--y-1), var(--c-1) var(--s-start-1), transparent var(--s-end-1)),
        radial-gradient(circle at var(--x-2) var(--y-2), var(--c-2) var(--s-start-2), transparent var(--s-end-2));
    background-blend-mode: overlay, overlay, normal, normal;
    animation: mesh-bg 2s linear infinite alternate;
    will-change: transform, opacity;
    contain: paint;
}

@media (prefers-reduced-motion: reduce) {
    .glow { animation: none; }
}

body.calm .glow { opacity: 0.32; }
.glow { transition: opacity 0.6s ease; }

/* --- header ---------------------------------------------------------------- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(16px, 4vw, 40px);
}
.brand img { display: block; height: 28px; width: auto; }
.langs { display: flex; gap: 4px; }
.lang-btn {
    min-width: 44px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: var(--w-semi);
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--bg); background: var(--ink); }

/* --- layout ---------------------------------------------------------------- */
.wrap {
    flex: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(24px, 6vh, 72px) 16px 80px;
}
.foot { padding: 24px; text-align: center; font-size: 15px; color: var(--ink-soft); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

.h1 {
    font-size: clamp(2.6rem, 7.5vw, 4.6rem);
    font-weight: var(--w-reg);
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 14ch;
}
.h2 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: var(--w-reg);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 16px; max-width: 58ch; font-size: 18px; color: var(--ink-2); }
.kicker { font-size: 15px; font-weight: var(--w-semi); letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.meta { margin-top: 24px; font-size: 16px; color: var(--ink-soft); }
.small { margin-top: 20px; font-size: 15px; color: var(--ink-soft); max-width: 50ch; }

.hero .go { margin-top: 32px; }

/* --- the first page: one card per questionnaire ---------------------------- */
.wrap.wide { max-width: 1040px; }
.forms { margin-top: clamp(48px, 9vh, 88px); }
.forms .h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 22px; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 26px;
    background: var(--panel);
    overflow: hidden;
    text-decoration: none;
    transition: background 0.25s ease;
}
.tile:hover { background: #1c1c22; }
.tile-art {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2a130c, #1a0f0c 60%, #120c0b);
}
.tile-art svg { width: 72%; height: auto; }
.tile-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.tile-body strong { font-size: 24px; font-weight: var(--w-semi); letter-spacing: -0.01em; line-height: 1.2; }
.tile-body > span { font-size: 17px; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.tile-time { font-size: 15px; padding: 8px 14px; border-radius: 999px; background: #24242b; }
.tile .go-disc { width: 52px; height: 52px; }

/* --- the pill with the disc, as on the white-label site -------------------- */
.go {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 8px 8px 8px 26px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: 16px;
    font-weight: var(--w-semi);
    letter-spacing: 0.02em;
    transition: background 0.25s ease;
}
.go:hover { background: #fff; }
.go[disabled] { opacity: 0.6; cursor: progress; }
.go-disc {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad);
    color: var(--bg);
}

/* --- a step ---------------------------------------------------------------- */
.progress { height: 6px; border-radius: 6px; background: var(--tile); overflow: hidden; margin-bottom: 28px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.4s ease; }

.qs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 44px; }
/* Long Greek words («Εικονογραφήσεις») break rather than push a phone's page
   sideways. */
.q-label, .q-hint, .card-name, .card-note, .pill, .chip, .sw, .sc-end span { overflow-wrap: anywhere; }
.q-label { display: block; font-size: 19px; font-weight: var(--w-med); line-height: 1.35; }
.opt { font-size: 15px; font-weight: var(--w-reg); color: var(--ink-soft); }
.q-hint { margin-top: 4px; font-size: 16px; color: var(--ink-soft); }
.q-label + * , .q-hint + * { margin-top: 14px; }
.err { margin-top: 10px; font-size: 16px; color: #ff9b74; }

.in {
    width: 100%;
    padding: 16px 18px;
    /* No outline: the browser's own inset border goes too, and with it the
       grey-and-white edge iOS and Chrome draw round a field. */
    border: 0;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 14px;
    background: var(--field);
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    transition: background 0.2s ease;
}
.in:hover { background: #212128; }
.in:focus { outline: none; background: #26262e; }
textarea.in { resize: vertical; min-height: 110px; }
.has-err .in { background: #2e1a17; }

/* Single answers, written out. */
.pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pill {
    display: grid;
    gap: 2px;
    text-align: left;
    padding: 15px 18px;
    border-radius: 14px;
    background: var(--field);
    font-size: 17px;
    transition: background 0.2s ease, color 0.2s ease;
}
.pill small { font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.pill:hover, .chip:hover, .card:hover, .sw:hover { background: #24242b; }
/* Chosen: filled, never outlined. Words and short answers take the orange
   itself, with the page's dark ink on it; the cards a deep orange ground and
   the tick. */
.pill.on, .chip.on { background: var(--orange); color: var(--bg); }
/* A colour is chosen on the deep orange, so the orange swatch still shows. */
.sw.on { background: #3b1e14; }
.sw.on .sw-dot { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--orange); }
.pill.on small { color: var(--bg); }
.card.on { background: #3b1e14; }

/* Several answers, short words. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--field);
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Answers with a picture. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    padding: 10px 10px 16px;
    border-radius: 18px;
    background: var(--field);
    transition: background 0.2s ease, color 0.2s ease;
}
.card-art {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: var(--bg);
    margin-bottom: 8px;
    overflow: hidden;
}
.card-art svg { width: 100%; height: 100%; }
.card-name { padding: 0 6px; font-size: 17px; font-weight: var(--w-med); line-height: 1.3; }
.card-note { padding: 0 6px; font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.card.on .card-note { color: var(--ink-2); }
.tick {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}
.card.on .tick {
    background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a0a0e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* The lettering examples are the word itself, set in each kind of type. */
.type-sample { font-size: 42px; color: var(--ink); line-height: 1; }
.f-serif   { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
.f-sans    { font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.f-script  { font-family: 'Great Vibes', 'Snell Roundhand', cursive; font-size: 50px; }
.f-display { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 52px; letter-spacing: 0.02em; color: var(--orange); }

/* Colours. */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatches > *, .pills > * { min-width: 0; }
.sw {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    background: var(--field);
    font-size: 16px;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}
.sw-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

/* Between two ends. */
.scales { display: grid; gap: 14px; }
.scale {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--field);
}
.sc-end { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.sc-end svg { width: 60px; height: 48px; flex: none; }
.sc-to { flex-direction: row-reverse; text-align: right; }
.sc-dots { display: flex; gap: 6px; }
.sc-dot { position: relative; width: 36px; height: 44px; }
.sc-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: #464652;
    transition: transform 0.2s ease, background 0.2s ease;
}
.sc-dot:hover::before { background: #6a6a78; }
.sc-dot.on::before { background: var(--grad); transform: scale(1.5); }

/* A number. */
.stepper { display: inline-flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--field); }
.stepper output { min-width: 44px; text-align: center; font-size: 20px; font-weight: var(--w-semi); }
.st-b { width: 44px; height: 44px; border-radius: 50%; background: var(--tile); font-size: 22px; line-height: 1; }
.st-b:hover { background: #3a3a44; }

/* Consent. */
.consent { display: flex; align-items: flex-start; gap: 14px; text-align: left; font-size: 17px; color: var(--ink-2); }
.consent .box { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; background: #3a3a44; }
.consent.on .box {
    background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a0a0e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.has-err .consent .box { background: #5a2a20; }

.nav { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: 16px; margin-top: 52px; }
.back { min-height: 48px; padding: 0 8px; font-size: 16px; font-weight: var(--w-med); color: var(--ink-2); }
.back:hover { color: var(--ink); }

/* --- the estimate ---------------------------------------------------------- */
.estimate { margin-top: 32px; padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: var(--panel); }
.range {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: var(--w-semi);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.range span { font-size: 0.45em; font-weight: var(--w-reg); letter-spacing: 0; color: var(--ink-2); }
.small-h { margin-top: 28px; font-size: 15px; font-weight: var(--w-semi); letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.inc { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.inc li { position: relative; padding-left: 22px; font-size: 17px; }
.inc li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.inc em { font-style: normal; font-size: 14px; font-weight: var(--w-semi); color: var(--bg); background: var(--amber); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.inc .per { color: var(--amber); white-space: nowrap; }
.note { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--orange-wash); color: var(--ink); font-size: 16px; }
.fine { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }

.review { margin-top: 20px; border-radius: 18px; background: var(--panel); }
.review summary { padding: 18px 22px; font-size: 17px; font-weight: var(--w-med); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.review summary::after { content: '+'; color: var(--orange); font-size: 22px; line-height: 1; }
.review[open] summary::after { content: '−'; }
.review summary::-webkit-details-marker { display: none; }
.rv { padding: 4px 22px 18px; }
.rv-h { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 8px; }
.rv-h strong { font-size: 16px; font-weight: var(--w-semi); color: var(--orange); }
.link { font-size: 15px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.rv-row { padding: 6px 0; }
.rv-row dt { font-size: 15px; color: var(--ink-soft); }
.rv-row dd { font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }

.cf-turnstile { margin-top: 20px; }

/* --- phones ---------------------------------------------------------------- */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .top { padding: 18px 16px; }
    .brand img { height: 24px; }
    .qs { gap: 34px; margin-top: 34px; }
    .lead { font-size: 17px; }
    .q-label { font-size: 18px; }
    .pills { grid-template-columns: 1fr; }
    .cards, .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card { padding: 8px 8px 14px; }
    .card-name, .card-note { padding: 0 4px; }
    .card-name { font-size: 15.5px; }
    .card-note { font-size: 15px; }
    .tick { top: 14px; right: 14px; }
    .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scale { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; row-gap: 8px; }
    .sc-dots { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
    .sc-dot { flex: 1; min-width: 0; }
    .sc-end { min-width: 0; font-size: 15px; flex-direction: column; align-items: flex-start; gap: 6px; }
    .sc-to { flex-direction: column; align-items: flex-end; }
    .sc-end svg { width: 48px; height: 40px; }
    .tiles { grid-template-columns: minmax(0, 1fr); }
    .tile-body { padding: 20px 20px 22px; }
    .tile-body strong { font-size: 21px; }
    .nav { margin-top: 40px; }
    .go { padding-left: 22px; }
}

/* The smallest phones: one card a row, the picture beside the words, so a
   word like «Εικονογραφήσεις» keeps its line. */
@media (max-width: 359px) {
    .cards, .cards.cols-4 { grid-template-columns: minmax(0, 1fr); }
    .card { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 8px 40px 8px 8px; }
    .card-art { grid-row: span 2; margin: 0; }
    .card-name { align-self: end; }
    .card-note { align-self: start; }
    .tick { top: 50%; right: 10px; margin-top: -11px; width: 22px; height: 22px; }
    .card.on .tick { background-size: 15px; }
    .swatches { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
