/* EasyStock landing page. Self-contained: fonts, palette, layout, motion.
   Palette mirrors the app's live Deposito theme so page and product match. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-sans-greek-400.woff2') format('woff2');
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-sans-greek-500.woff2') format('woff2');
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-sans-greek-600.woff2') format('woff2');
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/ibm-plex-sans-greek-700.woff2') format('woff2');
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  --navy: #172b4c;
  --indigo: #2f3478;
  --sky: #6cbbfa;
  --muted: #566f9e;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --success: #00875a;
  --error: #c62828;
  --border: #dfe6ef;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(23, 43, 76, 0.08);
  --shadow-lg: 0 20px 60px rgba(23, 43, 76, 0.18);
  --font: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--indigo); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

section { scroll-margin-top: 88px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 30px; font-size: 1.0625rem; }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(23, 43, 76, 0.3);
}
.btn-primary:hover { background: var(--indigo); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-ghost-dark { border-color: var(--border); color: var(--navy); }
.btn-ghost-dark:hover { border-color: var(--muted); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.hero .btn-primary {
  background: var(--sky);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(108, 187, 250, 0.35);
}
.hero .btn-primary:hover { background: #8cc9fb; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}
.nav.is-scrolled { box-shadow: 0 2px 16px rgba(23, 43, 76, 0.1); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { width: 130px; height: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav-links a:hover { color: var(--indigo); text-decoration: underline; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 1px solid var(--border);
  background: none;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--muted); color: var(--navy); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .btn-ghost-dark { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 20%, var(--indigo) 100%);
  color: #fff;
  text-align: center;
  padding: 96px 0 0;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  pointer-events: none;
}
.hero-glow-1 { width: 480px; height: 480px; background: var(--sky); top: -160px; left: -120px; }
.hero-glow-2 { width: 560px; height: 560px; background: var(--sky); bottom: -100px; right: -180px; opacity: 0.15; }
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cddcf5;
  max-width: 720px;
  margin: 0 auto 1.6em;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { color: #9fb4d8; font-size: 0.9375rem; margin-top: 1.2em; }
.hero-shot { max-width: 900px; margin: 48px auto -2px; }
.browser-frame {
  background: #0e1c33;
  border-radius: 14px 14px 0 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar { display: flex; gap: 7px; padding: 12px 16px; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.browser-frame img { display: block; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2.5em;
  font-size: 1.0625rem;
}

/* ---------- Feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(108, 187, 250, 0.16);
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--indigo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.0625rem; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---------- AI section ---------- */
.ai-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-top: 64px;
}
.ai-row-flip .ai-text { order: 2; }
.ai-row-flip .ai-media { order: 1; }
.ai-text h3 { font-size: 1.4rem; font-weight: 700; }
.ai-text p { color: var(--muted); }
.ai-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: block;
}
.chat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-card p { margin: 0; padding: 10px 16px; border-radius: 14px; font-size: 0.9375rem; max-width: 85%; }
.chat-q { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-a { background: var(--surface); border: 1px solid var(--border); color: var(--navy); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-footnote { text-align: center; color: var(--muted); font-size: 0.875rem; margin-top: 56px; }

@media (max-width: 820px) {
  .ai-row { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .ai-row-flip .ai-text { order: 1; }
  .ai-row-flip .ai-media { order: 2; }
}

/* ---------- Integrations ---------- */
.integrations { text-align: center; }
.integration-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 28px 0; }
.badge-platform {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
}
.badge-platform img { display: block; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step { text-align: center; }
.step-num {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.0625rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---------- Pricing ---------- */
/*
 * ⚠️ Explicit counts rather than `auto-fit`, since the fourth plan arrived.
 *
 * `repeat(auto-fit, minmax(260px, 1fr))` fitted exactly three columns in this 1072px grid, so
 * four cards broke 3 + 1 and left Professional alone on a row of its own — a price list reading
 * as though somebody forgot to finish it. auto-fit cannot express "two or four, never three":
 * it packs as many as fit, and three always fit. So the counts are named.
 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

/* 4 × 250px + three 24px gaps = 1072, exactly this grid. 1060 is where that stops being tight. */
@media (min-width: 1060px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border: 2px solid var(--indigo);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.125rem; font-weight: 600; }
.price { margin: 8px 0 4px; }
.price-amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
.price-period { color: var(--muted); font-size: 1rem; margin-left: 7px; }
.price-desc { color: var(--muted); font-size: 0.9375rem; }
.price-features {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 0.9375rem;
  color: var(--muted);
  flex: 1;
}
.price-features li {
  padding: 5px 0 5px 26px;
  position: relative;
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 135, 90, 0.12) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300875a" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 9px no-repeat;
}
.price-card .btn { margin-top: 16px; }
.pricing-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 640px;
  margin: 40px auto 0;
}
.pricing-vat {
  text-align: center;
  color: var(--muted);
  font-size: 0.78125rem;
  margin: 10px auto 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 14px;
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--muted); padding-bottom: 18px; margin: 0; }
#faq .section-title { margin-bottom: 24px; }

/* ---------- Demo form ---------- */
.demo { background: linear-gradient(160deg, var(--navy) 20%, var(--indigo) 100%); color: #fff; }
.demo .section-title { color: #fff; }
.demo .section-sub { color: #cddcf5; }
.demo-form { margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-field label { font-size: 0.9375rem; font-weight: 500; margin-bottom: 6px; color: #cddcf5; }
.form-field input, .form-field textarea {
  font: inherit;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #9fb4d8; }
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
  border-color: transparent;
}
.demo .btn-primary {
  background: var(--sky);
  color: var(--navy);
  border: none;
  width: 100%;
}
.demo .btn-primary:hover:not(:disabled) { background: #8cc9fb; }
.demo .btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-error {
  background: rgba(198, 40, 40, 0.25);
  border: 1px solid rgba(255, 120, 120, 0.5);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9375rem;
}
/* Honeypot: moved off-screen, not display:none — some bots skip hidden fields. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.demo-success { text-align: center; padding: 24px 0; }
.success-icon {
  display: inline-flex;
  width: 64px; height: 64px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0, 200, 130, 0.2);
  margin-bottom: 16px;
}
.success-icon svg { width: 30px; height: 30px; fill: none; stroke: #4be3a8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-success h3 { font-size: 1.4rem; }
.demo-success p { color: #cddcf5; }

/* ---------- Footer ---------- */
.footer { background: #0e1c33; color: #9fb4d8; padding: 48px 0; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand img { width: 84px; height: auto; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.footer-links a { color: #cddcf5; text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { margin: 0; font-size: 0.875rem; flex-basis: 100%; }
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}

/* ---------- Reveal animations ----------
   Hidden state only when JS runs (html.js), so no-JS visitors see everything. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--stagger, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
