/*
 * Oeden Solutions / Clario public site.
 * Same tokens as the app (apps/web/src/index.css): cool neutrals, navy frame, one blue accent.
 */
:root {
  --canvas: #f4f5f8;
  --surface: #ffffff;
  --sunken: #eef0f4;
  --line: #e2e5eb;
  --line-strong: #cfd4dd;
  --ink: #121826;
  --ink-2: #364053;
  --muted: #646e82;
  --navy: #0f1a2e;
  --navy-2: #18253d;
  --navy-line: #23314b;
  --navy-text: #c3cadb;
  --accent: #2d5be3;
  --accent-hover: #2149c2;
  --accent-soft: #ebf0fd;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(18, 24, 38, 0.07), 0 0 0 1px rgba(18, 24, 38, 0.02);
  --shadow-frame: 0 24px 48px -16px rgba(18, 24, 38, 0.22), 0 0 0 1px rgba(18, 24, 38, 0.06);
  --container: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--sunken); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--sunken); }
.btn-on-dark { color: #fff; border-color: var(--navy-line); background: var(--navy-2); }
.btn-on-dark:hover { border-color: var(--navy-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 7px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700;
}
.brand-logo { height: 36px; width: 36px; }
.nav { display: flex; gap: 4px; }
.nav a, .mobile-nav a {
  padding: 6px 10px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
}
.nav a:hover { background: var(--sunken); color: var(--ink); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 2px; border-radius: 6px; background: var(--sunken); margin-right: 4px; }
.lang button {
  border: 0; background: none; padding: 4px 8px; border-radius: 4px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.menu-toggle { display: none; border: 0; background: none; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; display: block; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 0; background: var(--canvas); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.clario-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: #fff; }
.clario-mark svg { width: 13px; height: 13px; stroke-width: 3.4; }
.hero h1 { margin-top: 20px; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.lead { margin: 20px auto 0; max-width: 620px; font-size: 18px; color: var(--muted); }
.hero-actions { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-frame { margin: 56px auto -1px; max-width: 1080px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Browser frame around app screenshots */
.frame { margin: 0; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-frame); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); }
.frame-bar span { margin: 0 auto; padding: 2px 14px; border-radius: 5px; background: var(--surface); font-size: 12px; color: var(--muted); }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.section-head h2, .about h2 { margin-top: 8px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 700; }
.section-head p:not(.kicker) { margin-top: 14px; font-size: 17px; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-lg { padding: 28px; display: flex; flex-direction: column; }
.card h3, .features h3 { margin-top: 16px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card p, .features p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.card-lg p { flex: 1; }
.icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 19px; height: 19px; }
.icon-accent { background: var(--accent); color: #fff; }
.link { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
.link::after { content: ' \2192'; }
.link:hover { text-decoration: underline; }
.features { gap: 32px; }

/* Product tour */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--sunken); border: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: none; padding: 7px 16px; border-radius: 6px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--muted);
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tour { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.tour-copy { padding-top: 8px; }
.tour-copy h3 { font-size: 20px; font-weight: 600; }
.tour-copy p { margin-top: 10px; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.about-text p { font-size: 17px; color: var(--ink-2); }
.about-text p + p { margin-top: 16px; }

/* Contact */
.contact { background: var(--navy); }
.contact h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
.contact p { margin-top: 12px; max-width: 520px; color: var(--navy-text); font-size: 17px; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand p { margin-top: 12px; font-size: 13px; color: var(--muted); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tour { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 860px) {
  .nav, .hide-sm { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-frame { margin-top: 40px; }
  .topbar-inner { gap: 12px; }
  .brand-name { display: none; }
  .contact-actions .btn { width: 100%; }
}
@media (max-width: 560px) {
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .tabs button { padding: 7px 4px; font-size: 13px; }
}
