/* Hallmark · shape: a road of real exam signs, then an Italian and Bengali sheet, then the app on a stage · genre: editorial · theme: custom · job: try · idea: "The exam speaks only Italian; every Italian thing on this page, a sign or a sentence, arrives with its Bengali" · vibe: "Italian road at dusk, Bengali voice, calm"
 * paper: oklch(96.1% 0.006 138) light, oklch(21.8% 0.024 252) dark (the app's own) · accent: green oklch(47.3% 0.086 174) for the mark and VERO, amber oklch(79% 0.148 72) for every primary action in both modes · display: Noto Sans Bengali 600 · body: Noto Sans Bengali 500 · outlier: Outfit 600 for Italian only · hero: see hero-a.css / hero-b.css (two directions for the owner) · nav: edge-aligned, wordmark, mode switch and the store action · footer: colophon block · imagery: the official exam sign pictures, the real app screens, one Hairline figure · signature: an Italian name or sentence that turns into its Bengali
 * axes: light+dark/grotesk-sans/chromatic-amber · posture: Full palette (green mark, amber action, the scene in the hero) · modes: light+dark · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: H (two heroes to choose from), each built on the real signs, and the sections below now change paper and depth from one to the next */
/* Hallmark · waive 80 · div.hairline and the exam sign pictures, the official figures of the Patente B quiz · the owner asked for a Hairline figure, and the signs are the exam's own material, not drawings of ours */
/* note · Outfit is also a catalog theme's face: it is the app's own Latin brand face, used here only for Italian text */
/* note · dark mode moves the green to the app's periwinkle where the app does; the amber action stays the same in both modes, by the owner's choice */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Noto Sans Bengali"; src: url("./fonts/noto-bengali-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans Bengali"; src: url("./fonts/noto-bengali-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("./fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root { --container: 1200px; --nav-h: 64px; }
body { font-weight: 500; line-height: 1.6; font-size: 1.0625rem; }
h1, h2, h3 { font-weight: 600; letter-spacing: var(--tracking-display); color: var(--color-ink); }
h1 { font-size: clamp(2.5rem, 3.8vw + 1rem, 4.5rem); line-height: 1.16; max-width: none; }
h2 { font-size: clamp(1.875rem, 2.2vw + 1rem, 2.875rem); line-height: 1.24; max-width: 20ch; }
h3 { font-size: var(--text-title); line-height: 1.35; }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 36ch; }
.it { font-family: var(--font-outlier); font-weight: 600; }
.muted { color: var(--color-muted); }
small, figcaption { font-size: var(--text-sm); color: var(--color-muted); }
a { text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
.section { padding-block: var(--section-gap-s); }

/* ---- loader: only when the first paint waits ---- */
.loader { display: none; }
.js.loading .loader { display: grid; position: fixed; inset: 0; z-index: var(--z-modal); place-items: center; background: var(--color-paper); transition: opacity var(--dur-long) var(--ease-in); }
.js.loaded .loader { opacity: 0; pointer-events: none; }
.loader svg { width: 72px; height: 72px; }
.loader .tile { fill: var(--color-accent); }
.loader .p { fill: var(--color-accent-ink); }
.loader .tick { fill: none; stroke: var(--color-cta); stroke-width: 69; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: tick 900ms var(--ease-out) 120ms infinite; }
@keyframes tick { 0% { stroke-dashoffset: 420; } 55%, 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .loader .tick { animation: none; stroke-dashoffset: 0; } }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); }
.nav::before { content: ""; position: absolute; inset: 0; background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.nav.is-stuck::before { opacity: 1; }
.nav .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; font-family: var(--font-outlier); font-weight: 600; font-size: 1.25rem; color: var(--color-ink); border-radius: 8px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-actions { display: flex; align-items: center; gap: var(--space-xs); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-control); background: var(--tag-bg); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.icon-btn:hover { background: var(--color-paper-2); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .sun { display: none; }
[data-mode="dark"] .icon-btn .sun { display: block; }
[data-mode="dark"] .icon-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-mode]) .icon-btn .sun { display: block; } :root:not([data-mode]) .icon-btn .moon { display: none; } }

/* ---- the one primary button: amber, the same in both modes ---- */
.play { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 52px; padding: 0 var(--space-lg) 0 var(--space-md); border-radius: var(--radius-control); background: var(--color-cta); color: var(--color-cta-ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; white-space: nowrap; box-shadow: var(--shadow-cta); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.play svg { width: 24px; height: 24px; flex-shrink: 0; }
.play:hover { background: var(--color-cta-hover); }
.play:active { transform: scale(0.98); }
.play.small { min-height: 44px; padding: 0 var(--space-md) 0 var(--space-sm); font-size: 0.9375rem; background: var(--tag-bg); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule); }
.play.small:hover { background: var(--color-paper-2); }
.play.small svg { width: 20px; height: 20px; }

/* ---- the hero frame both directions share ---- */
.hero { position: relative; isolation: isolate; margin-top: calc(var(--nav-h) * -1); overflow: clip; }
.hero-copy { position: relative; z-index: 2; display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 span { display: block; }
.loop-btn { position: absolute; z-index: 3; right: var(--gutter); bottom: var(--space-lg); min-height: 36px; padding: 0 var(--space-sm); border-radius: 10px; border: var(--rule-hair) solid var(--tag-line); background: var(--tag-bg); color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.loop-btn:hover { background: var(--color-paper-2); }
html:not(.js) .loop-btn { display: none; }
@media (prefers-reduced-motion: reduce) { .loop-btn { display: none; } }
[data-loop]:not(.is-running) .drift, [data-loop]:not(.is-running) .dashes b { animation-play-state: paused !important; }
/* a sign's bilingual tag: the Italian name, and its Bengali arriving under it */
.tag { display: grid; gap: var(--space-3xs); padding: var(--space-xs) var(--space-sm); border-radius: 12px; background: var(--tag-bg); color: var(--color-ink); box-shadow: 0 0 0 1px var(--tag-line), var(--shadow-tag); white-space: nowrap; }
.tag .it { font-size: 0.875rem; color: var(--color-ink-2); line-height: 1.3; }
.tag .bn { font-size: 0.9375rem; font-weight: 600; color: var(--color-ink); line-height: 1.35; }
.js .tag .bn { animation: rise 520ms var(--ease-out) both; animation-delay: calc(700ms + var(--d, 0) * 220ms); }

/* ---- the try-it sheet: Italian on the left, Bengali on the right ---- */
.try { position: relative; z-index: 4; padding-top: var(--section-gap-s); padding-bottom: var(--section-gap-s); }
.try-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); }
.try-head h2 { font-size: var(--text-title); max-width: none; }
.sheet { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-3); color: var(--color-ink); box-shadow: var(--shadow-lift); }
.sheet-side { display: grid; gap: var(--space-lg); align-content: start; padding: var(--space-xl); }
.sheet-bn { background: var(--color-paper-2); border-left: var(--rule-hair) solid var(--color-rule); }
.side-label { font-size: var(--text-sm); color: var(--color-muted); }
.q-text { font-family: var(--font-outlier); font-weight: 600; font-size: clamp(1.625rem, 1.6vw + 1rem, 2.375rem); line-height: 1.35; color: var(--color-ink); margin: 0; }
.w { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-decoration: underline dotted var(--color-cta) 2px; text-underline-offset: 0.22em; border-radius: 4px; transition: background-color var(--dur-short) var(--ease-out); }
.w:hover { background: var(--color-mark-soft); }
.w[aria-pressed="true"] { background: var(--color-mark-soft); text-decoration-style: solid; }
.meaning { display: grid; gap: var(--space-2xs); }
.meaning .it { font-size: 1.125rem; color: var(--color-ink-2); }
.meaning p { font-size: clamp(1.375rem, 0.8vw + 1.1rem, 1.75rem); font-weight: 600; color: var(--color-ink); line-height: 1.4; }
.meaning p.hint { font-size: 1.0625rem; font-weight: 500; color: var(--color-muted); }
.meaning.is-new p, .meaning.is-new .it { animation: rise var(--dur-long) var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.answers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); }
.answer { min-height: 52px; border-radius: var(--radius-control); border: 2px solid currentColor; background: transparent; font-family: var(--font-outlier); font-weight: 600; font-size: 1.125rem; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.answer[data-a="VERO"] { color: var(--color-vero); }
.answer[data-a="FALSO"] { color: var(--color-wrong); }
.answer:hover:not(:disabled) { background: color-mix(in oklab, currentColor 8%, transparent); }
.answer:active:not(:disabled) { transform: scale(0.98); }
.answer:disabled { cursor: not-allowed; opacity: 0.55; color: var(--color-muted); background: var(--color-paper-2); }
.answer:disabled.is-right[data-a="FALSO"] { color: var(--color-wrong); }
.answer.is-right { opacity: 1; cursor: default; background: color-mix(in oklab, currentColor 12%, transparent); }
.result { display: grid; gap: var(--space-sm); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.r-head { font-size: 1.25rem; font-weight: 600; color: var(--color-ink); }
.r-head.right { color: var(--color-vero); }
.r-head.wrong { color: var(--color-wrong); }
.result dl { margin: 0; display: grid; gap: var(--space-sm); }
.result dt { font-size: var(--text-sm); color: var(--color-muted); }
.result dd { margin: 0; }
.js .result:not(.is-open) { display: none; }
.result.is-open { animation: rise var(--dur-long) var(--ease-out); }
.no-js-answer summary { cursor: pointer; color: var(--color-accent); font-weight: 600; }
.js .no-js-answer > summary { display: none; }
.js .no-js-answer { display: contents; }

/* ---- the question bank, with the Hairline tray on its own lit stage ---- */
.facts { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.facts h2 { margin-bottom: var(--space-xl); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts dl div { display: flex; flex-direction: column; padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.facts dt { order: 2; font-size: 1rem; color: var(--color-ink-2); }
.facts dd { margin: 0; font-size: clamp(2.25rem, 2.6vw + 1rem, 3.25rem); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stage { margin: 0; position: relative; display: grid; gap: var(--space-sm); padding: var(--space-sm) var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: radial-gradient(120% 90% at 50% 10%, var(--color-paper-3), var(--color-paper-2)); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule); }
.hairline { width: 112%; margin-inline: -6%; aspect-ratio: 5 / 4; color: var(--color-ink); --hairline-plate: transparent; --hairline-hi: var(--color-ink); --hairline-edge: color-mix(in oklab, var(--color-ink) 48%, var(--color-paper-2)); --hairline-mid: color-mix(in oklab, var(--color-ink) 28%, var(--color-paper-2)); --hairline-lo: color-mix(in oklab, var(--color-ink) 12%, var(--color-paper-2)); }
.hairline-read { min-height: 1.6em; text-align: center; }

/* ---- the app on a stage: four real screens in depth ---- */
.app { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--section-gap-s); }
.app-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.app-text { display: grid; gap: var(--space-lg); align-content: start; }
.picks { margin: 0; padding: 0; list-style: none; display: grid; }
.pick { border-top: var(--rule-hair) solid var(--color-rule); }
.pick:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.pick button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 52px; padding: var(--space-xs) 0; border: 0; background: none; color: var(--color-ink-2); font-size: 1.1875rem; font-weight: 600; text-align: start; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.pick button:hover, .pick button[aria-expanded="true"] { color: var(--color-ink); }
.pick button::after { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: 0.4; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.pick button[aria-expanded="true"]::after { transform: rotate(45deg); opacity: 1; }
.pick-body { padding-bottom: var(--space-md); color: var(--color-ink-2); max-width: 40ch; }
.js .pick:not(.is-on) .pick-body { display: none; }
.pick.is-on .pick-body { animation: rise var(--dur-long) var(--ease-out); }
.phones { position: relative; height: 660px; }
.phone { position: absolute; left: 50%; top: 50%; width: 300px; height: 620px; margin: 0; border-radius: 30px; overflow: hidden; background: var(--color-paper-3); box-shadow: var(--shadow-lift); outline: 1px solid var(--color-rule); outline-offset: -1px; transform: translate(-50%, -50%) translateX(var(--tx, 0px)) scale(var(--sc, 1)); opacity: var(--op, 1); z-index: var(--z, 1); transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out); }
.phone img { width: 100%; height: auto; }
.phone[data-pos="0"] { --tx: 0px; --sc: 1; --op: 1; --z: 4; }
.phone[data-pos="1"] { --tx: 200px; --sc: 0.8; --op: 0.7; --z: 3; }
.phone[data-pos="-1"] { --tx: -200px; --sc: 0.8; --op: 0.7; --z: 3; }
.phone[data-pos="2"] { --tx: 0px; --sc: 0.64; --op: 0; --z: 1; }
.only-dark { display: none; }
[data-mode="dark"] .only-dark { display: block; }
[data-mode="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-mode]) .only-dark { display: block; } :root:not([data-mode]) .only-light { display: none; } }

/* ---- the exam, on a band of its own colour ---- */
.exam { background: var(--color-band); color: var(--color-band-ink); padding-block: var(--section-gap-s); }
.exam h2 { color: var(--color-band-ink); max-width: none; }
.exam .lead { color: var(--color-band-muted); margin-top: var(--space-sm); }
.exam-figs { margin: var(--space-2xl) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.exam-figs li { display: grid; gap: var(--space-xs); align-content: start; padding: 0 var(--space-lg); border-left: var(--rule-hair) solid var(--color-band-rule); }
.exam-figs li:first-child { padding-left: 0; border-left: 0; }
.exam-figs strong { font-size: clamp(2.75rem, 3.6vw + 1rem, 4.5rem); line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; }
.exam-figs strong.it { font-size: clamp(1.75rem, 2vw + 1rem, 2.625rem); line-height: 1.3; }
.exam-figs span { color: var(--color-band-muted); max-width: 22ch; }

/* ---- the close: one panel, the app rising from its edge ---- */
.close { padding-block: var(--section-gap-s); }
.close-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl); align-items: end; padding: var(--space-2xl) var(--space-2xl) 0; border-radius: var(--radius-card); background: var(--color-paper-3); color: var(--color-ink); box-shadow: var(--shadow-lift); overflow: hidden; }
.close-text { display: grid; gap: var(--space-lg); justify-items: start; align-self: center; padding-bottom: var(--space-2xl); }
.close-phone { justify-self: center; width: min(100%, 300px); height: 380px; border-radius: 30px 30px 0 0; overflow: hidden; outline: 1px solid var(--color-rule); outline-offset: -1px; }
.close-phone img { width: 100%; height: auto; }

/* ---- footer ---- */
.footer { padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg) var(--space-xl); align-items: start; }
.footer nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.footer p { color: var(--color-muted); font-size: var(--text-sm); }
.footer a { color: var(--color-ink-2); }

/* ---- one entrance, from a visible default ---- */
.js .enter { animation: rise 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }

/* ---- under 60rem everything stacks in reading order ---- */
@media (max-width: 60rem) {
  :root { --nav-h: 60px; }
  .facts, .app-grid, .close-panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hairline { width: 100%; margin-inline: 0; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet-bn { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .sheet-side { padding: var(--space-lg); }
  .try { padding-top: var(--space-xl); }
  .phones { height: 520px; }
  .phone { width: 240px; height: 496px; }
  .phone[data-pos="1"] { --tx: 120px; --sc: 0.78; }
  .phone[data-pos="-1"] { --tx: -120px; --sc: 0.78; }
  .exam-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .exam-figs li:nth-child(3) { padding-left: 0; border-left: 0; }
  .close-panel { padding: var(--space-xl) var(--space-lg) 0; }
  .close-text { padding-bottom: 0; }
  .close-phone { height: 260px; }
  .footer .container { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .facts dl div { padding-right: var(--space-sm); }
  .try-head { flex-direction: column; gap: var(--space-2xs); }
  .phone[data-pos="1"] { --tx: 70px; --sc: 0.7; --op: 0.5; }
  .phone[data-pos="-1"] { --tx: -70px; --sc: 0.7; --op: 0.5; }
}
@media (min-width: 40.01rem) { .nav .play .label-short { display: none; } }
@media (max-width: 40rem) { .nav .play .label-long { display: none; } }
