/* Veritenza — site styles */
:root {
  --ivory: #F6F4EF;
  --paper: #FBFAF7;
  --ink: #14211F;
  --ink-2: #3D4A47;
  --muted: #5F6A67;
  --teal: #0B5D53;
  --teal-2: #0E7466;
  --night: #0D1D1A;
  --night-2: #13292500;
  --brass: #A8875A;
  --brass-text: #84663A;
  --line: rgba(20, 33, 31, 0.12);
  --line-dark: rgba(246, 244, 239, 0.14);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: var(--ivory); }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* Type */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(46px, 6.4vw, 86px); line-height: 0.98; }
h2 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; }
h3 { font-size: 28px; line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--teal); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 640px; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--ivory); }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--ivory); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: var(--line-dark); color: var(--ivory); }
.btn-outline-light:hover { border-color: var(--ivory); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn { padding: 11px 20px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 64px; align-items: center; }
.hero h1 { margin: 26px 0 28px; }
.hero .lede { margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* Product panel (hero visual) */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -30px rgba(13, 29, 26, 0.28), 0 12px 24px -18px rgba(13, 29, 26, 0.18);
  padding: 26px;
  position: relative;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.panel-title { font-family: var(--serif); font-size: 24px; }
.panel-tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--ivory); }
.kpi b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi.accent { background: var(--teal); border-color: var(--teal); color: var(--ivory); }
.kpi.accent span { color: rgba(246,244,239,.75); }
.task { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.task .name { color: var(--ink); }
.task .hrs { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(20,33,31,.07); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #3A9C8C); border-radius: 6px; }
.panel-foot { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* Logos / strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1.05; }
.stat span { font-size: 14px; color: var(--muted); }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 128px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head h2 { margin-top: 20px; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* Problem */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.problem { padding: 36px 32px 8px 0; }
.problem + .problem { padding-left: 32px; border-left: 1px solid var(--line); }
.problem .num { font-family: var(--serif); font-style: italic; color: var(--brass-text); font-size: 22px; }
.problem h3 { margin: 14px 0 14px; }
.problem p { color: var(--ink-2); }

/* Dark loop section */
.dark { background: var(--night); color: var(--ivory); position: relative; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(14,116,102,.35), transparent 70%);
  pointer-events: none;
}
.dark .eyebrow, .cta .eyebrow { color: var(--brass); }
.dark .section-head p { color: rgba(246,244,239,.72); }
.dark h2 em { color: #7CC8B9; }
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 30px 26px 32px; background: rgba(246,244,239,.03);
  transition: background .3s ease, border-color .3s ease;
}
.step:hover { background: rgba(246,244,239,.06); border-color: rgba(246,244,239,.28); }
.step .n { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--brass); font-style: italic; }
.step h3 { margin: 22px 0 12px; font-size: 30px; }
.step p { color: rgba(246,244,239,.72); font-size: 15.5px; }
.step.final { background: rgba(124,200,185,.10); border-color: rgba(124,200,185,.38); }
.loop-note { margin-top: 40px; display: flex; gap: 16px; align-items: center; color: rgba(246,244,239,.8); font-size: 17px; }
.loop-note .rule { flex: 0 0 48px; height: 1px; background: var(--brass); }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; display: flex; flex-direction: column; gap: 14px;
}
.feature .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,93,83,.08); color: var(--teal); }
.feature h3 { margin-top: 10px; }
.feature p { color: var(--ink-2); }
.feature ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.feature li { display: flex; gap: 10px; }
.feature li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--brass); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: transparent; }
.tier.highlight { background: var(--teal); color: var(--ivory); border-color: var(--teal); }
.tier .k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); }
.tier.highlight .k { color: #CFE9E3; }
.tier h3 { margin: 16px 0 12px; font-size: 32px; }
.tier p { color: var(--ink-2); font-size: 16px; }
.tier.highlight p { color: rgba(246,244,239,.82); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.trust-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust-item { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.trust-item .icon { color: var(--teal); }
.trust-item h3 { font-size: 24px; margin-bottom: 6px; }
.trust-item p { color: var(--ink-2); font-size: 16px; }

/* Quote */
.quote { padding: 120px 0; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 900px; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.18; font-style: italic; }
.quote cite { display: block; margin-top: 26px; font-style: normal; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Download */
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: var(--paper);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.dl:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 18px 30px -24px rgba(13,29,26,.45); }
.dl.recommended { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.dl .os { color: var(--teal); }
.dl h3 { font-size: 26px; }
.dl p { font-size: 14px; color: var(--muted); }
.dl .go { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 500; color: var(--teal); display: inline-flex; gap: 8px; }
.badge { align-self: flex-start; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); background: var(--teal); padding: 4px 10px; border-radius: 999px; visibility: hidden; }
.dl.recommended .badge { visibility: visible; }
.dl-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 36px; }
.dl-steps .n { font-family: var(--serif); font-style: italic; color: var(--brass-text); font-size: 22px; }
.dl-steps h3 { font-size: 24px; margin: 8px 0; }
.dl-steps p { color: var(--ink-2); font-size: 16px; }
.small-note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.small-note a { color: var(--teal); border-bottom: 1px solid rgba(11,93,83,.3); }

/* CTA */
.cta { background: var(--night); color: var(--ivory); padding: 112px 0; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1200px; height: 700px; transform: translate(-50%, -45%);
  background: radial-gradient(closest-side, rgba(168,135,90,.20), transparent 70%); pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; text-align: center; }
.cta h2 em { color: #7CC8B9; }
.cta h2 { max-width: 820px; margin: 22px auto 22px; }
.cta p { color: rgba(246,244,239,.75); max-width: 620px; margin: 0 auto 40px; font-size: 18px; }
.cta .eyebrow { justify-content: center; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Footer */
footer { background: var(--night); color: rgba(246,244,239,.7); border-top: 1px solid var(--line-dark); padding: 56px 0 44px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot .brand-name { color: var(--ivory); }
.foot h4 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.foot a { display: block; padding: 4px 0; }
.foot a:hover { color: var(--ivory); }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }

/* Page header (download page) */
.page-hero { padding: 96px 0 56px; }
.page-hero h1 { font-size: clamp(44px, 6vw, 80px); margin: 22px 0 22px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .trust-grid, .section-head { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .loop, .downloads { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px 20px; background: var(--ivory); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .btn { margin-top: 8px; width: auto; justify-content: center; }
  .menu-toggle { display: block; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 88px 0; }
  .problems, .features, .pricing, .dl-steps { grid-template-columns: 1fr; }
  .problem, .problem + .problem { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .loop, .downloads { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 12px; }
  .stat b { font-size: 32px; }
  .feature, .tier { padding: 28px; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .kpi { padding: 10px; }
  .kpi b { font-size: 22px; }
  .panel { padding: 18px; }
  .foot { grid-template-columns: 1fr; }
}

/* Grid children may shrink below their content width */
.hero-grid > *, .section-head > *, .trust-grid > *, .features > *, .pricing > *, .loop > *, .downloads > *, .problems > *, .foot > * { min-width: 0; }
.eyebrow { flex-wrap: wrap; }
