/* MoradiAi — one stylesheet. Tokens follow the AgendOS v2 brand (violet #7C3AED → blue #3B82F6). */
:root {
  --surface-0: oklch(0.985 0.006 293);
  --surface-1: #ffffff;
  --surface-2: oklch(0.975 0.008 293);
  --surface-3: oklch(0.955 0.015 293);
  --ink-1: #0a0a0a;
  --ink-2: #4b5563;
  --ink-3: oklch(0.55 0.02 257);
  --border: #e5e7eb;
  --border-strong: oklch(0.85 0.008 265);
  --accent: #7c3aed;
  --accent-hover: oklch(0.49 0.24 293);
  --accent-soft: #f3e8ff;
  --accent-ink: oklch(0.40 0.16 293);
  --on-accent: #ffffff;
  --ring: oklch(0.541 0.247 293 / 0.45);
  --gradient-brand: linear-gradient(135deg, #7c3aed, #3b82f6);
  --gradient-soft: linear-gradient(135deg, oklch(0.96 0.03 298), oklch(0.96 0.03 262));
  --success: oklch(0.62 0.16 155);
  --danger: oklch(0.58 0.22 22);
  --whatsapp: #25d366;
  --shadow-soft: 0 1px 2px oklch(0.3 0.05 293 / 0.06), 0 8px 24px -12px oklch(0.3 0.08 293 / 0.18);
  --shadow-panel: 0 2px 6px oklch(0.3 0.05 293 / 0.06), 0 24px 48px -20px oklch(0.3 0.1 293 / 0.28);
  --font-display: 'Frank Ruhl Libre', 'Fraunces', Georgia, serif;
  --font-latin: 'Fraunces', Georgia, serif;
  --font-body: 'Heebo', system-ui, sans-serif;
  --r: 16px;
  --r-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-0: oklch(0.17 0.012 293);
    --surface-1: oklch(0.21 0.014 293);
    --surface-2: oklch(0.24 0.016 293);
    --surface-3: oklch(0.28 0.02 293);
    --ink-1: oklch(0.97 0.005 293);
    --ink-2: oklch(0.80 0.012 280);
    --ink-3: oklch(0.66 0.015 280);
    --border: oklch(0.32 0.016 293);
    --border-strong: oklch(0.42 0.02 293);
    --accent: oklch(0.70 0.21 293);
    --accent-hover: oklch(0.75 0.19 293);
    --accent-soft: oklch(0.30 0.08 293);
    --accent-ink: oklch(0.85 0.10 293);
    --on-accent: oklch(0.16 0.02 293);
    --gradient-soft: linear-gradient(135deg, oklch(0.24 0.04 298), oklch(0.24 0.04 262));
    --shadow-soft: 0 1px 2px #0006, 0 8px 24px -12px #000a;
    --shadow-panel: 0 2px 6px #0006, 0 24px 48px -20px #000c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--surface-0); color: var(--ink-1);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.skip { position: fixed; top: -60px; right: 16px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center-text { text-align: center; }
.center { justify-content: center; }

h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
h1 em, h2 em {
  font-style: normal; background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 38em; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.eyebrow-light { color: #ffffffcc; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .9rem; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .82rem; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 8px 22px -10px #7c3aedaa; }
.btn-primary:hover { box-shadow: 0 12px 28px -10px #7c3aedcc; }
.btn-ghost { background: var(--surface-1); border-color: var(--border-strong); color: var(--ink-1); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { background: #fff; color: #3b1a8a; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--surface-0) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; direction: ltr; flex: none; }
.logo-word { font-family: var(--font-latin); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-1); }
.logo-word b { font-weight: 600; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--ink-1); background: var(--surface-2); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); background: radial-gradient(60% 60% at 15% 20%, oklch(0.93 0.05 293 / .6), transparent 70%), radial-gradient(50% 50% at 90% 80%, oklch(0.93 0.05 262 / .5), transparent 70%); }
@media (prefers-color-scheme: dark) { .hero { background: radial-gradient(60% 60% at 15% 20%, oklch(0.30 0.10 293 / .45), transparent 70%), radial-gradient(50% 50% at 90% 80%, oklch(0.30 0.10 262 / .35), transparent 70%); } }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points svg { width: 18px; height: 18px; color: var(--success); }
.hero-course { text-align: center; }
.hero-course .lead { margin-inline: auto; }

.hero-art { position: relative; padding-bottom: 56px; }
.chat { background: var(--surface-1); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-panel); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat-head b { display: block; font-size: .98rem; }
.chat-head small { color: var(--success); font-size: .8rem; }
.chat-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-brand); color: #fff; font-weight: 700; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 64px; background: var(--surface-2); min-height: 260px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; }
.msg.in { align-self: flex-start; background: var(--surface-1); border: 1px solid var(--border); border-start-start-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-start-end-radius: 4px; }
.task-card {
  position: absolute; inset-inline-start: -28px; bottom: 0; width: 260px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-panel); display: grid; gap: 4px;
}
.task-card small { color: var(--ink-3); font-size: .8rem; }
.task-card b { font-size: .95rem; line-height: 1.4; }
.task-card .tag { justify-self: start; margin-top: 4px; font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--surface-2); border-block: 1px solid var(--border); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head h2 { margin-bottom: 12px; }
.sec-sub { color: var(--ink-2); font-size: 1.08rem; margin-top: 14px; margin-bottom: 26px; max-width: 36em; }
.sec-head .sec-sub { margin-bottom: 0; }

.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r); padding: 26px;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 10px;
}
.card p { color: var(--ink-2); font-size: .97rem; }
.card-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.card-ic svg { width: 24px; height: 24px; }
.guide-card { text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.guide-card .pill { align-self: flex-start; }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.more svg { width: 16px; height: 16px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; display: grid; gap: 8px; align-content: start; }
.step-n { font-family: var(--font-latin); font-size: 2rem; font-weight: 600; line-height: 1; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.step p { color: var(--ink-2); font-size: .97rem; }

.platform {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: 24px; background: var(--gradient-brand); color: #fff;
  box-shadow: 0 30px 60px -30px #7c3aed99;
}
.platform > div { max-width: 640px; }
.platform h2 { margin-bottom: 12px; }
.platform p { color: #ffffffe0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split h2 { margin-bottom: 4px; }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }

.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 960px; }
.about h2 { margin-bottom: 16px; }
.about p + p { margin-top: 12px; }
.about p:not(.eyebrow) { color: var(--ink-2); }
.about-mark { width: clamp(140px, 18vw, 200px); aspect-ratio: 1; border-radius: 32px; background: var(--gradient-brand); display: grid; place-items: center; box-shadow: var(--shadow-panel); transform: rotate(-4deg); }
.about-mark span { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.6rem); color: #fff; transform: rotate(4deg); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* Form */
.form { background: var(--surface-1); border: 1px solid var(--border); border-radius: 20px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-panel); display: grid; gap: 16px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .93rem; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 1rem;
}
.form input[dir="ltr"] { text-align: right; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: .88rem; }
.form .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form .hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; opacity: 0; }
.form { position: relative; }
.form-status { min-height: 1.4em; font-size: .93rem; }
.form-status.ok { color: var(--success); font-weight: 600; }
.form-status.err { color: var(--danger); font-weight: 600; }

/* Articles */
.article-main { padding: 48px 0 96px; }
.article { width: min(760px, 100% - 32px); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: .93rem; margin-bottom: 28px; }
.back svg { width: 16px; height: 16px; transform: scaleX(-1); }
.article h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 14px 0 16px; }
.article-lead { font-size: 1.2rem; color: var(--ink-2); }
.meta { color: var(--ink-3); font-size: .9rem; margin-top: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.prose { margin-top: 32px; font-size: 1.08rem; line-height: 1.85; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 1.6rem; margin-top: 44px; }
.prose ul, .prose ol { padding-inline-start: 24px; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose b { color: var(--ink-1); }
.prompt { background: var(--accent-soft); border-inline-start: 4px solid var(--accent); border-radius: 12px; padding: 16px 20px; color: var(--ink-1); font-size: 1rem; }
.article-cta { margin-top: 56px; padding: 28px; border-radius: 20px; background: var(--gradient-soft); border: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.article-cta h2 { font-size: 1.5rem; margin-bottom: 6px; }
.article-cta p { color: var(--ink-2); }
.related { margin-top: 56px; }
.related h2 { font-size: 1.5rem; margin-bottom: 20px; }
.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound .lead { margin: 12px auto 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-1); padding: 48px 0 32px; }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.f-brand p { color: var(--ink-2); margin-top: 10px; font-size: .95rem; }
.f-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.f-nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.f-nav a:hover { color: var(--accent); }
.f-copy { grid-column: 1 / -1; color: var(--ink-3); font-size: .85rem; padding-top: 20px; border-top: 1px solid var(--border); }
.f-copy a { color: var(--accent); }
.wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--whatsapp); color: #fff; box-shadow: 0 10px 28px -8px #25d366aa; }
.wa-float svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 1080px) {
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 8px; font-size: .92rem; }
}
@media (max-width: 900px) {
  .hero-in, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; width: 100%; margin-inline: auto; }
  .task-card { inset-inline-start: auto; inset-inline-end: -8px; }
  .cards-3, .steps-3 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .header-in { justify-content: space-between; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards-4, .cards-3, .cards-2, .steps, .steps-3, .form-two { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .task-card { position: relative; inset: auto; width: auto; margin: -20px 16px 0; }
  .hero-art { padding-bottom: 0; }
  .chat-body { padding-bottom: 18px; }
  .footer-in { grid-template-columns: 1fr; }
  .platform .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
