/* ===========================================================
   Lazolingo — marketing site style kit
   Tokens, base, and component styles
   =========================================================== */

:root {
  /* color — deep teal-blue primary + warm clay accent on warm off-white */
  --ink:          oklch(0.27 0.018 235);
  --ink-soft:     oklch(0.44 0.020 235);
  --ink-mute:     oklch(0.56 0.016 235);

  --primary:      oklch(0.47 0.088 173);
  --primary-deep: oklch(0.37 0.078 175);
  --primary-press:oklch(0.31 0.068 176);
  --primary-tint: oklch(0.965 0.018 172);
  --primary-line: oklch(0.90 0.030 172);

  --accent:       oklch(0.66 0.115 56);   /* warm clay */
  --accent-deep:  oklch(0.55 0.115 52);
  --accent-tint:  oklch(0.965 0.022 70);
  --gold:         oklch(0.62 0.11 80);    /* gold-brown — the AI accent */
  --gold-deep:    oklch(0.47 0.10 74);
  --gold-tint:    oklch(0.955 0.032 84);

  --bg:           oklch(0.987 0.004 85);  /* subtly warm white */
  --surface:      oklch(1 0 0);
  --surface-2:    oklch(0.975 0.005 85);
  --border:       oklch(0.905 0.006 235);
  --border-soft:  oklch(0.935 0.005 235);

  --ok:           oklch(0.52 0.10 155);
  --ok-tint:      oklch(0.96 0.03 155);
  --warn:         oklch(0.55 0.13 50);
  --err:          oklch(0.52 0.17 27);
  --err-tint:     oklch(0.965 0.03 27);

  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --r-sm: 7px; --r-md: 11px; --r-lg: 16px;
  --shadow-sm: 0 1px 2px oklch(0.4 0.04 235 / 0.06), 0 1px 3px oklch(0.4 0.04 235 / 0.05);
  --shadow-md: 0 4px 14px oklch(0.35 0.05 235 / 0.08), 0 2px 6px oklch(0.35 0.05 235 / 0.05);
  --shadow-lg: 0 18px 48px oklch(0.32 0.05 235 / 0.14), 0 6px 18px oklch(0.32 0.05 235 / 0.08);

  --maxw: 1160px;
  --maxw-narrow: 760px;
  --header-h: 74px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-snap-type: y proximity; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.14; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
h2 { text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid oklch(0.47 0.088 173 / 0.5); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--s5); padding-right: var(--s5); }
.wrap-narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--s9); }
.section-sm { padding-block: var(--s8); }
@media (max-width: 720px) { .section { padding-block: var(--s8); } .section-sm { padding-block: var(--s7); } }

.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 var(--s3);
  display: inline-flex; align-items: center; gap: var(--s2);
}
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 14px 22px; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-primary:active { background: var(--primary-press); }
.btn-accent { background: var(--accent); color: oklch(0.22 0.04 50); }
.btn-accent:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--primary-deep); border-color: var(--primary-line); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-line:hover { background: var(--surface-2); border-color: var(--ink-mute); }
.btn-lg { padding: 17px 28px; font-size: 17px; }
h1 .ai-hl, h2 .ai-hl, h3 .ai-hl, .ai-hl { color: var(--gold-deep); }
.btn-block { width: 100%; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft);
}
.chip svg { width: 15px; height: 15px; color: var(--primary); }
.chip-solid { background: var(--primary-tint); border-color: var(--primary-line); color: var(--primary-deep); }
.chip-permitted { margin-bottom: 10px; background: var(--accent-tint); border-color: oklch(0.86 0.05 65); color: var(--accent-deep); font-size: 12.5px; padding: 5px 10px; }
.chip-permitted svg { color: var(--accent-deep); width: 14px; height: 14px; }
.feature h3 + .chip-permitted { margin-top: 2px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-line); }

.icon-tile {
  width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary-deep); flex: none;
}
.icon-tile svg { width: 23px; height: 23px; }
.icon-tile.warm { background: var(--accent-tint); color: var(--accent-deep); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--s5); }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); display: flex; gap: 6px; align-items: baseline; }
.field .req { color: var(--accent-deep); font-weight: 700; }
.field .hint { font-size: 13.5px; color: var(--ink-mute); line-height: 1.45; }
.input, .select, .textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-mute); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.47 0.088 173 / 0.16); }
.textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-inline-end: 40px; }
.field-error .input, .field-error .select, .field-error .textarea { border-color: var(--err); }
.err-msg { display: inline-flex; align-items: center; gap: 6px; color: var(--err); font-size: 13.5px; font-weight: 600; }
.err-msg svg { width: 15px; height: 15px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* selectable option pills (modality, setting) */
.opt-group { display: flex; flex-wrap: wrap; gap: var(--s3); }
.opt {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: all .14s; user-select: none;
}
.opt svg { width: 18px; height: 18px; color: var(--ink-mute); }
.opt:hover { border-color: var(--primary-line); background: var(--primary-tint); }
.opt.sel { border-color: var(--primary); background: var(--primary-tint); color: var(--primary-deep); box-shadow: 0 0 0 1px var(--primary) inset; }
.opt.sel svg { color: var(--primary); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }

/* PHI / reassurance callout */
.note {
  display: flex; gap: var(--s3); padding: var(--s4) var(--s5); border-radius: var(--r-md);
  background: var(--accent-tint); border: 1px solid oklch(0.85 0.05 65); line-height: 1.5;
}
.note svg { width: 20px; height: 20px; color: var(--accent-deep); flex: none; margin-top: 2px; }
.note strong { color: oklch(0.40 0.08 50); }
.note.info { background: var(--primary-tint); border-color: var(--primary-line); }
.note.info svg { color: var(--primary); }
.note.info strong { color: var(--primary-deep); }

/* file upload */
.upload {
  border: 1.5px dashed var(--border); border-radius: var(--r-md); padding: var(--s5);
  text-align: center; background: var(--surface-2); cursor: pointer; transition: all .15s; color: var(--ink-mute);
}
.upload:hover { border-color: var(--primary); background: var(--primary-tint); color: var(--primary-deep); }
.upload svg { width: 26px; height: 26px; margin: 0 auto var(--s2); display: block; }

/* image placeholder */
.ph {
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, oklch(0.92 0.01 235 / .6) 11px 12px);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  display: grid; place-items: center; color: var(--ink-mute);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; letter-spacing: 0.02em; text-align: center; padding: var(--s5);
}

/* divider line accent — the "link/bond" thread */
.thread { height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
