/* AISSES — aisses.eu prototype
   Huisstijl Precis: EU-blauw, EU-geel, Inter Medium */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Variable.woff") format("woff"),
       url("../assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Italic-Variable.woff") format("woff"),
       url("../assets/fonts/Inter-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Strict palette: white, EU blue, EU yellow. Quieter tones = blue with opacity. */
:root {
  --blue: #002D98;
  --yellow: #FFCC00;
  --white: #ffffff;
  --blue-70: rgba(0, 45, 152, 0.7);
  --blue-55: rgba(0, 45, 152, 0.55);
  --blue-15: rgba(0, 45, 152, 0.15);
  --blue-06: rgba(0, 45, 152, 0.06);
  --line: 1px solid var(--blue-15);
  --radius: 999px;
  --r: 14px;
  --max: 1080px;
  --nav-h: 76px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--blue);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--blue); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--blue); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
}
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border: var(--line); border-radius: 8px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { max-width: 560px; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px;
  border-radius: var(--radius);
  border: 1.5px solid var(--blue);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--yellow); border-color: var(--yellow); color: var(--blue); }
.btn-secondary { background: var(--white); color: var(--blue); }
.btn-secondary:hover { background: var(--blue-06); }

.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border: 1px solid var(--blue-15); border-radius: var(--radius);
  font-size: 12px; font-weight: 600; color: var(--blue-70); background: var(--white);
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: var(--line); }
.nav-inner { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand img.logo { height: 52px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--blue-70); }
.nav-links a:hover { color: var(--blue); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-cta { height: 40px; padding: 0 20px; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--blue); cursor: pointer; padding: 10px; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile { display: none; }
.nav-mobile.is-open { display: flex; flex-direction: column; position: sticky; top: var(--nav-h); z-index: 19; background: var(--white); border-bottom: var(--line); padding: 8px 16px 16px; }
.nav-mobile a { padding: 12px 8px; text-decoration: none; font-weight: 500; border-bottom: var(--line); }
.nav-mobile a:last-child { border-bottom: 0; }

/* Hero */
.hero { padding: 136px 0 120px; text-align: center; }
.hero-inner { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.035em; line-height: 1.08; max-width: 14em; }
.hero h1 .accent { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 0.09em; text-underline-offset: 0.14em; }
.hero-lead { margin-top: 28px; font-size: 19px; color: var(--blue-70); max-width: 30em; }
.hero-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--blue-55); }

/* Sections */
.section { padding: 112px 0; border-top: var(--line); }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); }
.lede { margin-top: 16px; color: var(--blue-70); font-size: 18px; }

.features { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.feature svg { width: 28px; height: 28px; color: var(--blue); }
.feature h3 { margin-top: 20px; font-size: 18px; }
.feature p { margin-top: 8px; color: var(--blue-70); font-size: 16px; }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1.5px solid var(--blue); border-radius: 50%; font-weight: 600; font-size: 15px; }
.steps h3 { margin-top: 20px; font-size: 18px; }
.steps p { margin-top: 8px; color: var(--blue-70); font-size: 16px; }

.privacy-list { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.privacy-list li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; }
.privacy-list .star { width: 22px; height: 22px; color: var(--yellow); flex: none; }

.founders { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 48px; }
.founder { margin: 0; }
.founder img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.founder figcaption { margin-top: 16px; display: flex; flex-direction: column; }
.founder strong { font-size: 18px; font-weight: 600; }
.founder span { color: var(--blue-55); font-size: 15px; }

/* Waitlist */
.form { margin-top: 36px; display: flex; gap: 12px; }
.form input {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px;
  border: 1.5px solid var(--blue-15); border-radius: var(--radius); background: var(--white); color: var(--blue);
}
.form input::placeholder { color: var(--blue-55); }
.form input:focus { outline: none; border-color: var(--blue); }
.form[hidden] { display: none; }
.form-success { display: none; margin-top: 36px; }
.form-success.is-visible { display: block; }
.form-success h3 { font-size: 20px; }
.form-success p { margin-top: 8px; color: var(--blue-70); }

/* Footer */
.footer { background: var(--blue); color: var(--white); padding: 64px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer-inner > img { height: 56px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-left: auto; }
.footer-links a { color: var(--white); text-decoration: none; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.footer-small { flex-basis: 100%; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); font-size: 13px; color: rgba(255,255,255,.75); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--blue); color: var(--white); padding: 12px 20px; border-radius: var(--radius); font-size: 15px; transition: .2s ease; z-index: 50; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- App ---------- */
.page-app { height: 100vh; height: 100dvh; overflow: hidden; }
.app-shell { height: 100%; display: flex; flex-direction: column; }
.app-top { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: var(--line); background: var(--white); }
.app-top .nav-brand img.logo { height: 46px; }
.app-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.app-icon-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--blue); cursor: pointer; padding: 8px; }
.app-icon-btn:hover { background: var(--blue-06); }
.app-icon-btn svg { width: 24px; height: 24px; }

.app-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px 1fr 300px; }
.app-side, .app-panel { background: var(--white); min-height: 0; overflow-y: auto; }
.app-side { border-right: var(--line); display: flex; flex-direction: column; padding: 20px 12px; }
.app-panel { border-left: var(--line); }
.side-label { padding: 0 12px 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-55); }
.bot-list { display: flex; flex-direction: column; gap: 2px; }
.bot-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; color: var(--blue); }
.bot-item:hover { background: var(--blue-06); }
.bot-item.is-active { background: var(--blue-06); box-shadow: inset 2px 0 0 var(--yellow); }
.bot-mark { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border: var(--line); border-radius: 9px; background: var(--white); }
.bot-mark img { width: 22px; height: 22px; }
.bot-mark .letter { font-weight: 600; font-size: 14px; }
.bot-meta { display: flex; flex-direction: column; line-height: 1.3; }
.bot-meta strong { font-size: 15px; font-weight: 600; }
.bot-meta span { font-size: 13px; color: var(--blue-55); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 16px 12px 4px; border-top: var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.who { display: flex; flex-direction: column; line-height: 1.3; }
.who strong { font-size: 14px; font-weight: 600; }
.who span { font-size: 12px; color: var(--blue-55); }

.app-chat { min-height: 0; display: flex; flex-direction: column; background: var(--white); }
.chat-header { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: var(--line); }
.header-icon img { width: 30px; height: 30px; }
.chat-header h1 { font-size: 16px; letter-spacing: 0; }
.chat-header p { font-size: 13px; color: var(--blue-55); }
.chat-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 36px 28px; }
.thread { display: none; flex-direction: column; gap: 20px; max-width: 760px; margin-inline: auto; }
.thread.is-active { display: flex; }

.msg { display: flex; gap: 12px; align-items: flex-end; }
.msg-user { justify-content: flex-end; }
.msg-avatar { flex: none; }
.msg-avatar img { width: 28px; height: 28px; }
.msg-bubble { max-width: 560px; padding: 12px 16px; border-radius: 18px; font-size: 15.5px; line-height: 1.55; }
.msg-user .msg-bubble { background: var(--blue); color: var(--white); border-bottom-right-radius: 6px; }
.msg-bot .msg-bubble { background: var(--white); color: var(--blue); border: var(--line); border-bottom-left-radius: 6px; }
.typing { display: inline-flex; gap: 5px; align-items: center; min-height: 24px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-55); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.chat-compose { flex: none; padding: 12px 28px 16px; }
.compose-box { max-width: 760px; margin-inline: auto; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 20px; border: 1.5px solid var(--blue-15); border-radius: 26px; background: var(--white); }
.compose-box:focus-within { border-color: var(--blue); }
.compose-box textarea { flex: 1; min-height: 38px; max-height: 140px; padding: 8px 0; border: 0; outline: 0; resize: none; background: none; color: var(--blue); line-height: 1.4; }
.compose-box textarea::placeholder { color: var(--blue-55); }
.send-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.send-btn:hover { background: var(--yellow); color: var(--blue); }
.send-btn svg { width: 18px; height: 18px; }
.compose-hint { max-width: 760px; margin: 8px auto 0; text-align: center; font-size: 12px; color: var(--blue-55); }

.panel-tabs { display: flex; gap: 24px; padding: 0 24px; border-bottom: var(--line); }
.panel-tab { padding: 18px 0 14px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue-55); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.panel-tab.is-active { color: var(--blue); border-bottom-color: var(--yellow); }
.panel-body { padding: 8px 24px 24px; }
.panel-section[hidden] { display: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row h3 { font-size: 15px; letter-spacing: 0; }
.switch-row p { font-size: 13px; color: var(--blue-55); }
.status { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--blue); }
.status.off { color: var(--blue-55); font-weight: 500; }
.switch { position: relative; flex: none; width: 42px; height: 24px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; border: 1.5px solid var(--blue-55); background: var(--white); transition: .15s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--blue-55); transition: .15s ease; }
.switch input:checked + span { background: var(--blue); border-color: var(--blue); }
.switch input:checked + span::after { left: 20px; background: var(--white); }
.switch input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.backdrop { position: fixed; inset: 64px 0 0; background: rgba(0, 45, 152, 0.15); z-index: 30; }
.backdrop[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 240px 1fr; }
  .app-panel { position: fixed; top: 64px; right: 0; bottom: 0; width: min(320px, 88vw); z-index: 40; transform: translateX(100%); transition: transform .2s ease; }
  .app-panel.is-open { transform: none; }
  #btn-panel { display: inline-flex; }
}
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { position: fixed; top: 64px; left: 0; bottom: 0; width: min(300px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform .2s ease; }
  .app-side.is-open { transform: none; }
  #btn-sidebar { display: inline-flex; }
  .app-top { padding: 0 12px; }
  .chat-header, .chat-thread, .chat-compose { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-end { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .wrap, .nav-inner, .hero-inner { width: calc(100% - 40px); }
  .nav-brand img.logo { height: 46px; }
  .hero { padding: 88px 0 88px; }
  .hero-lead { font-size: 17px; margin-top: 24px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 80px 0; }
  .features { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .steps, .privacy-list, .founders { margin-top: 40px; }
  .privacy-list { flex-direction: column; }
  .founders { grid-template-columns: 1fr 1fr; gap: 20px; }
  .form { flex-direction: column; }
  .form .btn { width: 100%; }
  .footer-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.hero h1 .accent { white-space: nowrap; }

/* Uppercase display headings to match the angular logo */
.hero h1 { text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(28px, 4.2vw, 50px); line-height: 1.12; max-width: 20em; font-weight: 700; }
.hero h1 .accent { text-decoration-thickness: 0.1em; text-underline-offset: 0.16em; }
.section h2 { text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.form-success h3 { text-transform: none; }
@media (max-width: 560px) {
  .hero h1 { font-size: 27px; letter-spacing: 0.025em; }
  .section h2 { font-size: 22px; }
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .accent { display: inline-block; margin-top: 0.04em; }
.hero-lead { max-width: 34em; line-height: 1.6; }
.hero-lead p + p { margin-top: 14px; }
.hero-lead .hero-lead-intro { color: var(--blue); font-weight: 600; font-size: 1.2em; }
@media (max-width: 560px) { .hero-lead { font-size: 16.5px; } }

/* What AISSES can do */
.cando-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: var(--line); border-left: var(--line); }
.cando { padding: 28px 24px 32px; border-right: var(--line); border-bottom: var(--line); background: var(--white); }
.cando svg { width: 28px; height: 28px; color: var(--blue); }
.cando h3 { margin-top: 18px; font-size: 17px; letter-spacing: -0.01em; }
.cando h3::after { content: ""; display: block; width: 20px; height: 2px; margin-top: 10px; background: var(--yellow); }
.cando p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--blue-70); }
@media (max-width: 1100px) { .cando-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cando-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .cando-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .cando { padding: 24px 20px 26px; }
}
