/* Zylareo marketing site. Plain CSS, no build step. */

:root {
  --forest: #0E4D3A;
  --emerald: #16B364;
  --mint: #D3F8DF;
  --ink: #0F231C;
  --amber: #F5A524;

  --bg: #FFFFFF;
  --bg-soft: #F5FAF7;
  --surface: #FFFFFF;
  --surface-2: #F3F8F5;
  --line: #E2ECE6;
  --text: #0F231C;
  --text-2: #47594F;      /* 7:1 on white */
  --text-3: #5A6B63;      /* 5.6:1 on white */
  --link: #0E4D3A;
  --accent: #0E7A4F;      /* emerald, darkened for text on light bg (5.3:1) */
  --mint-soft: #EBFBF0;
  --mint-strong: #BFF2CF;
  --shadow: 0 1px 2px rgba(15, 35, 28, .05), 0 12px 32px -12px rgba(15, 35, 28, .18);
  --radius: 14px;

  --font-head: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1A15;
    --bg-soft: #0F231C;
    --surface: #13291F;
    --surface-2: #183226;
    --line: #23402F;
    --text: #E9F4EE;
    --text-2: #B4C8BE;    /* 9:1 on bg */
    --text-3: #9DB3A8;    /* 7:1 on bg */
    --link: #6EE7A8;
    --accent: #3DD68C;
    --mint-soft: #173A2B;
    --mint-strong: #1D5A40;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo img { width: 34px; height: auto; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: -1px; line-height: 1; padding-bottom: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--emerald); color: var(--ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  border-radius: 999px; border: 0;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #1FC473; }
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.btn-block { display: flex; width: 100%; }

.link-arrow { color: var(--text); font-weight: 500; text-decoration: none; padding: 8px 4px; }
.link-arrow:hover { color: var(--accent); }
.link-arrow span { display: inline-block; transition: transform .15s ease; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 6vw, 62px); letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--accent); }
.lead { color: var(--text-2); font-size: 18px; margin-top: 20px; max-width: 30em; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.fineprint { color: var(--text-3); font-size: 14px; margin-top: 14px; }

/* ---------- Invoice mock (stays "paper" white in both themes) ---------- */
.invoice {
  margin: 0;
  background: #FFFFFF; color: #0F231C;
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #E2ECE6;
  font-size: 12.5px; line-height: 1.45;
  transform: rotate(0.6deg);
}
.inv-bar { height: 6px; background: linear-gradient(90deg, #0E4D3A, #16B364); }
.inv-body { padding: 24px 24px 26px; }
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inv-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.inv-brand img { width: 28px; height: auto; }
.inv-title { display: flex; align-items: center; gap: 8px; }
.inv-word { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; color: #0E4D3A; }
.pill { background: #D3F8DF; color: #0E4D3A; font-weight: 600; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; }

.inv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.inv-card { background: #EEFBF2; border-radius: 10px; padding: 10px 12px; font-size: 11.5px; white-space: nowrap; display: flex; flex-direction: column; min-width: 0; }
.inv-card.strong { background: #C6F4D5; }
.inv-card .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #3B5A4C; font-weight: 600; margin-bottom: 2px; }
.inv-card .muted { color: #4A6156; }
.inv-card .big { font-family: var(--font-head); font-size: 18px; letter-spacing: -0.3px; color: #0E4D3A; }

.inv-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.inv-row { display: grid; grid-template-columns: 1fr 40px 84px; gap: 8px; padding: 7px 12px; border-radius: 8px; }
.inv-row span:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.inv-row.head { color: #4A6156; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding-bottom: 4px; }
.inv-row:not(.head):nth-child(even) { background: #F3FCF6; }

.inv-totals { margin: 14px 0 0 auto; width: 58%; display: flex; flex-direction: column; gap: 3px; }
.inv-totals > div { display: flex; justify-content: space-between; padding: 0 12px; font-variant-numeric: tabular-nums; }
.inv-totals > div:not(.inv-total) { color: #3B5A4C; }
.inv-rule { height: 2px; background: #16B364; border-radius: 2px; margin: 6px 12px; padding: 0 !important; }
.inv-total { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: #0E4D3A; }

/* ---------- Sections ---------- */
.tour { padding: 96px 0 40px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2, .faq h2 { font-size: clamp(30px, 4vw, 40px); }

.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding-bottom: 88px; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: 28px; }
.feature-copy p { color: var(--text-2); margin-top: 12px; font-size: 17px; max-width: 28em; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--mint-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 6.5px; top: 7.5px; width: 4px; height: 8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Generic UI mock ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-size: 13.5px; color: var(--text);
}
.mock-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-title { font-weight: 600; font-size: 13px; color: var(--text-2); }
.mock-pad { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--text-3); }

.field-row { display: flex; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.grow { flex: 1; }
.input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface-2); white-space: nowrap; }
.input.select { padding-right: 26px; position: relative; }
.input.select::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border: solid var(--text-3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

.ed-items { display: flex; flex-direction: column; gap: 6px; }
.ed-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); }
.ed-item.add { background: transparent; border: 1px dashed var(--line); color: var(--text-3); }
.tag { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--mint-soft); padding: 2px 8px; border-radius: 999px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.chip.on { background: var(--mint-soft); border-color: transparent; color: var(--text); }
.chip.alt { border-style: dashed; }

.ed-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.swatches { display: inline-flex; gap: 6px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatches .s1 { background: #0E4D3A; box-shadow: 0 0 0 2px var(--emerald); }
.swatches .s2 { background: #2F5DA8; }
.swatches .s3 { background: #B4532A; }
.ed-total { color: var(--text-2); }
.ed-total strong { color: var(--text); font-family: var(--font-head); font-size: 18px; margin-left: 6px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--mint-soft); border-radius: 10px; padding: 12px 14px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 22px; letter-spacing: -0.3px; margin-top: 2px; }
.stat.warn { background: color-mix(in srgb, var(--amber) 16%, var(--surface)); }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.badge { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; min-width: 64px; text-align: center; }
.badge.paid { background: var(--mint); color: #0E4D3A; }
.badge.sent { background: #DCE8FB; color: #1E3F7A; }
.badge.overdue { background: var(--amber); color: var(--ink); }
.badge.draft { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }

.mail-line { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.mail-line .label { width: 58px; flex-shrink: 0; }
.mail-line span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-body { display: flex; flex-direction: column; gap: 8px; padding: 2px 0; }
.ln { height: 8px; border-radius: 4px; background: var(--surface-2); }
.w90 { width: 90%; } .w70 { width: 70%; } .w40 { width: 40%; }
.mail-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.attach { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 12.5px; min-width: 0; overflow: hidden; white-space: nowrap; }
.pdf { background: #C9372C; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.send { background: var(--emerald); color: var(--ink); font-weight: 600; padding: 6px 16px; border-radius: 999px; font-size: 13px; }
.history { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.hist { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hist .muted { font-size: 12px; white-space: nowrap; }
.hist .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.hist .dot.ok { background: var(--emerald); }

/* ---------- Pricing ---------- */
.pricing { padding: 104px 0; }
.price-card {
  max-width: 440px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 36px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--forest), var(--emerald)); }
.plan { font-size: 22px; letter-spacing: -0.5px; }
.price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.amount { font-family: var(--font-head); font-weight: 700; font-size: 52px; letter-spacing: -0.04em; line-height: 1; }
.per { color: var(--text-2); font-size: 17px; }
.incl { margin-top: 24px; font-weight: 600; font-size: 14px; color: var(--accent); }
.price-card .ticks { margin: 14px 0 30px; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0 104px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.faq h2 { margin-bottom: 36px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 4px; font-weight: 600; font-size: 17px; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--text-2); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { color: var(--text-2); padding: 0 4px 22px; max-width: 38em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--text-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Legal / simple pages ---------- */
.doc { padding: 72px 0 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 44px); }
.doc .updated { color: var(--text-3); margin-top: 10px; font-size: 14px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p, .doc ul + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }

.notfound { min-height: calc(100vh - 160px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font-family: var(--font-head); font-weight: 700; font-size: 96px; line-height: 1; color: var(--accent); letter-spacing: -0.04em; }
.notfound h1 { font-size: 30px; margin-top: 12px; }
.notfound p { color: var(--text-2); margin: 12px 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .invoice { transform: none; max-width: 520px; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding-bottom: 72px; }
  .feature.flip .feature-copy { order: 0; }
  .tour { padding-top: 72px; }
  .pricing, .faq { padding: 72px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .nav-link { padding: 8px; font-size: 14px; }
  .nav .btn { margin-left: 4px; }
  .wordmark { font-size: 22px; }
  .logo img { width: 30px; }
  .lead { font-size: 17px; }
  .section-head { margin-bottom: 40px; }
  .feature h3 { font-size: 24px; }
  .inv-body { padding: 18px 14px 20px; }
  .inv-cards { grid-template-columns: 1fr 1fr; }
  .inv-card.strong { grid-column: 1 / -1; }
  .inv-row { grid-template-columns: 1fr 28px 74px; padding: 7px 8px; }
  .inv-totals { width: 100%; }
  .inv-totals > div { padding: 0 8px; }
  .inv-rule { margin: 6px 8px; }
  .mock-pad { padding: 14px; }
  .list .num { display: none; }
  .price-card { padding: 28px 22px; }
  .amount { font-size: 46px; }
}

@media (max-width: 380px) {
  .btn-sm { padding: 8px 12px; font-size: 13px; }
  .nav-link { padding: 6px; }
  .wordmark { font-size: 20px; }
  .logo { gap: 7px; }
  .logo img { width: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
