/* ΧΑΒΑΛΕΣ website: same brutalist look as the app. Hard borders, offset slabs, no easing. */
:root {
  --paper: #ffffff; --ink: #000000; --grid: #e4e4e4; --muted: #4a4a4a;
  --lime: #c6ff00; --red: #ff0000; --blue: #0000ff; --link: #0000ff;
  --border: 4px; --slab: 7px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111111; --ink: #ffffff; --grid: #262626; --muted: #b5b5b5; --red: #ff2d2d; --blue: #3d4bff; --link: #9ea6ff; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: "Courier New", Courier, monospace; font-weight: 700; color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.45; overflow-x: hidden;
}
a { color: var(--link); }
img { max-width: 100%; display: block; }

/* Only the visitor's language shows. */
html[data-lang="el"] [data-l="en"], html[data-lang="en"] [data-l="el"] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.block { background: var(--paper); border: var(--border) solid var(--ink); box-shadow: var(--slab) var(--slab) 0 var(--ink); }
.light { font-weight: 400; }
.muted { color: var(--muted); font-weight: 400; }
.sticker { display: inline-block; padding: 3px 10px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--lime); color: #000; transform: rotate(-3deg); font-size: 14px; }
.sticker.red { background: var(--red); color: #fff; }
.sticker.blue { background: var(--blue); color: #fff; }

/* ---- header ---- */
header.top { border-bottom: var(--border) solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { display: inline-flex; text-decoration: none; font-size: 22px; }
.logo b { padding: 0 8px; border: 3px solid var(--ink); }
.logo b:first-child { background: var(--ink); color: var(--paper); transform: rotate(-2deg); }
.logo b:last-child { background: var(--lime); color: #000; margin-left: -3px; transform: rotate(2deg); }
nav.links { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
nav.links a { color: var(--ink); text-decoration: none; font-size: 15px; }
nav.links a:hover { text-decoration: underline; }
.lang { display: flex; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.lang a { padding: 3px 10px; text-decoration: none; color: var(--ink); font-size: 14px; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) {
  nav.links { order: 3; flex-basis: 100%; gap: 14px; }
  /* On phones the home page scrolls anyway: no in-page menu, just the logo and the language. */
  nav.links.anchors { display: none; }
  header.top .wrap { justify-content: space-between; }
}

/* ---- hero ---- */
.hero { padding-top: 64px; padding-bottom: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.08; }
.hero h1 .hl { background: var(--lime); color: #000; padding: 0 10px; border: var(--border) solid var(--ink); box-shadow: var(--slab) var(--slab) 0 var(--red); display: inline-block; transform: rotate(-1.5deg); margin: 6px 0; }
.hero p.lead { font-size: 20px; font-weight: 400; margin: 22px 0 28px; max-width: 34ch; }
/* The art scales with the screen and stays square (the img's height attribute must not win). */
.hero .art { position: relative; justify-self: center; width: clamp(240px, 34vw, 440px); margin-right: 14px; }
.hero .art img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: var(--border) solid var(--ink); box-shadow: clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px) 0 var(--ink); transform: rotate(3deg); }
.hero .art .sticker { position: absolute; top: -14px; left: -10px; font-size: 18px; transform: rotate(-8deg); z-index: 1; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  /* On phones the art sits under the text, centred and smaller. */
  .hero .art { width: min(72vw, 300px); margin: 12px auto 0; }
  .hero .art img { transform: rotate(2deg); }
}

/* ---- store buttons ---- */
.stores { display: flex; gap: 18px; flex-wrap: wrap; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 210px; padding: 12px 20px; border: var(--border) solid var(--ink); box-shadow: var(--slab) var(--slab) 0 var(--ink); text-decoration: none; position: relative; }
.store small { font-size: 12px; font-weight: 400; }
.store span { font-size: 22px; }
.store.apple { background: var(--ink); color: var(--paper); }
.store.google { background: var(--paper); color: var(--ink); }
.store:active { transform: translate(var(--slab), var(--slab)); box-shadow: none; }
.store.soon { cursor: default; opacity: 0.85; }
.store.soon::after { content: attr(data-soon); position: absolute; top: -14px; right: -12px; background: var(--red); color: #fff; border: 3px solid var(--ink); padding: 1px 8px; font-size: 13px; transform: rotate(6deg); }
.store.soon:active { transform: none; box-shadow: var(--slab) var(--slab) 0 var(--ink); }

/* ---- sections ---- */
section.band { padding: 56px 0; }
/* Anchored sections land below the sticky header. */
[id] { scroll-margin-top: 110px; }
section.band h2 { display: inline-block; font-size: clamp(28px, 4vw, 40px); background: var(--ink); color: var(--paper); padding: 2px 14px; transform: rotate(-1deg); margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.feature { padding: 18px; }
.feature .icon { font-size: 30px; }
.feature h3 { font-size: 18px; margin: 8px 0 6px; }
.feature p { font-weight: 400; font-size: 15px; }
.feature.lime { background: var(--lime); color: #000; }
.feature.red { background: var(--red); color: #fff; }
.feature.blue { background: var(--blue); color: #fff; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { padding: 18px; font-size: 17px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
/* The number on the left, the title and text in their own column to its right. */
.step::before { counter-increment: step; content: "0" counter(step); grid-column: 1; grid-row: 1 / span 2; align-self: start; font-size: 28px; line-height: 1.2; background: var(--lime); color: #000; border: 3px solid var(--ink); padding: 0 8px; }
.step > span, .step > p { grid-column: 2; }
.step > span { align-self: center; min-height: 40px; display: flex; align-items: center; }
.step p { font-weight: 400; font-size: 15px; margin-top: 6px; }

.tv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 26px; background: var(--blue); color: #fff; }
.tv .screen { background: #000; border: var(--border) solid #fff; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-size: clamp(24px, 3.4vw, 40px); color: #fff; box-shadow: 10px 10px 0 #000; }
.tv .screen b { background: var(--lime); color: #000; padding: 2px 12px; letter-spacing: 4px; }
.tv p { font-weight: 400; margin-top: 10px; }
.tv a { color: #fff; }
@media (max-width: 720px) { .tv { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq details { margin-bottom: 14px; }
.faq summary { cursor: pointer; padding: 14px 16px; list-style: none; font-size: 17px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { background: var(--lime); color: #000; border-bottom: 3px solid var(--ink); }
.faq .answer { padding: 14px 16px; font-weight: 400; }

/* ---- legal pages ---- */
.legal { padding-top: 44px; padding-bottom: 64px; }
.legal article { padding: 28px clamp(18px, 4vw, 44px); max-width: 860px; }
.legal h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; display: inline-block; background: var(--lime); color: #000; padding: 1px 10px; border: 3px solid var(--ink); }
.legal p, .legal li { font-weight: 400; margin: 8px 0; }
.legal ul { padding-left: 22px; }
.legal .meta { margin-top: 8px; }
.legal .note { margin-top: 22px; padding: 12px 14px; border: 3px dashed var(--ink); font-weight: 400; font-size: 14px; }

/* ---- footer ---- */
footer.bottom { border-top: var(--border) solid var(--ink); background: var(--ink); color: var(--paper); margin-top: 40px; }
footer.bottom .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer.bottom a { color: var(--paper); }
footer.bottom .spacer { flex: 1; }

@media (prefers-reduced-motion: no-preference) {
  .store:hover, .feature:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--slab) + 2px) calc(var(--slab) + 2px) 0 var(--ink); }
}

/* ---- suggest a card ---- */
.suggest { padding: 22px; max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.suggest fieldset { border: none; display: flex; flex-wrap: wrap; gap: 10px; }
.suggest legend { font-size: 14px; margin-bottom: 8px; }
.suggest .kinds label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 3px solid var(--ink); cursor: pointer; font-size: 15px; }
.suggest .kinds label:has(input:checked) { background: var(--lime); color: #000; }
.suggest .kinds input { accent-color: #000; }
.suggest .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.suggest textarea, .suggest input[type=text] { font: inherit; font-weight: 400; font-size: 17px; padding: 10px 12px; border: var(--border) solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 0; width: 100%; }
.suggest textarea:focus, .suggest input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.suggest .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.suggest .send { align-self: flex-start; font: inherit; font-size: 20px; padding: 12px 26px; background: var(--red); color: #fff; border: var(--border) solid var(--ink); box-shadow: var(--slab) var(--slab) 0 var(--ink); cursor: pointer; }
.suggest .send:active { transform: translate(var(--slab), var(--slab)); box-shadow: none; }
.suggest .result { font-weight: 700; min-height: 1.4em; }
.suggest .result.ok { color: #008a25; }
.suggest .result.bad { color: var(--red); }
.suggest .small { font-size: 13px; }

/* No visible scroll bars; scrolling still works. */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
