/* ============================================================
   InstaKymbo static site — shared styles
   Design tokens inherited from erp-staging.kymbo.co (Kymbo ERP).
   Used by: index.html, privacy.html, terms.html, data-deletion.html
   ============================================================ */

:root {
  --background: #fcfbf8;
  --foreground: #0c121a;
  --card: #fefdfc;
  --primary: #c0ff5b;
  --primary-foreground: #0c121a;
  --secondary: #ebf2f1;
  --secondary-foreground: #003731;
  --muted: #f2f0ec;
  --muted-foreground: #5e646c;
  --accent: #e8f9d5;
  --border: #e3e1db;
  --success: #00884b;
  --radius: 0.625rem;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --util: "DM Sans", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Narrower measure for long-form legal text */
.wrap--doc { max-width: 760px; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
  font-size: 18px;
}
.brand .word { font-size: 18px; }
.brand .word b { font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--util);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--foreground); }
.nav-links a.cta {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links a.cta:hover { filter: brightness(0.96); }

/* ---------- mobile menu (CSS-only toggle) ---------- */
.menu-toggle { display: none; }        /* the hidden checkbox */
.menu-btn {
  display: none;                        /* shown only on small screens */
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: -4px -8px -4px 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  border-radius: 10px;
}
.menu-btn:hover { background: var(--muted); }
.menu-btn svg { display: block; }
.menu-btn .icon-close { display: none; }

@media (max-width: 640px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    font-size: 16px;
    /* collapsed by default */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.cta {
    margin-top: 10px;
    text-align: center;
    border-bottom: 0;
  }
  /* open state */
  .menu-toggle:checked ~ .nav-links {
    max-height: 340px;
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle:checked ~ .menu-btn .icon-open { display: none; }
  .menu-toggle:checked ~ .menu-btn .icon-close { display: block; }
}

/* ---------- hero (landing) ---------- */
.hero { padding: 84px 0 56px; }
.eyebrow {
  font-family: var(--util);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow--rule::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--muted-foreground);
}
h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 26px;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--success);
}
.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted-foreground);
  max-width: 60ch;
  margin: 0 0 34px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--util);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: filter 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { filter: brightness(0.96); }
.btn-ghost {
  color: var(--foreground);
  border: 1px solid var(--border);
  background: var(--card);
}
.btn-ghost:hover { background: var(--muted); }

/* ---------- landing sections ---------- */
section.block { padding: 20px 0 40px; }
.section-title {
  font-size: 0.82rem;
  font-family: var(--util);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card .step {
  font-family: var(--util);
  font-weight: 700;
  font-size: 13px;
  color: var(--success);
  margin: 0 0 10px;
}
.card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- callout (shared by landing + docs) ---------- */
.callout {
  background: var(--secondary);
  border: 1px solid color-mix(in srgb, var(--secondary-foreground) 12%, transparent);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.callout--spaced { margin-top: 36px; }
.callout .dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent);
}
.callout h3 {
  margin: 0 0 6px;
  color: var(--secondary-foreground);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.callout p {
  margin: 0;
  color: color-mix(in srgb, var(--secondary-foreground) 82%, var(--muted-foreground));
  font-size: 0.97rem;
  max-width: 68ch;
}
.callout a { color: var(--success); }

/* Simple bordered note used inside legal docs */
.note {
  background: var(--secondary);
  border: 1px solid color-mix(in srgb, var(--secondary-foreground) 12%, transparent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 22px 0;
}
.note p { margin: 0; color: color-mix(in srgb, var(--secondary-foreground) 88%, var(--muted-foreground)); }
.note strong { color: var(--secondary-foreground); }

/* ---------- legal document layout ---------- */
.doc { padding: 56px 0 24px; }
.doc .updated {
  font-family: var(--util);
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0 0 8px;
}
.doc h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.content { padding-bottom: 40px; }
.content > :first-child { margin-top: 0; }
.content h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.content h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.content p,
.content li { color: color-mix(in srgb, var(--foreground) 82%, var(--muted-foreground)); }
.content p { margin: 0 0 14px; }
.content ul { margin: 0 0 14px; padding-left: 22px; }
.content li { margin: 0 0 8px; }
.content strong { color: var(--foreground); font-weight: 600; }
.content a { color: var(--success); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.content code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Numbered steps — a genuine sequence (data-deletion) */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 22px 0;
  padding: 0;
}
.steps > li {
  position: relative;
  padding: 0 0 22px 52px;
  margin: 0;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--util);
  font-weight: 700;
  font-size: 15px;
  border-radius: 9px;
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.steps h3 { margin: 4px 0 6px; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--foreground); }
.steps p { margin: 0; color: color-mix(in srgb, var(--foreground) 80%, var(--muted-foreground)); }

/* ---------- footer ---------- */
footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: var(--muted);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--util);
  font-size: 14px;
  font-weight: 500;
}
.foot-links a {
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.foot-links a:hover { color: var(--foreground); }
.foot-copy {
  font-family: var(--util);
  font-size: 13px;
  color: var(--muted-foreground);
}

/* ---------- a11y / motion ---------- */
:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
