/* ════════════════════════════════════════════════════════════════
   ADDAVENTO — SHARED STYLESHEET
   Used by index.html, privacy.html, downloads.html
   and every translated copy (es-US, fr-FR, it-IT, pt-BR)

   Sections:
   1. Variables & base reset
   2. Nav (desktop + mobile hamburger panel)
   3. Language switcher (desktop dropdown + mobile chip row)
   4. Index page sections (hero, about, products, features, principles, contact)
   5. Privacy page sections (policy hero, TOC, article content)
   6. Downloads page sections (repo hero, file cards, buttons)
   7. Footer
   ════════════════════════════════════════════════════════════════ */

:root {
  /* palette — matches addavento.com spirit */
  --paper:      #F7F6F1;
  --paper-0:    #FFFFFF;
  --paper-1:    #D2E8D7;
  --paper-2:    #D2EBCB;  /* #EFEDE5; */
  --paper-3:    #8AC48A;
  --ink:        #14181A;
  --ink-2:      #2A3033;
  --ink-3:      #6B7378;
  --rule:       rgba(20,24,26,0.1);
  --sage:       #B7D1AF;
  --sage-2:     #8FB58A;
  --sage-deep:  #2F4A33;

  /* type */
  --f-sans:   "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:   "Geist Mono", ui-monospace, "JetBrains Mono", monospace;
  --f-serif:  "Instrument Serif", "Times New Roman", serif;

  /* layout */
  --pad-x: clamp(20px, 5vw, 80px);
  --maxw:  1320px;
  --content-maxw: 780px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%;}

body {
  background: linear-gradient(to bottom, var(--paper-0) 0%, var(--paper-1) 50%);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

a { color: inherit; text-decoration: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

.mono {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1),
              transform .9s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px var(--pad-x);
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  padding-block: 14px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  height: 66px;
}
.nav__logo svg { height: 88px; width: auto; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: background .25s, border-color .25s, gap .25s;
}
.nav__cta:hover { gap: 12px; background: var(--sage-deep); border-color: var(--sage-deep); }
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle svg .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] svg .icon-burger { display: none; }
.nav__toggle[aria-expanded="true"] svg .icon-close { display: block; }
.nav__toggle:hover { border-color: var(--ink); }

.nav__mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
}
.nav__mobile-panel__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 35%, transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.nav__mobile-panel__sheet {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 24px 48px -24px rgba(20,24,26,.25);
  padding: 0 var(--pad-x) 24px;
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity .3s cubic-bezier(.22,.61,.36,1), transform .3s cubic-bezier(.22,.61,.36,1);
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.nav__mobile-panel.is-open { display: block; }
.nav__mobile-panel.is-open .nav__mobile-panel__backdrop { opacity: 1; }
.nav__mobile-panel.is-open .nav__mobile-panel__sheet { opacity: 1; transform: translateY(0); }
.nav__mobile-panel__spacer { flex-shrink: 0; height: calc(22px + 66px + 18px); }
.nav__mobile-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  flex-shrink: 0;
}
.nav__mobile-links a {
  font-size: 17px;
  color: var(--ink-2);
  padding: 16px 4px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s, padding-left .2s;
}
.nav__mobile-links a:hover,
.nav__mobile-links a:focus-visible { color: var(--ink); padding-left: 10px; }
.nav__mobile-links a.current { color: var(--sage-deep); font-weight: 600; }
.nav__mobile-links a span.mono { font-size: 11px; }
.nav__mobile-cta {
  margin-top: 20px;
  flex-shrink: 0;
}
.nav__mobile-cta .nav__cta { width: 100%; justify-content: center; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ─── Fixed Nav for Desktop (global) ─── */
@media (min-width: 761px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  html {
	scroll-padding-top: 130px;
  }
  body {
    padding-top: 110px;
	scroll-padding-top: 130px;
  }
}

	
/* ─── LANGUAGE SWITCHER ─── */
.lang-switch {
  position: relative;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}

.flags {
  width: 24px;
  height: 16px;
  /* fill: #000; */ 
}

.lang-switch__btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-switch__btn .flag { width: 18px; height: 13px; border-radius: 2px; overflow: hidden; flex-shrink: 0; display: block; }
.lang-switch__btn svg.chev { width: 12px; height: 12px; transition: transform .25s; }
.lang-switch.is-open .lang-switch__btn svg.chev { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 184px;
  background: var(--paper-0);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(20,24,26,.25);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
.lang-switch.is-open .lang-switch__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-switch__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.lang-switch__menu a:hover { background: var(--paper-2); color: var(--ink); }
.lang-switch__menu a.current { color: var(--sage-deep); font-weight: 600; }
.lang-switch__menu a .flag { width: 20px; height: 14px; border-radius: 2px; overflow: hidden; flex-shrink: 0; display: block; }
.lang-switch__menu a .flag svg { display: block; width: 100%; height: 100%; }
.lang-switch__btn .flag svg { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .lang-switch { display: none; } }

.nav__mobile-langs {
  display: none;
}
@media (max-width: 760px) {
  .nav__mobile-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
  }
}
.nav__mobile-langs__label {
  width: 100%;
  margin-bottom: 4px;
}
.nav__mobile-langs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
}
.nav__mobile-langs a.current { border-color: var(--sage-deep); color: var(--sage-deep); font-weight: 600; }
.nav__mobile-langs a .flag { width: 18px; height: 13px; border-radius: 2px; overflow: hidden; flex-shrink: 0; display: block; }
.nav__mobile-langs a .flag svg { display: block; width: 100%; height: 100%; }

/* ─────────────────────────────────────────────
   INDEX PAGE SECTIONS
   ───────────────────────────────────────────── */
/* ─── ACTIONABLE ─── */
.actionable {
  position: relative;
  padding: clamp(30px, 6vh, 5px) var(--pad-x) clamp(24px, 10vh, 60px);
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: clamp(64px, 12vh, 180px) var(--pad-x) clamp(48px, 10vh, 120px);
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--sage-2);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage) 50%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage) 50%, transparent); }
  50%       { box-shadow: 0 0 0 9px color-mix(in oklab, var(--sage) 0%, transparent); }
}
.hero__title {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(48px, 9.4vw, 148px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 36px;
  max-width: 14ch;
}
.hero__title em { font-size: 1.05em; letter-spacing: -0.02em; color: var(--sage-deep); }
.hero__lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  max-width: 52ch;
  color: var(--ink-2);
  margin: 0 0 44px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 100px;
}
.hero__wind {
  position: absolute;
  inset: auto 0 38% 0;
  width: 110%;
  height: clamp(220px, 30vw, 360px);
  pointer-events: none;
  color: var(--sage-2);
  opacity: .55;
  z-index: -1;
  transform: translate(-5%, 0);
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.meta-cell { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.meta-cell .mono { color: var(--ink-3); }
@media (max-width: 720px) { .hero__meta { grid-template-columns: 1fr; gap: 12px; } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: gap .25s, background .25s, color .25s, border-color .25s;
  cursor: pointer;
}
.btn:hover { gap: 14px; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--sage-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn--text { padding: 14px 0; background: transparent; color: var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn--text:hover { color: var(--sage-deep); border-bottom-color: var(--sage-deep); }

/* ─── SECTION HEAD ─── */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto clamp(40px, 7vw, 80px);
}
.section-title {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 22ch;
}
.section-title em { color: var(--sage-deep); }

/* ─── ABOUT ─── */
.about {
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 120px);
   border-top: 1px solid var(--rule);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 100px);
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.about__lead {
  font-family: var(--f-serif);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.about__lead strong {
  font-family: var(--f-sans);
  font-weight: 500;
  font-style: normal;
  color: var(--sage-deep);
  font-size: .92em;
  letter-spacing: -0.02em;
}
.about__body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  align-self: end;
  max-width: 46ch;
}
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

/* ─── PRODUCTS ─── */
.products {
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 120px);
  border-top: 1px solid var(--rule);
}
.product {
  max-width: var(--maxw);
  margin: 0 auto clamp(40px, 6vw, 80px);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px);
  background: var(--paper-2);
  border-radius: 28px;
  border: 1px solid var(--rule);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(20,24,26,.18);
}
.product__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--sage);
  color: var(--sage-deep);
}
.pill--ghost { background: transparent; border: 1px solid var(--rule); color: var(--ink-3); }
.pill--plus { background: var(--sage-deep); color: var(--paper); }

.product__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 920px) { .product__body { grid-template-columns: 1fr; } }

.product__title {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 14px;
}
.product__title--muted { color: var(--ink-3); }
.product__tag {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2vw, 28px);
  font-style: italic;
  color: var(--sage-deep);
  margin: 0 0 22px;
}
.product__desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 46ch;
}
.product__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
}

/* phone mock */
.product__visual {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 480px;
}
.phone {
  position: relative;
  width: 280px;
  height: 560px;
  background: #0e1410;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(20,24,26,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: rotate(-3deg);
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.product:hover .phone { transform: rotate(0deg) translateY(-6px); }
.phone__notch {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 22px;
  border-radius: 999px;
  background: #000;
}
.phone__screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dr {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 44px 22px 22px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.dr__top { display: flex; justify-content: space-between; font-size: 10px; margin-bottom: 28px; }
.dr__card { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
.dr__word { font-family: var(--f-serif); font-size: 36px; letter-spacing: -0.02em; color: var(--ink); }
.dr__def { font-size: 13px; color: var(--ink-3); font-style: italic; font-family: var(--f-serif); }
.dr__progress { margin: 24px 0 18px; }
.dr__bar { height: 3px; background: color-mix(in oklab, var(--ink) 8%, transparent); border-radius: 999px; position: relative; }
.dr__bar span { position: absolute; inset: 0 auto 0 0; width: 38%; background: var(--sage-deep); border-radius: 999px; animation: dr-grow 5s ease-in-out infinite alternate; }
@keyframes dr-grow { from { width: 32%; } to { width: 64%; } }
.dr__controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dr__btn { background: transparent; border: 0; color: var(--ink-2); width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; }
.dr__btn svg { width: 18px; height: 18px; }
.dr__btn--play { width: 48px; height: 48px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.dr__btn--play svg { width: 22px; height: 22px; }

/* ─── FEATURE TABLES ─── */
.features-section {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--rule);
}
.features-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
@media (max-width: 800px) { .features-grid { grid-template-columns: 1fr; } }

.feature-group h3 {
  font-size: 13px;
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.4;
}
.feature-list li::before {
  content: "·";
  color: var(--sage-2);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: -2px;
}
.feature-list li .tag-plus {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--sage-deep);
  color: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* compare table */
.compare-wrap { overflow-x: auto; margin-top: clamp(40px, 5vw, 60px); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid var(--rule);
}
.compare-table th:nth-child(2),
.compare-table th:nth-child(3) { text-align: center; }
.compare-table td {
  padding: 10px 16px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) { text-align: center; font-size: 16px; }
.compare-table tr:hover td { background: var(--paper-3); }
.check { color: var(--sage-deep); font-weight: 600; }
.cross { color: var(--ink-3); }
.compare-table .section-row td {
  background: var(--paper-3);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 16px;
}

/* "Coming next" product */
.product--soon { background: transparent; }
.product__body--soon { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
@media (max-width: 700px) { .product__body--soon { grid-template-columns: 1fr; } }
.soon-mark { width: 140px; height: 140px; color: var(--sage-2); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.soon-mark svg { width: 100%; height: 100%; }

/* ─── PRINCIPLES ─── */
.principles {
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 120px);
  border-top: 1px solid var(--rule);
  overflow-x: hidden;
}
.principle-list { list-style: none; margin: 0; padding: 0 var(--pad-x); max-width: var(--maxw); margin-inline: auto; }
.principle {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  position: relative;
  transition: padding .3s;
}
.principle:last-child { border-bottom: 1px solid var(--rule); }
.principle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sage);
  opacity: 0;
  transition: opacity .35s;
  z-index: -1;
}
.principle:hover::before { opacity: .25; }
.principle:hover { padding-left: 16px; }
.principle__num { font-size: 13px; color: var(--ink-3); font-family: var(--f-mono); }
.principle__title { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -0.025em; font-weight: 500; margin: 0 0 8px; }
.principle p { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 60ch; }

/* ─── CONTACT ─── */
.contact {
  padding: clamp(100px, 16vw, 200px) var(--pad-x);
  border-top: 1px solid var(--rule);
  background: #1C3321; /* var(--ink); */
  color: var(--paper);
}
.contact__inner { max-width: var(--maxw); margin: 0 auto; }
.contact .mono { color: var(--sage); }
.contact__title {
  font-size: clamp(40px, 6.8vw, 100px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 18px 0 48px;
  max-width: 18ch;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  color: var(--paper);
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 30%, transparent);
  padding-bottom: 14px;
  transition: gap .3s, color .3s, border-color .3s;
}
.contact__mail:hover { gap: 24px; color: var(--sage); border-bottom-color: var(--sage); }
.contact__note { margin-top: 32px; color: color-mix(in oklab, var(--paper) 60%, transparent); font-size: 14px; }


/* ─────────────────────────────────────────────
   PRIVACY PAGE SECTIONS
   ───────────────────────────────────────────── */
.policy-hero {
  padding: clamp(60px, 10vh, 120px) var(--pad-x) clamp(40px, 6vh, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.policy-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.policy-hero__title {
  font-weight: 500;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.policy-hero__meta {
  font-size: 14px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  letter-spacing: 0.03em;
}

/* ─── LAYOUT: sidebar TOC + content ─── */
.policy-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad-x);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 860px) { .policy-layout { grid-template-columns: 1fr; } }

/* ─── TOC sidebar ─── */
.policy-toc {
  position: sticky;
  top: 110px;
}
.policy-toc__heading {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.policy-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.policy-toc ol li a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  display: block;
  padding: 5px 10px 5px 0;
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s, padding-left .2s;
  line-height: 1.3;
}
.policy-toc ol li a:hover {
  color: var(--sage-deep);
  border-left-color: var(--sage-2);
  padding-left: 8px;
}
@media (max-width: 860px) { .policy-toc { position: static; } }

/* ─── POLICY CONTENT ─── */
.policy-content { max-width: var(--content-maxw); }

.policy-content .callout {
  background: var(--paper-2);
  border-left: 3px solid var(--sage-deep);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 40px;
  line-height: 1.5;
}

.policy-content h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 52px 0 14px;
  padding-top: 52px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  scroll-margin-top: 120px;
}
.policy-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.policy-content h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
  color: var(--ink);
}

.policy-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 16px;
}

.policy-content ul, .policy-content ol {
  padding-left: 20px;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-content li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* tables */
.policy-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0 28px;
  overflow-x: auto;
  display: block;
}
.policy-content table thead th {
  text-align: left;
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid var(--rule);
  white-space: nowrap;
}
.policy-content table tbody td {
  padding: 10px 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.policy-content table tbody tr:hover td { background: var(--paper-2); }

/* ─────────────────────────────────────────────
   DOWNLOADS PAGE SECTIONS
   ───────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: clamp(60px, 10vh, 120px) var(--pad-x) clamp(40px, 6vh, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.page-hero__title {
  font-weight: 500;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  max-width: 16ch;
}
.page-hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  max-width: 56ch;
  color: var(--ink-2);
  margin: 0;
}

/* ─── REPO LAYOUT ─── */
.repo {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--pad-x) clamp(40px, 6vw, 80px);
}

.repo-group {
  margin-bottom: clamp(48px, 7vw, 88px);
}
.repo-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.repo-group__title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.repo-group__count {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* file cards grid */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.file-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--paper-0);
  border: 1px solid var(--rule);
  border-radius: 20px;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s, border-color .4s;
}
.file-card--available:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -28px rgba(20,24,26,.18);
  border-color: var(--rule);
}
.file-card--soon {
  background: transparent;
  border-style: dashed;
}

.file-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.file-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--sage-deep);
}
.file-card__icon svg { width: 20px; height: 20px; }
.file-card--soon .file-card__icon { background: transparent; border: 1px dashed var(--rule); color: var(--ink-3); }

.file-card__status {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.file-card__status--ready { background: var(--sage); color: var(--sage-deep); }
.file-card__status--soon { background: transparent; border: 1px solid var(--rule); color: var(--ink-3); }

.file-card__body { flex: 1; }
.file-card__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}
.file-card--soon .file-card__title { color: var(--ink-3); }
.file-card__meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}

.file-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: gap .25s, background .25s, border-color .25s;
  cursor: pointer;
}
.file-card__action:hover { gap: 12px; background: var(--sage-deep); border-color: var(--sage-deep); }
.file-card__action--disabled {
  background: transparent;
  color: var(--ink-3);
  border-color: var(--rule);
  cursor: default;
  pointer-events: none;
}

/* community callout */
.repo-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px);
  background: var(--paper-2);
  border-radius: 28px;
  border: 1px solid var(--rule);
}
.repo-callout__text { max-width: 56ch; }
.repo-callout__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.repo-callout__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ─── BUTTONS (shared) ─── */
/* See .btn definitions earlier in this file (index section) */

/* Decorative wind lines, echoing the logo (contained, like the hero) */
.page-hero__wind {
  position: absolute;
  inset: auto 0 -10% 0;
  width: 110%;
  height: clamp(180px, 26vw, 300px);
  pointer-events: none;
  color: var(--sage-2);
  opacity: .45;
  z-index: -1;
  transform: translate(-5%, 0);
}


/* ─── FOOTER ─── */
.footer { padding: 60px var(--pad-x) 30px; background: var(--paper-1); color: var(--ink-2); }
.footer__row { max-width: var(--maxw); margin: 0 auto 40px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
@media (max-width: 760px) { .footer__row { grid-template-columns: 1fr; } }
.footer__mark { height: 66px; width: auto; color: var(--ink); display: block; }
.footer__tag { margin-top: 14px; color: var(--ink-3); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 600px) { .footer__cols { grid-template-columns: 1fr; } }
.footer__cols div { display: flex; flex-direction: column; gap: 8px; }
.footer__h { margin: 0 0 8px; }
.footer__cols a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer__cols a:hover { color: var(--sage-deep); }
.footer__base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 600px) { .footer__base { flex-direction: column; } }