/* RIVOPRINT site styles. Load after tokens.css.
   Sections: base · layout · header · buttons (+ press animation) · forms · cards · home · order · account · legal · footer · utilities */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
[lang="ar"] body { font-family: var(--font-arabic); }
main { flex: 1 0 auto; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--amber-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--on-amber); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { font-family: var(--font-arabic); letter-spacing: 0; }
h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 700; }
h3 { font-size: 22px; line-height: 28px; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 20px; }
.muted { color: var(--ink-muted); }
.label {
  font: 600 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink);
  display: inline-flex; align-items: center; gap: var(--space-2);
}
[lang="ar"] .label { letter-spacing: 0; font-family: var(--font-arabic); font-size: 13px; }
.label::before { content: ""; width: 18px; height: 6px; border-radius: var(--radius-pill); background: var(--amber-deep); }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Hide translated content until the language is applied (set by the inline head script). */
html.i18n-pending main, html.i18n-pending .site-header, html.i18n-pending .site-footer { visibility: hidden; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
@media (min-width: 1024px) { .container { padding-inline: var(--space-16); } }
.section { padding-block: var(--space-24); }
@media (max-width: 720px) { .section { padding-block: var(--space-16); } }
.section-head { display: grid; gap: var(--space-4); max-width: 720px; margin-bottom: var(--space-12); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.band { background: var(--graphite); color: var(--on-graphite); }
.band h2, .band h3 { color: var(--on-graphite); }
.band .muted, .band .lead { color: color-mix(in srgb, var(--on-graphite) 72%, transparent); }
.band .label { color: var(--amber); }
.sunken { background: var(--surface-sunken); }

/* Brand pattern: layer lines (8 px bars at 16 px pitch), used sparingly. */
.layer-lines { display: grid; gap: calc(var(--layer-pitch) - var(--layer)); }
.layer-lines span { height: var(--layer); border-radius: var(--radius-pill); background: var(--amber-deep); }
.layer-divider { display: flex; gap: 10px; align-items: center; justify-content: center; padding-block: var(--space-6); }
.layer-divider span { height: 6px; border-radius: var(--radius-pill); background: var(--line); }
.layer-divider span:nth-child(1) { width: 40px; } .layer-divider span:nth-child(2) { width: 96px; background: var(--amber-deep); } .layer-divider span:nth-child(3) { width: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.brand svg, .brand svg text { direction: ltr; unicode-bidi: normal; }
.brand svg { height: 40px; width: auto; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
[data-theme="dark"] .brand .logo-light { display: none; }
.brand--mark svg { height: 36px; }
.main-nav { display: flex; gap: var(--space-1); margin-inline: auto; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: var(--radius-pill);
  position: relative; transition: background-color .15s ease;
}
.main-nav a:hover { background: var(--surface-sunken); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 3px; border-radius: var(--radius-pill); background: var(--amber-deep);
}
.header-tools { display: flex; align-items: center; gap: var(--space-2); margin-inline-start: auto; }
.main-nav + .header-tools { margin-inline-start: 0; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); cursor: pointer; position: relative;
  transition: border-color .15s ease, transform .15s ease;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 9px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-deep); border: 2px solid var(--surface-raised); }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.lang-menu { position: relative; }
.lang-btn { width: auto; padding-inline: 12px; gap: 6px; display: inline-flex; font: 600 13px/1 var(--font-mono); }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 180px; padding: 6px; margin: 0; list-style: none;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 18px 40px rgba(0,0,0,.14);
  transform-origin: top; animation: drop .18s var(--ease-extrude);
}
.lang-list button {
  width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font: 500 15px/20px var(--font-sans); cursor: pointer; text-align: start;
}
.lang-list button span:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.lang-list button:hover, .lang-list button[aria-current="true"] { background: var(--surface-sunken); }
.lang-list button[aria-current="true"] span:first-child::before { content: "● "; color: var(--amber-deep); }
@keyframes drop { from { opacity: 0; transform: scaleY(.6) translateY(-6px); } }
.burger { display: none; }
.header-cta { display: inline-flex; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--surface); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2); overflow-y: auto;
  animation: sheet .25s var(--ease-extrude);
}
.mobile-menu a.m-link {
  font: 700 28px/1.2 var(--font-display); color: var(--ink); text-decoration: none; padding: 14px 4px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
[lang="ar"] .mobile-menu a.m-link { font-family: var(--font-arabic); }
.mobile-menu .rp-btn { margin-top: var(--space-6); }
@keyframes sheet { from { opacity: 0; transform: translateY(-12px); } }

@media (max-width: 1000px) {
  .main-nav { display: none; }
  .burger { display: inline-grid; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .site-header .header-cta { display: none; }
  .brand svg { height: 32px; }
  .site-header .container { gap: var(--space-3); padding-inline: var(--space-4); }
  .header-tools { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .lang-btn { padding-inline: 10px; }
}
@media (max-width: 380px) { .brand svg { height: 28px; } .lang-btn .i-globe { display: none; } }

.demo-banner {
  background: var(--amber-soft); color: var(--amber-ink); font: 500 13px/18px var(--font-sans); text-align: center; padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.rp-btn {
  --press: color-mix(in srgb, var(--on-amber) 22%, transparent);
  position: relative; overflow: hidden; isolation: isolate;
  font: 600 15px/20px var(--font-sans); min-height: 44px; padding: 0 var(--space-6);
  border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  text-decoration: none; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease-extrude), box-shadow .18s ease;
}
[lang="ar"] .rp-btn { font-family: var(--font-arabic); }
.rp-btn svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .rp-btn .flip-rtl { transform: scaleX(-1); }
.rp-btn:active { transform: translateY(1px) scale(.985); }
.rp-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rp-btn:disabled, .rp-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.rp-btn-lg { min-height: 56px; padding: 0 var(--space-8); font-size: 16px; }
.rp-btn-sm { min-height: 36px; padding: 0 var(--space-4); font-size: 14px; }
.rp-btn-block { width: 100%; }
.rp-btn-primary { background: var(--amber); color: var(--on-amber); }
.rp-btn-primary:hover { background: var(--amber-deep); box-shadow: 0 8px 24px -10px var(--amber-deep); }
[data-theme="dark"] .rp-btn-primary:hover { background: #FFC24D; }
.rp-btn-secondary { --press: color-mix(in srgb, var(--amber-deep) 28%, transparent); background: transparent; color: var(--ink); border-color: var(--line-strong); }
.rp-btn-secondary:hover { border-color: var(--ink); }
.band .rp-btn-secondary { color: var(--on-graphite); border-color: color-mix(in srgb, var(--on-graphite) 45%, transparent); }
.band .rp-btn-secondary:hover { border-color: var(--on-graphite); }
.rp-btn-ghost { --press: color-mix(in srgb, var(--amber-deep) 22%, transparent); background: transparent; color: var(--amber-ink); padding-inline: var(--space-3); }
.rp-btn-ghost:hover { background: var(--surface-sunken); }
.rp-btn-danger { --press: rgba(255,255,255,.25); background: var(--danger); color: #fff; }
[data-theme="dark"] .rp-btn-danger { color: var(--graphite); }
.rp-btn-danger:hover { filter: brightness(.92); }
.rp-btn > .btn-label, .rp-btn > svg { position: relative; z-index: 1; }

/* Press animation: the nozzle lays three layers across the button, back and forth, like a real print. */
.press-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: flex; flex-direction: column-reverse; justify-content: flex-start; padding: 5px 10px; gap: 3px; }
.press-fx i { display: block; height: 4px; border-radius: var(--radius-pill); background: var(--press); transform: scaleX(0); transform-origin: left; animation: lay .26s var(--ease-extrude) forwards; }
.press-fx i:nth-child(2) { transform-origin: right; animation-delay: .1s; }
.press-fx i:nth-child(3) { animation-delay: .2s; }
[dir="rtl"] .press-fx i { transform-origin: right; }
[dir="rtl"] .press-fx i:nth-child(2) { transform-origin: left; }
.press-fx b {
  position: absolute; top: -2px; width: 10px; height: 9px; inset-inline-start: 0; background: var(--press);
  clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%); animation: nozzle .46s linear forwards;
}
.press-fx.is-fading { transition: opacity .35s ease; opacity: 0; }
@keyframes lay { to { transform: scaleX(1); } }
@keyframes nozzle { 0% { inset-inline-start: 4%; } 33% { inset-inline-start: 92%; } 66% { inset-inline-start: 4%; } 100% { inset-inline-start: 92%; opacity: 0; } }

/* Loading state: filament spinner */
.rp-btn.is-loading { pointer-events: none; }
.rp-btn.is-loading .btn-label { opacity: .5; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges, chips ---------- */
.rp-badge { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/20px var(--font-mono); padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); white-space: nowrap; }
.rp-badge-amber { background: var(--amber-soft); color: var(--amber-ink); }
.rp-badge-success { color: var(--success); }
.rp-badge-danger { color: var(--danger); }
.chip-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink);
  font: 500 15px/20px inherit; font-family: inherit; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--amber-soft); border-color: var(--amber-deep); color: var(--ink); }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.chip .mono { font-size: 12px; color: var(--ink-muted); }
.chip .swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); }
.chip .tick { display: none; width: 16px; height: 16px; }
.chip:has(input:checked) .tick { display: block; color: var(--amber-ink); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field-label { font: 600 14px/20px var(--font-sans); color: var(--ink); }
[lang="ar"] .field > label, [lang="ar"] .field-label { font-family: var(--font-arabic); }
.field .hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--line-strong);
  background: var(--surface-raised); color: var(--ink); font: 400 16px/22px inherit; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; padding-inline-end: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .select { background-position: 20px 21px, 15px 21px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--amber-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 30%, transparent); }
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--ink-muted) 80%, transparent); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field .error { display: none; color: var(--danger); font-size: 13px; line-height: 18px; }
.field.has-error .error { display: flex; gap: 6px; align-items: center; }
.field.has-error .hint { display: none; }
.field .error svg { width: 16px; height: 16px; flex: none; }
.ic { width: 20px; height: 20px; flex: none; }
.input-group { display: flex; align-items: stretch; }
.input-group .prefix { display: grid; place-items: center; padding-inline: 14px; border: 1.5px solid var(--line-strong); border-inline-end: 0; border-start-start-radius: var(--radius-md); border-end-start-radius: var(--radius-md); background: var(--surface-sunken); font-family: var(--font-mono); font-size: 14px; }
.input-group .input { border-start-start-radius: 0; border-end-start-radius: 0; }
[dir="rtl"] .input[type="tel"], [dir="rtl"] .input[type="email"] { direction: ltr; text-align: right; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 52px; }
.pw-wrap .pw-toggle { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--ink-muted); cursor: pointer; display: grid; place-items: center; border-radius: var(--radius-pill); }
.pw-wrap .pw-toggle svg { width: 20px; height: 20px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.pw-meter i { height: 4px; border-radius: var(--radius-pill); background: var(--line); transition: background-color .2s ease; }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--amber-deep); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--amber-deep); }
.pw-meter[data-score="4"] i { background: var(--success); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 22px; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface-raised); cursor: pointer; display: grid; place-items: center; transition: background-color .15s ease, border-color .15s ease; }
.check input::after { content: ""; width: 10px; height: 6px; border-inline-start: 2.5px solid var(--on-amber); border-bottom: 2.5px solid var(--on-amber); transform: rotate(-45deg) translate(1px,-1px) scale(0); transition: transform .15s var(--ease-extrude); }
.check input:checked { background: var(--amber); border-color: var(--amber-deep); }
.check input:checked::after { transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); font-size: 15px; line-height: 22px; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert--error { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: var(--danger); }
.alert--ok { border-color: color-mix(in srgb, var(--success) 50%, var(--line)); color: var(--success); }
.alert--info { background: var(--amber-soft); border-color: transparent; color: var(--amber-ink); }

/* Segmented control */
.segmented { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--line); }
.segmented label { position: relative; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); display: inline-flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; font-weight: 500; font-size: 14px; line-height: 18px; color: var(--ink-muted); transition: background-color .15s ease, color .15s ease; }
.segmented label .mono { font-size: 11px; line-height: 14px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--surface-raised); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 -3px 0 var(--amber-deep); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

/* ---------- Cards ---------- */
.rp-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.card-grid { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.icon-tile { width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-ink); }
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-12) var(--space-24); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); }
.hero h1 .hl { color: var(--amber-ink); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; inset-inline: 2px; bottom: .02em; height: .12em; border-radius: var(--radius-pill); background: var(--amber); z-index: -1; transform-origin: left; animation: lay 1s .6s var(--ease-extrude) both; transform: scaleX(0); }
[dir="rtl"] .hero h1 .hl::after { transform-origin: right; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--ink-muted); font-size: 14px; }
.hero-proof span { display: inline-flex; gap: 8px; align-items: center; }
.hero-proof svg { width: 18px; height: 18px; color: var(--amber-ink); }

.printer-stage {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 105%, color-mix(in srgb, var(--amber) 16%, transparent), transparent 60%),
    var(--surface-raised);
}
.printer-stage::before { /* CAD grid */
  content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.printer-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.printer-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.printer-fallback svg { width: 62%; }
.hud { position: absolute; inset-inline: 16px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 2; }
.hud--top { top: 16px; }
.hud--bottom { bottom: 16px; align-items: flex-end; }
.hud .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); font: 500 12px/16px var(--font-mono); color: var(--ink); direction: ltr; }
.hud .tag .live { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-deep); animation: pulse 1.4s ease-in-out infinite; }
.hud .progress { width: 160px; height: 6px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.hud .progress i { display: block; height: 100%; width: 0; background: var(--amber-deep); border-radius: inherit; transition: width .2s linear; }
.hud-stack { display: grid; gap: 6px; justify-items: start; }
@keyframes pulse { 50% { opacity: .35; } }
.dim-line { position: absolute; top: 18%; bottom: 22%; inset-inline-start: 22px; width: 10px; border-inline-start: 1.5px dashed var(--line-strong); pointer-events: none; }
.dim-line::before, .dim-line::after { content: ""; position: absolute; inset-inline-start: -6px; width: 11px; height: 1.5px; background: var(--line-strong); }
.dim-line::before { top: 0; } .dim-line::after { bottom: 0; }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding-top: var(--space-8); padding-bottom: var(--space-16); }
  .printer-stage { aspect-ratio: 1 / .9; max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) { .hud .progress { width: 100px; } .hero-actions .rp-btn { flex: 1 1 100%; } }

/* Marquee of materials */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--surface-raised); }
.ticker-track { display: flex; gap: var(--space-12); width: max-content; padding-block: 18px; animation: ticker 40s linear infinite; }
.ticker-track span { font: 500 14px/20px var(--font-mono); color: var(--ink-muted); display: inline-flex; gap: var(--space-12); white-space: nowrap; direction: ltr; }
.ticker-track span b { color: var(--amber-ink); font-weight: 500; }
@keyframes ticker { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker-track { animation-direction: reverse; }

/* Two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.path-card { position: relative; display: grid; gap: var(--space-6); padding: var(--space-8); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-raised); overflow: hidden; transition: border-color .2s ease, transform .3s var(--ease-extrude); }
.path-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.path-card .art { height: 170px; border-radius: var(--radius-md); background: var(--surface-sunken); position: relative; overflow: hidden; display: grid; place-items: center; }
.path-card .art svg { height: 140px; width: auto; }
.path-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.path-card li { display: flex; gap: 10px; align-items: flex-start; }
.path-card li svg { width: 20px; height: 20px; color: var(--amber-ink); flex: none; margin-top: 2px; }
.path-card .foot { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: step; position: relative; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--on-graphite) 6%, transparent); border: 1px solid color-mix(in srgb, var(--on-graphite) 12%, transparent); }
.step .num { font: 500 13px/16px var(--font-mono); color: var(--amber); }
.step .bars { display: grid; gap: 5px; margin-block: 6px 4px; }
.step .bars i { display: block; height: 6px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--on-graphite) 16%, transparent); }
.step .bars i:nth-child(1) { width: 40%; } .step .bars i:nth-child(2) { width: 75%; } .step .bars i:nth-child(3) { width: 100%; }
.step.is-in .bars i { background: var(--amber); transform-origin: left; animation: lay .5s var(--ease-extrude) both; }
.step.is-in .bars i:nth-child(3) { animation-delay: .05s; } .step.is-in .bars i:nth-child(2) { animation-delay: .2s; } .step.is-in .bars i:nth-child(1) { animation-delay: .35s; }
[dir="rtl"] .step.is-in .bars i { transform-origin: right; }

/* Services */
.service { display: grid; gap: var(--space-4); align-content: start; transition: border-color .2s ease, transform .3s var(--ease-extrude); }
.service:hover { border-color: var(--line-strong); transform: translateY(-2px); }

/* Materials */
.materials { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 860px) { .materials { grid-template-columns: 1fr; } }
.mat-tabs { display: grid; gap: 8px; }
@media (max-width: 860px) { .mat-tabs { grid-auto-flow: column; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } }
.mat-tab { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); cursor: pointer; font: 600 17px/22px var(--font-display); text-align: start; transition: border-color .15s ease, background-color .15s ease; white-space: nowrap; }
.mat-tab .mono { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.mat-tab[aria-selected="true"] { border-color: var(--amber-deep); background: var(--amber-soft); }
.mat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); padding: var(--space-8); }
@media (max-width: 640px) { .mat-panel { grid-template-columns: 1fr; padding: var(--space-6); } }
.mat-panel h3 { font-size: 32px; line-height: 38px; font-weight: 700; }
.mat-props { display: grid; gap: 14px; }
.mat-prop { display: grid; gap: 6px; }
.mat-prop .row { display: flex; justify-content: space-between; font-size: 14px; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.meter i { height: 8px; border-radius: var(--radius-pill); background: var(--line); }
.meter i.on { background: var(--amber-deep); transform-origin: left; animation: lay .4s var(--ease-extrude) both; }
.meter i.on:nth-child(2) { animation-delay: .06s; } .meter i.on:nth-child(3) { animation-delay: .12s; } .meter i.on:nth-child(4) { animation-delay: .18s; } .meter i.on:nth-child(5) { animation-delay: .24s; }
.mat-uses { display: flex; flex-wrap: wrap; gap: 6px; }

/* Capabilities strip */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); overflow: hidden; }
.specs > div { padding: var(--space-6); display: grid; gap: 6px; border-inline-end: 1px solid var(--line); }
.specs > div:last-child { border-inline-end: 0; }
.specs .v { font: 500 20px/28px var(--font-mono); color: var(--ink); direction: ltr; text-align: start; }
[dir="rtl"] .specs .v { text-align: right; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr 1fr; } .specs > div:nth-child(2) { border-inline-end: 0; } .specs > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* FAQ */
.faq { display: grid; gap: var(--space-3); max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font: 600 17px/24px var(--font-sans); }
[lang="ar"] .faq summary { font-family: var(--font-arabic); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-sunken); position: relative; transition: transform .25s var(--ease-extrude), background-color .2s ease; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--ink); }
.faq summary .pm::after { transform: rotate(90deg); transition: transform .25s var(--ease-extrude); }
.faq details[open] .pm { background: var(--amber); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: var(--on-amber); }
.faq .answer { padding: 0 20px 20px; color: var(--ink-muted); }

/* CTA band */
.cta-band .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-12); align-items: center; }
@media (max-width: 860px) { .cta-band .container { grid-template-columns: 1fr; } }
.cta-band .layer-art { display: grid; gap: 8px; }
.cta-band .layer-art i { height: 14px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--on-graphite) 14%, transparent); }
.cta-band .layer-art i:nth-child(odd) { margin-inline-end: 12%; }
.cta-band .layer-art.is-in i { background: var(--amber); transform-origin: left; animation: lay .45s var(--ease-extrude) both; }
[dir="rtl"] .cta-band .layer-art.is-in i { transform-origin: right; }

/* ---------- Reveal on scroll: the block is "printed" from the bottom up in layers ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; animation: print-in .9s steps(9, end) both; transition: opacity .3s ease, transform .9s var(--ease-extrude); }
@keyframes print-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.reveal.is-in.d1 { transition-delay: .08s; animation-delay: .08s; } .reveal.is-in.d2 { transition-delay: .16s; animation-delay: .16s; } .reveal.is-in.d3 { transition-delay: .24s; animation-delay: .24s; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: var(--space-12) var(--space-8); }
.page-head .container { display: grid; gap: var(--space-3); }
.crumbs { font-size: 14px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--ink-muted); }

/* ---------- Order wizard ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-8); align-items: start; padding-bottom: var(--space-24); }
@media (max-width: 1000px) { .order-layout { grid-template-columns: 1fr; } }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-bottom: var(--space-8); padding: 0; list-style: none; }
.stepper li { display: grid; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.stepper li .bar { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.stepper li .bar i { display: block; height: 100%; width: 0; background: var(--amber-deep); border-radius: inherit; transition: width .6s var(--ease-extrude); }
.stepper li.is-done .bar i, .stepper li.is-current .bar i { width: 100%; }
.stepper li.is-current .bar i { width: 50%; }
.stepper li.is-current { color: var(--ink); font-weight: 600; }
.stepper li .n { font-family: var(--font-mono); font-size: 12px; }
.stepper button { all: unset; cursor: pointer; display: grid; gap: 8px; }
.stepper button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 4px; }
.stepper button[disabled] { cursor: default; }
@media (max-width: 560px) { .stepper .t { display: none; } .stepper li.is-current .t { display: block; position: absolute; } .stepper { margin-bottom: var(--space-12); position: relative; } .stepper li { position: relative; } .stepper li.is-current .t { top: 34px; inset-inline-start: 0; white-space: nowrap; } }

.wizard-panel { display: grid; gap: var(--space-8); animation: panel-in .45s var(--ease-extrude); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); clip-path: inset(30% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.panel-head { display: grid; gap: 8px; }
.panel-head h2 { font-size: clamp(26px, 3vw, 34px); }
.block { display: grid; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.block > h3 { font-size: 18px; line-height: 24px; display: flex; align-items: center; gap: 10px; }
.block > h3 .n { font: 500 12px/1 var(--font-mono); color: var(--amber-ink); background: var(--amber-soft); padding: 5px 7px; border-radius: var(--radius-sm); }
.wizard-nav { display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; flex-wrap: wrap; padding-top: var(--space-2); }
.wizard-nav .spacer { flex: 1; }
.autosave { font-size: 13px; color: var(--ink-muted); display: inline-flex; gap: 6px; align-items: center; }
.autosave svg { width: 14px; height: 14px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 720px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  position: relative; display: grid; gap: var(--space-4); align-content: start; padding: var(--space-6); cursor: pointer;
  border-radius: var(--radius-lg); border: 2px solid var(--line); background: var(--surface-raised); transition: border-color .2s ease, transform .3s var(--ease-extrude), background-color .2s ease;
}
.choice:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--amber-deep); background: color-mix(in srgb, var(--amber-soft) 45%, var(--surface-raised)); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.choice .art { height: 150px; border-radius: var(--radius-md); background: var(--surface-sunken); display: grid; place-items: center; overflow: hidden; }
.choice .art svg { height: 124px; width: auto; }
.choice h3 { font-size: 22px; }
.choice ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-muted); }
.choice li { display: flex; gap: 8px; align-items: flex-start; }
.choice li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--amber-ink); }
.choice .check-dot { position: absolute; top: 18px; inset-inline-end: 18px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface-raised); display: grid; place-items: center; transition: all .2s var(--ease-extrude); }
.choice .check-dot svg { width: 16px; height: 16px; color: var(--on-amber); transform: scale(0); transition: transform .25s var(--ease-extrude); }
.choice:has(input:checked) .check-dot { background: var(--amber); border-color: var(--amber-deep); }
.choice:has(input:checked) .check-dot svg { transform: scale(1); }

/* Dropzone */
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding: var(--space-12) var(--space-6);
  border-radius: var(--radius-lg); border: 2px dashed var(--line-strong); background: var(--surface-sunken); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--amber-deep); background: color-mix(in srgb, var(--amber-soft) 50%, var(--surface-sunken)); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-raised); border: 1px solid var(--line); color: var(--amber-ink); transition: transform .3s var(--ease-extrude); }
.dropzone.is-over .dz-icon { transform: translateY(-6px) scale(1.06); }
.dropzone .dz-icon svg { width: 28px; height: 28px; }
.dropzone strong { font: 600 18px/24px var(--font-sans); }
[lang="ar"] .dropzone strong { font-family: var(--font-arabic); }
.dropzone .mono { font-size: 12px; color: var(--ink-muted); direction: ltr; }
.file-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.file-item { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: var(--space-4); align-items: center; padding: 10px; padding-inline-end: 14px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); animation: panel-in .35s var(--ease-extrude); }
.file-item .thumb { width: 76px; height: 76px; border-radius: 10px; background: var(--surface-sunken); display: grid; place-items: center; overflow: hidden; border: 0; padding: 0; cursor: default; color: var(--ink-muted); position: relative; }
.file-item .thumb.can-view { cursor: zoom-in; }
.file-item .thumb.can-view::after { content: "3D"; position: absolute; bottom: 4px; inset-inline-end: 4px; font: 500 10px/14px var(--font-mono); padding: 0 4px; border-radius: 4px; background: var(--amber); color: var(--on-amber); }
.file-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item .thumb svg { width: 28px; height: 28px; }
.file-item .meta { display: grid; gap: 4px; min-width: 0; }
.file-item .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
[dir="rtl"] .file-item .name { text-align: right; }
.file-item .spec { font: 500 12px/18px var(--font-mono); color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; direction: ltr; justify-content: flex-start; }
[dir="rtl"] .file-item .spec { justify-content: flex-end; }
.file-item .spec .warn { color: var(--danger); }
.file-item .actions { display: flex; gap: 8px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); height: 40px; }
.qty button { width: 36px; height: 100%; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 18px; border-radius: var(--radius-pill); }
.qty button:hover { background: var(--surface-sunken); }
.qty input { width: 40px; border: 0; background: none; text-align: center; font: 500 14px/1 var(--font-mono); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.remove-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--ink-muted); cursor: pointer; display: grid; place-items: center; }
.remove-btn:hover { background: var(--surface-sunken); color: var(--danger); }
.remove-btn svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .file-item { grid-template-columns: 60px minmax(0,1fr); } .file-item .thumb { width: 60px; height: 60px; } .file-item .actions { grid-column: 1 / -1; justify-content: space-between; } }
.upload-progress { height: 4px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.upload-progress i { display: block; height: 100%; background: var(--amber-deep); width: 0; transition: width .15s linear; }

/* Material cards in the wizard */
.mat-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.mat-choice { position: relative; display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--line-strong); background: var(--surface-raised); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.mat-choice input { position: absolute; opacity: 0; pointer-events: none; }
.mat-choice strong { font: 700 18px/22px var(--font-display); }
.mat-choice span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mat-choice:hover { border-color: var(--ink); }
.mat-choice:has(input:checked) { border-color: var(--amber-deep); background: var(--amber-soft); }
.mat-choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Summary aside */
.summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--space-4); }
@media (max-width: 1000px) { .summary { position: static; } }
.summary .rp-card { display: grid; gap: var(--space-4); }
.summary h3 { font-size: 18px; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.summary dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary dt { color: var(--ink-muted); }
.summary dd { margin: 0; text-align: end; font-weight: 500; overflow-wrap: anywhere; }
.summary .empty { color: var(--ink-muted); font-size: 14px; }
.assurance { display: grid; gap: 12px; font-size: 14px; color: var(--ink-muted); }
.assurance div { display: flex; gap: 10px; align-items: flex-start; }
.assurance svg { width: 18px; height: 18px; flex: none; color: var(--amber-ink); margin-top: 2px; }

.review-grid { display: grid; gap: var(--space-4); }
.review-block { display: grid; gap: 10px; }
.review-block .rh { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-block dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 15px; }
.review-block dt { color: var(--ink-muted); }
.review-block dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .review-block dl { grid-template-columns: 1fr; gap: 2px; } .review-block dd { margin-bottom: 8px; } }

/* ---------- Overlay (submitting) ---------- */
.overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--space-6); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } }
.overlay-card { width: min(440px, 100%); display: grid; gap: var(--space-4); justify-items: center; text-align: center; }
.overlay-card svg.printing { width: 180px; height: 180px; }
.overlay-card .bar { width: 100%; height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.overlay-card .bar i { display: block; width: 0; height: 100%; background: var(--amber-deep); border-radius: inherit; transition: width .2s linear; }
.overlay-card .mono { color: var(--ink-muted); direction: ltr; }

/* Animated mini printer (SVG) used in the overlay, the thank-you page and the hero fallback */
.mini-printer .nozzle { animation: mp-nozzle 1.6s ease-in-out infinite alternate; }
.mini-printer .layer { transform-box: fill-box; transform-origin: left; transform: scaleX(0); animation: mp-layer 4.8s linear infinite; }
.mini-printer .layer:nth-of-type(2) { animation-delay: 1.6s; } .mini-printer .layer:nth-of-type(3) { animation-delay: 3.2s; }
@keyframes mp-nozzle { from { transform: translateX(-34px); } to { transform: translateX(34px); } }
@keyframes mp-layer { 0% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }

/* ---------- Thank-you page ---------- */
.done { padding-block: var(--space-16) var(--space-24); }
.done .container { display: grid; gap: var(--space-8); justify-items: center; text-align: center; max-width: 820px; }
.done-mark { width: 160px; height: 160px; }
.done-mark .ring { stroke-dasharray: 440; stroke-dashoffset: 440; animation: draw 1.1s .2s var(--ease-extrude) forwards; }
.done-mark .tick { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw .6s 1.1s var(--ease-extrude) forwards; }
.done-mark .l { transform-box: fill-box; transform-origin: left; transform: scaleX(0); animation: lay .35s var(--ease-extrude) forwards; }
.done-mark .l1 { animation-delay: 1.5s; } .done-mark .l2 { animation-delay: 1.65s; } .done-mark .l3 { animation-delay: 1.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref-box { display: inline-flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface-raised); }
[dir="rtl"] .ref-box { padding: 10px 18px 10px 10px; }
.ref-box .mono { font-size: 18px; direction: ltr; }
.timeline { width: 100%; display: grid; gap: 0; text-align: start; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: var(--space-6); position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .ix { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); background: var(--surface-raised); font: 500 14px/1 var(--font-mono); }
.timeline li:first-child .ix { background: var(--amber); border-color: var(--amber-deep); color: var(--on-amber); }
.timeline h3 { font-size: 18px; line-height: 24px; margin-bottom: 4px; }

/* ---------- Account ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none !important; } }
.auth-art { background: var(--graphite); color: var(--on-graphite); display: grid; align-content: space-between; padding: var(--space-12); position: relative; overflow: hidden; }
.auth-art h2 { color: var(--on-graphite); max-width: 420px; }
.auth-art::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--on-graphite) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--on-graphite) 6%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; }
.auth-art > * { position: relative; }
.auth-art .hud { display: flex; justify-content: space-between; font-size: 12px; color: color-mix(in srgb, var(--on-graphite) 60%, transparent); letter-spacing: .08em; }
.print-scene { position: relative; width: min(340px, 80%); justify-self: center; display: grid; justify-items: center; padding-top: 56px; }
.print-scene .stack { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; width: 100%; }
.print-scene .stack i { display: block; height: 14px; border-radius: var(--radius-pill); background: var(--amber); transform: scaleX(0); animation: lay .5s var(--ease-extrude) both; }
.print-scene .stack i:nth-child(odd) { background: var(--amber-deep); }
.print-scene .bed { width: 100%; height: 6px; margin-top: 8px; border-radius: 3px; background: color-mix(in srgb, var(--on-graphite) 30%, transparent); }
.print-scene .nozzle-head { position: absolute; top: 0; left: 50%; width: 34px; height: 44px; margin-left: -17px;
  background: linear-gradient(var(--on-graphite), var(--on-graphite)) top / 34px 22px no-repeat, linear-gradient(var(--on-graphite), var(--on-graphite)) 50% 100% / 8px 22px no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 62% 50%, 56% 100%, 44% 100%, 38% 50%, 0 50%); animation: nozzle-sway 2.2s ease-in-out infinite alternate; }
@keyframes nozzle-sway { from { transform: translateX(-90px); } to { transform: translateX(90px); } }
.auth-form-wrap { display: grid; place-items: center; padding: var(--space-12) var(--space-6); }
.auth-card { width: min(440px, 100%); display: grid; gap: var(--space-6); }
.auth-card form { display: grid; gap: var(--space-4); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--line); }
.tabs button { min-height: 44px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink-muted); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 -3px 0 var(--amber-deep); }
.or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; color: var(--ink-muted); font-size: 13px; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }
.provider-btn { width: 100%; justify-content: center; }
.provider-btn svg { width: 20px; height: 20px; }

.dash { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: var(--space-8); padding-bottom: var(--space-24); align-items: start; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
.dash-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
@media (max-width: 900px) { .dash-nav { position: static; grid-auto-flow: column; overflow-x: auto; } }
.dash-nav button { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 0 16px; border-radius: var(--radius-md); border: 0; background: none; color: var(--ink); font: 500 15px/1 inherit; font-family: inherit; cursor: pointer; text-align: start; white-space: nowrap; }
.dash-nav button svg { width: 20px; height: 20px; color: var(--ink-muted); }
.dash-nav button:hover { background: var(--surface-sunken); }
.dash-nav button[aria-selected="true"] { background: var(--surface-raised); box-shadow: inset 3px 0 0 var(--amber-deep); border: 1px solid var(--line); }
[dir="rtl"] .dash-nav button[aria-selected="true"] { box-shadow: inset -3px 0 0 var(--amber-deep); }
.dash-nav button[aria-selected="true"] svg { color: var(--amber-ink); }
.dash-panel { display: grid; gap: var(--space-6); }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: var(--space-4) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.order-row .ref { font: 500 15px/20px var(--font-mono); direction: ltr; }
.order-row .sub { font-size: 14px; color: var(--ink-muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/20px var(--font-mono); padding: 0 10px; border-radius: var(--radius-pill); background: var(--surface-sunken); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.status[data-s="new"]::before, .status[data-s="contacted"]::before { background: var(--amber-deep); }
.status[data-s="quoted"]::before, .status[data-s="printing"]::before { background: var(--amber-deep); animation: pulse 1.4s infinite; }
.status[data-s="ready"]::before, .status[data-s="delivered"]::before { background: var(--success); }
.status[data-s="cancelled"]::before { background: var(--danger); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.danger-zone h3 { color: var(--danger); }
.empty-state { display: grid; gap: var(--space-4); justify-items: center; text-align: center; padding: var(--space-12) var(--space-6); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state > svg { width: 48px; height: 48px; color: var(--ink-muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--space-4); background: rgba(15,16,19,.55); backdrop-filter: blur(4px); animation: fade-in .2s ease; }
.modal-card { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; animation: panel-in .3s var(--ease-extrude); }
.modal-card.sm { width: min(460px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: var(--space-6); display: grid; gap: var(--space-4); }
.viewer { height: min(60vh, 460px); border-radius: var(--radius-md); background: var(--surface-sunken); position: relative; overflow: hidden; }
.viewer canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer .hint { position: absolute; bottom: 10px; inset-inline-start: 12px; font: 500 12px/16px var(--font-mono); color: var(--ink-muted); }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 300; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
[dir="rtl"] .toasts { transform: translateX(50%); }
.toast { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: var(--radius-md); background: var(--graphite); color: var(--on-graphite); font-size: 15px; box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: panel-in .3s var(--ease-extrude); }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--amber); }
.toast.is-error svg { color: var(--danger); }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: var(--space-12); padding-bottom: var(--space-24); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-toc { display: none; } }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 2px; font-size: 14px; }
.legal-toc a { color: var(--ink-muted); text-decoration: none; padding: 6px 12px; border-inline-start: 2px solid var(--line); }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--ink); border-inline-start-color: var(--amber-deep); }
.legal-body { display: grid; gap: var(--space-8); }
.legal-body section { display: grid; gap: var(--space-3); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-body h2 { font-size: 24px; line-height: 30px; }
.legal-body p, .legal-body li { color: var(--ink); line-height: 26px; }
.legal-body ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal-body .todo { background: var(--amber-soft); color: var(--amber-ink); padding: 0 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 14px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-tabs a { text-decoration: none; }
.legal-tabs a[aria-current="page"] { background: var(--amber-soft); border-color: var(--amber-deep); }
.legal-tabs .chip { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-sunken); border-top: 1px solid var(--line); padding-block: var(--space-16) var(--space-8); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand .brand svg { height: 44px; }
.site-footer h4 { font: 600 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-4); }
[lang="ar"] .site-footer h4 { letter-spacing: 0; font-family: var(--font-arabic); font-size: 13px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--amber-ink); text-decoration: underline; }
.site-footer .contact-line { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.site-footer .contact-line svg { width: 18px; height: 18px; color: var(--amber-ink); flex: none; }
.site-footer .ltr { direction: ltr; unicode-bidi: isolate; }
.footer-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: 14px; color: var(--ink-muted); }
.footer-bottom .layer-lines { width: 120px; gap: 4px; }
.footer-bottom .layer-lines span { height: 4px; }
.footer-bottom .layer-lines span:nth-child(1) { width: 55%; }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.admin-table th { text-align: start; font: 600 12px/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: var(--surface-sunken); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }

/* ---------- 404 ---------- */
.nf { display: grid; justify-items: center; text-align: center; gap: var(--space-6); padding-block: var(--space-24); }
.nf .code { font: 800 clamp(96px, 18vw, 180px)/1 var(--font-display); color: var(--ink); position: relative; }
.nf .code span { color: var(--amber-ink); }
.nf .half { clip-path: inset(0 0 45% 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; animation: none !important; }
  .ticker-track { animation: none; }
}

/* 404 art: the missing segment of the top layer blinks, as if the print stopped. */
.nf .container { display: grid; justify-items: center; gap: var(--space-6); }
.nf-art { width: min(320px, 80vw); height: auto; }
.nf-gap { animation: nf-blink 1.4s steps(2, jump-none) infinite; }
@keyframes nf-blink { 50% { opacity: .15; } }
.link-btn { background: none; border: 0; padding: 0; color: var(--amber-ink); font: inherit; cursor: pointer; text-decoration: underline; text-align: start; }
.link-btn:disabled { color: var(--ink); text-decoration: none; cursor: default; }

/* Arabic letters must join: no tracking, and Arabic glyphs in mono/label styles use the Arabic face. */
[lang="ar"] .rp-badge, [lang="ar"] .label, [lang="ar"] .mono, [lang="ar"] .hud, [lang="ar"] .eyebrow { letter-spacing: 0; }
[lang="ar"] .rp-badge, [lang="ar"] .label { font-family: var(--font-arabic); }
[lang="ar"] .mono { font-family: var(--font-mono), var(--font-arabic); }

/* =====================================================================
   Glass: translucent surfaces over a warm ambient light and a CAD grid.
   ===================================================================== */
:root {
  --glass-bg: rgba(251, 249, 244, .58);
  --glass-strong: rgba(251, 249, 244, .82);
  --glass-line: rgba(28, 29, 33, .09);
  --glass-hi: rgba(255, 255, 255, .75);
  --glass-blur: saturate(1.5) blur(18px);
  --glow-a: rgba(255, 179, 26, .30);
  --glow-b: rgba(224, 138, 0, .16);
  --grid-line: rgba(28, 29, 33, .045);
}
[data-theme="dark"] {
  --glass-bg: rgba(28, 29, 33, .52);
  --glass-strong: rgba(28, 29, 33, .84);
  --glass-line: rgba(243, 239, 230, .09);
  --glass-hi: rgba(243, 239, 230, .08);
  --glow-a: rgba(255, 179, 26, .16);
  --glow-b: rgba(255, 194, 77, .08);
  --grid-line: rgba(243, 239, 230, .035);
}
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48vmax 38vmax at 88% -8%, var(--glow-a), transparent 62%),
    radial-gradient(42vmax 34vmax at -6% 42%, var(--glow-b), transparent 64%),
    radial-gradient(36vmax 30vmax at 70% 110%, var(--glow-b), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.85) 60%, rgba(0,0,0,.6));
  mask-image: linear-gradient(#000 0%, rgba(0,0,0,.85) 60%, rgba(0,0,0,.6));
}
.glass, .rp-card, .modal-card, .auth-card, .summary .rp-card, .dash-panel, .mat-panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 1px 2px rgba(0,0,0,.03);
}
.glass { border-radius: var(--radius-lg); }
.modal-card { background: var(--glass-strong); }
.sunken { background: color-mix(in srgb, var(--surface-sunken) 55%, transparent); }
.input, .select, .textarea { background: color-mix(in srgb, var(--surface-raised) 78%, transparent); }
.site-footer { background: color-mix(in srgb, var(--surface-sunken) 72%, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .rp-card, .modal-card, .auth-card { background: var(--surface-raised); }
}
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-head--slim { padding-block: var(--space-8) var(--space-4); }
.page-head--glow h1 { max-width: 16ch; }
.ws-loading { display: grid; place-items: center; min-height: 200px; }
.ws-loading .spinner { position: static; width: 28px; height: 28px; }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber-deep); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip > .mono.muted { font-size: 12px; }
button.chip { font: inherit; cursor: pointer; }
.modal-card.modal-xl { width: min(1180px, 100%); }
.cart-btn { position: relative; }
.cart-btn .badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: var(--on-amber); font: 600 11px/18px var(--font-mono); text-align: center; }
.cart-btn .badge[hidden] { display: none; }
.alert--success { background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 40%, transparent); color: var(--ink); }
.alert--success svg { color: var(--success); }

/* ---------- Colour swatches ---------- */
.palette { display: grid; gap: var(--space-4); }
.pal-group { display: grid; gap: 8px; }
.pal-h { font: 600 11px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
[lang="ar"] .pal-h { letter-spacing: 0; font-family: var(--font-arabic); font-size: 13px; }
.pal-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { position: relative; width: 36px; height: 36px; padding: 3px; border-radius: 50%; border: 1.5px solid transparent; background: none; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.sw i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), inset 0 2px 3px rgba(255,255,255,.35); }
.sw:hover:not(:disabled) { transform: scale(1.1); }
.sw.is-on { border-color: var(--amber-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 35%, transparent); }
.sw.is-out { cursor: not-allowed; opacity: .32; filter: grayscale(.4); }
.sw.is-out::after { content: ""; position: absolute; left: calc(50% - 1px); top: 3px; bottom: 3px; width: 2px; border-radius: 1px; background: var(--ink); transform: rotate(45deg); }
.palette.is-compact .sw { width: 30px; height: 30px; }
.pal-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: 13px; color: var(--ink-muted); }
.pal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pal-legend .sw-dot { --sw: var(--amber); }
.pal-legend .sw-dot.is-out { --sw: var(--line-strong); opacity: .5; }
.sw-dot { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--sw, var(--surface-sunken)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.sw-dot.is-none { background: none; border: 1.5px dashed var(--line-strong); box-shadow: none; }

/* ---------- Colour studio ---------- */
.studio { container-type: inline-size; }
.studio-in { display: grid; gap: var(--space-4); }
@container (min-width: 720px) { .studio-in { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); align-items: start; } }
.studio-view { position: relative; aspect-ratio: 4 / 3; width: 100%; min-width: 0; border-radius: var(--radius-md); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--amber) 12%, transparent), transparent 70%), color-mix(in srgb, var(--surface-sunken) 80%, transparent); border: 1px solid var(--glass-line); }
.studio-view.is-empty { aspect-ratio: auto; min-height: 0; }
.studio-canvas { position: absolute; inset: 0; }
.studio-canvas canvas { width: 100% !important; height: 100% !important; }
.studio-tools { position: absolute; inset-inline: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: end; gap: 8px; pointer-events: none; flex-wrap: wrap; }
.studio-tools > * { pointer-events: auto; }
.studio-tools .hint { font: 500 12px/16px var(--font-mono); color: var(--ink-muted); background: var(--glass-bg); backdrop-filter: blur(8px); padding: 4px 10px; border-radius: var(--radius-pill); }
.studio-noview { display: flex; gap: 12px; align-items: center; padding: var(--space-4); color: var(--ink-muted); font-size: 14px; }
.studio-noview svg { width: 22px; height: 22px; flex: none; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--glass-strong); border: 1px solid var(--glass-line); backdrop-filter: blur(8px); }
.seg-mini button { border: 0; background: none; font: 600 12px/16px var(--font-sans); color: var(--ink-muted); padding: 8px 12px; border-radius: var(--radius-pill); cursor: pointer; min-height: 32px; }
.seg-mini button[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); }
.studio-side { display: grid; gap: var(--space-4); align-content: start; }
.part-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.part { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--glass-line); background: color-mix(in srgb, var(--surface-raised) 60%, transparent); color: var(--ink); text-align: start; cursor: pointer; font: inherit; }
.part:hover { border-color: var(--line-strong); }
.part.is-sel { border-color: var(--amber-deep); background: color-mix(in srgb, var(--amber-soft) 70%, transparent); }
.part.is-warn { border-color: var(--danger); }
.part .sw-dot { width: 22px; height: 22px; }
.part .pl { display: grid; min-width: 0; flex: 1; }
.part .pn { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.part .ps { font-size: 12px; color: var(--ink-muted); }
.part.is-warn .ps { color: var(--danger); }
.part > svg { width: 16px; height: 16px; color: var(--amber-ink); flex: none; }
.studio-pal { display: grid; gap: var(--space-3); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-note { font-size: 13px; }
.studio-empty { display: flex; gap: 12px; align-items: center; padding: var(--space-6); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--ink-muted); }
.studio-empty svg { width: 24px; height: 24px; flex: none; }
.color-review { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.color-review li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.color-review .pn { font-weight: 600; }

/* ---------- Shop ---------- */
.shop-how { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shop-how li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.shop-how li > svg { width: 22px; height: 22px; color: var(--amber-ink); flex: none; }
.shop-how b { display: block; font-size: 15px; }
.shop-how .muted { font-size: 13px; }
.shop-how .sh-n { font-size: 12px; color: var(--ink-muted); }
.shop { padding-bottom: var(--space-24); display: grid; gap: var(--space-6); }
.shop-bar { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.shop-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.product-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: transform .25s var(--ease-extrude), border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--amber-deep) 45%, transparent); }
.pc-img { position: relative; display: block; aspect-ratio: 1; margin: 10px 10px 0; border-radius: var(--radius-md); overflow: hidden; background: color-mix(in srgb, var(--surface-sunken) 75%, transparent); }
.pc-glow { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, var(--amber) 22%, transparent), transparent 70%); }
.pc-img img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease, transform .5s var(--ease-extrude); }
.pc-img.is-ready img { opacity: 1; }
.product-card:hover .pc-img img { transform: scale(1.04); }
.pc-img .spinner { position: absolute; inset: 0; margin: auto; }
.pc-img.is-ready .spinner { display: none; }
.pc-img.no-img { background-image: repeating-linear-gradient(0deg, transparent 0 8px, color-mix(in srgb, var(--amber) 25%, transparent) 8px 16px); }
.pc-flag { position: absolute; top: 10px; inset-inline-start: 10px; }
.pc-body { display: grid; gap: 8px; padding: var(--space-4) var(--space-6) var(--space-6); align-content: start; }
.pc-body h3 a { color: var(--ink); text-decoration: none; }
.pc-body h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card { position: relative; }
.pc-body .rp-btn { position: relative; z-index: 1; justify-self: start; }
.pc-body > .muted { font-size: 14px; }
.pc-spec { font-size: 12px; color: var(--ink-muted); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-block: 4px; }
.pc-price { font-size: 20px; color: var(--ink); }

/* ---------- Product page ---------- */
.pd { padding-bottom: var(--space-24); display: grid; gap: var(--space-8); }
.pd-top { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1000px) { .pd-top { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); } .pd-buy { position: sticky; top: calc(var(--header-h) + 16px); } }
.pd-studio { padding: var(--space-4); }
.pd-studio .studio-view { aspect-ratio: 16 / 11; }
.pd-buy { padding: var(--space-6); display: grid; gap: var(--space-4); }
.pd-buy h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; }
.pd-buy .lead { font-size: 16px; line-height: 24px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; }
.pd-price .mono { font-size: 30px; line-height: 1; color: var(--ink); }
.pd-add { width: 100%; justify-content: space-between; }
.pd-add .pd-total { font-size: 14px; opacity: .85; }
.pd-assure { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.pd-assure li { display: flex; gap: 10px; align-items: center; }
.pd-assure svg { width: 18px; height: 18px; color: var(--amber-ink); flex: none; }
.pd-added { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-added .rp-btn { margin-inline-start: auto; }
.pd-info { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .pd-info { grid-template-columns: 1.4fr 1fr; } }
.pd-desc { display: grid; gap: var(--space-3); align-content: start; }
.pd-desc p { max-width: 64ch; }
.pd-specs { padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.pd-desc h2, .pd-specs h2 { font-size: 22px; }
.spec-table { margin: 0; display: grid; }
.spec-table div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec-table div:last-child { border-bottom: 0; }
.spec-table dt { color: var(--ink-muted); }
.spec-table dd { margin: 0; text-align: end; }
.pd-photos { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pd-photos:empty { display: none; }
.pd-photo { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.pd-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.qty-lg { height: 48px; }

/* ---------- Cart ---------- */
.cart { padding-bottom: var(--space-24); }
.cart-layout { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 1000px) { .cart-layout { grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr); } .checkout { position: sticky; top: calc(var(--header-h) + 16px); } }
.cart-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); }
@media (min-width: 640px) { .cart-item { grid-template-columns: 120px minmax(0, 1fr) auto; } }
.ci-img { display: block; border-radius: var(--radius-md); overflow: hidden; background: color-mix(in srgb, var(--surface-sunken) 75%, transparent); aspect-ratio: 1; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-main { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ci-main h3 { font-size: 18px; }
.ci-main h3 a { color: var(--ink); text-decoration: none; }
.ci-colors { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.ci-colors li { display: inline-flex; align-items: center; gap: 6px; }
.ci-colors .sw-dot { width: 14px; height: 14px; }
.ci-side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (min-width: 640px) { .ci-side { grid-column: auto; flex-direction: column; align-items: end; justify-content: start; } }
.ci-total { font-size: 18px; }
.ci-actions { display: flex; gap: 6px; align-items: center; }
.cart-totals { margin-top: var(--space-4); padding: var(--space-4) var(--space-6); display: grid; gap: 8px; }
.cart-totals div { display: flex; justify-content: space-between; gap: 12px; }
.cart-totals div:first-child .mono { font-size: 20px; }
.checkout { padding: var(--space-6); display: grid; gap: var(--space-4); }
.checkout h2 { font-size: 24px; }

/* ---------- Workshop ---------- */
.ws { padding-bottom: var(--space-24); display: grid; gap: var(--space-6); }
.ws-locked { display: grid; gap: var(--space-4); justify-items: center; text-align: center; padding: var(--space-12) var(--space-6); max-width: 560px; margin-inline: auto; }
.ws-locked > svg { width: 44px; height: 44px; color: var(--amber-ink); }
.ws-tabs { display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.ws-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.ws-tabs a svg { width: 18px; height: 18px; }
.ws-tabs a:hover { color: var(--ink); }
.ws-tabs a.is-on { background: var(--amber); color: var(--on-amber); }
.ws-panel { display: grid; gap: var(--space-4); }
.ws-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.ws-bar > p { flex: 1 1 280px; }
.ws-search { position: relative; flex: 1 1 260px; max-width: 460px; display: block; }
.ws-search > svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-muted); pointer-events: none; }
.ws-search .input { padding-inline-start: 42px; width: 100%; }
.ws-select { width: auto; min-width: 150px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-orders { display: grid; gap: var(--space-4); }
.order-card { padding: var(--space-4) var(--space-6); display: grid; gap: var(--space-4); }
.oc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.oc-svc { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--amber-soft); color: var(--amber-ink); }
.oc-svc svg { width: 16px; height: 16px; }
.oc-ref { font-size: 15px; }
.oc-date { font-size: 12px; }
.oc-status { margin-inline-start: auto; width: auto; min-width: 150px; height: 40px; }
.oc-grid { display: grid; gap: var(--space-4); }
@media (min-width: 860px) { .oc-grid { grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); } }
.oc-who { display: grid; gap: 6px; align-content: start; font-size: 14px; }
.oc-who strong { font-size: 16px; }
.oc-tel { justify-self: start; }
.oc-addr { display: flex; gap: 6px; align-items: start; }
.oc-addr svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.oc-what { display: grid; gap: 8px; align-content: start; font-size: 14px; min-width: 0; }
.oc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.oc-items li { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface-sunken) 50%, transparent); }
.oc-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.oc-colors { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.oc-color { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.oc-color .sw-dot { width: 14px; height: 14px; }
.oc-total { font-size: 15px; }
.oc-notes { white-space: pre-wrap; padding: 10px 12px; border-inline-start: 3px solid var(--amber); background: color-mix(in srgb, var(--amber-soft) 35%, transparent); border-radius: 6px; }
.oc-json { font-size: 11px; white-space: pre-wrap; max-height: 240px; overflow: auto; }
.oc-files { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.file-chip:hover { border-color: var(--ink); }
.file-chip svg { width: 16px; height: 16px; flex: none; }
.file-chip .fc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .mono { font-size: 11px; }
.oc-actions { display: flex; gap: 8px; }
.ws-studio { min-height: 300px; }
.ws-products { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.ws-product { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); }
.ws-thumb { aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: color-mix(in srgb, var(--surface-sunken) 75%, transparent); }
.ws-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ws-pbody { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ws-pbody h3 { font-size: 18px; }
.ws-pbody .mono { font-size: 12px; }
.ws-pflags { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-pact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ws-del { color: var(--danger); }
.ws-lead { max-width: 70ch; }
.ws-stock { padding: var(--space-6); display: grid; gap: var(--space-6); }
.ws-fin { display: grid; gap: var(--space-3); }
.ws-sws { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ws-sw { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 12px; min-height: 52px; border-radius: var(--radius-md); border: 1px solid var(--glass-line); background: color-mix(in srgb, var(--surface-raised) 40%, transparent); color: var(--ink); text-align: start; cursor: pointer; font: inherit; opacity: .6; }
.ws-sw .sw-dot { grid-row: span 2; width: 28px; height: 28px; }
.ws-swn { font-size: 14px; font-weight: 600; }
.ws-swst { font-size: 12px; color: var(--ink-muted); }
.ws-sw.is-on { opacity: 1; border-color: color-mix(in srgb, var(--success) 55%, transparent); background: color-mix(in srgb, var(--success) 8%, transparent); }
.ws-sw.is-on .ws-swst { color: var(--success); font-weight: 600; }
.ws-sw:hover { border-color: var(--ink); }
.ws-access { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.ws-card { padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.ws-card h2 { font-size: 22px; display: flex; gap: 10px; align-items: center; }
.ws-card h2 svg { width: 22px; height: 22px; color: var(--amber-ink); }
.ws-steps, .ws-tips { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
pre.code { margin: 0; padding: 14px 16px; border-radius: var(--radius-md); background: var(--graphite); color: var(--on-graphite); font: 500 13px/20px var(--font-mono); overflow-x: auto; white-space: pre; }
.ed-form { display: grid; gap: var(--space-6); }
.ed-sec { display: grid; gap: var(--space-3); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.ed-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ed-langs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-langs .muted { font-size: 13px; }
.ed-lang { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.ed-mats, .ed-switches { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-drop { display: grid; justify-items: center; gap: 6px; padding: var(--space-6); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); cursor: pointer; text-align: center; }
.ed-drop:hover, .ed-drop:focus-within { border-color: var(--amber-deep); background: color-mix(in srgb, var(--amber-soft) 30%, transparent); }
.ed-drop > svg { width: 28px; height: 28px; color: var(--amber-ink); }
.ed-parts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ed-parts li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ed-parts .input { flex: 1 1 180px; height: 44px; }
.ed-fname { font-size: 12px; }
.ed-qty { display: inline-flex; align-items: center; gap: 4px; }
.ed-qty .input { width: 72px; flex: none; }
.ed-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-photos figure { position: relative; margin: 0; width: 96px; height: 96px; border-radius: var(--radius-md); overflow: hidden; }
.ed-photos img { width: 100%; height: 100%; object-fit: cover; }
.ed-photos .icon-btn { position: absolute; top: 4px; inset-inline-end: 4px; width: 32px; height: 32px; background: var(--glass-strong); }
.ed-addph { justify-self: start; cursor: pointer; }
.ed-foot { display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: calc(-1 * var(--space-6)); padding: var(--space-4) 0; background: var(--glass-strong); backdrop-filter: blur(8px); }

/* ---------- Guides ---------- */
.guides, .guide { padding-bottom: var(--space-24); display: grid; gap: var(--space-8); }
.guides-bar { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.guides-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.guide-card { display: grid; gap: 10px; padding: var(--space-6); color: var(--ink); text-decoration: none; align-content: start; transition: transform .25s var(--ease-extrude), border-color .2s ease; }
.guide-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--amber-deep) 45%, transparent); text-decoration: none; }
.guide-card h3 { font-size: 20px; }
.guide-card > .muted { font-size: 14px; }
.gc-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-md); background: color-mix(in srgb, var(--amber-soft) 80%, transparent); color: var(--amber-ink); }
.gc-icon svg { width: 24px; height: 24px; }
.gc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.guides-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; padding: var(--space-8); }
.guides-cta h2 { font-size: 26px; }
.guide-head { display: grid; gap: var(--space-3); justify-items: start; max-width: 760px; }
.guide-head h1 { font-size: clamp(32px, 4.4vw, 52px); }
.guide-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.guide-layout { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 960px) { .guide-layout { grid-template-columns: 260px minmax(0, 1fr); } .guide-toc { position: sticky; top: calc(var(--header-h) + 16px); } }
.guide-toc { padding: var(--space-4) var(--space-6); display: grid; gap: 10px; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.guide-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-muted); text-decoration: none; font-size: 14px; border-inline-start: 2px solid transparent; }
.guide-toc a:hover { color: var(--ink); }
.guide-toc a.is-on { color: var(--ink); border-color: var(--amber-deep); background: color-mix(in srgb, var(--amber-soft) 50%, transparent); }
.guide-body { display: grid; gap: var(--space-8); max-width: 760px; }
.g-sec { display: grid; gap: var(--space-3); scroll-margin-top: calc(var(--header-h) + 16px); }
.g-sec h2 { font-size: clamp(22px, 2.4vw, 28px); }
.g-sec p, .g-sec li { font-size: 17px; line-height: 28px; }
.g-sec ul, .g-sec ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.g-sec .mono { font-size: .88em; }
.g-tip, .g-warn { padding: 14px 16px 14px 48px; border-radius: var(--radius-md); position: relative; font-size: 15px !important; line-height: 24px !important; }
[dir="rtl"] .g-tip, [dir="rtl"] .g-warn { padding: 14px 48px 14px 16px; }
.g-tip { background: color-mix(in srgb, var(--amber-soft) 55%, transparent); border: 1px solid color-mix(in srgb, var(--amber-deep) 30%, transparent); }
.g-warn { background: color-mix(in srgb, var(--danger) 9%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.g-tip::before, .g-warn::before { position: absolute; inset-inline-start: 16px; top: 14px; font: 700 15px/24px var(--font-mono); }
.g-tip::before { content: "→"; color: var(--amber-ink); }
.g-warn::before { content: "!"; color: var(--danger); }
[dir="rtl"] .g-tip::before { content: "←"; }
.g-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--glass-line); background: var(--glass-bg); }
.g-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.g-table th, .g-table td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.g-table tbody tr:last-child > * { border-bottom: 0; }
.g-table thead th { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--ink-muted); }
.g-table tbody th { font-weight: 600; }
.g-table td { white-space: normal; min-width: 90px; }
.guide-related { display: grid; gap: var(--space-4); }

/* ---------- Home teasers ---------- */
.teaser-grid { display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .teaser-grid { grid-template-columns: 1.2fr 1fr; } }
.teaser { padding: var(--space-8); display: grid; gap: var(--space-4); align-content: start; position: relative; overflow: hidden; }
.teaser::after { content: ""; position: absolute; width: 320px; height: 320px; inset-inline-end: -120px; top: -140px; background: radial-gradient(circle, color-mix(in srgb, var(--amber) 22%, transparent), transparent 70%); pointer-events: none; }
.teaser .rp-btn { justify-self: start; }
.teaser-shop { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.teaser-shop:empty { display: none; }
.ts-item { display: grid; gap: 4px; color: var(--ink); text-decoration: none; font-size: 13px; }
.ts-img { aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: color-mix(in srgb, var(--surface-sunken) 75%, transparent); }
.ts-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-extrude); }
.ts-item:hover .ts-img img { transform: scale(1.05); }
.ts-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-price { color: var(--ink-muted); font-size: 12px; }
.teaser-guides { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.teaser-guides a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; min-height: 44px; }
.teaser-guides a:hover { background: color-mix(in srgb, var(--amber-soft) 50%, transparent); }
.teaser-guides a svg { width: 18px; height: 18px; flex: none; color: var(--amber-ink); }
.teaser-guides a svg:last-child { margin-inline-start: auto; color: var(--ink-muted); }
[dir="rtl"] .teaser-guides .flip-rtl { transform: scaleX(-1); }
@media (max-width: 640px) { .teaser, .guides-cta { padding: var(--space-6); } .order-card { padding: var(--space-4); } .oc-status { margin-inline-start: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .product-card, .guide-card, .pc-img img, .ts-img img { transition: none; } }
.pd-buy > a.rp-btn-ghost { white-space: normal; height: auto; min-height: 36px; padding-block: 8px; text-align: start; justify-self: start; }
.modal-card { background: color-mix(in srgb, var(--surface-raised) 96%, transparent); } .ed-foot { background: color-mix(in srgb, var(--surface-raised) 96%, transparent); }
@container (max-width: 520px) { .studio-view, .pd-studio .studio-view { aspect-ratio: 1; } }
.pd-price .mono, .pc-price, .ci-total, .ts-price, .pd-total, .oc-total, .cart-totals .mono { direction: ltr; unicode-bidi: isolate; }
