/* Notlio public site — v2 "study sheet": graph paper, ink outlines, marker highlights,
   spec-style labels. Brand hues follow the app (petrol #163E46, accent #EF7449). */
@font-face { font-family: Instrument; src: url("/assets/instrument-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Instrument; src: url("/assets/instrument-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: Instrument; src: url("/assets/instrument-600.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root, :root[data-theme="light"] {
  color-scheme: light;
  --paper: #f6f4ee;
  --paper-2: #eeebe2;
  --card: #ffffff;
  --ink: #13292e;
  --ink-2: #3b5258;
  --muted: #687a7e;
  --line: #dcd7cb;
  --line-strong: #c4bdae;
  --grid: rgba(19, 41, 46, 0.055);
  --petrol: #163e46;
  --on-petrol: #f6f4ee;
  --accent: #ef7449;
  --on-accent: #13292e;
  --marker: #ffcfae;
  --marker-2: #d7ece9;
  --success: #1e7a4c;
  --success-soft: #e3f1ea;
  --button: #13292e;
  --on-button: #f6f4ee;
  --hard: 3px 3px 0 var(--ink);
  --soft: 0 18px 40px rgba(19, 41, 46, 0.1);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Instrument, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--marker); color: var(--ink); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--button); color: var(--on-button); text-decoration: none; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .reading-progress { transform-origin: right center; }
.mono-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--ink-2); }
.label-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 3px var(--marker); }

/* Buttons: squared, outlined, with a hard ink offset */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .2s; }
.button .icon { width: 18px; height: 18px; }
[dir="rtl"] .button .icon, [dir="rtl"] .support-link .icon, [dir="rtl"] .download-arrow { transform: scaleX(-1); }
.button:hover { transform: translate(-2px, -2px); box-shadow: var(--hard); }
.button:active { transform: none; box-shadow: none; }
.button-ink { background: var(--button); color: var(--on-button); }
.button-accent { background: var(--accent); color: var(--on-accent); }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.icon-button:hover { border-color: var(--ink); background: var(--card); }

/* Header: full-width ruled bar */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1.5px solid var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; direction: ltr; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 27px; font-weight: 600; letter-spacing: -0.06em; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; overflow: hidden; }
.brand-mark img { width: 46px; height: 46px; max-width: none; }
.brand-period { color: var(--accent); }
#main-nav { display: flex; align-items: stretch; gap: 0; margin-inline: auto; align-self: stretch; }
#main-nav > a:not(.button) { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s; }
#main-nav > a:not(.button)::after { content: ""; position: absolute; inset-inline: 18px; bottom: -1.5px; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
#main-nav > a:not(.button):hover, #main-nav > a[aria-current="page"] { color: var(--ink); }
#main-nav > a:not(.button):hover::after, #main-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-index { font-family: var(--mono); font-size: 11px; color: var(--accent); }
#main-nav .nav-menu-download { display: none; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-download { margin-inline-start: 8px; min-height: 42px; }
.menu-toggle { display: none; }
.language-trigger { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 11px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .2s, background-color .2s; }
.language-trigger:hover, .language-trigger[aria-expanded="true"] { border-color: var(--ink); background: var(--card); }
.language-trigger .icon { width: 18px; height: 18px; }
.language-chevron { width: 14px !important; height: 14px !important; transition: transform .2s; }
.language-trigger[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
#language-code { display: none; }
.language-menu { position: fixed; z-index: 70; min-width: 220px; padding: 6px; overflow: auto; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink); animation: drop .16s var(--ease); }
.language-menu-heading { padding: 8px 12px 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.language-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: start; }
.language-option:hover, .language-option:focus-visible { background: var(--paper-2); outline-offset: -2px; }
.language-option-code { display: grid; place-items: center; width: 32px; height: 22px; border: 1.5px solid var(--ink); border-radius: 5px; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.language-option[aria-checked="true"] .language-option-code { background: var(--accent); }
.language-option-name { flex: 1; }
.language-check { width: 18px; height: 18px; opacity: 0; }
.language-option[aria-checked="true"] .language-check { opacity: 1; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 72px) 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; }
.hero h1 { margin-top: 20px; font-size: clamp(3.1rem, 8.4vw, 7.4rem); line-height: .92; letter-spacing: -0.06em; }
.marker { position: relative; display: inline; padding: 0 .06em; color: inherit; background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; animation: marker 1s .45s var(--ease) both; }
[dir="rtl"] .marker { background-position: 100% 0; }
@keyframes marker { from { background-size: 0% 100%; } }
.hero-side { padding-bottom: 10px; }
.hero-description { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 440px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store-button { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; text-align: start; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.store-button:first-child { background: var(--button); color: var(--on-button); }
.store-button:hover { transform: translate(-2px, -2px); box-shadow: var(--hard); }
.store-button:active { transform: none; box-shadow: none; }
.store-icon { width: 26px; height: 26px; }
.store-button > span:not(.soon) { display: flex; flex-direction: column; line-height: 1.15; }
.store-button small { font-size: 11.5px; opacity: .72; }
.store-button strong { font-size: 18px; letter-spacing: -0.02em; }
.soon { margin-inline-start: 6px; padding: 3px 8px; border: 1.5px solid currentColor; border-radius: 6px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Before/after comparison */
.compare { position: relative; height: clamp(440px, 46vw, 540px); margin-top: clamp(36px, 5vw, 56px); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: 6px 6px 0 var(--ink); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare figcaption { position: absolute; left: 50%; bottom: 12px; z-index: 4; width: max-content; max-width: calc(100% - 24px); padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink-2); font-family: var(--mono); font-size: 11px; text-align: center; transform: translateX(-50%); pointer-events: none; }
.compare-pane { position: absolute; inset: 0; display: grid; place-items: center; padding: 48px 24px 40px; }
.compare-before { background-color: #e9e5da; background-image: radial-gradient(rgba(19, 41, 46, .12) 1px, transparent 1px); background-size: 16px 16px; }
.compare-after { background: var(--petrol); clip-path: inset(0 0 0 var(--pos)); }
.compare-tag { position: absolute; top: 16px; z-index: 2; padding: 5px 10px; border: 1.5px solid currentColor; border-radius: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.compare-before .compare-tag { left: 16px; color: var(--ink); background: #f6f4ee; }
.compare-after .compare-tag { right: 16px; color: #f6f4ee; background: rgba(255, 255, 255, .06); }
.pdf-page, .note-sheet { width: min(560px, 100%); }
.pdf-page { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px; background: #fffdf8; color: #2b2b2b; border: 1px solid #d6d0c2; box-shadow: 0 16px 30px rgba(0, 0, 0, .12); transform: rotate(-1.2deg); }
.pdf-head { display: flex; justify-content: space-between; font-family: Georgia, "Times New Roman", serif; font-size: 11px; letter-spacing: .12em; color: #8a8478; }
.pdf-title { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.pdf-lines { display: flex; flex-direction: column; gap: 7px; }
.pdf-lines i { display: block; height: 5px; border-radius: 1px; background: #d9d4c8; }
.pdf-lines i:nth-child(3n) { width: 92%; } .pdf-lines i:nth-child(4n) { width: 97%; } .pdf-lines i:last-child { width: 58%; }
.pdf-split { display: grid; grid-template-columns: 1fr 150px; gap: 16px; align-items: start; }
.pdf-figure { padding: 6px; border: 1px solid #d9d4c8; }
.pdf-figure svg, .note-figure svg, .an-figure svg { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.pdf-figure svg { color: #6f6a60; }
.note-sheet { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px; background: #ffffff; color: #173238; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.note-caption { font-size: 12.5px; color: #5e7178; }
.note-title { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; }
.note-section { display: flex; flex-direction: column; gap: 6px; }
.note-section strong { font-size: 15px; }
.note-section p { font-size: 14px; color: #3e585f; }
.note-section ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.note-section li { padding: 3px 10px; border-radius: 8px; background: #e6eff0; color: #163e46; font-size: 13px; font-weight: 500; }
.note-figure { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #f4f7f7; border: 1px solid #e0e8e8; color: #163e46; }
.note-figure small { font-size: 12px; color: #5e7178; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 0; pointer-events: none; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--accent); }
.compare-handle span { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--accent); color: var(--ink); transform: translate(-50%, -50%); box-shadow: 3px 3px 0 var(--ink); }
.compare { cursor: ew-resize; }
.compare.dragging .compare-handle span { transform: translate(-50%, -50%) scale(1.08); }
/* Keyboard and screen-reader control; pointer dragging is handled on the figure. */
.compare-range { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; opacity: 0; }
.compare:has(.compare-range:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 4px; }
.compare:has(.compare-range:focus-visible) .compare-handle span { background: var(--card); }

/* Subject band */
/* Decorative loop; kept LTR so the half-width translation also loops in Arabic. */
.subject-band { direction: ltr; margin-top: clamp(56px, 8vw, 96px); overflow: hidden; border-block: 1.5px solid var(--ink); background: var(--accent); color: var(--ink); }
.subject-track { display: flex; width: max-content; animation: band 38s linear infinite; }
.subject-track span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px; font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.subject-track span::after { content: ""; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 3px; transform: rotate(45deg); margin-inline-start: 22px; }
@keyframes band { to { transform: translateX(-50%); } }

/* Sections */
.section-space { padding-block: clamp(80px, 11vw, 140px); }
.section-heading { max-width: 780px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-heading h2, .faq-intro h2, .download-main h2 { margin-top: 16px; font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1; letter-spacing: -0.05em; }
.section-heading p { margin-top: 18px; max-width: 560px; font-size: 1.08rem; color: var(--ink-2); }

/* How it works: sticky device + scrolling steps */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-visual { position: sticky; top: 96px; display: grid; justify-items: center; gap: 18px; padding: 36px 20px 26px; border: 1.5px solid var(--ink); border-radius: 22px; background-color: var(--petrol); background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 24px 24px; box-shadow: 6px 6px 0 var(--ink); }
.device { container-type: inline-size; width: 284px; aspect-ratio: 284 / 580; padding: 9px; border: 2px solid #0b1a1e; border-radius: 44px; background: #0b1a1e; }
.device-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 35px; background: #f4f7f7; color: #173238; font-size: 12px; font-size: 4.5cqi; }
.device .icon { width: 1.35em; height: 1.35em; stroke-width: 1.9; }
.app-status { display: flex; align-items: center; justify-content: space-between; padding: 1em 1.9em .4em; font-size: .92em; font-weight: 600; }
.app-island { width: 7.2em; height: 2em; border-radius: 1em; background: #0b1a1e; }
.app-signal { display: flex; align-items: flex-end; gap: .18em; height: .9em; }
.app-signal i { width: .28em; border-radius: 1px; background: currentColor; }
.app-signal i:nth-child(1) { height: 40%; } .app-signal i:nth-child(2) { height: 70%; } .app-signal i:nth-child(3) { height: 100%; }
.device-screens { position: relative; flex: 1; }
.device-screen-panel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .8em; padding: .5em 1.35em 1.3em; opacity: 0; transform: translateY(1.2em); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.device-screen-panel.active { opacity: 1; transform: none; }
.story-dots { display: flex; gap: 8px; }
.story-dots i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); transition: background-color .3s, width .3s var(--ease); }
.story-dots i.active { width: 44px; background: var(--accent); }
.app-nav-title { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 1.12em; }
.app-nav-title small { font-size: .78em; color: #5e7178; font-weight: 500; }
.app-steps { height: .36em; overflow: hidden; border-radius: 1em; background: #e0e8e8; }
.app-steps i { display: block; width: 100%; height: 100%; border-radius: inherit; background: #163e46; transform-origin: left center; transform: scaleX(var(--fill, 0)); }
[dir="rtl"] .app-steps i { transform-origin: right center; }
.app-card { background: #fff; border: 1px solid #e0e8e8; border-radius: 1.2em; }
.app-drop { display: flex; flex-direction: column; align-items: center; gap: .3em; padding: 1.4em 1em 1.2em; border: 1.5px dashed #b8c8ca; border-radius: 1.3em; background: #fff; text-align: center; }
.app-drop strong { font-size: 1em; }
.app-drop small, .app-file small, .app-field small, .app-figure small { font-size: .76em; color: #5e7178; }
.app-drop-icon { display: grid; place-items: center; width: 3.4em; height: 3.4em; margin-bottom: .3em; border-radius: 1.1em; background: #fdebe3; color: #9a3a16; }
.app-drop-icon .icon { width: 1.7em; height: 1.7em; }
.device-screen-panel.active .app-drop-icon { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-.35em); } }
.app-file { display: flex; align-items: center; gap: .75em; padding: .75em .85em; }
.app-file > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.app-file strong { font-size: .95em; }
.app-file-tile { display: grid; place-items: center; width: 2.7em; height: 2.7em; border-radius: .85em; background: #e6eff0; color: #163e46; }
.app-ok { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #1e7a4c; color: #fff; }
.app-ok .icon { width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.app-label { font-weight: 600; font-size: .95em; }
.app-chips { display: flex; gap: .5em; }
.app-chips span { padding: .55em 1em; border: 1px solid #cfdada; border-radius: 1em; background: #fff; font-size: .86em; font-weight: 500; }
.app-chips .selected { background: #163e46; border-color: #163e46; color: #fff; }
.app-primary { display: flex; align-items: center; justify-content: center; gap: .45em; min-height: 3.4em; margin-top: auto; border-radius: 1.05em; background: #163e46; color: #fff; font-weight: 600; font-size: .95em; }
.app-primary.accent { background: #ef7449; color: #173238; }
.app-field { display: flex; flex-direction: column; gap: .15em; padding: .7em .95em; border: 1px solid #cfdada; border-radius: 1.05em; background: #fff; }
.app-field strong { font-size: .95em; }
.app-options { padding: .15em 0; }
.app-option { display: flex; align-items: center; gap: .7em; padding: .72em .95em; font-size: .92em; }
.app-option + .app-option { border-top: 1px solid #e0e8e8; }
.app-radio { flex-shrink: 0; width: 1.25em; height: 1.25em; border: 1.6px solid #9aabb0; border-radius: 50%; }
.app-option.checked { font-weight: 600; }
.app-option.checked .app-radio { border-color: #163e46; box-shadow: inset 0 0 0 .28em #fff, inset 0 0 0 1em #163e46; }
.app-caption { font-size: .78em; color: #5e7178; }
.app-note-title { font-size: 1.5em; line-height: 1.15; letter-spacing: -0.03em; }
.app-ready { display: inline-flex; align-self: flex-start; align-items: center; gap: .35em; padding: .35em .75em; border-radius: 1em; background: #e3f1ea; color: #1e7a4c; font-size: .78em; font-weight: 600; }
.app-ready .icon { width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.app-note { display: flex; flex-direction: column; gap: .55em; padding: .95em; }
.app-note strong { font-size: .95em; }
.app-lines { display: flex; flex-direction: column; gap: .45em; }
.app-lines i { display: block; height: .5em; border-radius: 1em; background: #e8eeee; }
.app-lines i:nth-child(2) { width: 88%; } .app-lines i:nth-child(3) { width: 64%; }
.app-figure { display: flex; flex-direction: column; gap: .3em; padding: .6em; border: 1px solid #e0e8e8; border-radius: .9em; background: #f4f7f7; }
.app-chart { width: 100%; height: auto; fill: none; stroke: #163e46; stroke-width: 2.2; stroke-linecap: round; }
.app-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: .55em; margin-top: auto; }
.app-actions .app-primary { margin: 0; }
.app-secondary { display: flex; align-items: center; justify-content: center; gap: .4em; min-height: 3.4em; border: 1px solid #cfdada; border-radius: 1.05em; background: #fff; font-weight: 600; font-size: .95em; }
.story-steps { list-style: none; }
.story-step { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 62vh; padding-inline-start: 26px; border-inline-start: 2px solid var(--line); opacity: .38; transition: opacity .4s var(--ease), border-color .4s; }
.story-step.active { opacity: 1; border-color: var(--accent); }
.story-number { font-size: clamp(4rem, 8vw, 6.5rem); font-weight: 600; line-height: .9; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.story-step.active .story-number { color: var(--accent); -webkit-text-stroke-color: var(--ink); }
.story-step h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.1; }
.story-step p { max-width: 420px; font-size: 1.08rem; color: var(--ink-2); }
.spec-chip { align-self: flex-start; padding: 5px 10px; border: 1.5px dashed var(--ink-2); border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* Features: note anatomy */
.anatomy-section { border-top: 1.5px solid var(--ink); background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.anatomy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.anatomy-board { position: relative; padding: 46px clamp(18px, 4vw, 44px) 36px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--card); box-shadow: 6px 6px 0 var(--ink); }
.board-label { position: absolute; top: -14px; inset-inline-start: 22px; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--marker); color: var(--ink); font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.anatomy-note { display: flex; flex-direction: column; gap: 14px; color: #173238; }
.an-part { position: relative; padding: 12px 14px; border: 1.5px dashed transparent; border-radius: 12px; transition: border-color .25s, background-color .25s; }
.an-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumb-sep { color: #9aabb0; }
.an-heading { display: block; margin-bottom: 10px; font-size: 1.35rem; letter-spacing: -0.02em; }
.an-lines { display: flex; flex-direction: column; gap: 8px; }
.an-lines i { display: block; height: 8px; border-radius: 4px; background: #e8eeee; }
.an-lines i:nth-child(2) { width: 90%; } .an-lines i:nth-child(3) { width: 62%; }
.an-figure { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 14px; background: #f4f7f7; color: #ef7449; }
.an-figure small { font-size: 13px; color: #5e7178; }
.an-own { display: flex; align-items: center; gap: 10px; background: #fdebe3; color: #9a3a16; font-weight: 500; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-inline-start: -6px; background: currentColor; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.an-export { display: flex; }
.an-pdf { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #ef7449; color: #173238; font-weight: 600; }
.pin { position: absolute; top: -11px; inset-inline-end: -11px; display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--card); color: var(--ink); font-family: var(--mono); font-size: 11.5px; font-weight: 600; transition: background-color .25s, transform .25s var(--ease); }
.anatomy[data-active="1"] [data-area="1"], .anatomy[data-active="2"] [data-area="2"], .anatomy[data-active="3"] [data-area="3"], .anatomy[data-active="4"] [data-area="4"], .anatomy[data-active="5"] [data-area="5"] { border-color: var(--accent); }
.anatomy[data-active="1"] [data-area="1"] .pin, .anatomy[data-active="2"] [data-area="2"] .pin, .anatomy[data-active="3"] [data-area="3"] .pin, .anatomy[data-active="4"] [data-area="4"] .pin, .anatomy[data-active="5"] [data-area="5"] .pin { background: var(--accent); transform: scale(1.18); }
.anatomy-list { display: flex; flex-direction: column; list-style: none; border-top: 1.5px solid var(--ink); }
.anatomy-list li { display: flex; gap: 16px; padding: 18px 6px; border-bottom: 1.5px solid var(--line); cursor: default; outline-offset: -2px; transition: background-color .2s; }
.anatomy-list li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.anatomy-list strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.anatomy-list li > span:last-child > span { color: var(--ink-2); }
.list-pin { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 12px; font-weight: 600; transition: background-color .2s; }
.anatomy-list li.active { background: color-mix(in srgb, var(--marker) 45%, transparent); }
.anatomy-list li.active .list-pin { background: var(--accent); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 7vw, 80px); }
.trio-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--card); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.trio-card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.trio-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--marker-2); color: var(--ink); }
.trio-card h3 { font-size: 1.35rem; line-height: 1.15; }
.trio-card p { color: var(--ink-2); }
.trio-card small { font-size: 13px; color: var(--muted); }
.lang-row { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.lang-row b { padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 6px; font-family: var(--mono); font-size: 11.5px; }
.lang-row b:first-child { background: var(--accent); }
.trio-plus .trio-icon { background: var(--marker); }
.plus-tag { position: absolute; top: 22px; inset-inline-end: 22px; padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--accent); color: var(--ink); font-family: var(--mono); font-size: 11.5px; font-weight: 600; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro > p { margin-top: 22px; color: var(--ink-2); }
.support-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding-bottom: 3px; border-bottom: 2px solid var(--accent); font-weight: 600; text-decoration: none; }
.support-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.support-link:hover .icon { transform: translateX(4px); }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq-list details { border-bottom: 1.5px solid var(--ink); }
.faq-list summary { display: flex; align-items: center; gap: 18px; padding: 22px 4px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.faq-q { flex: 1; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }
.faq-toggle { position: relative; flex-shrink: 0; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 8px; transition: background-color .2s, transform .25s var(--ease); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
details[open] .faq-toggle { background: var(--accent); }
details[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list summary:hover .faq-q { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.faq-list details > div { padding: 0 4px 24px 46px; color: var(--ink-2); }
[dir="rtl"] .faq-list details > div { padding: 0 46px 24px 4px; }
details[open] > div { animation: drop .3s var(--ease); }

/* Download */
.download-section { padding-block: 0 clamp(80px, 10vw, 120px); }
.download-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); overflow: hidden; border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.download-main { padding: clamp(28px, 5vw, 60px); background: var(--petrol); color: #f6f4ee; }
.download-main .mono-label { color: #ffcfae; }
.download-main h2 span { color: #ffb08b; }
.download-main > p { margin-top: 16px; color: rgba(246, 244, 238, .78); font-size: 1.08rem; }
.download-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.download-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid #f6f4ee; border-radius: 14px; background: transparent; color: inherit; cursor: pointer; text-align: start; transition: background-color .2s, color .2s, transform .15s var(--ease), box-shadow .15s var(--ease); }
.download-card:hover { background: #f6f4ee; color: var(--petrol); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 #0b1a1e; }
.platform-icon { width: 30px; height: 30px; }
.download-card-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.download-card-text small { font-size: 12px; opacity: .75; }
.download-card-text strong { font-size: 1.2rem; letter-spacing: -0.02em; }
.download-card-text span { margin-top: 3px; font-family: var(--mono); font-size: 11px; opacity: .8; }
.download-arrow { width: 20px; height: 20px; }
.download-caption { display: block; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: rgba(246, 244, 238, .6); }
.download-art { position: relative; min-height: 340px; border-inline-start: 1.5px solid var(--ink); background-color: var(--accent); background-image: linear-gradient(rgba(19, 41, 46, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 41, 46, .12) 1px, transparent 1px); background-size: 24px 24px; overflow: hidden; }
.stack-page { position: absolute; left: 50%; top: 50%; width: 190px; height: 250px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fffdf8; transition: transform .5s var(--ease); }
.stack-page.p3 { transform: translate(-36%, -46%) rotate(12deg); background: #f2ece0; }
.stack-page.p2 { transform: translate(-58%, -52%) rotate(-7deg); background: #f8f4ea; }
.stack-page.p1 { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; transform: translate(-50%, -50%) rotate(2deg); box-shadow: 4px 4px 0 var(--ink); }
.download-split:hover .stack-page.p3 { transform: translate(-28%, -46%) rotate(16deg); }
.download-split:hover .stack-page.p2 { transform: translate(-68%, -54%) rotate(-11deg); }
.stack-page b { font-size: 22px; letter-spacing: -0.06em; color: #13292e; }
.stack-page i { display: block; height: 6px; border-radius: 3px; background: #e2dccf; }
.stack-page i:nth-of-type(2) { width: 82%; } .stack-page i:nth-of-type(3) { width: 60%; }
.stack-page em { align-self: flex-start; margin-top: auto; padding: 4px 9px; border: 1.5px solid #13292e; border-radius: 6px; background: #ef7449; color: #13292e; font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1.5px solid var(--ink); background: var(--paper); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px; }
.footer-brand p { margin-top: 12px; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { margin-bottom: 4px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-col a { width: fit-content; color: var(--ink-2); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px; transition: background-size .25s var(--ease), color .2s; }
[dir="rtl"] .footer-col a { background-position: 100% 100%; }
.footer-col a:hover { color: var(--ink); background-size: 100% 2px; }
.footer-col p { color: var(--muted); font-size: 14px; }
.social-links { display: flex; gap: 8px; margin-top: 4px; }
.social-link { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); background-image: none !important; transition: background-color .2s, transform .15s var(--ease), box-shadow .15s var(--ease); }
.social-link .icon { width: 19px; height: 19px; }
.social-link:hover { background-color: var(--accent); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px 28px; border-top: 1.5px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.back-top { color: var(--ink-2); text-decoration: none; }
.back-top:hover { color: var(--accent); }

/* Dialog */
dialog { width: min(440px, calc(100% - 32px)); padding: 36px 30px 24px; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 8px 8px 0 var(--ink); }
dialog[open] { animation: pop .28s var(--ease); }
dialog::backdrop { background: rgba(19, 41, 46, .45); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.dialog-close { position: absolute; top: 12px; inset-inline-end: 12px; }
.dialog-mark { width: 60px; height: 60px; margin: 0 auto 16px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); }
.dialog-mark img { width: 78px; height: 78px; }
dialog h2 { margin-top: 12px; font-size: 1.9rem; line-height: 1.05; }
dialog p { margin: 14px 0 22px; color: var(--ink-2); }
.dialog-dismiss { display: block; margin: 12px auto 0; padding: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
body.dialog-open { overflow: hidden; }

/* Entrance and reveal */
.enter { animation: enter .7s var(--ease) both; }
.hero-heading .enter:nth-child(2) { animation-delay: .06s; }
.hero-side.enter { animation-delay: .16s; }
.compare.enter { animation-delay: .24s; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } }
body.has-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
body.has-reveal .reveal.revealed { opacity: 1; transform: none; }
.trio .reveal:nth-child(2) { transition-delay: .07s; }
.trio .reveal:nth-child(3) { transition-delay: .14s; }

body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
body.motion-paused.has-reveal .reveal { opacity: 1; transform: none; }
body.motion-paused .subject-track { animation: none !important; }
body.motion-paused .caret { opacity: 1; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-download { display: none; }
  .hero-top { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .hero-description { max-width: 620px; }
  .anatomy { grid-template-columns: 1fr; }
  .download-split { grid-template-columns: 1fr; }
  .download-art { min-height: 260px; border-inline-start: 0; border-top: 1.5px solid var(--ink); }
}
@media (max-width: 900px) {
  .header-row { min-height: 62px; }
  .menu-toggle { display: inline-grid; }
  .brand { margin-inline-end: auto; }
  #main-nav { position: absolute; top: 100%; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; margin: 0; padding: 8px 24px 20px; background: var(--paper); border-bottom: 1.5px solid var(--ink); box-shadow: 0 18px 30px rgba(19, 41, 46, .12); }
  body.menu-open #main-nav { display: flex; animation: drop .2s var(--ease); }
  #main-nav > a:not(.button) { padding: 16px 0; border-bottom: 1.5px solid var(--line); font-size: 18px; }
  #main-nav > a:not(.button)::after { display: none; }
  #main-nav .nav-menu-download { display: inline-flex; margin-top: 16px; }
  #language-current { display: none; }
  #language-code { display: inline; font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-visual { top: 74px; z-index: 2; padding: 16px 12px 12px; border-radius: 18px; }
  .device { width: min(200px, 52vw); border-radius: 32px; padding: 6px; }
  .device-screen { border-radius: 26px; }
  .story-dots { display: none; }
  .story-step { min-height: 70vh; padding-top: 40px; }
  .trio { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .motion-toggle { display: none; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 4.2rem); }
  .store-row { flex-direction: column; align-items: stretch; }
  .store-button .soon { margin-inline-start: auto; }
  .compare { height: 470px; border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
  .compare-pane { padding: 52px 14px 40px; }
  .pdf-page { padding: 18px; gap: 10px; }
  .pdf-title { font-size: 18px; }
  .pdf-split { grid-template-columns: 1fr 90px; }
  .note-sheet { padding: 18px; gap: 10px; }
  .note-title { font-size: 20px; }
  .note-figure { grid-template-columns: 90px 1fr; }
  .compare-tag { font-size: 10px; padding: 4px 8px; }
  .compare-handle span { width: 42px; height: 42px; }
  .story-step { min-height: 64vh; padding-inline-start: 18px; }
  .anatomy-board { padding: 40px 14px 24px; box-shadow: 4px 4px 0 var(--ink); }
  .an-figure { grid-template-columns: 110px 1fr; }
  .download-options { grid-template-columns: 1fr; }
  .download-split { box-shadow: 4px 4px 0 var(--ink); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .language-trigger { display: none; }
}
@media (hover: none) {
  .button:hover, .store-button:hover, .trio-card:hover, .download-card:hover, .social-link:hover { transform: none; box-shadow: none; }
}

/* Store status, archive folders, two outputs and motto (content carried over from the earlier site). */
.availability { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.explore-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding-bottom: 3px; border-bottom: 2px solid var(--accent); font-weight: 600; color: var(--ink); text-decoration: none; }
.explore-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.explore-link:hover .icon { transform: translateX(4px); }
[dir="rtl"] .explore-link .icon { transform: scaleX(-1); }
[dir="rtl"] .explore-link:hover .icon { transform: scaleX(-1) translateX(4px); }
a.store-button, a.download-card { text-decoration: none; }

.semester { border-top: 1.5px solid var(--ink); }
.semester-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.semester-copy h2 { margin-top: 16px; font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1; letter-spacing: -0.05em; }
.semester-copy > p { margin-top: 22px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.semester-copy .semester-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); font-size: 15px; font-weight: 500; }
.semester-note .icon { width: 18px; height: 18px; color: var(--success); stroke-width: 2.4; }
.folder-board { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 46px clamp(16px, 3vw, 28px) 24px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--card); box-shadow: 6px 6px 0 var(--ink); }
.folder-card { position: relative; padding-top: 24px; transition: transform .25s var(--ease); }
.folder-card:hover { transform: translateY(-6px) rotate(-1deg); }
.folder-tab { position: absolute; top: 0; inset-inline-start: 0; padding: 4px 12px 8px; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #13292e; }
.folder-body { display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 18px 16px; border: 1.5px solid var(--ink); border-radius: 0 14px 14px 14px; color: #13292e; }
[dir="rtl"] .folder-body { border-radius: 14px 0 14px 14px; }
.folder-body strong { margin-top: auto; font-size: 1.15rem; line-height: 1.15; letter-spacing: -0.02em; }
.folder-body > span:last-child { font-size: 13.5px; color: #3b5258; }
.folder-body .icon, .folder-symbol { width: 28px; height: 28px; font-size: 26px; line-height: 1; }
.folder-orange .folder-tab, .folder-orange .folder-body { background: #ffcfae; }
.folder-sage .folder-tab, .folder-sage .folder-body { background: #d4ead8; }
.folder-ice .folder-tab, .folder-ice .folder-body { background: #d7ece9; }
.folder-caption { grid-column: 1 / -1; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }

.outputs { padding-top: 0; }
.output-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.output-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1.5px solid var(--ink); border-radius: 20px; background: var(--card); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.output-card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.output-index { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--accent); font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--on-accent); }
.output-card h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.output-card p { color: var(--ink-2); }
.output-sample { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding: 18px; border: 1.5px dashed var(--ink-2); border-radius: 14px; background: var(--paper); }
.output-sample strong { font-size: 1.25rem; line-height: 1.1; letter-spacing: -0.03em; }
.output-quote { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--marker); color: #13292e; font-weight: 500; }
.output-quote small { font-family: var(--mono); font-size: 11px; color: #3b5258; }
.output-sample-pdf { align-items: center; justify-content: flex-start; }
.output-sample-pdf b { display: grid; place-items: center; width: 58px; height: 72px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); font-family: var(--mono); font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
.output-sample-pdf span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-2); }
.outputs .explore-link { margin-top: 28px; }

.motto { padding-block: clamp(40px, 7vw, 72px); border-block: 1.5px solid var(--ink); background: var(--paper-2); }
.motto p { font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.035em; text-align: center; text-wrap: balance; }

@media (max-width: 900px) {
  .semester-grid, .output-pair { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .folder-board { grid-template-columns: 1fr; padding-top: 40px; box-shadow: 4px 4px 0 var(--ink); }
  .folder-body { min-height: 0; }
  .output-card { padding: 22px; }
}
@media (hover: none) {
  .folder-card:hover, .output-card:hover { transform: none; box-shadow: none; }
}
[dir="rtl"] .mono-label, [dir="rtl"] .compare-tag, [dir="rtl"] .spec-chip, [dir="rtl"] .board-label, [dir="rtl"] .folder-tab, [dir="rtl"] .folder-caption, [dir="rtl"] .availability, [dir="rtl"] .footer-col strong, [dir="rtl"] .download-card-text span, [dir="rtl"] .download-caption, [dir="rtl"] .soon, [dir="rtl"] .output-sample-pdf span, [dir="rtl"] .language-menu-heading { font-family: inherit; letter-spacing: 0; text-transform: none; }
