/* Cuadra landing: same tokens as the app (web/src/styles.scss). */
:root {
  --brand: #5b4cf5;
  --brand-600: #4a3be6;
  --brand-ink: #4335d6;
  --brand-soft: #eeebff;
  --brand-grad: linear-gradient(135deg, #7b6dff 0%, #5b4cf5 55%, #4733e0 100%);
  --accent: #ff6b57;
  --ok: #10a37f;
  --ink: #15142b;
  --muted: #5d5f78;
  --line: #e8e8f3;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(21 20 43 / 0.04), 0 8px 24px rgb(21 20 43 / 0.06);
  --shadow-lg: 0 2px 6px rgb(21 20 43 / 0.06), 0 24px 48px rgb(21 20 43 / 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased; line-height: 1.55; font-size: 17px;
}
img { display: block; }
a { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgb(91 76 245 / 0.45); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 10px 18px; border-radius: 12px; cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.btn:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.light { background: #fff; color: var(--brand-ink); border-color: #fff; }
.btn.light:hover { background: var(--brand-soft); color: var(--brand-ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 0.86); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.links { display: flex; gap: 24px; margin-left: 12px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  border: 1px solid var(--line); background: none; font: inherit; font-weight: 700; font-size: 13px; color: var(--muted);
  border-radius: 999px; padding: 6px 11px; cursor: pointer;
}
.lang:hover { color: var(--ink); border-color: var(--ink); }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% -10%, #e6e2ff 0%, transparent 60%), radial-gradient(700px 400px at -10% 110%, #ffe9e5 0%, transparent 60%), var(--bg); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 88px 0 96px; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 14px; }
h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; }
h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 20px 0 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* Product picture */
.mock { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; rotate: 1.5deg; border: 1px solid var(--line); }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfbfe; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px; }
.mock-day { background: var(--bg); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; min-height: 150px; }
.mock-day b { font-size: 12px; color: var(--muted); }
.mock-day.today { box-shadow: 0 0 0 2px var(--brand); background: #fff; }
.mock-day i { display: block; height: 26px; border-radius: 7px; background: #fff; border-left: 4px solid var(--c); box-shadow: 0 1px 2px rgb(21 20 43 / 0.06); }
.mock-day.today i { background: #f7f7fc; }
.mock-day i.done { background: #defaf0; }
.mock-day i.drag { rotate: -4deg; translate: 10px 4px; box-shadow: 0 10px 20px rgb(21 20 43 / 0.18); outline: 2px dashed var(--c); outline-offset: 2px; }
.mock-map { grid-column: 1 / -1; height: 120px; border-radius: 12px; background:
  linear-gradient(90deg, rgb(21 20 43 / 0.04) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(rgb(21 20 43 / 0.04) 1px, transparent 1px) 0 0 / 22px 22px, #eef3f0; }
.mock-map svg { width: 100%; height: 100%; }

/* Industries */
.strip { border-block: 1px solid var(--line); }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding: 22px 0; font-weight: 700; color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg); }
h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; text-align: center; }
.sub { text-align: center; color: var(--muted); font-size: 18px; margin: 14px auto 48px; max-width: 36em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); font-size: 22px; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps h3 { font-size: 19px; margin: 16px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 800; }

/* Pricing */
.billing { display: flex; width: max-content; margin: -16px auto 40px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.billing button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--muted); padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.save { font-size: 12px; background: #defaf0; color: #05795a; padding: 2px 8px; border-radius: 999px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); padding-top: 38px; }
.badge { position: absolute; top: -14px; left: 50%; translate: -50% 0; background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 800; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 22px; }
.for { color: var(--muted); margin: 6px 0 20px; font-size: 15px; min-height: 2.6em; }
.price { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.amt { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--muted); font-weight: 600; }
.billed { margin: 2px 0 20px; color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; font-size: 15px; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234335d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin: 28px 0 0; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-top: 12px; }
details:first-of-type { margin-top: 40px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--brand-ink); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 18px; color: var(--muted); }

/* Final */
.final { background: var(--brand-grad); color: #fff; }
.final-in { text-align: center; padding: 80px 0; }
.final h2 { color: #fff; }
.final p { margin: 12px 0 28px; opacity: 0.9; font-size: 18px; }

.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 28px 0; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot nav a:hover { color: var(--ink); }
.foot .brand { font-size: 17px; }
.foot p { margin: 0 0 0 auto; font-size: 14px; }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 40px; }
  .mock { rotate: 0deg; }
  .grid, .plans { grid-template-columns: 1fr 1fr; }
  .plan.featured { order: -1; grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid, .plans { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .nav-in { gap: 12px; }
  .mock-body { grid-template-columns: repeat(2, 1fr); }
  .mock-day:nth-child(n+3) { display: none; }
  .billing button { padding: 9px 14px; }
  .foot p { margin-left: 0; width: 100%; }
}

/* Plan comparison */
.compare { margin: 32px auto 0; max-width: 860px; background: #fff; border: 1px solid var(--line, #e6e6f0); border-radius: 18px; }
.compare summary { cursor: pointer; padding: 16px 20px; font-weight: 700; text-align: center; list-style: none; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: ' ▾'; color: var(--muted); }
.compare[open] summary::after { content: ' ▴'; }
.compare-scroll { overflow-x: auto; padding: 0 12px 12px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.compare th, .compare td { padding: 10px 8px; border-top: 1px solid var(--line, #eeeef5); text-align: center; }
.compare tbody th { text-align: left; font-weight: 500; }
.compare thead th { font-weight: 700; border-top: 0; }
.compare .yes { display: inline-block; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234335d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.compare .no { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
