/*
 * The ExpertCore website. One stylesheet, no build step, no framework:
 * the folder is published as it is.
 *
 * Colours are the logo's. Headings are Poppins, served from here, not from
 * Google, so a visit sends nobody's address to a third party. Body text is
 * the visitor's own system font.
 */

@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/poppins-500.woff") format("woff");
}

:root {
  --navy: #111e34;
  --navy-2: #1a2b4b;
  --navy-line: #2c3e60;
  --on-navy: #e8eef7;
  --on-navy-muted: #c3cde0;
  --on-navy-faint: #aab6cc;
  --ground: #f5f7fb;
  --card: #ffffff;
  --line: #dde3ee;
  --field-line: #b9c3d6;
  --ink: #13203a;
  --muted: #4a5670;
  --accent: #e86838;
  --accent-ink: #c4501f;
  --radius: 14px;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { color: #9a3c14; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.2; }
p { margin: 0; }
input, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.dark { background: var(--navy); color: var(--on-navy); }
.eyebrow { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); }
.dark .eyebrow { color: var(--accent); }
.muted { color: var(--muted); }

.button {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 12px 26px; border-radius: 8px; border: 0;
  background: var(--accent); color: var(--navy);
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: #f07a4d; color: var(--navy); }
.button.ghost { background: transparent; color: var(--on-navy); border: 1px solid #3a4b6b; }
.button.ghost:hover { border-color: var(--on-navy-faint); color: var(--on-navy); }
.button.small { min-height: 44px; padding: 10px 20px; }

/* Header */
.top { padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.top img { width: 132px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 16px; }
.top nav a:not(.button) { color: var(--on-navy); text-decoration: none; }
.top nav a:not(.button):hover { text-decoration: underline; }

/* Language switch: one page per language (/ and /en/), the current one marked. */
.top nav .lang { display: flex; gap: 2px; padding: 2px; border: 1px solid #3a4b6b; border-radius: 8px; }
.top nav .lang a { min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--on-navy-faint); }
.top nav .lang a:hover { color: var(--on-navy); text-decoration: none; }
.top nav .lang a[aria-current="page"] { background: var(--on-navy); color: var(--navy); }

/* Hero */
.hero { padding: 56px 24px 96px; }
/* Text on the left, the application on the right; on a narrow screen one under the other. */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.1; letter-spacing: -0.01em; }
.hero-text > p:not(.eyebrow) { font-size: 20px; color: var(--on-navy-muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-shot { flex: 1 1 520px; min-width: 0; }
.window .screen { display: block; width: 100%; height: auto; }
.window { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.window-bar { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--navy-line); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a4b6b; }

/* Screenshot slots: an <img> replaces the placeholder text once the picture exists. */
.shot { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 16px; }
.window .shot { min-height: 360px; background: #15233f; color: var(--on-navy-faint); }
.feature .shot { min-height: 300px; background: #e9edf5; border: 1px dashed var(--field-line); border-radius: var(--radius); color: var(--muted); }
.shot img { width: 100%; border-radius: inherit; }

/* Key points */
.points-band { padding: 0 24px; }
.points {
  list-style: none; margin: -44px auto 0; padding: 26px 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  font-size: 16px; font-weight: 600;
}
.points li { display: flex; align-items: center; gap: 10px; }
.points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* Sections */
.section { padding: 88px 24px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.module { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.module h3 { font-size: 22px; }
.module p { color: var(--muted); font-size: 17px; }
.module svg { width: 32px; height: 32px; stroke: var(--navy); }

/* Features */
.features { display: flex; flex-direction: column; gap: 64px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.feature:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-text h2 { font-size: clamp(26px, 3vw, 34px); }
.feature .shot { flex: 1 1 480px; min-width: 0; }

/* Security */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.trust div { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--accent); padding-top: 20px; }
.trust h3 { font-size: 20px; }
.trust p { color: var(--on-navy-muted); font-size: 17px; }

/* Who makes it */
.about { max-width: 860px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.about p { max-width: 680px; }

/* Demo */
.demo-band { padding: 0 24px 96px; }
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 48px; }
.demo-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.demo form { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.field input, .field textarea { padding: 0 14px; height: 48px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 400; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.wide { grid-column: 1 / -1; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
/* The field robots fill in and people never see (demo.php drops what has it). */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { font-size: 15px; }
/* demo.php's own page, for a browser that sent the form without script. */
.notice { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.form-status[data-tone="ok"] { color: #0f7a4f; }
.form-status[data-tone="error"] { color: #b42318; }

/* Footer */
.foot { padding: 48px 24px; color: var(--on-navy-faint); font-size: 15px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.foot-company { display: flex; flex-direction: column; gap: 10px; }
.foot-company img { width: 140px; margin-bottom: 4px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.foot nav a { color: var(--on-navy); }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--navy-line); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
