/* ============================================================
   Clever Resources — styles.css
   Palette: blues on white. No black — darkest tone is navy ink.
   ============================================================ */

:root {
  --blue-800: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --sky-400: #38bdf8;
  --sky-100: #e0f2fe;
  --ink: #17253f;        /* headings — dark navy, not black */
  --body: #45536e;       /* body text — slate blue */
  --muted: #64748b;
  --line: #dce6f5;
  --bg: #ffffff;
  --bg-alt: #f4f8fd;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 58, 138, 0.06), 0 4px 12px rgba(30, 58, 138, 0.06);
  --shadow-md: 0 4px 10px rgba(30, 58, 138, 0.08), 0 12px 32px rgba(30, 58, 138, 0.10);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; }

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

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--sky-100);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.lead { font-size: 1.13rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--blue-700);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: 0.92rem; white-space: nowrap; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.text-link { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-accent { color: var(--blue-600); }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--body); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--blue-700); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: none;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
}
.lang-menu a:hover { background: var(--bg-alt); color: var(--blue-700); }
.lang-menu a.active { color: var(--blue-700); font-weight: 700; background: var(--sky-100); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(56, 189, 248, 0.18), transparent 65%),
    radial-gradient(700px 420px at 12% 8%, rgba(37, 99, 235, 0.10), transparent 60%),
    linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
}
.hero-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-sub { font-size: 1.18rem; max-width: 640px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.hero-proof {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--blue-600);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
}

/* ---------- Story ---------- */
.story .story-body p { font-size: 1.1rem; }
.story-turn {
  font-family: var(--font-display);
  font-size: 1.35rem !important;
  font-weight: 700;
  color: var(--blue-700);
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--blue-600);
  background: linear-gradient(135deg, var(--sky-100), #eef5ff);
}
.card-icon svg { width: 24px; height: 24px; }

.connector-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.chip-more { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding-top: 34px; }
.step-num {
  position: absolute;
  top: -20px;
  left: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

/* ---------- Use cases ---------- */
.usecase-open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(150deg, #eef6ff, var(--sky-100));
  border-style: dashed;
  border-color: var(--blue-500);
}
.usecase-open-text { font-weight: 500; color: var(--ink); }

/* ---------- Why ---------- */
.why-item {
  border-top: 3px solid var(--blue-500);
  padding-top: 18px;
}
.why-item h3 { font-size: 1.05rem; }
.why-item p { font-size: 0.97rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue-600);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fbfdff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.form-field textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.consent { display: flex; gap: 10px; font-size: 0.86rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--blue-600); }
.form-status { margin: 0; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #0f7b4f; }
.form-status.err { display: block; color: #b3452c; }

.booking h3 { margin-top: 4px; }
.booking-embed { margin-top: 14px; }
.booking-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  margin-bottom: 14px;
}
.booking-toggle button {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}
.booking-toggle button.active {
  background: #fff;
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}
.booking-embed iframe { width: 100%; min-height: 560px; border: 0; border-radius: 12px; }
.booking-fallback {
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 18px;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #f6faff, #eaf3fd);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
.footer-tagline { font-weight: 700; color: var(--ink); margin: 14px 0 6px; }
.footer-blurb { color: var(--muted); font-size: 0.9rem; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.footer-col a { color: var(--body); }
.footer-col a:hover { color: var(--blue-700); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Legal ---------- */
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal-updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- Language banner ---------- */
.lang-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow-md);
  font-size: 0.93rem;
  color: var(--ink);
  max-width: calc(100vw - 32px);
}
.lang-banner .btn { white-space: nowrap; }
.lang-banner-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { margin-top: 20px; }

  /* Compact header: everything on one 64px line, nothing wraps */
  .header-inner { height: 64px; gap: 8px; }
  .container.header-inner { padding: 0 14px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1rem; }
  .header-actions { gap: 8px; flex: none; }
  .lang-btn span { display: none; }        /* globe icon only on phones */
  .lang-btn { padding: 8px 11px; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 0.82rem; }
}
