/* conocal.com: the app's palette (client/app.contract), light only like the app. */
:root {
  --bg: #f5f3ee;
  --card: #ffffff;
  --ink: #1d2a24;
  --muted: #6c7a72;
  --line: #e4e0d6;
  --green: #2f5d4a;
  --green-ink: #ffffff;
  --soft: #ece8df;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 243, 238, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a.link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.2; }
.btn.primary { background: var(--green); color: var(--green-ink); }
.btn.secondary { background: var(--soft); color: var(--ink); }
.btn.small { padding: 9px 14px; font-size: 15px; border-radius: 10px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 14px; }
h1 { text-wrap: balance; font-size: clamp(38px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 800; }
.lede { font-size: 20px; color: #3d4a43; margin: 0 0 28px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

.shot { background: var(--card); border-radius: 24px; padding: 14px; box-shadow: 0 1px 0 rgba(29, 42, 36, 0.04), 0 18px 40px -18px rgba(29, 42, 36, 0.28); }
.shot img { border-radius: 14px; width: 100%; }
.hero .shot { max-width: 440px; justify-self: end; }

/* Sections */
section { padding: 48px 0; }
h2 { text-wrap: balance; font-size: clamp(28px, 4vw, 38px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
.section-lede { color: #3d4a43; font-size: 18px; max-width: 40em; margin: 0 0 8px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .text { order: 2; }
.feature .shot { max-width: 420px; justify-self: center; width: 100%; }
.shot.tall { max-height: 620px; overflow: hidden; position: relative; }
.shot.tall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255, 255, 255, 0), #ffffff); pointer-events: none; }
.hero .shot.tall { max-height: 600px; }
.feature ul { padding: 0; margin: 18px 0 0; list-style: none; }
.feature li { position: relative; padding-left: 26px; margin: 10px 0; color: #3d4a43; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.card { background: var(--card); border-radius: 18px; padding: 22px; }
.card p { margin: 0; color: #3d4a43; font-size: 16px; }
.num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-bottom: 12px; }

.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }

.invite { background: var(--green); color: var(--green-ink); border-radius: 24px; padding: 44px 36px; text-align: center; }
.invite h2 { color: var(--green-ink); }
.invite p { color: #dfe9e3; font-size: 18px; margin: 0 auto 24px; max-width: 32em; }
.invite .btn.primary { background: #ffffff; color: var(--green); }
.invite .btn.secondary { background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.invite .ctas { justify-content: center; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Legal pages */
.doc { max-width: 720px; padding: 40px 20px 24px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { text-wrap: balance; font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #2d3a33; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); font-size: 15px; margin-top: -8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; background: var(--card); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 28px; }
  .hero .shot { justify-self: center; }
  .feature.flip .text { order: 0; }
  .steps, .faq { grid-template-columns: 1fr; }
  .nav a.link { display: none; }
}

@media (max-width: 600px) {
  .doc thead { display: none; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .doc tr:last-child { border-bottom: 0; }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 600; color: var(--ink); padding-bottom: 6px; }
  .doc td:nth-child(2)::before { content: "From: "; color: var(--muted); }
  .doc td:nth-child(3)::before { content: "Why: "; color: var(--muted); }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .invite { padding: 36px 20px; }
  .doc { padding: 28px 16px 16px; }
  .doc table { font-size: 14px; }
}
