/* eunolaw.com: the home page (/) and the product page (/product).
   Same design language as the pitch deck and the /legal pages: Spectral for display,
   DM Sans for text, cream ground, rust accent, hairline rules, one dark band per page.
   Fonts are first-party (served from /legal/fonts/); nothing on these pages loads from
   another domain, and there is no JavaScript. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/legal/fonts/dm-sans-var.woff2") format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/legal/fonts/spectral-400.woff2") format('woff2');
}

:root {
  --bg: #F6F3EC;
  --surface: #FFFDF8;
  --inset: #FBF8F1;
  --ink: #16130F;
  --text: #423C33;
  --muted: #5F584A;
  --faint: #6E6656;
  --rule: #E4DECE;
  --rust: #9A5314;

  --dark: #16130F;
  --dark-text: #F6F3EC;
  --dark-muted: #CFC8BB;
  --dark-eyebrow: #C9A27E;
  --dark-rule: #4A4339;

  --canvas: 1200px;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: 'Spectral', ui-serif, Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(22,19,15,.05), 0 24px 56px -24px rgba(22,19,15,.24);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --section: clamp(4.5rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--dark-text); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: var(--bg);
  padding: 11px 18px; border-radius: 0 0 10px 0;
  font: 500 14px/1 var(--sans);
}
.skip:focus { left: 0; }

.canvas {
  width: 100%;
  max-width: var(--canvas);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.2vw, 2.5rem);
}

/* ---------------- top bar ---------------- */

.nav {
  position: sticky; top: 0; z-index: 12;
  background: rgba(246, 243, 236, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav .canvas { display: flex; align-items: center; gap: 1rem; height: 72px; }
.brand {
  display: inline-flex; align-items: baseline; gap: .55rem; flex-shrink: 0;
  text-decoration: none; color: var(--ink);
  font: 400 23px/1 var(--serif);
}
.brand .sep { color: var(--rule); font-size: 20px; }
.brand .by { font: 400 12px/1 var(--sans); color: var(--faint); }
.brand .ziro { font: 500 14px/1 var(--serif); letter-spacing: .02em; }
.navlinks {
  margin: 0 0 0 auto; padding: 0; list-style: none;
  display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.9rem);
}
.navlinks a { font: 400 14.5px/1 var(--sans); color: var(--muted); text-decoration: none; transition: color .2s; }
.navlinks a:hover, .navlinks a[aria-current] { color: var(--ink); }
.navlinks a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--rust); }
@media (max-width: 560px) { .hide-sm { display: none; } }

.pill, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg) !important;
  font: 500 14.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), opacity .25s;
}
.pill:hover, .btn:hover { transform: translateY(-1px); opacity: .92; }
.btn { height: 48px; padding: 0 26px; font-size: 15.5px; }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink); }
.band .btn { background: var(--dark-text); color: var(--ink) !important; }
.band .btn.ghost { background: transparent; color: var(--dark-text) !important; box-shadow: inset 0 0 0 1px var(--dark-muted); }

/* ---------------- type ---------------- */

.eyebrow {
  margin: 0 0 1.25rem;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--rust);
}
.band .eyebrow { color: var(--dark-eyebrow); }

h1, h2, h3 { color: var(--ink); font-weight: 400; text-wrap: balance; }
.band h1, .band h2, .band h3 { color: var(--dark-text); }
h1 {
  margin: 0;
  font: 400 clamp(42px, 6.6vw, 84px)/1.02 var(--serif);
  letter-spacing: -0.022em;
}
h1 .soft, h2 .soft { color: var(--faint); }
.band h2 .soft { color: var(--dark-muted); }
h2 {
  margin: 0;
  font: 400 clamp(32px, 4.3vw, 54px)/1.08 var(--serif);
  letter-spacing: -0.018em;
}
h3 { margin: 0; font: 400 clamp(22px, 2vw, 27px)/1.2 var(--serif); letter-spacing: -0.01em; }
.lede {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font: 400 clamp(17.5px, 1.6vw, 20px)/1.6 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}
.band .lede { color: var(--dark-muted); }
p { margin: 0; text-wrap: pretty; }

/* section head device: a numbered ink plate, the subject in mono caps, a hairline */
.sechead {
  display: flex; align-items: center; gap: .9rem;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
}
.sechead::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.sechead .no {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--ink); color: var(--bg); letter-spacing: 0;
}
.band .sechead { color: var(--dark-text); }
.band .sechead::after { background: var(--dark-rule); }
.band .sechead .no { background: var(--dark-text); color: var(--ink); }

/* ---------------- layout ---------------- */

.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.band { background: var(--dark); color: var(--dark-muted); }
.band + .section, .section + .band { border-top: 0; }

.hero { padding: clamp(4rem, 11vw, 9rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero .status {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1.75rem; padding: 7px 14px 7px 12px;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--surface);
  font: 500 12px/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hero .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); }
.hero h1 { max-width: 19ch; }
.hero .lede { max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  display: flex; flex-direction: column; gap: .75rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 18px;
}
.card .tag { font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.card p { color: var(--text); }
.card.ink { background: var(--ink); border-color: var(--ink); }
.card.ink h3 { color: var(--dark-text); }
.card.ink p { color: var(--dark-muted); }
.card.ink .tag { color: var(--dark-eyebrow); }
.card a { color: var(--ink); text-underline-offset: 3px; }
.card.ink a { color: var(--dark-text); }

.ruled { display: flex; flex-direction: column; gap: .8rem; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.ruled .n { font: 500 13px/1 var(--mono); letter-spacing: .1em; color: var(--rust); }
.ruled.rust { border-top-color: var(--rust); }
.ruled.soft { border-top-color: var(--rule); }
.band .ruled { border-top-color: var(--dark-rule); }
.band .ruled.strong { border-top-color: var(--dark-text); }
.band .ruled p { color: var(--dark-muted); }
.band .ruled.strong p { color: var(--dark-text); }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: end; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.split .lede { margin: 0; }

.callout {
  margin-top: var(--gap);
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.5rem, 3vw, 2.75rem);
  background: var(--ink); border-radius: 18px;
  font: 400 clamp(20px, 2.1vw, 27px)/1.35 var(--serif); color: var(--dark-text);
}

.source { margin-top: clamp(2rem, 4vw, 3rem); font: 400 13.5px/1.55 var(--sans); color: var(--faint); }
.band .source { color: var(--dark-muted); }

.pullquote {
  margin: 0; max-width: 24ch;
  font: 400 clamp(34px, 5vw, 64px)/1.08 var(--serif); letter-spacing: -0.02em; color: var(--dark-text);
  text-wrap: balance;
}

/* ---------------- product features ---------------- */

.feature {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .copy { order: 2; }
.feature.wide { grid-template-columns: minmax(0, 1fr); }
.feature .copy { display: flex; flex-direction: column; gap: 1.1rem; }
.feature .copy .lede { margin: 0; }
.feature ul { margin: .25rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.feature li { padding-left: 1.4rem; position: relative; color: var(--text); }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.feature li.hot::before { background: var(--rust); }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .copy { order: 0; }
}

.shot { margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.shot img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--rule); background: var(--surface); }
.shot figcaption { font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.shot > a { display: block; border-radius: 14px; }
.shot .tapnote { display: none; }
@media (max-width: 599px) { .shot .tapnote { display: inline; } }
.heroshot { margin-top: clamp(3rem, 7vw, 5rem); }
.card h3 a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.card h3 a:hover { text-decoration-color: var(--rust); }
.band .shot img { border-color: var(--dark-rule); }
.band .shot figcaption { color: var(--dark-muted); }

.quoteline {
  padding: 1.1rem 1.4rem; border-radius: 14px; background: var(--inset); border: 1px solid var(--rule);
  font: 400 21px/1.4 var(--serif); color: var(--ink);
}
.quoteline .tag { display: block; margin-bottom: .45rem; font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.facts { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fact .big { font: 400 clamp(44px, 5vw, 64px)/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.fact p { margin-top: .6rem; }

/* ---------------- page-to-page bridge ---------------- */

.bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.bridge h2 { max-width: 20ch; }

/* ---------------- footer ---------------- */

.sitefoot { border-top: 1px solid var(--rule); padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); font-size: 14.5px; }
.footrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sitefoot .contact { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); }
.sitefoot .contact a { color: var(--ink); text-underline-offset: 3px; }
.footlinks { list-style: none; margin: 1.75rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footlinks a { color: var(--muted); text-decoration: none; }
.footlinks a:hover, .footlinks a[aria-current] { color: var(--ink); }
.footlinks .copy { margin-left: auto; color: var(--faint); }
.disclosure { margin: 1.25rem 0 0; max-width: 62rem; font-size: 13px; line-height: 1.6; color: var(--faint); }
.disclosure b { font-weight: 500; color: var(--muted); }

/* one orchestrated entrance, nothing that runs after it */
@media (prefers-reduced-motion: no-preference) {
  .hero .canvas > * { animation: rise .8s cubic-bezier(.22,.61,.36,1) both; }
  .hero .canvas > :nth-child(2) { animation-delay: .07s; }
  .hero .canvas > :nth-child(3) { animation-delay: .15s; }
  .hero .canvas > :nth-child(4) { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* small utilities (no inline styles anywhere: the CSP has no 'unsafe-inline') */
.mt { margin-top: clamp(2.5rem, 5vw, 4rem); }
.mb { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rust); }
.label.faint { color: var(--faint); }

/* narrow phones: the brand already links home, so drop the duplicate "Euno" link */
@media (max-width: 440px) {
  .nav .navlinks li:first-child { display: none; }
  .nav .pill { padding: 0 14px; font-size: 14px; }
  .nav .brand { font-size: 21px; gap: .4rem; }
}
@media (max-width: 360px) {
  .nav .canvas { gap: .5rem; }
  .nav .navlinks { gap: .7rem; }
  .nav .brand .sep { display: none; }
  .nav .pill { padding: 0 11px; font-size: 13.5px; }
}
