/* Prototype of the llmify.ch landing page in the tile language of the hero
   (variant-c.html). The spec is DESIGN.md next to this file. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/SpaceGrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/SpaceGrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Manrope, the font of the Kontexus app (OFL), for the chat window in the hero */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/Manrope-var.woff2") format("woff2");
}

/* tokens: the :root of variant-c.html, plus the page's own sizes */
:root {
  --bg:#fbfbfa; --panel:#ffffff;
  --line:rgba(20,24,34,.13); --line-soft:rgba(20,24,34,.08);
  --text:#1c1e24; --muted:#5b6270; --faint:#9096a1;
  --accent:#3674d9; --accent-2:#6BA5F2;   /* light brand blue (style guide), no violet */
  --font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  --display:"Space Grotesk",var(--font);
  --radius:18px;
  --r-card:28px;                 /* large tiles: cards and prices (DESIGN.md) */
  --tile-line:rgba(20,24,34,.09);
  --tile-shadow:0 1px 2px rgba(20,24,34,.05), 0 8px 18px -12px rgba(20,24,34,.3);
  --card-shadow:0 1px 2px rgba(20,24,34,.04), 0 18px 40px -28px rgba(20,24,34,.28);
  --ring:0 0 0 2px var(--accent), 0 0 0 6px rgba(54,116,217,.13), 0 16px 30px -12px rgba(54,116,217,.5);
  --nav-h:62px;
  --wrap:1180px; --gutter:40px;
  --section:120px;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
/* in-page links (hero buttons, nav) scroll smoothly, as the hero links did in the iframe version */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.grad { background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons (as in variant-c) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; padding: 14px 24px; font: 600 1rem/1 var(--font); transition: background-color .2s ease, border-color .2s ease; }
.btn--primary { background: var(--accent); color: #fff; border: 1px solid transparent; box-shadow: 0 1px 2px rgba(20,24,34,.1), 0 8px 24px -12px rgba(54,116,217,.5); }
.btn--primary:hover { background: #2d66c6; }
.btn--ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: rgba(54,116,217,.45); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,251,250,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background-color .25s ease; }
.nav.is-scrolled { border-bottom-color: var(--line-soft); background: rgba(251,251,250,.95); }
/* over the hero the nav stays out of sight; it slides in once the hero has scrolled
   away (page.js sets .is-shown). Fixed, so it takes no space above the hero.
   Not visibility: hidden, so its links stay in the tab order: keyboard focus on one
   of them brings the nav in. :focus-visible rather than :focus-within, so a mouse
   click on the logo (which scrolls up to the hero) does not keep it there. */
.nav { position: fixed; left: 0; right: 0; transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background-color .25s ease; }
.nav.is-shown, .nav:has(:focus-visible) { transform: none; }
@media (prefers-reduced-motion: reduce) { .nav, .nav.is-shown { transition: none; } }
.nav__inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.nav__logo { display: flex; align-items: center; border-radius: 6px; }
.nav__logo img { height: 24px; width: auto; display: block; }
.nav__links { display: flex; gap: 28px; margin-inline: auto; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.nav__links a { transition: color .15s ease; border-radius: 4px; }
.nav__links a:hover { color: var(--text); }
.langsw { display: inline-flex; align-items: center; gap: 2px; }
.langsw a { font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--faint); padding: 4px 8px; border-radius: 8px; transition: color .15s ease, background-color .15s ease; }
.langsw a:hover { color: var(--text); }
.langsw a.is-active { color: var(--text); background: rgba(20,24,34,.06); }

/* ---------- Hero: hero.css (generated from variant-c.html) ---------- */

/* ---------- Sections ---------- */
.section { padding: var(--section) 0 0; }
/* only the last section (the FAQ) keeps space below it, above the Alps band;
   between sections the gap is one --section */
main > .section:last-child { padding-bottom: var(--section); }
.section__head { max-width: 640px; margin: 0 0 48px; }
.overline { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.section__lead { margin-top: 16px; font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 58ch; }

/* ---------- Tiles (DESIGN.md) ---------- */
.tile { --t:56px; display: block; flex: none; width: var(--t); height: var(--t); position: relative; border-radius: 22%;
  transform: perspective(520px) translate3d(0, var(--y, 0px), var(--z, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.tile.is-tracking { transition: transform .16s ease-out; }
.tile--s { --t:44px; }
.tile__face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--panel);
  border: 1px solid var(--tile-line); box-shadow: var(--tile-shadow); display: grid; place-items: center; transition: box-shadow .35s ease; }
.tile__face img { width: 58%; height: 58%; object-fit: contain; display: block; }
.tile--sq .tile__face { background: transparent; border: 0; box-shadow: 0 1px 2px rgba(20,24,34,.08), 0 8px 18px -12px rgba(20,24,34,.35); }
.tile--sq .tile__face img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tile--flag .tile__face { background: transparent; border: 0; }
.tile__face svg.flag { width: 100%; height: 100%; display: block; }
.tile--empty .tile__face { background: rgba(255,255,255,.4); border-color: rgba(20,24,34,.06); box-shadow: none; }
/* the ring sits on a layer the size of the tile, outside its edge */
.tile::before, .ptile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  box-shadow: var(--ring); opacity: 0; transition: opacity .5s ease; }
.tile:not(.tile--empty):hover { --y:-3px; --z:14px; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .tile:not(.tile--empty):hover .tile__face { box-shadow: 0 2px 4px rgba(20,24,34,.08), 0 22px 30px -14px rgba(20,24,34,.45); }
}
.tile:not(.tile--empty):hover::before { opacity: .45; }
.tile.is-active::before { opacity: 1; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tiles--s { gap: 8px; }

/* light sweep: only on active tiles, once when they come into view (page.js adds .is-swept) */
.gloss { position: absolute; top: -20%; bottom: -20%; left: 0; width: 60%; pointer-events: none; z-index: 2; display: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 40%, rgba(255,255,255,.5) 50%, rgba(255,255,255,.22) 60%, rgba(255,255,255,0) 100%);
  transform: translateX(-170%) skewX(-18deg); }
.is-active.is-swept .gloss { display: block; animation: gloss 1.6s cubic-bezier(.45,.05,.55,.95) .2s 1 both; }
@keyframes gloss { from { transform: translateX(-170%) skewX(-18deg); } to { transform: translateX(270%) skewX(-18deg); } }

/* ---------- «So arbeitet Kontexus»: three compact tile cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--tile-line); border-radius: var(--r-card);
  box-shadow: var(--card-shadow); padding: 28px 28px 30px; }
.card__vis { height: 116px; display: flex; align-items: center; margin-bottom: 22px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.card .card__note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .875rem; color: var(--faint); }

/* approval card, simplified (as .ask in variant-c) */
.ask { width: 100%; max-width: 300px; background: #fff; border: 1px solid #e5e5e5; border-radius: 18px; box-shadow: 0 8px 28px rgba(0,0,0,.07); overflow: hidden; font-size: 13px; }
.ask__head { display: flex; align-items: center; gap: 10px; padding: 11px 13px 10px; }
.ask__head .tile { --t:30px; }
.ask__head .tile__face { box-shadow: none; }
.ask__q { font-weight: 600; font-size: 13.5px; line-height: 1.3; color: #0d0d0d; }
.ask__h { font-size: 11.5px; color: #6e6e6e; margin-top: 1px; }
.ask__foot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 7px 9px; border-top: 1px solid #e5e5e5; }
.pb { display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.pb--ghost { color: #6e6e6e; }
.pb--dark { background: #0d0d0d; color: #fff; }

/* ---------- Preise: large tiles ---------- */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ptile { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--tile-line); border-radius: var(--r-card);
  box-shadow: var(--card-shadow); padding: 30px 26px 26px; overflow: visible;
  transform: perspective(1400px) translate3d(0, var(--y, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.ptile.is-tracking { transition: transform .16s ease-out, box-shadow .35s ease; }
.ptile:hover { --y:-3px; box-shadow: 0 2px 4px rgba(20,24,34,.06), 0 26px 44px -28px rgba(20,24,34,.4); }
.ptile:hover::before { opacity: .45; }
.ptile.is-active::before { opacity: 1; }
.ptile__clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.ptile h3 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.ptile__desc, .ptile__text { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.ptile__desc { min-height: 4.65em; }
.ptile__amount { margin-top: 26px; font-family: var(--display); font-weight: 700; font-size: 2.1rem; letter-spacing: -0.03em; line-height: 1.1; }
.ptile__amount span { display: block; margin-top: 6px; font-family: var(--font); font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.ptile__credits { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .9375rem; color: var(--muted); }
.ptile__credits b { color: var(--text); font-weight: 600; }
.ptile .btn { margin-top: auto; width: 100%; padding-inline: 14px; white-space: nowrap; position: relative; z-index: 2; }
.ptile__spacer { flex: 1; min-height: 26px; }
.ptile__badge { position: absolute; top: 18px; right: 18px; font-size: .75rem; font-weight: 600; color: var(--accent); background: rgba(54,116,217,.09); padding: 5px 10px; border-radius: 999px; }
.ptile--ent { background: linear-gradient(180deg, #fff, #f7f8fb); }
.pricing__note { margin-top: 28px; max-width: 62ch; font-size: .875rem; line-height: 1.6; color: var(--faint); }

/* ---------- Footer (content as in index.html) ---------- */
.footer { border-top: 1px solid var(--line-soft); background: rgba(20,24,34,.02); padding: 56px 0 24px; font-size: .9375rem; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr); gap: 32px 48px; align-items: start; padding-bottom: 36px; }
.footer__logo { height: 28px; width: auto; display: block; }
.footer__brand p { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.footer__eth { height: 56px; width: auto; margin-top: 24px; opacity: .8; display: block; }
.footer__col h4 { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer__col a { display: block; width: fit-content; color: var(--muted); margin-bottom: 10px; transition: color .15s ease; }
.footer__col a:hover { color: var(--text); }
.footer__col p { color: var(--muted); margin-bottom: 10px; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; border-top: 1px solid var(--line-soft); padding-top: 22px; font-size: .8125rem; color: var(--faint); }
.footer__legallinks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legallinks a { color: var(--faint); transition: color .15s ease; }
.footer__legallinks a:hover { color: var(--text); }

/* ---------- Rechtstexte (native dialog, as in css/styles.css) ---------- */
.legal { width: min(680px, calc(100vw - 32px)); max-height: min(80vh, 900px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--text); box-shadow: 0 24px 70px rgba(20,24,34,.18); overflow: hidden; }
.legal::backdrop { background: rgba(20,24,34,.45); }
/* No-JS fallback: the link's href="#impressum" targets the closed dialog and this
   shows it as a plain block at the end of the page. */
.legal:target:not([open]) { display: block; position: static; margin: 0 auto 60px; max-height: none; }
.legal:target:not([open]) .legal__body { max-height: none; }
.legal:target:not([open]) .legal__close { display: none; }
.legal__body { max-height: min(80vh, 900px); overflow-y: auto; padding: 40px 44px 44px; font-size: .9375rem; color: var(--muted); }
.legal__body h2 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-bottom: 6px; }
.legal__body h3 { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 30px 0 10px; }
.legal__body p { margin-bottom: 12px; }
.legal__body ul { margin: 0 0 12px 18px; padding: 0; }
.legal__body li { margin-bottom: 6px; }
.legal__body a { color: var(--accent); }
.legal__body a:hover { text-decoration: underline; }
.legal__meta { font-size: .8125rem; color: var(--faint); }
.legal__close { position: sticky; top: 0; height: 0; z-index: 2; text-align: right; margin: 0; }
.legal__close button { position: relative; top: 14px; right: 14px; width: 34px; height: 34px; font-size: 1.4rem; line-height: 1; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 50%; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.legal__close button:hover { color: var(--text); border-color: var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptile__desc { min-height: 0; }
}
@media (max-width: 900px) {
  :root { --gutter:28px; --section:96px; }
  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .card__vis { height: auto; min-height: 56px; }
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --gutter:16px; --section:80px; --nav-h:56px; }
  .nav__inner { gap: 16px; }
  .nav__logo img { height: 20px; }
  .nav__links { gap: 16px; font-size: .875rem; }
  .nav .langsw { display: none; }      /* the footer carries the language switch */
  .prices { grid-template-columns: 1fr; }
  .card { padding: 24px 22px 26px; }
  .ptile { padding: 26px 22px 22px; }
  .legal__body { padding: 32px 22px 34px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .nav__links { gap: 12px; }
}

/* ---------- Reduced motion: no tilt, no lift, no sweep ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .ptile { transition: none; transform: none !important; }
  .ptile:hover { box-shadow: var(--card-shadow); }
  .gloss, .is-active.is-swept .gloss { display: none; animation: none; }
  .tile::before, .ptile::before, .nav { transition: opacity .2s ease; }
}

/* ---------- Alps at the bottom of the page (the two silhouettes of css/styles.css:
   Eiger–Mönch–Jungfrau far, Matterhorn near), as a band above the footer ---------- */
.alps { position: relative; height: 210px; margin-top: -40px; pointer-events: none; overflow: hidden; }
.alps__far, .alps__near { position: absolute; left: 0; right: 0; bottom: -58px; height: 320px;
  background-repeat: repeat-x; background-size: 1440px 320px; background-position: 0 bottom; }
.alps__far { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%233674d9' stop-opacity='.09'/><stop offset='.9' stop-color='%233674d9' stop-opacity='0'/></linearGradient></defs><path fill='url(%23g)' d='M0 250C120 230 180 200 240 130C270 160 300 175 340 190C420 212 460 200 536 112C580 122 620 160 690 205C740 195 800 150 843 100C860 108 880 100 908 90C960 130 1030 185 1090 215C1180 232 1260 220 1330 235C1370 242 1410 246 1440 250L1440 320L0 320Z'/></svg>"); }
.alps__near { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%231c1e24' stop-opacity='.075'/><stop offset='.9' stop-color='%231c1e24' stop-opacity='0'/></linearGradient></defs><path fill='url(%23g)' d='M0 254C160 246 320 240 440 242C480 243 510 246 540 248L600 215L640 190L672 158L684 144L696 138L724 72L730 56L720 44L736 62L744 82L766 136L772 146L784 152L806 186C826 216 852 236 886 246C940 252 1000 250 1060 248C1180 246 1320 251 1440 254L1440 320L0 320Z'/></svg>"); }
@media (max-width: 760px) { .alps { height: 140px; } .alps__far, .alps__near { background-size: 960px 213px; height: 213px; bottom: -38px; } }

/* ---------- «So arbeitet Kontexus»: three square large tiles ----------
   Each carries a small wall of tiles on top (empty tiles plus a few logos, as in the
   hero) and a short text at the bottom. Square where the content fits; a narrow
   column lets it grow (aspect-ratio keeps min-height auto). */
.card--sq { aspect-ratio: 1 / 1; padding: 26px; justify-content: space-between; }
.card--sq .card__vis { position: relative; height: auto; margin: 0; display: block; }
.card--sq .card__txt { margin-top: 22px; }
.card--sq h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card--sq p { color: var(--muted); font-size: .975rem; line-height: 1.55; }
.miniwall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.miniwall .tile { --t: 100%; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.card--sq .tile--empty .tile__face { background: #f5f6f8; border-color: rgba(20,24,34,.06); }
/* the approval card floats over the second wall */
.card--sq .ask { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88%; max-width: none; }
.cards__note { margin-top: 18px; font-size: .875rem; color: var(--faint); }
@media (max-width: 900px) { .card--sq { aspect-ratio: auto; } .card--sq .card__txt { margin-top: 22px; } }

/* the large boxes are the tiles: tile-like corners (13 % of the side), and inside them
   the empty cells are only hinted at; the middle card has just the approval card */
.card--sq { border-radius: 13%; }
.card--sq .card__vis { aspect-ratio: 4 / 1.96; }
.card--sq .tile--empty .tile__face { background: #f8f9fa; border-color: transparent; }
@media (max-width: 900px) { .card--sq { border-radius: 40px; } }

/* ---------- FAQ (as on /npo/, in a large tile) ---------- */
.faq { padding: 6px 34px; }   /* full content width, like the cards and prices above */
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; margin: 0; }
.faq summary svg { flex: none; width: 18px; height: 18px; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { max-width: 62em; padding: 0 0 22px; margin-top: -6px; color: var(--muted); line-height: 1.6; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* the FAQ box has the tile look but is no tile to press: no lift, no ring */
.ptile.faq:hover { --y: 0px; box-shadow: var(--card-shadow); }
.ptile.faq:hover::before { opacity: 0; }
@media (max-width: 760px) { .faq { padding: 4px 20px; } }

/* ---------- The tile grid, faintly, here and there behind the sections ----------
   The same tile shape as the hero, at 80 px, almost invisible, shown only in soft
   patches (a radial mask per section, in a different place each time). */
#produkt, #preise, #faq { position: relative; isolation: isolate; }
#produkt::before, #preise::before, #faq::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* the same grid as the hero's wall: pitch, columns and rows come from hero.js
     (--wall-p, --wall-x, --wall-y); tile 80 % of the pitch, corners 22 % */
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><rect x='0.5' y='0.5' width='79' height='79' rx='17.6' fill='%23ffffff' fill-opacity='.4' stroke='%23141822' stroke-opacity='.06' vector-effect='non-scaling-stroke'/></svg>");
  background-size: var(--wall-p, 80px) var(--wall-p, 80px); background-position: var(--wall-x, 0px) var(--wall-y, 0px);
  /* only whole rows: start at the first row that begins inside the section (the row across
     the hero's edge is drawn by the hero) */
  top: var(--wall-y, 0px); background-position-y: 0;
}
#produkt::before { -webkit-mask-image: radial-gradient(ellipse 30% 45% at 6% 18%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 30% 45% at 6% 18%, #000 0%, transparent 100%); }
#preise::before { -webkit-mask-image: radial-gradient(ellipse 28% 40% at 96% 30%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 28% 40% at 96% 30%, #000 0%, transparent 100%); }
/* FAQ: only a small patch at its top right, so the grid is gone before the mountains */
#faq::before { -webkit-mask-image: radial-gradient(ellipse 22% 28% at 97% 8%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 22% 28% at 97% 8%, #000 0%, transparent 100%); }
@media (max-width: 760px) { #produkt::before, #preise::before, #faq::before { background-size: 56px 56px; } }

/* ---------- Über LLMify: three calm tiles, no hover (they are facts, not controls) ---------- */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; }
.about__tile { background: var(--panel); border: 1px solid var(--tile-line); border-radius: var(--r-card); box-shadow: var(--card-shadow);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.about__tile p { color: var(--muted); font-size: .975rem; line-height: 1.55; }
.about__tile a { color: var(--accent); }
.about__logo { height: 30px; width: auto; align-self: flex-start; }
.about__eth { height: 52px; width: auto; align-self: flex-start; margin-left: -12px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Nav: always there, the hero starts below it ----------
   The bar is sticky in the page flow with its light background and the LLMify logo top
   left; the hero fills the rest of the screen, so nothing lies over the tile wall. */
.nav { position: sticky; top: 0; transform: none; visibility: visible; }
/* desktop: the hero keeps its full screen height and simply sits below the bar.
   Phones: the hero fills the rest of the screen under the bar, so it still fits one screen
   (body … : more specific than hero.css, which loads after this file) */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  body #usecases .hero { height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); }
}
@media (max-width: 760px) {
  /* the nav takes some height: slightly tighter gaps in the phone hero */
  body #usecases .hero.is-stack .hero__inner { gap: clamp(8px, 2.2svh, 30px); }
}


/* desktop: the hero is a full screen tall but starts below the bar, so its middle sits half a
   bar lower than the middle of what is visible; lift text and window by that much */
@media (min-width: 761px) and (min-height: 501px) {
  body #usecases .hero__inner { padding-bottom: calc(64px + var(--nav-h)); }
}

/* product cards: hover notes. Elements with .hint carry data-hint-t / data-hint; page.js shows
   one note per card (pointer over, tap, or keyboard focus), above or below the element,
   kept inside the card's picture area */
#produkt .card__vis { position: relative; }
#produkt .hint { cursor: help; }
#produkt .hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#produkt .ask { overflow: visible; }
#produkt .ask__head { border-radius: 18px 18px 0 0; }
.hint__tip { position: absolute; z-index: 6; width: max-content; max-width: min(280px, 92%);
  padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(20,24,34,.1);
  box-shadow: 0 12px 28px -12px rgba(20,24,34,.35); font-size: .8125rem; line-height: 1.45; color: var(--muted);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.hint__tip.is-on { opacity: 1; transform: none; }
.hint__tip b { display: block; color: var(--ink, #1d1d1f); font-weight: 600; margin-bottom: 2px; }

/* product card 3: the leaf tile, white with a green leaf and «100 %» */
.leaf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: #fff; border: 1px solid rgba(20,24,34,.08); box-shadow: 0 1px 2px rgba(20,24,34,.06), 0 8px 18px -12px rgba(20,24,34,.35); }
.leaf svg { width: 46%; height: 46%; fill: #3d9a6a; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.leaf span { font-family: var(--display); font-size: clamp(11px, 3vw, 14px); font-weight: 700; color: #2f7d55; letter-spacing: -.01em; line-height: 1; }

/* three columns: the product cards are all the same size. Each is at least as tall as it is
   wide; if one needs more room for its text, the row grows and the other two stretch with it */
@media (min-width: 901px) {
  #produkt .cards { container-type: inline-size; }
  #produkt .card--sq { aspect-ratio: auto; min-height: calc((100cqw - 48px) / 3); }
}
