/* TOOLBAR AEM landing: Braun in the 1970s, after the "Less, but better" Braun
   site: lots of air, bold two-line headlines, small tracked labels, the product
   bleeding off the right edge of the hero. Colours: Adobe red #ff0000 and black
   over cool greys.
   LUZ (loaded from its CDN in the page head) gives the tokens, the colour mode
   (<luz-theme-mode>, which writes data-mode on <html>), the language switch and
   the copy button. Everything below is the landing's own look, and it follows
   LUZ's colour mode: light, dark and high contrast. */


:root {
  --paper: #eceef0;
  --paper-2: #e1e5e9;
  --ink: #000000;
  --ink-2: #3b4046;
  --ink-3: #596067;
  --line: rgb(0 0 0 / 12%);
  --accent: #ff0000;
  --on-accent: #000000;
  --navy: #1f1c31;
  --light-bg: linear-gradient(100deg, #c9d0d7 0%, #d8dee4 35%, #e2e7ed 60%, #e4e9ef 100%);
  --dark-bg: linear-gradient(115deg, #5d646c 0%, #3f454c 45%, #2a2e33 100%);
  --sans: "Akzidenz-Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 72rem;
  --gap: clamp(1.5rem, 3vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --mark-in: var(--paper);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode]) {
    --paper: #15171a;
    --paper-2: #1c1f23;
    --ink: #eef0f2;
    --ink-2: #c3c8ce;
    --ink-3: #9aa1a9;
    --line: rgb(238 240 242 / 14%);
    color-scheme: dark;
  }
}
:root[data-mode="dark"] {
    --paper: #15171a;
    --paper-2: #1c1f23;
    --ink: #eef0f2;
    --ink-2: #c3c8ce;
    --ink-3: #9aa1a9;
    --line: rgb(238 240 242 / 14%);
    color-scheme: dark;
}
:root[data-mode="high-contrast"] {
  --paper: #ffffff;
  --paper-2: #ffffff;
  --ink: #000000;
  --ink-2: #000000;
  --ink-3: #000000;
  --line: #000000;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
a { color: inherit; }
img { display: block; max-inline-size: 100%; height: auto; }
code { font-family: var(--mono); font-size: 0.85em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.defs { position: absolute; }
svg:not(.defs) { flex: none; }
.wrap { max-inline-size: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: fixed; left: 1rem; top: 1rem; z-index: 60; padding: 0.6rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Small tracked labels, as on the Braun site */
.label, .foot-links { font: 700 0.72rem/1.9 var(--sans); letter-spacing: 0.12em; }
.label { display: block; margin-bottom: 1.25rem; color: var(--ink-3); }
.fine { font-size: 0.7rem; line-height: 1.6; color: var(--ink-3); }
.tagline { font-size: 0.72rem; letter-spacing: 0.32em; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: 700 1.15rem/1 var(--sans); letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 2.9rem; padding: 0.7rem 1.4rem;
  border: 0; border-radius: 2px; background: var(--accent); color: var(--on-accent);
  font: 700 0.92rem/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgb(255 0 0 / 70%); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateY(2px); }
.btn--small { min-height: 2.25rem; padding: 0.5rem 1rem; font-size: 0.82rem; }
.link {
  display: inline-flex; align-items: center; gap: 0.45rem; font: 700 0.85rem/1.3 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 0.2rem; transition: background-size 0.35s var(--ease);
}
.link:hover { background-size: 100% 2px, 100% 1px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

/* 1. Header: sticky, gains a line and a blur once the page scrolls */
.top { position: sticky; top: 0; z-index: 40; background: transparent; border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s; }
.top.is-scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; gap: 2rem; min-height: 4rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.12em; }
.nav a { position: relative; padding-block: 0.4rem; color: var(--ink); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
/* Over the hero the header shares its grey */
.top { margin-bottom: -4rem; }
.top:not(.is-scrolled) { --paper: transparent; }
:root[data-mode="dark"] .top:not(.is-scrolled) { --ink: #000; --mark-in: #dfe4ea; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode]) .top:not(.is-scrolled) { --ink: #000; --mark-in: #dfe4ea; }
}

/* 2. Hero */
.hero { position: relative; overflow: clip; background: var(--light-bg); color: #000; padding-block: calc(4rem + clamp(3rem, 8vw, 6rem)) clamp(3rem, 8vw, 6rem); }
.hero-in { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: var(--gap); align-items: center; min-block-size: clamp(30rem, calc(100svh - 12rem), 40rem); }
.hero .label { color: #4f565d; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4.1rem); line-height: 0.98; letter-spacing: -0.045em; }
.hero-text { margin-top: 1.5rem; font-size: 0.9rem; line-height: 1.65; color: #30353b; }
.hero .tagline { margin-top: 1.25rem; }
/* The image runs past the wrap to the viewport edge and a bit beyond */
.hero-media { --bleed: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter) + 22vw); margin-right: calc(var(--bleed) * -1); }
.hero-img {
  inline-size: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

/* Hero entrance: copy rises, image glides in from the right */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes glide { from { opacity: 0; transform: translateX(48px); } }
.js .hero-copy > * { animation: rise 0.8s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.js .hero-img { animation: glide 1.1s 0.15s var(--ease) both; }

/* Scroll reveal, set up by main.js */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Sections */
.sec { padding-block: clamp(4.5rem, 10vw, 8rem); }
.sec--tint { background: var(--paper-2); }
.sec h2, .close h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.04em; }
.intro { max-inline-size: 38rem; color: var(--ink-2); }
.small { margin-top: 1.5rem; max-inline-size: 42rem; font-size: 0.85rem; color: var(--ink-3); }
h3 { font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.01em; }

/* 3. Concept */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 3rem; }
.steps li { padding-top: 1rem; border-top: 1px solid var(--ink); }
.steps .n { display: block; margin-bottom: 1.5rem; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.12em; color: var(--accent); }
.steps h3 { margin-bottom: 0.4rem; }
.steps p, .features p, .install-steps p { font-size: 0.9rem; color: var(--ink-2); }
/* The crop cuts the browser at the bottom: fade the edges into the page */
.wide-img {
  margin-top: clamp(3rem, 6vw, 5rem); inline-size: 100%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

/* 4. Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem var(--gap); margin-top: 3rem; }
.features li { position: relative; padding-top: 1rem; border-top: 1px solid var(--line); }
.features li::after { content: ""; position: absolute; left: 0; top: -1px; inline-size: 100%; block-size: 1px; background: var(--ink); transform: scaleX(0.25); transform-origin: left; transition: transform 0.5s var(--ease), background-color 0.3s; }
.features li:hover::after { transform: scaleX(1); background: var(--accent); }
.features li::before { content: ""; display: block; inline-size: 0.6rem; block-size: 0.6rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--ink); transition: background-color 0.3s; }
.features li:first-child::before, .features li:hover::before { background: var(--accent); }
.features h3 { margin-bottom: 0.4rem; }

/* 6. Install */
.install-in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--gap) clamp(2rem, 5vw, 4.5rem); align-items: start; }
.note { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--accent); font-size: 0.85rem; color: var(--ink-2); }
.install-steps { counter-reset: s; border-top: 1px solid var(--ink); }
.install-steps li { counter-increment: s; position: relative; padding: 1.4rem 0 1.5rem 3.5rem; border-bottom: 1px solid var(--line); }
.install-steps li::before { content: counter(s); position: absolute; left: 0; top: 1.2rem; display: grid; place-items: center; inline-size: 2.2rem; block-size: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 0.95rem/1 var(--sans); transition: transform 0.3s var(--ease); }
.install-steps li:hover::before { transform: scale(1.08); }
.install-steps h3 { margin-bottom: 0.35rem; }
.install-actions { margin-top: 0.9rem; }
.cmd { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding: 0.4rem 0.4rem 0.4rem 1rem; border-radius: 2px; background: #000; color: #eceef0; }
.cmd code { flex: 1; min-width: 0; font-size: 0.78rem; }
.copy { display: inline-grid; place-items: center; inline-size: 2.2rem; block-size: 2.2rem; border: 0; border-radius: 2px; background: transparent; color: inherit; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.copy:hover { background: #26292d; }
.copy.is-done { color: var(--accent); }
.install-update { grid-column: 1 / -1; font-size: 0.85rem; color: var(--ink-2); }

/* 7. Table */
.table-wrap { margin-top: 2.5rem; overflow-x: auto; }
table { inline-size: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
th, td { padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { border-bottom: 1px solid var(--ink); font: 700 0.68rem/1.3 var(--sans); letter-spacing: 0.12em; color: var(--ink-3); }

/* 8. Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); }
.perms { margin-top: 1.75rem; border-top: 1px solid var(--ink); }
.perms li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); }
.perms code { color: var(--ink); font-weight: 700; }

/* 9. FAQ */
.faq { max-inline-size: 48rem; }
.faq h2 { margin-bottom: 2.25rem; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; list-style: none; transition: color 0.2s; }
summary:hover { color: var(--ink-2); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; border: 1.5px solid var(--ink); transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease); }
details[open] summary::after { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
details[open] p { animation: rise 0.4s var(--ease); }
details p { padding-bottom: 1.25rem; max-inline-size: 42rem; font-size: 0.92rem; color: var(--ink-2); }
details a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* 10. Close */
.close { padding-block: clamp(5rem, 11vw, 9rem); background: var(--dark-bg); color: #fff; }
.close .label { color: #cdd2d7; }
.close h2 { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.8rem); line-height: 0.98; letter-spacing: -0.045em; }
.close-text { color: #cdd2d7; font-size: 0.9rem; }
.close .slide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

/* 11. Footer */
.foot { padding-block: 3rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.foot-body { max-inline-size: 46rem; }
.foot .fine { margin-top: 1rem; }

:root[data-mode="dark"] .wide-img { mix-blend-mode: normal; border-radius: 4px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode]) .wide-img { mix-blend-mode: normal; border-radius: 4px; }
}

@media (max-width: 1100px) {
  .install-in, .privacy { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .nav { gap: 1.1rem; }
  .nav a:nth-child(5), .nav a:nth-child(7) { display: none; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero { padding-block: 6rem 2.5rem; }
  .hero-in { grid-template-columns: minmax(0, 1fr); min-block-size: 0; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-media { --bleed: var(--gutter); margin-inline: calc(var(--gutter) * -1); }
  .actions .btn { flex: 1 1 100%; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .perms li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

/* ---- Additions: LUZ's pieces, and what the accessibility review asked for ---- */

:root { --luz-z-raised: 30; --luz-bar-h: 4rem; }
.u-sr-only { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
main:focus { outline: none; }
h1, h2, h3, summary, button, table { font-family: inherit; }
h1, h2, h3 { font-size: revert; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4.1rem); }
.sec h2, .close h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
.close h2 { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.8rem); }
h3 { font-size: 1.02rem; }
caption { text-align: start; }

/* Hero image: inside the column, smaller, with room to breathe on the right */
.hero-media { --bleed: 0px; margin: 0; padding-inline-end: clamp(1rem, 4vw, 3rem); }
.hero-img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
@media (min-width: 1001px) { .hero-in { column-gap: clamp(2.5rem, 5vw, 5rem); } }
/* Below 1000px two columns leave the image too small and too close to the text: stack them */
@media (max-width: 1000px) {
  .hero { padding-block: 6rem 3rem; }
  .hero-in { grid-template-columns: minmax(0, 1fr); min-block-size: 0; }
  .hero-media { margin: 0 auto; padding-inline-end: 0; max-inline-size: 40rem; }
}
@media (max-width: 820px) { .hero-media { --bleed: 0px; margin-inline: auto; padding-inline-end: 0; } }

/* Header: lang switch and download sit together at the end of the row */
.top-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav { margin-left: auto; }
luz-lang-switch { --luz-lang-switch-top: 4rem; }
.luz-lang-switch__button { color: var(--ink); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; }
.luz-lang-switch__button:hover, .luz-lang-switch__button:has(+ :popover-open) { background: rgb(128 128 128 / 18%); color: var(--ink); }
.luz-lang-switch__menu { font-family: var(--sans); }
@media (max-width: 820px) { .nav { margin-left: 0; } .top-in { gap: 0.75rem; } .top-actions { gap: 0.25rem; } }
.steps .n { color: var(--ink-2); }
.steps .n::after { content: ""; display: block; inline-size: 1.5rem; block-size: 2px; margin-block-start: 0.6rem; background: var(--accent); }

/* LUZ's copy button, as a small tracked text button inside the dark command box */
.cmd .copy { display: inline-flex; align-items: center; justify-content: center; min-block-size: 2.2rem; min-inline-size: 2.75rem; padding: 0 0.8rem; border: 0; border-radius: 2px; background: transparent; color: inherit; font: 700 0.68rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.cmd .copy:hover { background: #26292d; color: #fff; }
.cmd .copy.is-copied { color: #ff6b6b; border: 0; }
.cmd .copy:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* FAQ: LUZ's accordion gives the box; its colours come from the page's palette */
.luz-accordion { --luz-surface: var(--paper); --luz-divider: var(--line); }
summary { padding-inline: 0; padding-block: 0.7rem; }
/* LUZ's base styles must not leak into the FAQ */
summary { margin: 0; border-radius: 0; background: none; }
summary:hover { background: none; }
details[open] > summary { margin-block-end: 0; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

:root[data-mode="high-contrast"] .hero .label, :root[data-mode="high-contrast"] .hero .tagline, :root[data-mode="high-contrast"] .hero-text { color: #000; }
:root[data-mode="high-contrast"] .close-text, :root[data-mode="high-contrast"] .close .label { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
