/* SUBO's temporary website (#782), direction A after the designer's round 5: dark like the Restyling site, warm white
   type and the LED amber of SUBO's lighting. The widgets read the page's dark background and draw themselves dark. */
:root {
  --black: #0a0a0b; --panel: #151517; --line: #2a2a2e; --text: #f4f1ea; --soft: #d6d2ca; --mute: #9d9992;
  --led: #f0a44b; --led-hi: #ffb866; --on-led: #15110a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--black); color: var(--text); font: 17px/1.6 Onest, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.mark { font-family: Michroma, sans-serif; letter-spacing: .04em; }
/* SUBO's logo: white, so only on the site's dark surfaces */
.logo { display: block; line-height: 0; }
.logo img { display: block; width: auto; height: 100%; }
.logo-link { display: block; height: 38px; }
.logo-link .logo { height: 100%; }
.foot-logo { height: 44px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--led); color: var(--on-led); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; }
.todo { display: inline-block; background: #3d2408; color: #ffd9a8; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 99px; white-space: nowrap; vertical-align: middle; letter-spacing: 0; text-transform: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--led); color: var(--on-led); text-decoration: none; font: 700 17px/1.2 Onest, sans-serif; padding: 17px 32px; border-radius: 999px; border: 1px solid var(--led); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--led-hi); border-color: var(--led-hi); }
.btn.line { background: none; color: var(--text); border-color: #5b5b60; }
.btn.line:hover { border-color: var(--led); color: var(--led); }

/* the top bar: sticks on scroll, a menu button on the phone */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 11, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.bar .mark { font-size: 22px; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; }
.bar nav a { text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--led); }
.bar nav a.signin { background: var(--led); color: var(--on-led); border-radius: 999px; padding: 9px 20px; font-weight: 700; }
.bar nav a.signin:hover { background: var(--led-hi); color: var(--on-led); }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang a { color: var(--mute); font: 500 13px/1 Onest, sans-serif; padding: 7px 11px; border-radius: 99px; text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { color: var(--black); background: var(--text); }
.menu { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.menu span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; }

/* the hero: the dusk photo of the building, the words, and the sign with the services */
.hero { position: relative; min-height: clamp(720px, calc(100vh - 72px), 940px); overflow: hidden; display: flex; }
.shot { position: absolute; inset: 0; overflow: hidden; container-type: size; }
/* The picture is day over dusk in one file: the dusk half, its left part (the sign in it is ours on the right). */
.shot img { position: absolute; left: 0; top: -112%; width: 100%; height: 212%; object-fit: cover; object-position: 4% 100%; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.35) 0, rgba(10,10,11,.05) 30%, rgba(10,10,11,.55) 70%, var(--black) 100%), linear-gradient(90deg, rgba(10,10,11,.75) 0, rgba(10,10,11,0) 60%); }
.hero .wrap { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; padding-bottom: 88px; }
.lead { max-width: 760px; }
.lead h1 { font-size: 62px; line-height: 1.02; font-weight: 800; text-transform: uppercase; margin: 0 0 18px; text-wrap: balance; }
.lead .lede { font-size: 25px; line-height: 1.3; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.lead p { color: var(--soft); margin: 0 0 30px; max-width: 31em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* the sign: a deep black box turned so its right side shows, the wash row lit in amber, swaying a little */
.pylon { --u: 16px; font-size: var(--u); perspective: 70em; padding: 0 2em 0 0; }
.py-box { position: relative; width: 17em; height: 34em; transform-style: preserve-3d; transform: rotateY(-22deg); animation: sway 10s ease-in-out infinite alternate; }
.py-face, .py-side { position: absolute; top: 0; height: 100%; }
.py-face { inset: 0; transform: translateZ(1.6em); background: linear-gradient(180deg, #19191c, #0d0d0f 60%, #0b0b0c); border: 1px solid #26262a; border-radius: .25em; padding: 2.6em 1.9em 2em; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); }
.py-side { left: calc(100% - 1.6em); width: 3.2em; transform: rotateY(90deg); background: linear-gradient(180deg, #2b2116, #17130e 70%, #0f0d0b); }
.py-logo { display: block; line-height: 0; }
.py-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 .35em rgba(255,255,255,.18)); }
.py-rows { list-style: none; margin: 2.2em 0 0; padding: 1.6em 0 0; border-top: 1px solid #3a3a3f; display: grid; gap: 1.05em; font: 500 .95em/1 Onest, sans-serif; letter-spacing: .08em; color: #d9d5cd; }
.py-rows li.on { color: var(--led); text-shadow: 0 0 .8em rgba(240,164,75,.75); font-weight: 700; }
.py-addr { margin-top: auto; padding-top: 1.4em; border-top: 1px solid #3a3a3f; font-size: .85em; color: var(--soft); }
.py-addr b { display: block; font: 400 2.6em/1.1 Michroma, sans-serif; color: #fff; margin-top: .2em; }
.py-foot { width: 21em; height: 1.6em; margin: -.4em 0 0 -1.5em; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,164,75,.35), rgba(240,164,75,0)); filter: blur(4px); }
@keyframes sway { from { transform: rotateY(-26deg); } to { transform: rotateY(-16deg); } }

@media (min-width: 861px) {
  /* The picture is 1536 x 1024, day over dusk: its dusk half fills the hero's height, so it is 3.18 heights wide; the
     building's lettering ends at 49% of its width. Slid left so that is at 58% of the hero, never leaving a gap on the left. */
  .shot img { top: -112cqh; height: 212cqh; width: auto; max-width: none; object-fit: fill; left: min(0px, calc(58cqw - 155.8cqh)); }
}

/* sections */
section { padding: 0 0 120px; }
h1, h2 { text-wrap: balance; }
h2 { font-size: 46px; line-height: 1.05; font-weight: 800; text-transform: uppercase; margin: 0 0 14px; }
.sub { color: var(--mute); margin: 0 0 36px; max-width: 36em; }
.sub a { color: var(--led); }

/* a widget's place: the widget sets its own height (widget.js), a quiet line until it has come */
.spot { position: relative; }
.spot:not(:has(iframe))::before { content: attr(data-waiting); display: grid; place-items: center; min-height: 220px; border: 1px dashed var(--line); border-radius: 24px; color: var(--mute); font-size: 15px; }
.spot iframe { display: block; width: 100%; }

/* the live queue right under the hero */
.queue { padding-top: 0; }
.queue .wrap { border-top: 1px solid var(--line); padding-top: 64px; }
.hero + .queue .wrap { border-top: 0; padding-top: 8px; }

/* the customer app */
.appgrid { display: grid; grid-template-columns: auto 1fr; gap: 80px; align-items: center; background: var(--panel); border-radius: 32px; padding: 64px 72px; }
.points { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.points li { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.points b { display: block; margin-bottom: 2px; }
.points span { color: var(--mute); font-size: 15px; }
/* Pieslēgties at the right edge of the four cards (Imants); full width with the other buttons on a phone */
.app-cta { display: flex; justify-content: flex-end; }

/* the customer phone, as on the Bayloop home page (apps/site landing.css .phone, .scr, .fs) */
.flowbox { display: grid; gap: 14px; width: 300px; max-width: 100%; }
.phone { border: 1px solid #3a3a3f; border-radius: 38px; padding: 9px; background: #000; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 60px rgba(240,164,75,.08); }
.scr { border-radius: 29px; display: flex; flex-direction: column; min-height: 570px; font-size: 13.5px; line-height: 1.35; background: #0c0d0f; color: #f2f1ee; --s-surface: #15171a; --s-line: #26292e; --s-soft: #a3a7ae; --s-fill: #1f2226; --s-ok: #46bd91; --s-acc: #f0a44b; --s-on: #15110a; overflow: hidden; }
.scr small { display: block; font-size: 12px; color: var(--s-soft); }
.flow { position: relative; }
.fs { position: absolute; inset: 0; padding: 16px 12px 0; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .4s cubic-bezier(.22,1,.36,1), transform .4s cubic-bezier(.22,1,.36,1), visibility 0s .4s; }
.fs.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fs.gone { transform: translateX(-14px); }
.p-head { display: flex; align-items: center; gap: 9px; padding: 0 2px 10px; border-bottom: 1px solid var(--s-line); }
.p-logo { width: 32px; height: 32px; border-radius: 10px; background: var(--s-acc); color: var(--s-on); display: grid; place-items: center; font: 400 12px/1 Michroma, sans-serif; flex: none; }
.p-who b { display: block; font-size: 14.5px; }
.p-sec { font-size: 12.5px; font-weight: 700; color: var(--s-soft); padding: 4px 2px 0; }
.p-card { display: grid; gap: 7px; padding: 12px; border-radius: 15px; background: var(--s-surface); border: 1px solid var(--s-line); }
.p-card > b { font-size: 14.5px; }
.p-row { display: flex; align-items: center; gap: 8px; }
.p-row + .p-row { padding-top: 9px; border-top: 1px solid var(--s-line); }
.p-row .g { flex: 1; min-width: 0; }
.p-row .g b { display: block; font-size: 14px; }
.p-row em { font-style: normal; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--s-fill); color: var(--s-soft); white-space: nowrap; }
.p-row em.ok { background: color-mix(in srgb, var(--s-ok) 16%, transparent); color: var(--s-ok); }
.scr .go, .scr .ghost { min-height: 40px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 14px; padding: 0 10px; text-align: center; }
.scr .go { background: var(--s-acc); color: var(--s-on); }
.scr .go.dark { background: #fff; color: #111317; }
.scr .ghost { border: 1px solid var(--s-line); background: var(--s-surface); }
.p-tabs { margin: auto -12px 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; font-size: 12px; font-weight: 600; color: var(--s-soft); padding: 14px 4px; border-top: 1px solid var(--s-line); background: var(--s-surface); }
.p-tabs .on { color: var(--s-acc); font-weight: 700; }
.f-mid { flex: 1; display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; padding-inline: 8px; }
.f-big { font-size: 21px; letter-spacing: -.01em; }
.f-dock { margin: auto -12px 0; padding: 12px; display: grid; gap: 8px; border-top: 1px solid var(--s-line); background: var(--s-surface); }
.faceid { position: relative; width: 76px; height: 76px; border-radius: 24px; background: color-mix(in srgb, var(--s-acc) 14%, transparent); color: var(--s-acc); display: grid; place-items: center; }
.faceid svg { width: 38px; height: 38px; grid-area: 1/1; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.faceid .tick { opacity: 0; transform: scale(.6); }
.faceid.done { background: color-mix(in srgb, var(--s-ok) 16%, transparent); color: var(--s-ok); }
.fs.scanning .scan { animation: scan 1s ease-in-out; }
.fs.passed .scan { opacity: 0; transition: opacity .2s; }
.fs.passed .tick { opacity: 1; transform: none; transition: opacity .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.fs.passed .faceid { background: color-mix(in srgb, var(--s-ok) 16%, transparent); color: var(--s-ok); transition: background .25s, color .25s; }
@keyframes scan { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.hit { position: relative; }
.fs.tap .hit { transform: scale(.97); filter: brightness(.92); transition: transform .15s, filter .15s; }
.fs.tap .hit::after { content: ""; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px; border-radius: 50%; background: rgba(127,127,127,.35); animation: tapring .5s ease-out forwards; }
@keyframes tapring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.p-opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--s-surface); border: 1px solid var(--s-line); }
.p-opt.on { border-color: var(--s-acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--s-acc) 16%, transparent); }
.p-opt .g { flex: 1; }
.p-opt .g b { display: block; font-size: 13.5px; }
.p-opt > b { white-space: nowrap; }
.rad { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--s-line); flex: none; }
.p-opt.on .rad { border: 6px solid var(--s-acc); }
.p-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.p-slots span { height: 38px; border-radius: 12px; border: 1px solid var(--s-line); background: var(--s-surface); display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.p-slots .on { background: var(--s-acc); color: var(--s-on); border-color: transparent; }
.flowsteps { display: flex; flex-wrap: wrap; gap: 2px; justify-content: space-between; }
.flowsteps button { background: none; border: 0; padding: 4px 3px; font: 600 12px Onest, sans-serif; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; }
.flowsteps button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--led); }

/* Kādēļ SUBO? */
.why { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; }
.why p { font-size: 20px; line-height: 1.65; color: var(--soft); margin: 0; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why li { background: var(--panel); border-radius: 20px; padding: 26px 28px; font-size: 20px; line-height: 1.3; font-weight: 700; display: flex; gap: 16px; align-items: center; }
.why li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--led); flex: none; box-shadow: 0 0 14px rgba(240,164,75,.7); }

/* the interior, then the prices line */
figure { margin: 0; }
.inter { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 16px; }
.inter figure { overflow: hidden; border-radius: 20px; background: var(--panel); }
.inter img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inter figure:first-child { grid-row: span 2; }
.inter figure:nth-child(2) { grid-column: span 2; }
.strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--panel); border-radius: 28px; padding: 40px 48px; margin-top: 16px; }
.strip b { display: block; font-size: 34px; line-height: 1.1; font-weight: 800; text-transform: uppercase; }
.strip span { color: var(--mute); }

/* Kur mēs atrodamies? */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards > div { background: var(--panel); border-radius: 20px; padding: 30px; }
.cards small { display: block; color: var(--led); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.cards p { margin: 0 0 10px; font-size: 20px; font-weight: 500; }
.maplink { font-size: 14px; color: var(--led); margin-left: 6px; }

/* Cenas: every price as text under the widget (#786), a table per group, sideways on a phone */
.all-prices { margin-top: 72px; }
.all-prices h2 { font-size: 34px; }
.pt { margin-top: 28px; }
.pt h3 { font-size: 20px; margin: 0 0 12px; }
.pt h3 small { font-size: 14px; font-weight: 500; color: var(--mute); margin-left: 8px; }
.pt-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.pt table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; table-layout: fixed; }
.pt thead th:first-child { width: 36%; }
.pt th, .pt td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pt tr:last-child th, .pt tr:last-child td { border-bottom: 0; }
.pt thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.pt th:first-child { text-align: left; }
.pt tbody th { font-weight: 500; white-space: normal; }
.pt td { font-weight: 700; }

/* Cenas, Galerija */
.pagehead { padding-top: 90px; }
.pagehead h1 { font-size: 62px; line-height: 1.02; font-weight: 800; text-transform: uppercase; margin: 0 0 14px; }

/* the sign-in dialog */
.dlg-back { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.68); display: grid; grid-template-columns: minmax(0, 420px); place-content: center; align-items: center; padding: 16px; }
.dlg-back[hidden] { display: none; }
.dlg { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 34px 32px 32px; width: 100%; position: relative; box-shadow: 0 40px 100px rgba(0,0,0,.7); }
.dlg h3 { margin: 0 28px 10px 0; font-size: 23px; line-height: 1.2; }
.dlg p { color: var(--mute); margin: 0 0 24px; }
.dlg .row { display: grid; gap: 10px; }
.dlg .btn { padding: 15px 24px; width: 100%; }
.dlg .x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--mute); font-size: 24px; cursor: pointer; line-height: 1; padding: 6px; }

/* the footer */
/* Room under the footer for the chat button (bottom right), so it never sits on Powered by Bayloop. */
footer { padding: 0 20px 96px; }
footer .in { background: #000; border-radius: 24px; padding: 36px 40px; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 48px; align-items: start; color: var(--mute); font-size: 14px; }
footer .mark { color: var(--text); font-size: 20px; }
.f-co p { margin: 14px 0 0; line-height: 1.9; }
.f-links { display: grid; gap: 12px; }
.f-links a { text-decoration: none; }
.f-links a:hover { color: var(--led); }
.pb { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-decoration: none; color: var(--mute); align-self: end; white-space: nowrap; }
.pb:hover { color: var(--text); }
.pb svg { flex: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .py-box { animation: none; }
  .fs, .fs.gone { transform: none; }
}
@media (max-width: 1100px) {
  .lead h1, .pagehead h1 { font-size: 48px; }
  .pylon { --u: 13px; }
  .appgrid { gap: 40px; padding: 48px 40px; }
  .points { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 68px; }
  .bar .wrap { height: 60px; gap: 10px; }
  .logo-link { height: 30px; }
  .menu { display: block; order: 3; }
  .lang { margin-left: auto; }
  .lang a { padding: 7px 9px; }
  .bar nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--black); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .bar nav.open { display: flex; }
  .bar nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .bar nav a.signin { margin-top: 14px; text-align: center; padding: 13px; border-bottom: 0; }
  .hero { min-height: 0; display: block; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; padding-top: 56px; padding-bottom: 40px; }
  .lead h1, .pagehead h1 { font-size: 36px; }
  .lead .lede { font-size: 20px; }
  /* The lead runs over the building's bright edge on a phone (A): a darker veil and a soft shadow keep it readable. */
  .shot::after { background: linear-gradient(180deg, rgba(10,10,11,.6) 0, rgba(10,10,11,.74) 45%, rgba(10,10,11,.62) 75%, var(--black) 100%); }
  .lead p, .lead h1 { text-shadow: 0 1px 12px rgba(0,0,0,.65); }
  .pylon { --u: 9.5px; justify-self: center; padding: 24px 0 0; }
  .btn { width: 100%; }
  section { padding-bottom: 64px; }
  h2 { font-size: 30px; }
  .queue .wrap { padding-top: 40px; }
  .appgrid { grid-template-columns: 1fr; gap: 36px; padding: 36px 16px; border-radius: 24px; }
  .appgrid > .flowbox { order: 2; justify-self: center; }
  .why { grid-template-columns: 1fr; gap: 28px; }
  .why p { font-size: 17px; }
  .why li { font-size: 17px; padding: 20px; }
  .inter { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
  .inter figure { height: 150px; }
  .inter figure:first-child { grid-row: auto; grid-column: span 2; height: 260px; }
  .inter figure:nth-child(2) { height: 190px; }
  .strip { flex-direction: column; align-items: flex-start; padding: 28px 20px; border-radius: 22px; }
  .strip b { font-size: 26px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .cards > div { padding: 22px; }
  .pagehead { padding-top: 48px; }
  .all-prices { margin-top: 48px; }
  .all-prices h2 { font-size: 26px; }
  .pt th, .pt td { padding: 12px 12px; }
  .dlg { padding: 30px 20px 22px; }
  footer { padding: 0 8px 88px; }
  footer .in { grid-template-columns: 1fr; gap: 28px; padding: 26px 20px; }
  .pb { align-self: start; }
}
