/* Compfiled marketing + docs site, matching the app's own palette.
   No icons or decorative symbols. Buttons reuse the flat Settings picker
   treatment: transparent at rest with the sidebar hover colour. */

/* ── Inter, self-hosted — same family the app ships in public/fonts, so the
   site renders identically and makes no third-party request. One variable
   file per subset; the browser fetches only the subsets the page needs. ── */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-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;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-greek-ext.woff2) format("woff2");
  unicode-range: U+1F00-1FFF;
}

:root {
  color-scheme: dark;

  /* Surfaces — same values as the app (theme.css) */
  --bg: #0D0D0D;
  --header-bg: #101010;
  --surface: #202020;
  --surface-2: #2b2b2b;
  --sidebar-bg: #171717;
  --sidebar-selected: #424242;
  --sidebar-hover: #4a4a4a;

  /* Foregrounds */
  --fg: #e7e7e7;
  --dim: rgba(231,231,231,.58);
  --dim-2: rgba(231,231,231,.34);

  /* Borders */
  --border: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.14);

  --nav-bg: rgba(13,13,13,.72);

  --radius: 10px;
  --maxw: 1080px;
  --font-sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ── light mode — same tokens as the app's html.light (theme.css) ── */
html.light {
  color-scheme: light;
  --bg: #FDFDFC;
  --header-bg: #FDFDFC;
  --surface: #EFEFEE;
  --surface-2: #E4E4E3;
  --sidebar-bg: #FDFDFC;
  --sidebar-selected: #E4E4E3;
  --sidebar-hover: #EFEFEE;
  --fg: #0B0B0B;
  --dim: #898781;
  --dim-2: #898781;
  --border: #E4E4E3;
  --border-hover: rgba(0,0,0,.18);
  --nav-bg: rgba(253,253,252,.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
code, pre { font-family: var(--font-mono); font-size: .9em; }
/* padding-inline, not the shorthand: .wrap owns the horizontal gutter and
   must not zero the vertical padding of whatever it is applied to. */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--dim); font-family: var(--font-mono); margin: 0 0 12px; }

/* ── wordmark ── */
.wordmark {
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em;
  color: var(--fg); text-decoration: none !important;
}
.wordmark:hover,
.wordmark:focus,
.wordmark:active { color: var(--fg); text-decoration: none !important; }

/* ── nav ── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ── theme toggle — text-only ghost button; label comes from CSS so the
   early inline script only has to flip the html.light class ── */
.site-controls {
  position: fixed; left: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 4px;
}
.theme-toggle,
.lang-toggle {
  background: transparent; border: none; color: var(--fg);
  border-radius: 6px; padding: 5px 10px; font: inherit; font-size: 14px;
  cursor: pointer; transition: background .12s ease, color .12s ease;
}
.theme-toggle:hover,
.lang-toggle:hover { background: var(--sidebar-hover); color: var(--fg); }
.lang-toggle:focus { background: transparent; outline: none; }
.theme-toggle::after { content: "Light"; }
html.light .theme-toggle::after { content: "Dark"; }
html[lang="el"] .theme-toggle::after { content: "Φωτεινό"; }
html.light[lang="el"] .theme-toggle::after { content: "Σκοτεινό"; }
.lang-toggle::after { content: "Ελληνικά"; }
html[lang="el"] .lang-toggle::after { content: "English"; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-links a {
  color: var(--fg); font-weight: 400; font-size: 14px;
  padding: 5px 10px; border-radius: 6px; text-decoration: none !important;
  transition: background .12s ease, color .12s ease;
}
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active {
  color: var(--fg); background: var(--sidebar-hover);
  text-decoration: none !important;
}

/* ── buttons — Settings picker idiom ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 400; font-size: 14px; padding: 5px 10px; border-radius: 6px;
  cursor: pointer; border: none; font-family: var(--font-sans);
  text-decoration: none !important;
  transition: background .12s ease, color .12s ease, opacity .12s ease;
}
.btn:hover,
.btn:focus,
.btn:active { text-decoration: none !important; }
.btn-primary,
.btn-ghost { background: transparent; color: var(--fg); }
.btn-primary:hover,
.btn-ghost:hover { background: var(--sidebar-hover); color: var(--fg); }
.btn-sm { padding: 5px 10px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── hero ── */
.hero { text-align: center; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--dim); background: transparent;
  padding: 5px 0; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(36px, 6.2vw, 62px); font-weight: 600; margin: 0 0 20px; letter-spacing: -0.03em; }
.hero p.lead { font-size: clamp(17px, 2.3vw, 20px); color: var(--dim); max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--dim-2); font-family: var(--font-mono); }

/* ── hero screenshot ── */
.shot {
  margin: 56px auto 0; max-width: 940px;
}
.shot img {
  width: 100%; height: auto; border-radius: 14px; background: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 30px 80px -30px rgba(0,0,0,.8);
}
.shot figcaption {
  margin-top: 14px; font-size: 13px; color: var(--dim-2);
  font-family: var(--font-mono);
}

/* ── tool groups ──
   Four columns of plain lists. The catalogue is long, so the grouping does
   the reading: a heading says which job the column is for, and the names
   underneath stay quiet until you are looking for one. */
.tool-groups {
  display: grid; gap: 40px 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tool-group { min-width: 0; }
.tool-group h3 { font-size: 15px; margin-bottom: 6px; }
.tool-group-note {
  margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--dim);
}
.tool-group ul { margin: 0; padding: 0; list-style: none; }
.tool-group li { font-size: 14px; color: var(--fg); padding: 4px 0; }

/* ── sections ──
   One rhythm for every band on the page: 72px above and below, so the gap
   between any two is always 144. padding-block only, so the horizontal gutter
   keeps coming from .wrap — wherever that sits, on the section or on <main>. */
main > section { padding-block: 72px; }
main > section:first-child { padding-block: 96px 72px; }
main > section:last-child { padding-bottom: 96px; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 12px; letter-spacing: -0.02em; }
.section-head p { color: var(--dim); font-size: 17px; margin: 0; }

/* ── steps ──
   No fill and no outline anywhere below: panels are laid out with space
   alone, so everything sits on the page instead of in a box on it. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { padding: 0; background: transparent; }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--dim-2); margin-bottom: 12px; }
.step h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

/* ── downloads ── */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 760px; margin: 0 auto; }
.dl-card {
  background: transparent; padding: 8px 12px; text-align: center;
  display: flex; flex-direction: column;
}
.dl-card .meta { flex: 1; }
.dl-card h3 { font-size: 17px; margin: 0 0 4px; font-weight: 600; }
.dl-card .meta { font-size: 13px; color: var(--dim-2); margin: 0 0 16px; font-family: var(--font-mono); }
.dl-card .soon { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 10px; }

/* ── docs / prose layout ── */
/* padding-block, so .wrap's gutter survives and the prose does not run edge
   to edge on a phone. */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; padding-block: 44px 88px; }
.doc-nav { position: sticky; top: 78px; font-size: 14px; }
.doc-nav h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim-2); margin: 20px 0 8px; font-weight: 600; }
.doc-nav a {
  display: block; width: 100%; color: var(--fg); padding: 5px 10px;
  border-radius: 6px; text-decoration: none !important;
  transition: background .12s ease, color .12s ease;
}
.doc-nav a:hover,
.doc-nav a:focus,
.doc-nav a:active {
  color: var(--fg); background: var(--sidebar-hover);
  text-decoration: none !important;
}
.prose { max-width: 760px; }
.prose h1 { font-size: 34px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.02em; }
.prose h2 { font-size: 23px; margin: 46px 0 14px; padding-top: 28px; border-top: 1px solid var(--border); font-weight: 600; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; font-weight: 600; }
.prose p, .prose li { color: var(--dim); }
.prose p { margin: 12px 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border-hover); }
.prose a:hover { text-decoration-color: var(--fg); }
.prose code:not(pre code) { background: transparent; padding: 0; color: var(--fg); }
.prose pre { background: transparent; padding: 0; overflow-x: auto; margin: 16px 0; line-height: 1.6; color: var(--fg); }
.callout { border-left: 2px solid var(--fg); background: transparent; padding: 2px 0 2px 18px; margin: 22px 0; font-size: 15px; }
.callout strong { color: var(--fg); }

/* Examples gallery */
/* The section rhythm above already spaces these two bands; the hero only
   trims its own bottom so the gallery sits closer to its own heading. */
.examples-hero { max-width: 720px; }
main > section.examples-hero { padding-bottom: 40px; }
.examples-hero h1 { font-size: clamp(30px, 4.4vw, 42px); margin: 0 0 10px; }
.examples-hero p { color: var(--dim); font-size: 17px; margin: 0; }
.examples-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.example-card { background: transparent; min-width: 0; }
.example-card.featured { grid-column: 1 / -1; }
.example-media { aspect-ratio: 16 / 9; background: transparent; }
.example-card.featured .example-media { aspect-ratio: 21 / 9; }
/* A media box holding a real screenshot drops the ratio and follows the
   image, so nothing is cropped whatever size you export at. */
.example-media:has(img) { aspect-ratio: auto; }
.example-media img { width: 100%; height: auto; border-radius: var(--radius); }
.example-copy { padding: 16px 0 0; }
.example-copy .kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim-2); margin: 0 0 10px;
}
.example-copy h2 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.example-copy p { margin: 0 0 16px; color: var(--dim); font-size: 15px; }
.example-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .examples-grid { grid-template-columns: 1fr; }
  .example-card.featured .example-media { aspect-ratio: 16 / 10; }
}

/* ── examples ── */
/* ── footer ── */
/* No margin-top: the last section already pays for the gap above the rule. */
footer.site { border-top: 1px solid var(--border); padding: 48px 0; color: var(--dim); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { color: var(--dim); }
.foot-links a:hover { color: var(--fg); }

/* ── responsive ── */
@media (max-width: 900px) {
  .steps, .dl-grid { grid-template-columns: 1fr; }
  .tool-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 680px) {
  main > section { padding-block: 52px; }
  main > section:first-child { padding-block: 64px 52px; }
  main > section:last-child { padding-bottom: 64px; }
  .section-head { margin-bottom: 32px; }
  .tool-groups { grid-template-columns: 1fr; }
  .shot { margin-top: 40px; }
}
