/* Camelia Technologies — app styles (tokens: /workspace/brand/tokens.json) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-latin.ttf') format('truetype');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/Unbounded-latin.ttf') format('truetype');
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --primary: #2E2A8C;
  --primary-hover: #25217A;
  --magenta: #D63384;
  --teal: #1FA7A0;
  --blue: #2F80D6;
  --purple: #9B2FAE;
  --navy: #1B2A6B;
  --bg: #FFFFFF;
  --surface: #F4F5F8;
  --card: #FFFFFF;
  --border: #E3E5EC;
  --ink: #14142B;
  --muted: #5B5F73;
  --ok: #1FA7A0;
  --warn: #E8A33D;
  --danger: #D64545;
  /* legacy aliases used by inline styles/scripts */
  --accent: var(--primary);
  --accent-2: var(--teal);
  --radius: 16px;
  --radius-input: 10px;
  --shadow: 0 1px 2px rgba(20,20,43,.06), 0 4px 16px rgba(20,20,43,.06);
  --brand-gradient: linear-gradient(90deg,#1FA7A0 0%,#2F80D6 35%,#9B2FAE 70%,#D63384 100%);
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', var(--font-ui);
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; letter-spacing: -0.01em; margin: 0 0 12px; }
h2 { font-weight: 700; font-size: 1.25rem; margin: 0 0 8px; }
h3 { font-weight: 700; font-size: 1.05rem; margin: 0 0 8px; }
a { color: var(--primary); text-decoration: none; font-weight: 500; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
code { font-size: 0.85em; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
pre { border: 1px solid var(--border); border-radius: var(--radius-input) !important; background: var(--surface) !important; }
hr { border: 0; border-top: 1px solid var(--border); }

/* ——— Header ——— */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; }
.site-header::before { content: ""; display: block; height: 3px; background: var(--brand-gradient); }
.nav {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; padding: 4px 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--primary); }
.nav-links span { color: var(--muted); font-size: 0.875rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 24px; }

.hero {
  display: grid; gap: 24px;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  margin-bottom: 32px;
}
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }

/* ——— Cards ——— */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
}
.card h1, .card h2, .card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.price { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--navy); }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
  background: rgba(46,42,140,.08); color: var(--primary);
}
.badge.supplier { background: rgba(31,167,160,.12); color: #137a75; }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 20px 24px; border-left: 4px solid var(--teal); }
.stat.magenta { border-left-color: var(--magenta); }
.stat.purple { border-left-color: var(--purple); }
.stat .stat-label { color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.stat .stat-value { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--ink); line-height: 1.2; margin-top: 4px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan ul { padding-left: 20px; margin: 12px 0 16px; }
.plan li { margin: 4px 0; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; border: 1px solid transparent; cursor: pointer;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600;
  padding: 10px 24px; border-radius: 999px; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.btn:focus-visible { outline: 3px solid rgba(46,42,140,.3); outline-offset: 2px; }
.btn.secondary { background: var(--teal); }
.btn.secondary:hover { background: #188c86; }
.btn.ghost { background: var(--bg); color: var(--ink); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.block { display: flex; width: 100%; text-align: center; }
.btn-sm { min-height: 32px; padding: 4px 14px; font-size: 0.875rem; }

/* ——— Forms ——— */
form .field { margin-bottom: 16px; }
label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"],
textarea, select {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-input);
  border: 1px solid var(--border); background: #fff; font: inherit; color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,42,140,.15);
}
textarea { min-height: 100px; resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }

.flash {
  padding: 12px 16px; border-radius: var(--radius-input); margin-bottom: 16px;
  background: rgba(31,167,160,.08); color: #137a75; border: 1px solid rgba(31,167,160,.3);
}
.flash.error { background: rgba(214,69,69,.07); color: #a63232; border-color: rgba(214,69,69,.3); }
.flash.warn { background: rgba(232,163,61,.1); color: #8a5a00; border-color: rgba(232,163,61,.35); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.platform-list { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow: auto; }
.platform-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.platform-list .tag {
  margin-left: auto; font-size: 0.7rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tag {
  display: inline-block; font-size: 0.75rem; padding: 2px 10px; border-radius: 999px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
}

table { border-collapse: collapse; }
th { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 8px 8px 8px 0; }
td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--border); }
thead tr { border-bottom: 1px solid var(--border) !important; }

.footer {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem;
}
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.guidelines {
  margin: 16px 0 20px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-input);
}
.guidelines h3 { margin: 0 0 8px; font-size: 0.95rem; }
.guidelines ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.9rem; }
.guidelines li { margin: 4px 0; }

.verify-list { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.95rem; }
.verify-list li { margin: 8px 0; }

.license-box {
  border: 1px solid var(--border); border-radius: var(--radius-input);
  padding: 16px; margin: 0 0 16px;
}
.license-box legend { font-weight: 600; padding: 0 6px; }
.license-box select { width: 100%; }
.license-out .tag { font-size: 0.72rem; padding: 1px 8px; }
