/* =====================================================================
   Rekkan.Ai — public landing page.
   Light editorial. Background #ffffff. Inter only. EcoBytes Group.
   No build step: plain CSS, plain ES modules.
   ===================================================================== */

:root {
  /* Surfaces — light and quiet, three soft steps of one neutral. */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-raise: #f5f5f5;

  /* Lines and type, straight off the editorial scale. */
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --ink-head: #252525;
  --ink: #0a0a0a;
  --ink-dim: #525252;
  --ink-mute: #737373;

  /* One accent only: the Rekkan.Ai green, dark enough to read on white. */
  --mint: #0f7f5c;
  --mint-soft: #e9f6f1;

  --radius: 12px;
  --radius-lg: 20px;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -20px rgba(0, 0, 0, 0.18);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ------------------------------------------------------- */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--ink-head);
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--ink-head);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

.brand em { font-style: normal; color: var(--ink-mute); font-weight: 400; }

.hdr__nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-mute);
}

.hdr__nav a { transition: color 0.18s var(--ease); }
.hdr__nav a:hover { color: var(--ink); }

.hdr__act { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover { border-color: var(--line-strong); background: var(--bg-soft); }

.btn--primary {
  background: var(--ink-head);
  border-color: var(--ink-head);
  color: #ffffff;
}

.btn--primary:hover { background: #111111; border-color: #111111; }

.btn--quiet { border-color: transparent; background: transparent; }
.btn--quiet:hover { background: var(--bg-raise); border-color: transparent; }

.btn--sm { padding: 8px 13px; font-size: 12px; border-radius: 6px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding: 152px 0 0;
  background: var(--bg);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 560px;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero__in { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  /* A pill rather than a bare dot floating next to text. */
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px 6px 11px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink-head);
}

h1 .accent { color: var(--ink-mute); }

.lede {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-dim);
  max-width: 560px;
}

.lede b { font-weight: 500; color: var(--ink-head); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.hero__note {
  margin: 26px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ---------- live product card -------------------------------------------- */
.pane {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.pane__top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pane__top b { font-size: 13.5px; line-height: 1.2; font-weight: 500; color: var(--ink-head); }

/* The first badge belongs to the left edge; only the trailing one is pushed. */
.pane__top .pane__stat:first-child { margin-left: 0; }

.pane__stat {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-dim);
  background: var(--bg-raise);
  border-radius: 999px;
  padding: 6px 12px;
}

.pane__body { padding: 18px 0 4px; }

.pane__prompt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 16px;
}

.pane__out {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.4px;
  line-height: 1.85;
  color: var(--ink-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
}

.pane__out b { color: var(--mint); font-weight: 500; }

.pane__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pane__chips span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-dim);
  background: var(--bg-raise);
  border-radius: 999px;
  padding: 5px 11px;
}

.pane__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-mute);
}

/* ---------- big stats ---------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.stat__n {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--ink-head);
}

.stat__l { margin-top: 8px; font-size: 14px; color: var(--ink-mute); max-width: 260px; }

/* ---------- sections ----------------------------------------------------- */
section { padding: 112px 0; }
.sec--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 720px; }

.sec-kicker {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
}

h2 {
  margin: 14px 0 0;
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 500;
  color: var(--ink-head);
}

h3 { font-weight: 500; color: var(--ink-head); }

.sec-lede {
  margin: 16px 0 0;
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 640px;
}

.grid { display: grid; gap: 24px; margin-top: 56px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s var(--ease);
}

.card:hover { border-color: var(--line-strong); }

.card__ico {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--bg-raise);
  color: var(--ink-mute);
  font-size: 12.5px;
  font-weight: 500;
}

.card h3 { margin: 18px 0 8px; font-size: 16px; letter-spacing: -0.012em; }

.card p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.62; }

/* ---------- workload catalogue ------------------------------------------- */
.packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.pack {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.pack:hover { border-color: var(--line-strong); }

.pack__fn {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.pack__n {
  display: block;
  margin: 10px 0 7px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink-head);
}

.pack__t { margin: 0; font-size: 14px; color: var(--ink-dim); line-height: 1.58; }

/* ---------- steps -------------------------------------------------------- */
.split { display: grid; gap: 48px; align-items: start; }
.split--7-5 { grid-template-columns: 1.15fr 0.85fr; margin-top: 56px; }
.split--5-7 { grid-template-columns: 0.85fr 1.15fr; }

.steps { display: grid; gap: 8px; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.step__n {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-mute);
}

.step h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.014em; }
.step p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.step code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-raise);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- code panel + guarantees -------------------------------------- */
.code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.code__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.code__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.code__bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
}

.code pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.6px;
  line-height: 1.75;
  color: var(--ink-dim);
}

.code .k { color: var(--ink-head); }
.code .v { color: var(--mint); }
.code .c { color: var(--ink-mute); }

.checks { display: grid; gap: 22px; margin-top: 56px; }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 14px; font-size: 14.5px; color: var(--ink-dim); }
.check b { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink-head); }
.check code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-raise);
  border-radius: 4px;
  padding: 1px 5px;
}

.check__tick {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--mint);
  font-size: 11px;
  line-height: 1;
}

/* ---------- pricing ------------------------------------------------------ */
.price {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.tier {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.tier--hot { border-color: var(--ink-head); }

.tier__tag {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.tier h3 { margin: 14px 0 6px; font-size: 20px; letter-spacing: -0.018em; }

.tier__p { margin: 0; font-size: 15px; color: var(--ink-head); min-height: 24px; font-weight: 500; }

.tier ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
}

.tier li {
  font-size: 14.4px;
  color: var(--ink-dim);
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  line-height: 1.55;
}

.tier li::before { content: '·'; color: var(--ink-mute); }

.tier .btn { margin-top: 26px; }
.tier__note { margin-top: 14px; font-size: 12.5px; color: var(--ink-mute); }

/* ---------- faq ---------------------------------------------------------- */
.faq { margin-top: 8px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-head);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  margin-left: auto;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mute);
  line-height: 1;
}

.faq details[open] summary::after { content: '–'; }

.faq p { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-dim); max-width: 620px; }

/* ---------- dark cta band ------------------------------------------------ */
.band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
}

.band h2 { margin: 0; color: #ffffff; }
.band p { max-width: 520px; margin: 18px auto 0; color: #a3a3a3; font-size: 16px; }
.band .hero__cta { justify-content: center; margin-top: 32px; }

.band .btn--primary { background: #ffffff; border-color: #ffffff; color: var(--ink); }
.band .btn--primary:hover { background: #e5e5e5; border-color: #e5e5e5; }

.band .btn--ghost {
  background: transparent;
  border-color: #404040;
  color: #ffffff;
}

.band .btn--ghost:hover { background: transparent; border-color: #737373; }

/* ---------- footer ------------------------------------------------------- */
.ftr { border-top: 1px solid var(--line); padding: 64px 0 48px; }

.ftr__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.ftr__top p { margin: 12px 0 0; font-size: 14px; color: var(--ink-mute); max-width: 420px; }

.ftr__cols { margin-left: auto; display: flex; gap: 72px; }

.ftr__cols div { display: grid; gap: 10px; align-content: start; }

.ftr__cols b {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.ftr__cols a { font-size: 14px; color: var(--ink-dim); }
.ftr__cols a:hover { color: var(--ink); }

.ftr__low {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-mute);
}

.ftr__low span:last-child { margin-left: auto; }

/* ---------- language switch (ID | EN) ------------------------------------
   Same vocabulary as the control panel's .seg: one quiet segmented control.
   It lives in .hdr__act, next to the CTAs, so it stays reachable on the
   widths where .hdr__nav collapses — there is no mobile copy to keep in sync. */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  flex-wrap: wrap;
}
.seg button {
  border: none;
  background: transparent;
  padding: 6px 13px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.seg button:focus-visible { outline: 2px solid var(--ink-head); outline-offset: 2px; }
.seg--sm button { padding: 4px 10px; font-size: 11px; letter-spacing: 0.06em; }

/* ---------- no-JS notice ------------------------------------------------ */
.noscript {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  font-size: 14px;
  color: var(--ink-dim);
}
.noscript code { font-family: var(--mono); font-size: 12.5px; }

/* ---------- responsive --------------------------------------------------- */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__canvas { width: 100%; height: 420px; }
  .hdr__nav { display: none; }
  .grid--4, .packs, .price { grid-template-columns: repeat(2, 1fr); }
  .split--7-5, .split--5-7 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding-top: 120px; }
  section { padding: 76px 0; }
  .stats { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; padding-top: 36px; }
  .grid--4, .packs, .price, .grid--2 { grid-template-columns: 1fr; }
  .grid, .packs, .price, .checks { margin-top: 36px; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .band { padding: 52px 22px; }
  .ftr__cols { margin-left: 0; gap: 40px; }
  .ftr__low span:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}