/* aitool.gr — δημόσιο site. Commissioner (self-hosted, OFL) με άξονα FLAR για τους τίτλους. */
@font-face {
  font-family: "Commissioner";
  src: url("/assets/fonts/commissioner-greek-full-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: "Commissioner";
  src: url("/assets/fonts/commissioner-latin-full-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122, U+2190-21FF;
}

:root {
  --ink: #0e2a3f;
  --aegean: #1e5c85;
  --foam: #f3f7f9;
  --white: #ffffff;
  --line: #d6e1e8;
  --muted: #557086;
  --olive: #5e7a2e;
  --sun: #e4a21f;
  --sun-soft: #fbedc9;
  --radius-panel: 14px;
  --radius-control: 8px;
  --measure: 68ch;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Commissioner", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  font-variation-settings: "FLAR" 0, "VOLM" 0; color: var(--ink); background: var(--foam);
}
img { max-width: 100%; height: auto; }
a { color: var(--aegean); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* Τίτλοι: ο άξονας FLAR δίνει τις «ανοιχτές» απολήξεις — το μόνο τυπογραφικό τόλμημα της σελίδας */
h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; font-weight: 760; font-variation-settings: "FLAR" 100, "VOLM" 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); max-width: 16ch; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); max-width: 22ch; }
h3 { font-size: 1.3rem; font-variation-settings: "FLAR" 60; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 52ch; }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.logo { font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; font-variation-settings: "FLAR" 100; }
.logo span { color: var(--aegean); }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--aegean); box-shadow: inset 0 -2px 0 var(--aegean); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-control); padding: .4rem .7rem; font: inherit; }

.btn { display: inline-block; font: inherit; font-weight: 650; text-decoration: none; border-radius: var(--radius-control); padding: .72rem 1.25rem; border: 2px solid var(--ink); cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--aegean); border-color: var(--aegean); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.nav .btn { padding: .45rem 1rem; }

/* Hero */
.hero { padding: 4.5rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* Το ζωντανό παράδειγμα αναζήτησης — το «υπογραφή» στοιχείο */
.demo { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: 0 18px 40px -24px rgba(14, 42, 63, .35); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.demo-input { flex: 1; font-size: 1.12rem; font-weight: 600; min-height: 1.6em; }
.demo-input .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--aegean); vertical-align: -.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.demo-go { background: var(--ink); color: var(--white); border-radius: var(--radius-control); padding: .35rem .8rem; font-size: .9rem; font-weight: 650; }
.demo-chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: .8rem 1.1rem 0; min-height: 2.6rem; }
.chip { font-size: .86rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; background: var(--sun-soft); color: #6b4a07; }
.chip.place { background: #dbe9f3; color: var(--aegean); }
.chip.price { background: #e3ecd5; color: var(--olive); }
.demo-rows { list-style: none; margin: 0; padding: .6rem 0 .4rem; }
.demo-rows li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .7rem 1.1rem; border-top: 1px solid var(--foam); }
.demo-rows .t { font-weight: 600; }
.demo-rows .p { font-weight: 750; text-align: right; }
.demo-rows .m { font-size: .86rem; color: var(--muted); grid-column: 1 / -1; }
.demo-foot { padding: .75rem 1.1rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); background: #fafcfd; }
.demo [data-step] { opacity: 1; }
.js .demo [data-step] { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.js .demo [data-step].on { opacity: 1; transform: none; }

/* Ενότητες */
.section { padding: 4.5rem 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Εργαλεία: γραμμές, όχι κάρτες */
.tool { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; padding: 2.6rem 0; border-top: 1px solid var(--line); }
.tool:first-of-type { border-top: 0; }
.tool > *, .hero .wrap > * { min-width: 0; }
.tool .where { font-size: .95rem; color: var(--muted); margin-bottom: .3rem; }
.tool ul { padding-left: 1.1rem; margin: 0 0 1.2rem; }
.tool li { margin-bottom: .35rem; max-width: 60ch; }
.sample { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 1.2rem 1.3rem; font-size: .96rem; }
.sample .row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.sample .row:last-child { border-bottom: 0; }
.sample .ok { color: var(--olive); font-weight: 650; white-space: nowrap; }
.q { font-weight: 650; margin-bottom: .5rem; }
.a { background: var(--white); border-radius: var(--radius-control); padding: .8rem 1rem; border-left: 3px solid var(--aegean); }
.bars { display: grid; gap: .55rem; }
.bar { display: grid; grid-template-columns: 7.5rem 1fr 3rem; align-items: center; gap: .7rem; }
.bar .track { height: .55rem; background: var(--white); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar .fill { display: block; height: 100%; background: var(--aegean); }
.bar .fill.you { background: var(--sun); }

/* Βήματα συνεργασίας — πραγματική σειρά, άρα αρίθμηση */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(s); font-weight: 800; font-size: 2rem; font-variation-settings: "FLAR" 100; color: var(--aegean); display: block; line-height: 1; margin-bottom: .5rem; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 3rem; margin-top: 1.5rem; }
.facts h3 { margin-bottom: .3rem; }

/* Τιμές */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; margin-top: 1.5rem; }
.price-table th, .price-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--ink); color: var(--white); font-weight: 650; }
.price-table thead th.featured { background: var(--aegean); }
.price-table .amount { font-size: 1.7rem; font-weight: 800; font-variation-settings: "FLAR" 100; }
.price-table tbody th { font-weight: 500; color: var(--muted); width: 32%; }
.table-scroll { overflow-x: auto; }
.note { font-size: .95rem; color: var(--muted); }

/* Φόρμα */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; max-width: 760px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid #b8c9d5; border-radius: var(--radius-control); background: var(--white); color: var(--ink); }
.form textarea { min-height: 9rem; resize: vertical; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: .35rem; }
.hp { position: absolute; left: -9999px; }
.flash { padding: .9rem 1.1rem; border-radius: var(--radius-control); margin: 1rem 0; max-width: 760px; }
.flash-success { background: #e3ecd5; color: #34461a; }
.flash-danger { background: #f8dcd6; color: #7a2214; }

.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal p, .legal li { max-width: 72ch; }

/* Footer */
.site-foot { background: var(--ink); color: #c9d8e3; padding: 3rem 0 2rem; margin-top: 0; }
.site-foot a { color: var(--white); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot h3 { color: var(--white); font-size: 1rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot .legal-line { border-top: 1px solid #24465f; margin-top: 2rem; padding-top: 1rem; font-size: .9rem; }

@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero .wrap, .tool { grid-template-columns: 1fr; gap: 2rem; }
  .steps, .facts, .site-foot .cols { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .sample .row { flex-wrap: wrap; }
  .sample .ok { white-space: normal; }
  .bar { grid-template-columns: 6rem 1fr 2.6rem; }
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 1rem 0; }
  .nav.open { display: flex; }
  .site-head .wrap { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .js .demo [data-step] { opacity: 1; transform: none; transition: none; }
  .demo-input .caret { animation: none; }
}
