/* Patendra shared stylesheet for public content pages. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f4f3ef;
  --bg-alt:    #eceae2;
  --surface:   #ffffff;
  --ink:       #1a1714;
  --ink-2:     #5b564c;
  --ink-3:     #888377;
  --border:    #e7e3da;
  --border-2:  #d9d4c8;
  --accent:    #00845c;
  --accent-deep:#056a48;
  --accent-soft:rgba(0,132,92,0.08);
  --green:     #15803d;  --green-soft: rgba(21,128,61,0.10);
  --amber:     #b45309;  --amber-soft: rgba(180,83,9,0.10);
  --red:       #b91c1c;  --red-soft:   rgba(185,28,28,0.09);
  --hatch:     rgba(26,23,20,0.05);

  --shadow-sm: 0 1px 2px rgba(60,40,20,.05), 0 1px 1px rgba(60,40,20,.04);
  --shadow-md: 0 2px 4px rgba(60,40,20,.04), 0 8px 20px rgba(60,40,20,.07);
  --shadow-lg: 0 4px 10px rgba(60,40,20,.05), 0 22px 44px rgba(60,40,20,.10);

  --r-sm: 7px; --r-md: 12px; --r-lg: 18px;

  --fs-xs:  0.78rem;
  --fs-sm:  0.875rem;
  --fs-base:1rem;
  --fs-md:  1.125rem;
  --fs-lg:  1.375rem;
  --fs-xl:  1.75rem;
  --fs-2xl: clamp(2.1rem, 3.6vw, 2.95rem);
  --fs-hero:clamp(2.35rem, 5vw, 3.6rem);

  --sp-1:.5rem; --sp-2:.75rem; --sp-3:1rem; --sp-4:1.5rem;
  --sp-5:2.5rem; --sp-6:4rem; --sp-7:6rem;
  --section-py: clamp(3.5rem, 7vw, 5.5rem);

  --font-display:-apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:"SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max-w: 1140px;
  --max-w-prose: 76ch;
  --pad-x: 40px;
  --t: 160ms cubic-bezier(.2,0,0,1);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: var(--bg); color: var(--ink);
  line-height: 1.65; overflow-x: hidden;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent-deep); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
  font-family: var(--font-mono); font-size: var(--fs-xs);
}
.skip-link:focus { left: 0; }

/* ---- mono eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }

/* ---- nav (same structure as landing) ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 21px; height: 21px; color: var(--accent); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-link {
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-sm);
  padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
  min-height: 44px;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }

/* ---- page hero: patent-document header ---- */
.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 var(--sp-5); border-bottom: 1px solid var(--border); position: relative; }
.page-hero .eyebrow { margin-bottom: var(--sp-3); }
.page-hero h1 {
  font-family: var(--font-display); font-size: var(--fs-hero);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; max-width: 22ch;
}
.page-hero .lead { margin-top: var(--sp-4); font-size: var(--fs-md); color: var(--ink-2); max-width: 58ch; line-height: 1.7; }
.page-hero .hero-meta {
  margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
}
.page-hero .hero-meta strong { color: var(--ink-2); font-weight: 500; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: var(--sp-4); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--accent-deep); }
.breadcrumbs .sep { color: var(--border-2); }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* ---- "On this page" TOC band ---- */
.toc { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.toc .container { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 14px; padding-bottom: 14px; align-items: baseline; }
.toc .toc-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.toc a { font-size: var(--fs-sm); color: var(--ink-2); }
.toc a:hover { color: var(--accent-deep); }

/* ---- hatch + crop motifs (from landing) ---- */
.hatch-band {
  height: 26px;
  background-image: repeating-linear-gradient(-45deg, var(--hatch) 0 1px, transparent 1px 7px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.crops { position: relative; }
.crops > i { position: absolute; width: 13px; height: 13px; pointer-events: none; opacity: .5; }
.crops > i::before, .crops > i::after { content: ''; position: absolute; background: var(--border-2); }
.crops > i::before { width: 13px; height: 1px; top: 0; }
.crops > i::after  { width: 1px; height: 13px; left: 0; }
.crops > .tl { top: -1px; left: -1px; }
.crops > .tr { top: -1px; right: -1px; transform: scaleX(-1); }
.crops > .bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.crops > .br { bottom: -1px; right: -1px; transform: scale(-1); }

/* ---- sections ---- */
.section { padding: var(--section-py) 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: var(--sp-5); max-width: 52ch; }
.section-head .eyebrow { margin-bottom: var(--sp-3); }
h2.section-title {
  font-family: var(--font-display); font-size: var(--fs-2xl);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.02em;
}
.section-sub { margin-top: var(--sp-3); font-size: var(--fs-md); line-height: 1.65; color: var(--ink-2); max-width: 56ch; }

/* ---- clause list: the patent-document signature ----
   Numbered like claims: "1." in mono, hanging in the margin. Use only
   for real sequences (pipeline stages, steps, ordered claims). */
.clauses { counter-reset: clause; display: grid; gap: var(--sp-4); max-width: var(--max-w-prose); list-style: none; padding: 0; }
.clause { position: relative; padding-left: 64px; counter-increment: clause; }
.clause::before {
  content: counter(clause) "."; position: absolute; left: 0; top: 2px;
  font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 600;
  color: var(--accent-deep); font-variant-numeric: tabular-nums;
}
.clause h3 { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.clause p { color: var(--ink-2); }
.clause p + p { margin-top: 8px; }

/* ---- statute chips: §102 / §103 / §112 ---- */
.statute {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  padding: 5px 11px; border: 1px solid var(--border-2); border-radius: 100px;
  background: var(--surface); color: var(--ink-2); white-space: nowrap;
}
.statute.hit { border-color: rgba(185,28,28,.3); background: var(--red-soft); color: var(--red); }
.statute.pass { border-color: rgba(21,128,61,.3); background: var(--green-soft); color: var(--green); }

/* ---- cards ---- */
.grid { display: grid; gap: var(--sp-4); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4); box-shadow: var(--shadow-sm);
}
.card > .k {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; display: block;
}
.card h3 { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.card ul { margin: 10px 0 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--ink-2); display: grid; gap: 6px; }

/* ---- FIG. panel: framed figure/diagram, like a patent drawing ---- */
.fig {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-md);
  padding: var(--sp-4); box-shadow: var(--shadow-md); position: relative;
}
.fig .fig-label {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); text-align: center; margin-top: var(--sp-3);
}
.fig pre { background: transparent; border: 0; padding: 0; margin: 0; }

/* ---- prose (long-form docs / glossary) ---- */
.prose { max-width: var(--max-w-prose); }
.prose h2 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; margin: var(--sp-6) 0 var(--sp-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; margin: var(--sp-5) 0 var(--sp-2); }
.prose p { margin-bottom: var(--sp-3); color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 var(--sp-3); padding-left: 22px; color: var(--ink-2); display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--ink);
  overflow-wrap: anywhere;
}
.prose pre {
  background: #211d19; color: #f2ede4; border-radius: var(--r-md);
  padding: 18px 20px; overflow-x: auto; margin: 0 0 var(--sp-3);
  font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.7;
  box-shadow: var(--shadow-md);
}
.prose pre code { background: transparent; border: 0; padding: 0; color: inherit; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 var(--sp-3);
  color: var(--ink-2); font-size: var(--fs-md);
}

/* ---- spec table ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
table.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.spec th, table.spec td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec thead th {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3);
  background: var(--bg-alt); border-bottom: 1px solid var(--border-2);
}
table.spec td { color: var(--ink-2); }
table.spec td:first-child, table.spec th[scope="row"] { color: var(--ink); font-weight: 500; }
table.spec code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }

/* ---- FAQ ---- */
.faq { max-width: var(--max-w-prose); display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--ink-3);
  transition: transform var(--t); flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent-deep); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.75; }
.faq details > div p + p { margin-top: 10px; }

/* ---- pricing ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: stretch; }
.tier { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-4); box-shadow: var(--shadow-sm); position: relative; }
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.tier .flag {
  position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}
.tier .name { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tier .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 2px; }
.tier .per { font-size: var(--fs-sm); color: var(--ink-3); }
.tier ul { margin: var(--sp-4) 0; padding: 0; list-style: none; display: grid; gap: 11px; font-size: var(--fs-sm); color: var(--ink-2); }
.tier ul li { padding-left: 26px; position: relative; }
.tier ul li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
  border-radius: 100px; background: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 9px; background-position: center; background-repeat: no-repeat;
}
.tier .btn { margin-top: auto; width: 100%; }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); color: #f2ede4; padding: var(--sp-6) 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; max-width: 26ch; }
.cta-band p { margin-top: 8px; color: #b8b1a4; font-size: var(--fs-sm); max-width: 52ch; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: #0a9d6e; }

/* ---- footer ---- */
.footer { padding: var(--sp-6) 0 var(--sp-5); border-top: 1px solid var(--border); background: var(--bg); }
.footer .container { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer .brand-name { font-size: 16px; }
.footer-disc { max-width: 52ch; margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.footer-cols { display: flex; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { font-size: 13px; color: var(--ink-2); }
.footer-col a:hover { color: var(--accent-deep); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: var(--sp-5); padding-top: var(--sp-4); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-ver { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* ---- callout ---- */
.callout {
  border: 1px solid var(--border-2); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--r-sm);
  padding: 16px 20px; margin: 0 0 var(--sp-3); font-size: var(--fs-sm); color: var(--ink-2);
}
.callout strong { color: var(--ink); }

/* ---- responsive ---- */
@media (max-width: 960px) {
  :root { --pad-x: 24px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 700px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .nav .container { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .clause { padding-left: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ================================================================
   Photography / media, premium editorial IP imagery (deep-green brand).
   Slight desaturation + soft contrast to match the shot grade.
   ================================================================ */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--bg-alt); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.media.ar-3-2 { aspect-ratio: 3 / 2; }
.media.ar-4-3 { aspect-ratio: 4 / 3; }
.media.ar-16-9 { aspect-ratio: 16 / 9; }

/* page-hero with a side image */
.page-hero.has-media .container { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.page-hero.has-media .hero-copy { min-width: 0; }
.page-hero.has-media .media { aspect-ratio: 3 / 2; }

/* full-bleed photo band with text-safe left (scrim) */
.photo-band { position: relative; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); min-height: 300px; display: flex; align-items: center; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
.photo-band .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,16,13,.86) 0%, rgba(12,16,13,.6) 44%, rgba(12,16,13,.12) 100%); }
.photo-band .container { position: relative; z-index: 1; padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.photo-band .eyebrow { color: #7fe3bd; }
.photo-band .eyebrow::before { background: #17b985; }
.photo-band h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; color: #fff; max-width: 20ch; }
.photo-band p { margin-top: var(--sp-3); color: #d7ded9; max-width: 52ch; font-size: var(--fs-md); }

/* photo grid (industries / roles) */
.photo-grid { display: grid; gap: var(--sp-4); }
.photo-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-tile { position: relative; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; display: block; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); transition: transform 400ms cubic-bezier(.2,.7,.2,1); }
.photo-tile:hover img { transform: scale(1.035); }
.photo-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 11px 13px; color: #fff; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.07em; text-transform: uppercase; background: linear-gradient(0deg, rgba(10,14,12,.82), rgba(10,14,12,0)); }

@media (max-width: 860px) {
  .page-hero.has-media .container { grid-template-columns: 1fr; }
  .photo-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .photo-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .photo-band .scrim { background: linear-gradient(0deg, rgba(12,16,13,.9) 0%, rgba(12,16,13,.55) 60%, rgba(12,16,13,.35) 100%); }
}
@media (max-width: 560px) {
  .photo-grid.cols-4, .photo-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ================================================================
   Unified public-site system
   Native typography, dark product framing, exact SVG brand sculpture.
   ================================================================ */
:root {
  --bg: #f3f4ef;
  --bg-alt: #e7eae3;
  --surface: #fbfcf8;
  --ink: #07110e;
  --ink-2: #34463f;
  --ink-3: #64736c;
  --border: #d6ddd5;
  --border-2: #c5cec5;
  --accent: #36dfa1;
  --accent-deep: #006b49;
  --accent-soft: rgba(0, 107, 73, 0.09);
  --shadow-sm: 0 1px 2px rgba(3, 13, 9, 0.05);
  --shadow-md: 0 16px 45px rgba(3, 13, 9, 0.11);
  --shadow-lg: 0 28px 80px rgba(3, 13, 9, 0.16);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 26px;
  --fs-xs: 0.79rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.14rem;
  --fs-lg: 1.45rem;
  --fs-xl: 2rem;
  --fs-2xl: clamp(2.35rem, 4.5vw, 4.6rem);
  --fs-hero: clamp(3rem, 5vw, 5.35rem);
  --max-w: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-py: clamp(5.5rem, 9vw, 8rem);
  --t: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: normal;
  line-height: 1.62;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 650;
  transition: transform var(--t);
}

.skip-link:focus {
  left: 12px;
  transform: translateY(0);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 14, 0.95);
  color: #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav .container {
  height: 76px;
}

.brand,
.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 550;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  border: 0;
  color: #fff;
}

.nav-link[aria-current="page"]::after {
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.btn {
  min-height: 48px;
  gap: 0;
  border-radius: var(--r-sm);
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.nav .btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.nav .btn-primary:hover {
  background: #6aebbc;
  color: var(--ink);
}

.btn-secondary,
.btn-ghost {
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.page-hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 0;
  padding: clamp(5.5rem, 10vw, 8rem) 0;
  background: var(--ink);
  color: #fff;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, #000, transparent 80%);
  content: "";
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 2;
}

.page-hero:not(.has-media) > .container {
  width: 100%;
  padding-right: min(40vw, 520px);
}

.page-hero.has-media .container {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(42px, 6vw, 86px);
}

.page-hero h1 {
  max-width: 13ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 0.97;
}

.page-hero .lead {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.68;
}

.page-hero .lead strong,
.page-hero .lead a {
  color: #fff;
}

.eyebrow {
  gap: 0;
  color: var(--accent-deep);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
}

.eyebrow::before {
  display: none;
}

.page-hero .eyebrow {
  color: var(--accent);
}

.breadcrumbs {
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 540;
  letter-spacing: -0.005em;
  text-transform: none;
}

.breadcrumbs a,
.breadcrumbs [aria-current] {
  color: rgba(255, 255, 255, 0.54);
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.24);
}

.page-hero .hero-meta {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 540;
  letter-spacing: 0;
  text-transform: none;
}

.page-hero .hero-meta strong {
  color: var(--accent);
  font-weight: 650;
}

.page-hero .media {
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-lg);
  background: #0b1713;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.brand-sculpture {
  width: clamp(300px, 37vw, 560px);
  position: absolute;
  top: 50%;
  right: max(1vw, calc((100vw - var(--max-w)) / 2));
  z-index: 1;
  transform: translateY(-50%);
  opacity: 0.9;
  pointer-events: none;
  perspective: 1100px;
}

.brand-sculpture img {
  width: 100%;
  filter: drop-shadow(24px 32px 34px rgba(0, 0, 0, 0.42));
  transform-style: preserve-3d;
}

.brand-angle-a .brand-sculpture img {
  transform: rotateX(8deg) rotateY(-16deg) rotateZ(-9deg);
}

.brand-angle-b .brand-sculpture img {
  transform: rotateX(-12deg) rotateY(19deg) rotateZ(13deg);
}

.brand-angle-c .brand-sculpture img {
  transform: rotateX(17deg) rotateY(11deg) rotateZ(-22deg);
}

.page-hero.has-media .brand-sculpture {
  width: clamp(130px, 15vw, 220px);
  top: auto;
  right: max(3vw, calc((100vw - var(--max-w)) / 2 + 18px));
  bottom: clamp(24px, 4vw, 58px);
  z-index: 3;
  transform: none;
}

.hatch-band,
.crops > i {
  display: none;
}

.toc {
  border-color: var(--border);
  background: var(--surface);
}

.toc .toc-label {
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-transform: none;
}

.section {
  padding: var(--section-py) 0;
}

.section.alt {
  border-color: var(--border);
  background: var(--bg-alt);
}

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

h2.section-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 630;
  letter-spacing: -0.045em;
  line-height: 1.01;
}

.section-sub {
  max-width: 64ch;
  color: var(--ink-2);
  line-height: 1.68;
}

.grid {
  gap: 16px;
}

.card,
.fig,
.faq details,
.table-wrap,
.tier {
  border-color: var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: none;
}

.card {
  padding: clamp(26px, 4vw, 40px);
}

.card > .k,
.fig .fig-label,
table.spec thead th,
.tier .flag,
.tier .name,
.footer-col h4,
.photo-tile .cap {
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.005em;
  text-transform: none;
}

.card > .k {
  color: var(--accent-deep);
  font-size: 0.84rem;
}

.card h3,
.clause h3,
.prose h2,
.prose h3,
.faq summary {
  font-family: var(--font-display);
  font-weight: 630;
  letter-spacing: -0.025em;
}

.clause::before,
.statute,
.security-icon {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.statute {
  font-weight: 620;
}

table.spec thead th {
  color: var(--ink-3);
  font-size: 0.78rem;
}

.tier.featured {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.tier.featured .name,
.tier.featured .per,
.tier.featured ul {
  color: rgba(255, 255, 255, 0.62);
}

.tier.featured .price {
  color: #fff;
}

.tier.featured .btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.tier .flag {
  background: var(--accent);
  color: var(--ink);
}

.tier .name {
  font-size: 0.9rem;
}

.tier .price {
  font-weight: 630;
  letter-spacing: -0.045em;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 630;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cta-band .btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.footer {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--ink);
  color: #fff;
}

.footer .brand,
.footer .brand:hover {
  color: #fff;
}

.footer-disc,
.footer-ver,
.footer-col h4 {
  color: rgba(255, 255, 255, 0.4);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.64);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.12);
}

.media,
.photo-tile {
  border-radius: var(--r-md);
  box-shadow: none;
}

.photo-band .eyebrow {
  color: var(--accent);
}

.photo-band h2 {
  font-weight: 630;
  letter-spacing: -0.045em;
}

@media (max-width: 960px) {
  .page-hero:not(.has-media) > .container {
    padding-right: var(--pad-x);
  }

  .page-hero:not(.has-media) .brand-sculpture {
    width: 360px;
    right: -90px;
    opacity: 0.27;
  }

  .page-hero.has-media .container {
    grid-template-columns: 1fr;
  }

  .page-hero.has-media .brand-sculpture {
    right: calc(var(--pad-x) + 16px);
    bottom: calc(var(--section-py) + 16px);
  }
}

@media (max-width: 700px) {
  .nav .container {
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    padding-top: 10px;
    padding-bottom: 0;
  }

  .nav-actions {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-actions::-webkit-scrollbar {
    display: none;
  }

  .nav-links {
    width: max-content;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .nav-actions > .btn {
    display: none;
  }

  .nav-link {
    min-height: 48px;
    white-space: nowrap;
  }

  .page-hero {
    min-height: 620px;
    padding: 5.5rem 0 4.5rem;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .page-hero:not(.has-media) .brand-sculpture {
    width: 280px;
    right: -86px;
    top: auto;
    bottom: -34px;
    transform: none;
    opacity: 0.24;
  }

  .page-hero.has-media .brand-sculpture {
    width: 130px;
    right: calc(var(--pad-x) + 10px);
    bottom: 4.8rem;
  }

  .page-hero.has-media .media {
    aspect-ratio: 4 / 3;
  }

  .cta-band .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-hero .hero-meta {
    display: grid;
  }

  .card,
  .tier {
    padding: 26px 22px;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-sculpture img,
  .btn {
    transition: none;
  }
}

/* Final public-page polish. Keep labels readable and the system consistent. */
.eyebrow,
.page-hero .hero-meta,
.breadcrumbs,
.toc .toc-label,
.card > .k,
.fig .fig-label,
.tier .flag,
.tier .name,
.photo-tile .cap,
.footer-col h4,
.footer-ver {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  text-transform: none;
}

.eyebrow {
  font-size: 0.94rem;
  font-weight: 650;
}

.page-hero {
  min-height: 610px;
}

.page-hero h1 {
  max-width: 14ch;
}

.page-hero .lead {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.page-hero .hero-meta,
.breadcrumbs,
.toc .toc-label,
.toc a {
  font-size: 0.88rem;
}

.toc .container {
  min-height: 58px;
  gap: 8px 24px;
}

.card > .k,
.fig .fig-label,
.tier .name,
.photo-tile .cap {
  font-size: 0.88rem;
}

.footer-disc {
  max-width: 58ch;
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-col h4,
.footer-ver {
  font-size: 0.84rem;
}

.footer-col a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .nav .container {
    position: relative;
    padding-top: 10px;
  }

  .nav-actions {
    padding-top: 4px;
    overflow-x: hidden;
  }

  .nav-actions > .btn {
    width: auto;
    min-height: 42px;
    display: inline-flex;
    position: absolute;
    top: 11px;
    right: var(--pad-x);
    padding: 10px 15px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding-right: 0;
  }

  .nav-link {
    padding-inline: 0;
    font-size: 0.8rem;
  }

  .page-hero {
    min-height: 560px;
    padding: 4.75rem 0 4rem;
  }

  .page-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .page-hero .lead {
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .nav-actions > .btn {
    font-size: 0.82rem;
    padding-inline: 13px;
  }

  .brand-name {
    font-size: 1.08rem;
  }
}
