﻿/* Studio Sanaa (a fictional studio, a Repliwave demo). The site opens with a breath: press and hold to breathe in, let go to breathe out, three times.
   Then you move a dot to show how you feel, and the studio suggests one class and its next times.
   Chalk paper, charcoal, sage, oak. Geist for headings and text, Geist Mono for times and small labels; Arabic uses the system font.
   Logical properties only, so Arabic mirrors by itself (the pad is a chart and keeps its axes). Breakpoints: base (375), 768, 1280. */
:root { --bg: #f0ece3; --fg: #1f2623; --acc: #3f6b52; --card: #faf8f3; --card-fg: #1f2623; --line: rgba(31, 38, 35, .2); --soft: rgba(31, 38, 35, .72);
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: var(--sans);
  --ar: 'Geeza Pro', 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Segoe UI', Tahoma, 'DejaVu Sans', sans-serif;
  --hw: 500; --ls: -.055em; --r: 1.1rem; --gut: clamp(1.1rem, 4vw, 4rem); --foot-bg: #1f2623; --foot-fg: #f0ece3; --foot-mark: #c69a63; --bg-light: #f0ece3; --chip-bg: #f0ece3; --chip-fg: #1f2623; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
body { background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[dir='rtl'] body, [dir='rtl'] input, [dir='rtl'] textarea, [dir='rtl'] button { font-family: var(--ar); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--acc); color: #fff; }
:focus-visible { outline: 2px solid var(--focus, var(--acc)); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: -999px; top: .5rem; z-index: 60; background: var(--fg); color: var(--bg); padding: .5rem .9rem; }
.skip:focus { inset-inline-start: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--hw); letter-spacing: var(--ls); }
[dir='rtl'] h2, [dir='rtl'] h3 { font-family: var(--ar); font-weight: 700; letter-spacing: 0; }
.wrap { max-width: 86rem; margin-inline: auto; padding-inline: var(--gut); }
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: max(.5rem, env(safe-area-inset-top)) var(--gut) .5rem; background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { font: var(--hw) 1.25rem/1 var(--display); letter-spacing: var(--ls); text-decoration: none; white-space: nowrap; }
.menu { display: none; gap: 1.5rem; margin-inline-start: auto; }
.menu a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .92rem; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.tools { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.langs { display: flex; }
.langs button { background: none; border: 0; font: 400 .74rem/1 var(--mono); padding: .5rem .45rem; min-width: 2.3rem; min-height: 2.75rem; cursor: pointer; opacity: .75; border-radius: 99px; }
.langs button[lang='ar'] { font-family: var(--ar); font-size: .95rem; }
.langs button[aria-pressed='true'] { opacity: 1; background: var(--fg); color: var(--bg); }
.badge { display: inline-flex; align-items: center; white-space: nowrap; min-height: 2.75rem; font-size: .78rem; text-decoration: none; border: 1px solid currentColor; border-radius: 99px; padding: .5rem .85rem; }
.badge .full { display: none; }
@media (min-width: 560px) { .badge .full { display: inline; } .badge .short { display: none; } }
@media (min-width: 900px) { .menu { display: flex; } .tools { margin-inline-start: 1.2rem; } }
.kicker { font: 400 .78rem/1.4 var(--mono); color: var(--acc2, var(--acc)); margin-bottom: .3rem; }
[dir='rtl'] .kicker { font-family: var(--ar); font-size: .92rem; }
.lead { color: var(--soft); max-width: 48ch; margin-top: .5rem; font-size: 1rem; }
[dir='rtl'] .lead { line-height: 1.9; }
.card > * { min-width: 0; }
.card { background: var(--card); color: var(--card-fg); --line: color-mix(in srgb, var(--card-fg) 18%, transparent); --soft: color-mix(in srgb, var(--card-fg) 70%, transparent); border-radius: var(--r); padding: 1.3rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; font-size: .8rem; color: var(--soft); }
.card input[type=text], .card input[type=email], .card textarea { width: 100%; background: #fff; border: 1px solid color-mix(in srgb, var(--card-fg) 32%, transparent); border-radius: calc(var(--r) * .5); padding: .7rem .9rem; font-size: 1rem; min-height: 2.9rem; color: var(--card-fg); }
.card textarea { resize: vertical; }
.card [aria-invalid='true'] { border-color: #b3261e; }
.err { font-size: .78rem; color: #b3261e; min-height: 1em; }
.cta { display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 500; text-decoration: none; text-align: center; border: 1px solid currentColor; border-radius: var(--pill, 99px); padding: .85rem 1.4rem; min-height: 3rem; cursor: pointer; background: transparent; color: inherit; transition: background-color .25s, color .25s, border-color .25s, opacity .25s; }
.cta.primary { background: var(--acc); border-color: var(--acc); color: #fff; width: 100%; }
.cta.primary:hover { background: var(--card-fg); border-color: var(--card-fg); }
.cta.primary:disabled { opacity: .35; pointer-events: none; }
.cta.light { background: var(--bg-light, #fff); border-color: var(--bg-light, #fff); color: var(--foot-bg); }
.textlink { background: none; border: 0; padding: 0; min-height: 2.75rem; cursor: pointer; font-size: .9rem; color: var(--acc); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; justify-self: start; text-align: start; }
.small { font-size: .8rem; color: var(--soft); }
.ref { display: inline-grid; gap: .15rem; padding: .7rem 1rem; background: color-mix(in srgb, var(--card-fg) 7%, transparent); border-radius: calc(var(--r) * .6); justify-self: start; }
.ref b { font: 600 1.3rem/1.1 var(--mono); }
.ref span { font-size: .74rem; color: var(--soft); }
.done h3 { font-size: 1.7rem; line-height: 1.1; }
[dir='rtl'] .done h3 { font-size: 1.35rem; line-height: 1.5; }
.done dl { display: grid; gap: .5rem; margin: 0; }
.done dt { font-size: .74rem; color: var(--soft); }
.done dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.row { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; }
.row::-webkit-scrollbar { display: none; }
.day { flex: none; display: grid; justify-items: center; gap: .1rem; min-width: 3.6rem; min-height: 3.4rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: calc(var(--r) * .6); background: transparent; cursor: pointer; font-size: .72rem; color: var(--soft); }
.day b { font: 600 1.05rem/1 var(--mono); color: var(--card-fg); }
.day[aria-pressed='true'] { background: var(--acc); border-color: var(--acc); color: #fff; }
.day[aria-pressed='true'] b { color: #fff; }
.day:disabled { opacity: .32; cursor: default; }
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1; }
[dir='rtl'] .sec h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.3; }
.rules { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: .8rem; max-width: 46ch; color: var(--soft); }
.rules li { padding-inline-start: 1.2rem; position: relative; }
.rules li::before { content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--acc); }
.qchips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.qchips button { background: var(--chip-bg, #fff); color: var(--chip-fg, #222); border: 0; border-radius: var(--pill, 99px); padding: .8rem 1.3rem; min-height: 3rem; cursor: pointer; text-align: start; font-size: clamp(1rem, 1.7vw, 1.2rem); transition: background-color .25s, color .25s; }
.qchips button:hover { background: var(--acc); color: #fff; }
.foot { background: var(--foot-bg); color: var(--foot-fg); padding-top: clamp(3rem, 7vw, 5rem); overflow: clip; }
.foot .wrap { display: grid; gap: 1.4rem; justify-items: start; }
.foot-note { max-width: 44ch; opacity: .9; }
.wordmark { font: var(--hw) clamp(2.6rem, 13vw, 13rem)/.85 var(--display); letter-spacing: var(--ls); white-space: nowrap; text-align: center; color: var(--foot-mark); margin-top: 2.5rem; padding-bottom: 5rem; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.pop { animation: pop .5s cubic-bezier(.2, .8, .2, 1) both; }

/* the breath */
.gate { position: fixed; inset: 0; z-index: 25; background: radial-gradient(60vmax 60vmax at 50% 55%, #e9d9c0, #f0ece3 70%); display: grid; place-content: center; justify-items: center; gap: 1.1rem; padding: 5rem 1.5rem 2rem; text-align: center; transition: opacity .9s, visibility .9s; }
body.open .gate { opacity: 0; visibility: hidden; pointer-events: none; }
.glead { font: 400 .8rem/1.4 var(--mono); color: var(--soft); }
[dir='rtl'] .glead { font-family: var(--ar); font-size: .95rem; }
.lung { position: relative; width: min(68vw, 46svh, 22rem); aspect-ratio: 1; border: 0; background: none; cursor: pointer; border-radius: 50%; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.lung i { position: absolute; inset: 0; border-radius: 50%; transform: scale(.42); transition: transform 5.5s cubic-bezier(.3, 0, .3, 1), background-color 2s; }
.lung i:nth-child(1) { border: 1px solid rgba(63, 107, 82, .45); box-shadow: 0 0 0 10px rgba(63, 107, 82, .04), inset 0 0 40px rgba(63, 107, 82, .08); }
.lung i:nth-child(2) { inset: 9%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .6), rgba(63, 107, 82, .16) 62%, rgba(63, 107, 82, .26)); box-shadow: inset 0 0 0 1px rgba(63, 107, 82, .22); transition-delay: .12s; }
.lung i:nth-child(3) { inset: 22%; background: radial-gradient(circle at 34% 28%, #a6d0b5 0, #4f8466 36%, #2f5540 72%, #1c3628 100%); box-shadow: inset -14px -20px 36px rgba(0, 0, 0, .3), inset 8px 10px 22px rgba(255, 255, 255, .2), 0 40px 50px -22px rgba(31, 38, 35, .6); transition-delay: .24s; }
.lung i:nth-child(3)::after { content: ''; position: absolute; top: 15%; left: 20%; width: 28%; height: 17%; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(7px); }
.gate.in .lung i { transform: scale(1); transition-duration: 4s; transition-timing-function: cubic-bezier(.2, .6, .3, 1); }
.gtxt { font-weight: 500; font-size: clamp(1.4rem, 4vw, 2.2rem); letter-spacing: -.04em; min-height: 1.3em; }
[dir='rtl'] .gtxt { letter-spacing: 0; font-weight: 700; }
.gdots { display: flex; gap: .6rem; }
.gdots i { width: .7rem; height: .7rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--acc); transition: background-color .5s; }
.gdots i.on { background: var(--acc); }
.gskip { background: none; border: 0; min-height: 2.75rem; min-width: 4rem; cursor: pointer; font-size: .9rem; color: var(--soft); text-decoration: underline; text-underline-offset: .3em; }
main { transition: opacity 1.2s .2s, transform 1.4s .2s cubic-bezier(.2, .8, .2, 1); }
body:not(.open) main, body:not(.open) .foot { opacity: 0; transform: translateY(18px); }
/* the studio: the dot and the class it leads to */
.studio { padding-block: clamp(1rem, 2vw, 1.8rem) clamp(2.5rem, 5vw, 4rem); }
.intro { display: grid; gap: .6rem 2.5rem; align-items: end; margin-bottom: 1.6rem; }
@media (min-width: 860px) { .intro { grid-template-columns: auto 1fr; } .intro > div:last-child { max-width: 30rem; justify-self: end; } }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .88; }
.intro h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; color: var(--acc); letter-spacing: -.04em; }
[dir='rtl'] .intro h2 { line-height: 1.5; }
.board { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .board { grid-template-columns: minmax(0, 1fr) 25rem; gap: 3rem; align-items: start; } }
.padwrap { position: relative; width: min(100%, max(18rem, calc(100svh - 19rem))); margin-inline: auto; padding: 2rem 0; }
.ax { position: absolute; font: 400 .74rem/1 var(--mono); color: var(--soft); white-space: nowrap; }
[dir='rtl'] .ax, :lang(ar) .ax { font-family: var(--ar); font-size: .88rem; }
.ax.top { top: .4rem; left: 50%; transform: translateX(-50%); } .ax.bottom { bottom: .4rem; left: 50%; transform: translateX(-50%); }
.ax.left, .ax.right { top: 50%; writing-mode: vertical-rl; } /* written down the side, so the label takes no width */
.ax.left { left: .15rem; transform: translateY(-50%) rotate(180deg); } .ax.right { right: .15rem; transform: translateY(-50%); }
.pad { position: relative; aspect-ratio: 1; margin-inline: 1.6rem; border-radius: var(--r); background: linear-gradient(0deg, #dfe6d9, #e9d9c0); box-shadow: inset 0 2px 12px rgba(31, 38, 35, .14), inset 0 0 0 1px var(--line), 0 34px 50px -38px rgba(31, 38, 35, .6); touch-action: none; cursor: crosshair; overflow: hidden; }
.cells { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); }
.cell { display: grid; place-items: center; text-align: center; padding: .5rem; font-weight: 500; font-size: clamp(.85rem, 2.2vw, 1.25rem); letter-spacing: -.03em; color: rgba(31, 38, 35, .38); box-shadow: inset 0 0 0 .5px var(--line); transition: background-color .5s, color .4s; pointer-events: none; }
.cell.on { background: linear-gradient(160deg, #518a69, #2f5540); color: #f0ece3; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -14px 26px rgba(0, 0, 0, .22); }
:lang(ar) .cell { letter-spacing: 0; font-family: var(--ar); }
.dot { position: absolute; width: 2.9rem; height: 2.9rem; margin: -1.45rem; border-radius: 50%; border: 3px solid #f0ece3; background: radial-gradient(circle at 35% 30%, #66746f, #1f2623 58%, #0c100f); box-shadow: 0 12px 22px rgba(31, 38, 35, .45), 0 2px 4px rgba(31, 38, 35, .4), inset 0 1px 1px rgba(255, 255, 255, .4); cursor: grab; touch-action: none; transition: left .25s cubic-bezier(.2, .8, .2, 1), bottom .25s cubic-bezier(.2, .8, .2, 1); }
.pad.drag .dot { transition: none; cursor: grabbing; }
.card { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(31, 38, 35, .5); }
@media (min-width: 1000px) { .card { position: sticky; top: 4.6rem; } }
.card .lab { font: 400 .74rem/1 var(--mono); color: var(--soft); }
[dir='rtl'] .card .lab { font-family: var(--ar); font-size: .88rem; }
.card h2 { font-size: clamp(2.2rem, 4vw, 3rem); line-height: .95; margin-top: .4rem; }
[dir='rtl'] .card h2 { font-size: 1.8rem; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; }
.tags li { font-size: .8rem; border-radius: 99px; padding: .3rem .75rem; background: rgba(31, 38, 35, .07); }
.tags li.t { background: var(--acc); color: #fff; }
.slot { flex: none; display: grid; justify-items: center; gap: .15rem; min-width: 4.6rem; min-height: 3.4rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: .8rem; background: transparent; cursor: pointer; font-size: .72rem; color: var(--soft); }
.slot b { font: 600 1rem/1 var(--mono); color: var(--card-fg); }
.slot[aria-pressed='true'] { background: var(--acc); border-color: var(--acc); color: #fff; }
.slot[aria-pressed='true'] b { color: #fff; }
.again { margin-top: 1.2rem; }
.oak { background: #e9d9c0; }
.week { display: grid; grid-template-columns: repeat(7, minmax(7.2rem, 1fr)); margin-top: 2rem; border-top: 1px solid var(--fg); overflow-x: auto; scrollbar-width: none; }
.week::-webkit-scrollbar { display: none; }
.wday { padding: .9rem .8rem 1.2rem; border-inline-start: 1px solid var(--line); min-height: 11rem; }
.wday:first-child { border-inline-start: 0; }
.wday.today { background: linear-gradient(180deg, rgba(255, 250, 236, .9), rgba(255, 250, 236, .25)); box-shadow: 0 0 34px 4px rgba(255, 246, 222, .7); }
.wday.today h3::after { content: ''; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--acc); margin-inline-start: .45rem; vertical-align: middle; }
.wday h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.wday p { display: grid; padding-block: .45rem; transition: opacity .4s; }
.wday time { font: 400 .74rem/1.3 var(--mono); color: var(--soft); }
.wday span { font-weight: 500; font-size: .95rem; letter-spacing: -.02em; }
.wday p.hit span { color: var(--acc); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.wday p:not(.hit) { opacity: .5; }
.wday .closed { font: 400 .74rem/1.3 var(--mono); color: var(--soft); }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; }
.sage { background: var(--acc); color: #f0ece3; --soft: rgba(240, 236, 227, .88); --focus: #f0ece3; }
.sage .qchips button:hover { background: #1f2623; }

/* finish: weight and light on everything you can press, steadier numerals, cleaner type */
body { text-rendering: optimizeLegibility; font-kerning: normal; }
h1, h2, h3 { text-wrap: balance; }
output, time, .price, .mono, .qtotal b, .priceline b, .ref b, .num { font-variant-numeric: tabular-nums; }
.cta, .chip, .day, .slot, .sw, .quick, .wchip, .qchips button, .chips button, .nudge button, .qty button, .moon, .langs button { transition-property: background-color, color, border-color, transform, box-shadow, opacity; transition-duration: .2s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.cta:active, .chip:active, .day:active, .slot:active, .sw:active, .quick:active, .wchip:active, .qchips button:active, .chips button:active, .nudge button:active { transform: translateY(1px) scale(.985); }
.cta.primary, .cta.terra { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 22px -14px rgba(0, 0, 0, .65); }
.cta.primary:hover, .cta.terra:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 26px -14px rgba(0, 0, 0, .7); transform: translateY(-1px); }
.card, .panel, .summary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(0, 0, 0, .06), 0 22px 44px -26px rgba(0, 0, 0, .5), 0 60px 90px -70px rgba(0, 0, 0, .45); }
input[type=text], input[type=email], input[type=tel], textarea { transition: border-color .2s, box-shadow .2s; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
input[type=text]:focus-visible, input[type=email]:focus-visible, input[type=tel]:focus-visible, textarea:focus-visible { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent); }
.day[aria-pressed='true'], .slot[aria-pressed='true'], .chip[aria-pressed='true'] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 14px -10px rgba(0, 0, 0, .6); }

/* talk: the assistant shown as a conversation; facts as numbered cards; the footer name fitted to its width */
:root { --t-acc: #3f6b52; --t-bg: #3f6b52; --t-fg: #f0ece3; }
.talk { background: var(--t-bg) !important; color: var(--t-fg) !important; }
.talk .lead { color: color-mix(in srgb, var(--t-fg) 82%, transparent) !important; }
.talkgrid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .talkgrid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; } }
.chat { position: relative; background: #fffdf9; color: #1d2422; border-radius: 1.6rem; padding: 1.3rem; display: grid; gap: 1rem; max-width: 34rem; width: 100%; justify-self: end; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 4px rgba(0, 0, 0, .08), 0 30px 60px -30px rgba(0, 0, 0, .55), 0 70px 90px -70px rgba(0, 0, 0, .5); transform: rotate(-.6deg); }
[dir='rtl'] .chat { transform: rotate(.6deg); }
.chat .who { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(29, 36, 34, .1); }
.chat .av { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--t-acc) 60%, #fff), var(--t-acc) 62%, color-mix(in srgb, var(--t-acc) 70%, #000)); color: #fff; font-weight: 600; font-size: 1.15rem; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }
.chat .who strong { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.chat .who small { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: rgba(29, 36, 34, .65); }
.chat .who small::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #3fae6a; box-shadow: 0 0 0 3px rgba(63, 174, 106, .2); }
.chat .bubble { justify-self: start; max-width: 90%; background: color-mix(in srgb, var(--t-acc) 9%, #f4f1ea); border-radius: 1.2rem; border-start-start-radius: .3rem; padding: .85rem 1.05rem; font-size: 1.02rem; line-height: 1.5; }
.chat .qchips { display: flex; flex-wrap: wrap; margin-top: 0 !important; justify-content: flex-end; gap: .45rem; }
.chat .qchips button { background: transparent !important; color: var(--t-acc) !important; border: 1.5px solid color-mix(in srgb, var(--t-acc) 55%, transparent) !important; border-radius: 1.2rem !important; border-end-end-radius: .3rem !important; padding: .6rem 1rem !important; min-height: 2.75rem; font: 500 .95rem/1.3 var(--sans, inherit) !important; text-align: start; }
[dir='rtl'] .chat .qchips button { font-family: var(--ar) !important; }
.chat .qchips button:hover { background: var(--t-acc) !important; color: #fff !important; border-color: var(--t-acc) !important; }
.rules { counter-reset: rule; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: none !important; gap: .7rem !important; }
.rules li { counter-increment: rule; padding: 1rem 1.1rem 1.1rem !important; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: .9rem; background: color-mix(in srgb, currentColor 3%, transparent); line-height: 1.5; }
.rules li::before { content: counter(rule, decimal-leading-zero) !important; position: static !important; display: block; width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important; font: 500 .74rem/1 ui-monospace, 'Geist Mono', Menlo, monospace; letter-spacing: .06em; opacity: .6; margin-bottom: .55rem; }
.wordmark { font-size: min(13rem, calc(150vw / var(--chars, 12))) !important; }

/* polish 2: brand mark, the confirmation moment, paper grain, sections that ease in */
.mark { display: none; flex: none; width: 1.75rem; height: 1.75rem; color: inherit; margin-inline-end: -.45rem; }
.mark svg { width: 100%; height: 100%; display: block; }
@media (min-width: 480px) { .mark { display: block; } }
.okmark { width: 3.2rem; height: 3.2rem; color: var(--t-acc); display: block; }
.okmark circle { fill: color-mix(in srgb, var(--t-acc) 10%, transparent); stroke: currentColor; stroke-width: 2.4; stroke-dasharray: 151; stroke-dashoffset: 151; animation: okdraw .65s cubic-bezier(.6, 0, .2, 1) forwards; }
.okmark path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: okdraw .4s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes okdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .okmark circle, .okmark path { stroke-dashoffset: 0; } }
.ref, .ordernum { position: relative; border: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent); background: color-mix(in srgb, var(--t-acc) 6%, transparent) !important; padding-inline: 1.3rem 2.6rem !important; }
.ref::after, .ordernum::after { content: ''; position: absolute; inset-inline-end: .8rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent); }
body::after { content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.1 -.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .sec > .wrap, .talk .chat { animation: easein linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes easein { from { opacity: 0; transform: translateY(34px); } } } }
.tile { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .tile { transform: perspective(800px) rotateX(7deg) translateY(-6px); box-shadow: 0 34px 40px -26px rgba(43, 42, 38, .55); }

/* narrow phones (320-400px): keep the top bar on one line, nothing wider than the screen */
@media (max-width: 400px) {
  .bar { gap: .5rem; }
  .brand { font-size: 1.2rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .tools { gap: .25rem; flex: none; }
  .langs button { min-width: 1.9rem; padding: .5rem .25rem; font-size: .7rem; }
  .badge { padding: .5rem .6rem; font-size: .72rem; }
}
