/* MezaDDS public site (D-82, D-86, D-88): page layout on the shared tokens and components.
   Colours and sizes come only from tokens.css. The only gradient is the hero's (the browser contrast
   check skips gradient backdrops; the hero's token pairs are tested instead). No sticky or fixed bars. */
body { font-size: 1.0625rem; }
.content { max-width: var(--w-site); margin: 0 auto; padding: 0 var(--s-4) var(--s-8); }
.hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding: var(--s-6) 0 var(--s-9); }
.hero .wrap { max-width: var(--w-site); }
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.2fr 1fr; } }
.hero h1 { font-size: var(--t-hero); margin: var(--s-3) 0; }
.hero h1 .accent { color: var(--accent); display: block; }
.lead { font-size: var(--t-xl); color: var(--muted); max-width: var(--w-text); }
.trust { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s-4); }
section.block { margin: var(--s-8) 0; }
section.block h2 { font-size: var(--t-3xl); margin-top: var(--s-2); }
section.block > p, section.block > ul { max-width: var(--w-text); }
.section-lede { color: var(--muted); font-size: var(--t-lg); max-width: var(--w-text); }

/* decorative product mock-ups (aria-hidden, labelled "Piemērs") */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  padding: var(--s-5); position: relative; max-width: 26rem; }
.mock-label { display: inline-block; margin: 0 0 var(--s-3); padding: 0 var(--s-3); border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent); font-size: var(--t-sm); font-weight: 600; }
.mock-row { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.mock-row:last-child { border-bottom: 0; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.mock-tile { background: var(--panel); border-radius: var(--r-md); padding: var(--s-3); font-size: var(--t-xs); overflow-wrap: anywhere; }
.mock-tile strong { display: block; font-size: var(--t-2xl); line-height: 1.1; }
.mock-tile.warn { background: var(--warn-bg); }

.steps li { gap: var(--s-4); }
.steps li > div { display: grid; gap: var(--s-3); }
.steps h3 { margin: 0; }
.features { list-style: none; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: var(--s-5); }
.feature h3 { margin-top: 0; }
.fact-strip { list-style: none; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: none; }
.fact { background: var(--panel); border-radius: var(--r-md); padding: var(--s-4); font-size: var(--t-md); }
.audience { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); list-style: none; padding: 0; max-width: none; }
.audience li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); }
.status-list { list-style: none; padding: 0; display: grid; gap: var(--s-2); max-width: none; }
.status-row { display: grid; gap: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
@media (min-width: 40rem) { .status-row { grid-template-columns: 1fr 14rem; align-items: center; } }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin: var(--s-2) 0; max-width: var(--w-text); }
details.faq summary { font-size: var(--t-lg); }
.cta { background: var(--accent-soft); border-radius: var(--r-xl); padding: var(--s-6) var(--s-5); }
.cta h2 { margin-top: 0; }
.cta p { color: var(--fg); }
.placeholder { background: var(--warn-bg); color: var(--fg); padding: 0 var(--s-1); border-radius: var(--r-sm); }
footer { max-width: var(--w-site); margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-7); color: var(--muted); font-size: var(--t-sm); }
footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.lang-switch { margin-left: auto; }

/* forest theme (21 Oct 2026): decoration only, drawn from our own svg files through masks, coloured by tokens, in light and dark.
   The hero keeps the page's only gradient; the hero's bottom padding (6rem) is taller than the tree line (5.5rem), and a browser test checks that no text reaches into it. */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero::after, footer::before { content: ""; display: block; background: var(--accent); opacity: 0.14; pointer-events: none;
  -webkit-mask: url(/forest.svg) repeat-x bottom / auto 100%; mask: url(/forest.svg) repeat-x bottom / auto 100%; }
.hero::after { position: absolute; left: 0; right: 0; bottom: 0; height: 5.5rem; z-index: 0; }
footer::before { height: 3rem; margin: 0 calc(var(--s-4) * -1) var(--s-4); }
.brand a::before, .pillar::before, .eyebrow::before { content: ""; display: inline-block; background: var(--accent);
  -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain; }
.brand a::before { --icon: url(/icon-tree.svg); width: 1.1em; height: 1.1em; margin-right: var(--s-2); vertical-align: -0.15em; }
.eyebrow::before { --icon: url(/icon-tree.svg); width: 0.9em; height: 0.9em; margin-right: var(--s-2); background: var(--wood); vertical-align: -0.1em; }
.pillars { margin-top: var(--s-5); }
.pillar { border-top: 3px solid var(--wood); }
.pillar::before { width: 2.25rem; height: 2.25rem; margin-bottom: var(--s-3); }
.p-tree::before { --icon: url(/icon-tree.svg); }
.p-list::before { --icon: url(/icon-list.svg); }
.p-goal::before { --icon: url(/icon-goal.svg); }
.intro { margin-top: var(--s-7); }
section.block + section.block { border-top: 1px solid var(--line); padding-top: var(--s-7); }
section.block > .pillars { max-width: none; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

/* product screenshots (D-127): real screens of the demo version in a browser-like frame */
.hero-grid { align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1fr 1.3fr; } }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; }
.shot-bar { height: 1.75rem; background: var(--panel); border-bottom: 1px solid var(--line); position: relative; }
.shot-bar::before { content: ""; position: absolute; left: var(--s-3); top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem; border-radius: 50%;
  background: var(--line); box-shadow: 1rem 0 0 var(--line), 2rem 0 0 var(--line); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: var(--s-2) var(--s-4); color: var(--muted); font-size: var(--t-sm); border-top: 1px solid var(--line); }
.step .shot { max-width: 34rem; }
/* tinted full-width bands, so the page is not one long strip of text */
.band { background: var(--panel); box-shadow: 0 0 0 100vmax var(--panel); clip-path: inset(0 -100vmax); padding-top: var(--s-7); padding-bottom: var(--s-7); }
/* the one link that goes to another page, not to a place on this page */
header.top nav li:last-child a { border: 1px solid var(--line); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); }
@media (min-width: 64rem) {
  section.block > .steps { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
  .step .shot, .step .mock { max-width: none; }
}


/* theme switch (21 Oct 2026): three radio buttons in the header, no script. Auto follows the visitor's system (tokens.css); Light and Dark override it
   for the page being viewed. The colours for Light and Dark live in tokens.css (the forced-theme blocks at its end; a test checks they equal the main ones). The choice is not remembered
   from page to page (that would need a script or a cookie, and the site uses neither). */
.theme { border: 0; margin: 0; padding: 0; display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.theme input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme label { padding: var(--s-1) var(--s-3); font-size: var(--t-sm); cursor: pointer; color: var(--muted); }
.theme input:checked + label { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.theme input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: -3px; }
.tools { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
html { scroll-behavior: smooth; }

/* the FAQ opens and closes smoothly where the browser can animate the height (others simply open at once) */
details.faq { interpolate-size: allow-keywords; }
details.faq::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete; }
details.faq[open]::details-content { block-size: auto; }
details.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; flex: none; font-size: var(--t-2xl); line-height: 1; color: var(--accent); transition: transform 0.35s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }

/* the pilot page */
.page-hero { padding-bottom: var(--s-9); }
.page-hero h1 { font-size: var(--t-4xl); }
.pilot-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: var(--s-6) 0; counter-reset: pilot; }
.pilot-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: var(--s-5); margin: 0; counter-increment: pilot; }
.pilot-card::before { content: counter(pilot); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: var(--s-3); }
.pilot-card h2 { font-size: var(--t-xl); margin-top: 0; }
/* last, so it wins over the transitions above */
@media (prefers-reduced-motion: reduce) { details.faq::details-content, details.faq summary::after { transition: none; } }
