/* EMILE-E — shared design system per docs/BRAND.md ("Held" v1.0) */
@font-face {
  font-family: "Caprasimo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/caprasimo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
}
:root {
  --accent: #1E7469;      /* Teal 700 — interactive on light grounds */
  --teal: #3FB8A8;        /* Signal */
  --teal-400: #5FC8B8;    /* dark grounds */
  --sage: #8FCB77;        /* Sprout Green */
  --ink: #0B1513;
  --ink-800: #11201D;
  --ink-700: #192B27;
  --ink-600: #24393A;
  --paper: #F6F9F5;
  --paper-2: #EAF1EF;
  --green-300: #C0E2A2;
  --mint: #E4F6F2;
  --soft: #9FB5AF;        /* muted text on ink */
  --font-display: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --radius-container: 20px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400; /* Caprasimo is never bolded */
  line-height: 1.15;
  letter-spacing: 0.005em;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-2);
}
.nav { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup .words { display: flex; flex-direction: column; line-height: 1; }
.lockup .word { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.lockup .product {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 9.5px; /* 0.43 × wordmark */
  color: var(--accent); margin-top: 3px;
}
nav.links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav.links a { text-decoration: none; color: var(--ink-700); font-weight: 500; font-size: 15px; }
nav.links a:hover { color: var(--accent); }
nav.links a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-block; border-radius: 999px; padding: 11px 24px;
  background: var(--accent); color: var(--paper) !important; text-decoration: none;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer;
  transition: background .15s ease;
}
.pill:hover { background: var(--ink-700); }
.pill.ghost { background: transparent; color: var(--accent) !important; box-shadow: inset 0 0 0 1.5px var(--accent); }
.pill.ghost:hover { background: var(--mint); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; text-align: center; }
.hero .mark { width: 92px; height: 92px; margin: 0 auto 28px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); max-width: 850px; margin: 0 auto; }
.hero .sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--ink-600);
  max-width: 720px; margin: 22px auto 34px;
}
.trust {
  margin-top: 44px; display: flex; gap: 10px 28px; justify-content: center; flex-wrap: wrap;
  font-size: 14px; font-weight: 500; color: var(--ink-600);
  list-style: none; padding: 0;
}
.trust li::before { content: "●"; color: var(--sage); font-size: 9px; margin-right: 8px; vertical-align: 2px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.kicker {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 12.5px; color: var(--accent); margin-bottom: 14px;
}
h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.lede { color: var(--ink-600); max-width: 680px; font-size: 18px; }

/* Dark band */
.band { background: var(--ink); color: var(--paper); }
.band .kicker { color: var(--teal); }
.band h2 { color: var(--paper); }
.band .lede { color: var(--soft); }
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 40px; }
.band-card {
  background: var(--ink-800); border: 1px solid var(--ink-600);
  border-radius: var(--radius-container); padding: 24px;
}
.band-card .big { font-family: var(--font-display); font-size: 30px; color: var(--teal); }
.band-card p { color: var(--soft); font-size: 15px; margin-top: 8px; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 44px; }
.feature {
  background: #fff; border: 1px solid var(--paper-2);
  border-radius: var(--radius-container); padding: 28px;
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--mint);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature .icon svg { width: 24px; height: 24px; stroke: var(--accent); stroke-width: 2.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-600); }
.minor-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chipf {
  background: var(--mint); color: var(--accent); font-weight: 600; font-size: 14px;
  border-radius: 999px; padding: 8px 18px;
}

/* Product cards (homepage) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 44px; }
.product-card {
  background: #fff; border: 1px solid var(--paper-2); border-radius: 28px;
  padding: 36px; display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { border-color: var(--green-300); box-shadow: 0 12px 32px rgba(11,21,19,.10); }
.product-card .pname { font-family: var(--font-display); font-size: 28px; }
.product-card .ptag { font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--accent); }
.product-card p { color: var(--ink-600); font-size: 15.5px; flex: 1; }
.product-card .pprice { font-weight: 700; font-size: 16px; }
.product-card .pprice small { font-weight: 500; color: var(--ink-600); }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 640px; margin: 44px auto 0; background: #fff;
  border: 1.5px solid var(--green-300); border-radius: 28px; padding: 44px 40px;
  text-align: center; box-shadow: 0 12px 32px rgba(11,21,19,.08);
}
.price-line { font-family: var(--font-display); font-size: 64px; color: var(--accent); line-height: 1; }
.price-line small { font-size: 22px; color: var(--ink-600); font-family: var(--font-body); font-weight: 500; }
.price-note { margin-top: 6px; color: var(--ink-600); font-weight: 500; }
.includes { list-style: none; margin: 30px auto 34px; text-align: left; max-width: 440px; display: grid; gap: 10px; }
.includes li { padding-left: 30px; position: relative; font-size: 15.5px; }
.includes li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--sage);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230B1513" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}
.fineprint { font-size: 14.5px; color: var(--ink-600); margin-top: 18px; }

/* ---------- Videos ---------- */
.videos { background: var(--paper-2); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 40px; }
.video-card { border-radius: var(--radius-container); overflow: hidden; background: var(--ink); box-shadow: 0 12px 32px rgba(11,21,19,.18); }
.video-card .frame { position: relative; aspect-ratio: 16/9; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .meta { padding: 16px 20px; color: var(--paper); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.video-card .meta strong { font-weight: 700; font-size: 16px; }
.video-card .meta span { color: var(--soft); font-size: 13.5px; }

/* ---------- Steps (VibedIn how-it-works) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 44px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--paper-2); border-radius: var(--radius-container);
  padding: 28px; counter-increment: step; position: relative;
}
.step::before {
  content: counter(step);
  font-family: var(--font-display); font-size: 28px; color: var(--teal);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-600); }

/* ---------- Why columns ---------- */
.why-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.why-col { border-radius: var(--radius-container); padding: 28px; border: 1px solid var(--paper-2); background: #fff; }
.why-col.us { border: 1.5px solid var(--accent); background: var(--mint); }
.why-col h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-col p { font-size: 15px; color: var(--ink-600); }
.why-col .tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: var(--soft); padding: 48px 0; font-size: 14.5px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer.site a { color: var(--teal); text-decoration: none; }
footer.site a:hover, footer.site a:focus-visible { color: #92DBCF; text-decoration: underline; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Company dark theme (EMILE-E Brand Style Guide v1.0) ----------
   Company surfaces run on Evergreen Ink. Gradient appears once per screen —
   the header lockup (the logo). Everything else is flat colour. */
body.dark {
  --radius-container: 28px;   /* company containers */
  --teal-300: #92DBCF;        /* accent text on dark */
  --ink-100: #EAF1EF;         /* body copy on dark */
  background: var(--ink);
  color: var(--ink-100);
}
body.dark h1 { letter-spacing: -0.02em; }
body.dark h1, body.dark h2, body.dark .display { color: var(--paper); }
body.dark header.site {
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  border-bottom-color: var(--ink-700);
}
body.dark nav.links a { color: var(--soft); }
body.dark nav.links a:hover, body.dark nav.links a[aria-current="page"] { color: var(--teal-300); }
body.dark .pill { background: var(--teal); color: var(--ink) !important; }
body.dark .pill:hover { background: var(--teal-300); }
body.dark .pill.ghost { background: transparent; color: var(--teal-300) !important; box-shadow: inset 0 0 0 1.5px var(--teal); }
body.dark .pill.ghost:hover { background: var(--ink-800); }
body.dark .kicker { color: var(--teal); font-size: 12px; letter-spacing: 0.16em; }
body.dark .hero .sub, body.dark .lede { color: var(--soft); }
body.dark .trust { color: var(--soft); }
body.dark .band { background: var(--ink-800); }
body.dark .band-card { background: var(--ink); }
body.dark .feature { background: var(--ink-800); border-color: var(--ink-600); }
body.dark .feature .icon { background: var(--ink-700); }
body.dark .feature .icon svg { stroke: var(--teal-300); }
body.dark .feature h3 { color: var(--paper); }
body.dark .feature p { color: var(--soft); }
body.dark .chipf { background: var(--ink-700); color: var(--teal-300); }
body.dark .steps .step { background: var(--ink-800); border-color: var(--ink-600); }
body.dark .step h3 { color: var(--paper); }
body.dark .step p { color: var(--soft); }
body.dark .price-card { background: var(--ink-800); border-color: var(--ink-600); box-shadow: none; }
body.dark .price-line { color: var(--teal); }
body.dark .price-line small, body.dark .price-note, body.dark .fineprint { color: var(--soft); }
body.dark .includes li { color: var(--ink-100); }
body.dark .product-card { background: var(--ink-800); border-color: var(--ink-600); }
body.dark .product-card:hover { border-color: var(--teal); box-shadow: none; }
body.dark .product-card .pname { color: var(--paper); }
body.dark .product-card .ptag { color: var(--teal); }
body.dark .product-card p { color: var(--soft); }
body.dark .product-card .pprice { color: var(--paper); }
body.dark .product-card .pprice small { color: var(--soft); }
body.dark .videos { background: var(--ink-800); }
body.dark footer.site { border-top: 1px solid var(--ink-700); }
body.dark :focus-visible { outline-color: var(--teal-300); }

/* Homepage hero scene — washed illustration behind the hero (dark pages) */
.hero-outer { position: relative; overflow: hidden; }
.hero-scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
  opacity: .55; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, #000 35%, transparent 98%);
  mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, #000 35%, transparent 98%);
}
.hero-outer .hero { position: relative; }

/* Company logo helpers */
.company-lockup { display: block; height: 46px; width: auto; }
.mask-icon {
  display: inline-block; width: 34px; height: 34px; background: var(--teal-400);
  -webkit-mask: url('/brand/company-icon.png') center / contain no-repeat;
  mask: url('/brand/company-icon.png') center / contain no-repeat;
}
.lockup-teal {
  display: inline-block; width: 140px; height: 57px; background: #1E7469; /* Teal 700 on Paper */
  -webkit-mask: url('/brand/company-lockup.png') center / contain no-repeat;
  mask: url('/brand/company-lockup.png') center / contain no-repeat;
}

/* ---------- Legal documents (Paper ground, per brand: documents run on Paper) ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 44px 24px 80px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 6px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-700); }
.legal p { margin: 10px 0; }
.legal ul, .legal ol { padding-left: 24px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--ink); }
.doc-meta { font-size: 14px; color: var(--ink-600); font-weight: 500; }
.doc-banner {
  background: var(--mint); border: 1.5px solid var(--accent); border-radius: 12px;
  padding: 12px 18px; font-weight: 600; font-size: 14px; margin: 20px 0 8px; color: var(--ink-700);
}
footer.site .legal-links {
  width: 100%; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13.5px;
  padding-top: 14px; border-top: 1px solid var(--ink-700); margin-top: 10px;
}
footer.site .legal-links span { color: var(--muted, #6F8A83); }

@media (max-width: 640px) {
  nav.links a:not(.pill) { display: none; }
  .hero { padding-top: 56px; }
  .company-lockup { height: 38px; }
}
