/* gcontrol.ai – brand v0.2 tokens (app/demo/webapp/css/brand.css). Royal #0033CC, navy #0B2380; orange appears only
   in the logo graphic. Montserrat lives only inside the logo files; text uses the system sans-serif.
   No style attributes in the HTML (CSP style-src 'self'): chart sizes are SVG attributes. */
:root {
  --royal: #0033CC;          /* brand-royal, 8.95:1 on white */
  --royal-hover: #0029A3;
  --navy: #0B2380;           /* brand-navy */
  --ink: #1B2333;
  --muted: #4A5568;          /* 7.4:1 on white */
  --line: #DDE3EE;
  --tint: #F4F6FB;
  --tint-royal: #E8EDFF;     /* chip-sandbox-bg */
  --track: #E6EAF2;
  --white: #FFFFFF;
  --on-navy: #DCE4FF;        /* body text on the navy hero, 10:1 */
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 35, 128, .06), 0 8px 24px rgba(11, 35, 128, .08);
  --shadow-lg: 0 2px 6px rgba(11, 35, 128, .10), 0 24px 60px rgba(5, 16, 66, .35);
  --max: 76rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* Automation levels: royal/navy family plus neutrals; every count is also shown as text. */
  --lv-a: #0033CC; --lv-b: #5C80EE; --lv-c: #AFC1F6; --lv-d: #6B7489; --lv-s: #0B2380; --lv-n: #CBD2DE;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-underline-offset: 2px; }
a:hover { color: var(--royal-hover); }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.9vw + 1rem, 2.4rem); max-width: 48rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); font-size: .88em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
section.alt { background: var(--tint); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--royal); margin-bottom: .6rem; }
.kicker-light { color: #9FB4FF; }

/* Header: navy, continuous with the hero; the lockup sits on a white chip (no light variant of the logo exists). */
.site-header { position: sticky; top: 0; z-index: 10; background: #0b2380; /* fully opaque */ border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; background: var(--white); border-radius: 12px; padding: .4rem .75rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.brand img { width: 12.5rem; max-width: 46vw; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a.text { color: var(--on-navy); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a.text:hover { color: var(--white); }
@media (max-width: 60rem) { .site-nav a.text { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: .75rem 1.35rem; border-radius: 9999px; font-weight: 600; text-decoration: none; border: 2px solid var(--royal); line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-hover); border-color: var(--royal-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--royal); }
.btn-secondary:hover { background: var(--tint-royal); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--tint-royal); border-color: var(--tint-royal); color: var(--navy); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }
.btn[aria-disabled="true"] { cursor: default; }
.btn-light[aria-disabled="true"] { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: var(--on-navy); }
.btn-secondary[aria-disabled="true"] { background: var(--tint); border-color: var(--line); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #0A2A9E 55%, var(--royal) 100%); color: var(--on-navy); padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 7vw, 6.5rem); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -45% 40%; height: 90%; background: radial-gradient(closest-side, rgba(255, 255, 255, .10), transparent); pointer-events: none; }
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; position: relative; z-index: 1; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: .95fr 1.05fr; gap: 2.5rem; } }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--on-navy); font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; color: var(--white); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 9999px; padding: .3rem .8rem; margin-bottom: 1.25rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .95rem; }
.hero-points li { position: relative; padding-left: 1.4rem; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .4rem; border-left: 2px solid #9FB4FF; border-bottom: 2px solid #9FB4FF; transform: rotate(-45deg); }

/* Golden thread card */
.thread-card { margin: 0; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.25rem; box-shadow: var(--shadow-lg); }
.thread-card figcaption { font-weight: 700; color: var(--navy); margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.thread-tag { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); }
.thread { list-style: none; margin: 0; padding: 0; position: relative; }
.thread::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: 1.4rem; width: 2px; background: linear-gradient(var(--royal), var(--navy)); }
.node { position: relative; padding: 0 0 1rem 2.1rem; display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; line-height: 1.45; }
.node:last-child { padding-bottom: 0; }
.node::before { content: ""; position: absolute; left: 0; top: .25rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--white); border: 3px solid var(--royal); box-sizing: border-box; }
.node:last-child::before { background: var(--royal); }
.node strong { color: var(--navy); font-size: 1rem; }
.node > span:last-child { color: var(--muted); }
.node-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); margin: 0; }
.node code { background: var(--tint-royal); color: var(--royal); border-radius: 6px; padding: .05rem .4rem; }

/* Stats band */
.stats-band { background: var(--white); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat { display: flex; flex-direction: column; gap: .2rem; padding-left: 1rem; border-left: 3px solid var(--tint-royal); }
.stat-num { font-size: clamp(2rem, 2.4vw + 1rem, 2.9rem); font-weight: 800; line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-label { font-size: .92rem; color: var(--muted); }
.honesty { margin: 2rem 0 0; font-size: .9rem; color: var(--muted); }

/* Problem */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .split { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.problem-points > p { font-size: 1.12rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.ticks li { position: relative; padding: 1rem 1.1rem 1rem 3rem; background: var(--tint); border-radius: var(--radius); }
.ticks li::before { content: ""; position: absolute; left: 1.1rem; top: 1.35rem; width: .9rem; height: .9rem; border-radius: 50%; border: 3px solid var(--royal); box-sizing: border-box; }
.ticks strong { color: var(--navy); }

/* Cards */
.cards { display: grid; gap: 1.25rem; margin-top: 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cards-4, .cards-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.icon { width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 12px; background: var(--tint-royal); fill: none; stroke: var(--royal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; display: block; }

/* How it works */
.how-grid { display: grid; gap: 2rem; margin-top: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 64rem) { .how-grid { grid-template-columns: 1.7fr 1fr; } }
.how-visual { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: .9rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--royal); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.steps strong { display: block; color: var(--navy); }

/* Coverage: regions */
.regions { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .regions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .regions { grid-template-columns: repeat(3, 1fr); } }
.region { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--shadow); }
.region-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.region-head h4 { margin: 0; }
.region-count { font-weight: 800; font-size: 1.35rem; color: var(--royal); font-variant-numeric: tabular-nums; }
.region-bar { display: block; width: 100%; height: 6px; margin: .5rem 0 .9rem; }
.track { fill: var(--track); }
.fill { fill: var(--royal); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .84rem; padding: .2rem .65rem; border-radius: 9999px; background: var(--tint-royal); color: var(--navy); }
/* With site.js a chip becomes a button that opens the country's laws; the pill keeps its look. */
.chips li.has-btn { padding: 0; }
.chip-btn { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: .2rem .65rem; border-radius: 9999px; cursor: pointer; }
.chip-btn:hover { background: var(--royal); color: var(--white); }
.chip-btn:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }

/* Coverage: controls by process */
.chart-block { margin-top: 3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.hbars { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .65rem; }
.hbar { display: grid; grid-template-columns: minmax(9rem, 16rem) 1fr 2.5rem; gap: 1rem; align-items: center; }
.hbar-label { font-size: .95rem; }
.hbar-svg { width: 100%; height: 14px; display: block; }
.hbar-value { font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 36rem) {
  .hbar { grid-template-columns: 1fr 2.5rem; gap: .2rem .75rem; }
  .hbar-label { grid-column: 1 / -1; }
}

/* Automation by SAP version */
.versions { display: grid; gap: 1.25rem; margin-top: 2rem; }
.version { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.version h4 { margin-bottom: .6rem; }
.stack { display: block; width: 100%; height: 22px; border-radius: 6px; overflow: hidden; }
.stack-counts { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .9rem; color: var(--muted); }
.stack-counts strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .4rem; vertical-align: -.05rem; }
.lv-a { fill: var(--lv-a); background: var(--lv-a); }
.lv-b { fill: var(--lv-b); background: var(--lv-b); }
.lv-c { fill: var(--lv-c); background: var(--lv-c); }
.lv-d { fill: var(--lv-d); background: var(--lv-d); }
.lv-s { fill: var(--lv-s); background: var(--lv-s); }
.lv-n { fill: var(--lv-n); background: var(--lv-n); }
.stack rect + rect { stroke: var(--white); stroke-width: .25; }
.legend { margin-top: 1.5rem; background: var(--tint); border-radius: var(--radius); padding: 1rem 1.25rem; }
.legend summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.legend ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; color: var(--muted); }
.legend strong { color: var(--navy); }

/* Built for SAP BTP */
.btp-panel { display: grid; gap: 2rem; grid-template-columns: 1fr; background: linear-gradient(135deg, var(--navy), var(--royal)); color: var(--on-navy); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3.25rem); box-shadow: var(--shadow); }
@media (min-width: 56rem) { .btp-panel { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2.5rem; } }
.btp-panel h2 { color: var(--white); }
.btp-panel p:last-child { margin-bottom: 0; }
.btp-copy .btp-side { margin-top: 1.5rem; }
.btp-side { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 1.5rem; }
.btp-strong { color: var(--white); font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }

/* Example threads */
.examples { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 44rem) { .examples { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .examples { grid-template-columns: repeat(3, 1fr); } }
.example { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.example-topic { font-weight: 700; color: var(--white); background: var(--navy); align-self: flex-start; font-size: .82rem; border-radius: 9999px; padding: .25rem .8rem; margin-bottom: 1rem; }
.example h4 { font-size: 1rem; margin: .2rem 0 .5rem; }
.obligation { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--navy); background: var(--tint-royal); border-radius: 6px; padding: .15rem .5rem; margin: 0 0 .5rem; }
.param { font-size: .85rem; color: var(--ink); background: var(--tint); border-radius: 8px; padding: .5rem .7rem; margin: 0 0 .5rem; }
.param span { font-weight: 700; color: var(--royal); margin-right: .25rem; }
.example-arrow { color: var(--royal); font-size: 1.3rem; line-height: 1; margin: .4rem 0 .6rem; }
.example-ctl { margin-top: auto; border-top: 1px solid var(--line); padding-top: .8rem; }
.example-ctl ul { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .45rem; }
.example-ctl li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.example-ctl code { background: var(--tint-royal); color: var(--royal); border-radius: 6px; padding: .1rem .45rem; font-weight: 600; }
.example-ctl span { color: var(--navy); font-weight: 600; }

/* Contact */
.contact-panel { display: grid; gap: 2.5rem; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow); }
@media (min-width: 56rem) { .contact-panel { grid-template-columns: 1.2fr 1fr; } }
.about { background: var(--tint); border-radius: var(--radius); padding: 1.5rem; }
.about p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 2.5rem 0 3rem; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; }
.site-footer .tm { flex-basis: 100%; font-size: .82rem; opacity: .85; }

/* Privacy page */
.doc { padding: 3.5rem 0; }
.doc .wrap { max-width: 48rem; }
.doc h2 { margin-top: 2rem; font-size: 1.35rem; }

/* Screenshots in a slim browser frame, with 3D depth (pure CSS). Flat and stacked under 64rem. */
.browser { margin: 0; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid rgba(11, 35, 128, .12);
  box-shadow: 0 1px 2px rgba(5, 16, 66, .10), 0 8px 20px rgba(5, 16, 66, .14), 0 30px 60px rgba(5, 16, 66, .22); }
.browser-bar { display: flex; gap: .35rem; align-items: center; height: 1.6rem; padding: 0 .7rem; background: #EEF1F7; border-bottom: 1px solid var(--line); }
.browser-bar span { width: .5rem; height: .5rem; border-radius: 50%; background: #C5CCDA; }
.browser img { width: 100%; height: auto; }

.hero-stage { position: relative; }
.browser-hero { box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 18px 40px rgba(2, 8, 40, .35), 0 50px 90px rgba(2, 8, 40, .45); }
.hero-stage .thread-card { margin-top: 1.5rem; }
@media (min-width: 64rem) {
  .hero-stage { perspective: 1800px; padding: 0 0 10rem; }
  .browser-hero { transform-origin: 30% 50%; transform: rotateY(calc(-13deg * var(--tilt, 1))) rotateX(calc(6deg * var(--tilt, 1))) rotateZ(calc(1deg * var(--tilt, 1))); transition: transform .2s linear; width: 108%; }
  /* The floating card shows the four headlines; the full wording is in the card on narrow screens. */
  .hero-stage .thread-card { position: absolute; left: -2.5rem; bottom: 0; width: 20rem; margin: 0; z-index: 2; padding: 1.1rem 1.2rem 1rem;
    box-shadow: 0 2px 6px rgba(5, 16, 66, .18), 0 24px 50px rgba(2, 8, 40, .45), 0 60px 100px rgba(2, 8, 40, .35); }
  .hero-stage .thread-card figcaption { margin-bottom: .8rem; }
  .hero-stage .node { padding-bottom: .7rem; }
  .hero-stage .node > span:last-child:not(.node-kicker) { display: none; }
  .hero-stage .node strong { font-size: .95rem; }
}
@media (min-width: 64rem) and (max-width: 80rem) { .browser-hero { width: 102%; } .hero-stage .thread-card { left: -1.5rem; width: 18.5rem; } }

/* See it working: three screens in an overlapping fan; hover or focus straightens and lifts one. */
.screens-section { background: linear-gradient(180deg, var(--white) 0%, var(--tint-royal) 100%); overflow: hidden; }
.fan { display: grid; gap: 2rem; margin-top: 2.5rem; }
.shot { margin: 0; outline-offset: 6px; }
.shot figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); max-width: 26rem; }
/* Wide screens: the fan breaks out of .wrap (max 78rem). Middle 44 %, sides 31.5 %, overlapping 3.5 % of the fan each –
   at the sides' projected width (rotateY 24deg, scale .96: about 27.5 % of the fan) that is under 15 %, so each side
   screen stays more than 85 % visible. */
@media (min-width: 64rem) {
  .fan { display: flex; align-items: flex-start; width: min(78rem, calc(100vw - 2.5rem)); margin-left: 50%; translate: -50% 0;
    gap: 0; perspective: 2200px; padding: 1rem 0 0; }
  .shot { position: relative; z-index: 1; cursor: zoom-in; }
  .shot-left { flex: 0 0 31.5%; margin-right: -3.5%; }
  .shot-mid { flex: 0 0 44%; z-index: 2; }
  .shot-right { flex: 0 0 31.5%; margin-left: -3.5%; }
  .shot .browser { transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; transform-origin: 50% 50%; }
  .shot-left .browser { transform: rotateY(calc(24deg * var(--tilt, 1))) rotateX(calc(4deg * var(--tilt, 1))) scale(.96); transform-origin: 100% 50%; }
  .shot-mid .browser { transform: rotateX(calc(6deg * var(--tilt, 1))); }
  .shot-right .browser { transform: rotateY(calc(-24deg * var(--tilt, 1))) rotateX(calc(4deg * var(--tilt, 1))) scale(.96); transform-origin: 0 50%; }
  .shot:hover, .shot:focus-visible { z-index: 3; }
  .shot:hover .browser, .shot:focus-visible .browser { transform: translateY(-10px) scale(1.03);
    box-shadow: 0 2px 6px rgba(5, 16, 66, .16), 0 24px 48px rgba(5, 16, 66, .24), 0 60px 100px rgba(5, 16, 66, .28); }
  .shot figcaption { margin-top: .75rem; padding: 0 .75rem; }
  .shot-left figcaption { padding-right: 16%; }
  .shot-right figcaption { padding-left: 16%; }
  .shot-mid figcaption { text-align: center; padding: 0 1.5rem; max-width: none; }
}

/* The same dialog with a country's laws. */
.shot-dialog [hidden] { display: none; }
.shot-dialog.is-laws { background: var(--white); border-radius: 14px; padding: 1.5rem 1.75rem 1.25rem; width: min(40rem, 92vw); max-height: 86vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.law-panel h3 { margin: 0; color: var(--navy); font-size: 1.35rem; }
.law-panel h3:focus { outline: none; }
.law-panel-region { margin: .2rem 0 1rem; color: var(--muted); font-size: .92rem; }
.law-list { list-style: none; margin: 0; padding: 0; }
.law-list li { padding: .55rem 0; border-top: 1px solid var(--line, #e3e7f3); }
.law-name { display: block; color: var(--navy); font-weight: 600; font-size: .95rem; }
.law-full { display: block; color: var(--muted); font-size: .85rem; margin-top: .1rem; }
.law-panel-note { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); }
.shot-dialog.is-laws .shot-dialog-close { margin: 1rem 0 0 auto; }

/* Full-size screen in a native dialog (opened by site.js). */
.shot-dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.shot-dialog::backdrop { background: rgba(5, 12, 45, .78); }
.shot-dialog figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.shot-dialog img { width: auto; height: auto; max-width: 92vw; max-height: calc(92vh - 5.5rem); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); background: var(--white); }
.shot-dialog figcaption { color: var(--white); margin-top: .8rem; font-size: .95rem; text-align: center; max-width: 60rem; }
.shot-dialog-close { display: block; margin: .9rem auto 0; }

/* Header sign-in: "Sign in" only on small screens (aria-label keeps the full name). */
@media (max-width: 40rem) { .site-header .signin-soon { display: none; } .site-header .btn { white-space: nowrap; } }

.screens-note { margin: 1.75rem 0 0; font-size: .9rem; color: var(--muted); }

/* Built for SAP BTP: isometric stack (inline SVG). */
.btp-stack { width: 100%; max-width: 34rem; height: auto; justify-self: center; overflow: visible; }
.plate path { stroke: rgba(11, 35, 128, .35); stroke-width: 1; stroke-linejoin: round; }
.pl-core .top { fill: #E6EAF2; } .pl-core .side-l { fill: #B9C2D6; } .pl-core .side-r { fill: #9CA8C3; }
.pl-api .top { fill: #C9D6FF; stroke-dasharray: 4 3; } .pl-api .side-l { fill: #93A9F2; } .pl-api .side-r { fill: #7A94EC; }
.pl-app .top { fill: #4F7BFF; } .pl-app .side-l { fill: #2E57E0; } .pl-app .side-r { fill: #1F45C8; }
.pl-seal .top { fill: #FFFFFF; } .pl-seal .side-l { fill: #D5DEFA; } .pl-seal .side-r { fill: #B9C7F5; }
.pl-mark ellipse { fill: var(--tint-royal); stroke: var(--royal); stroke-width: 2; }
.pl-mark path { fill: none; stroke: var(--royal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plate .lead { stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; fill: none; }
.stk-label { font-family: var(--font); font-size: 17px; font-weight: 700; fill: var(--white); }
.stk-sub { font-family: var(--font); font-size: 13px; fill: #C9D3F5; }

@media (prefers-reduced-motion: reduce) {
  .shot .browser, .browser-hero { transition: none; }
}

/* Motion: only when site.js adds .motion (never under prefers-reduced-motion). */
.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .motion .reveal { opacity: 1; transform: none; transition: none; } }
