/* ZilCepte design tokens. Night blue, electric blue and a lime "signal": no warm earth tones. */

@font-face {
  font-family: 'Bricolage';
  src: url('/app/fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Bricolage';
  src: url('/app/fonts/bricolage-tr.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+011E-011F, U+0130, U+015E-015F, U+20BA;
}
@font-face {
  font-family: 'Instrument';
  src: url('/app/fonts/instrument.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Instrument';
  src: url('/app/fonts/instrument-tr.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+011E-011F, U+0130, U+015E-015F, U+20BA;
}
@font-face {
  font-family: 'Fis';
  src: url('/app/fonts/spacemono-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Fis';
  src: url('/app/fonts/spacemono-700-tr.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+011E-011F, U+0130, U+015E-015F, U+20BA;
}
@font-face {
  font-family: 'Fis';
  src: url('/app/fonts/spacemono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Fis';
  src: url('/app/fonts/spacemono-400-tr.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+011E-011F, U+0130, U+015E-015F, U+20BA;
}

:root {
  /* colour */
  --ink: #06071a;
  --night: #0b0d2e;
  --night-2: #12154a;
  --blue: #2b3bff;
  --blue-2: #5c69ff;
  --blue-deep: #1a25c9;
  --lime: #d8ff3e;
  --lime-2: #ecff9a;
  --lime-deep: #b6e000;
  --mist: #e9ecff;
  --paper: #f5f6ff;
  --white: #ffffff;
  --coral: #ff4d5e;
  --ok: #19c37d;

  /* type */
  --font-display: 'Bricolage', 'Arial Narrow', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Instrument', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-fis: 'Fis', ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
  --fs-hero: clamp(3.9rem, 15.2vw, 12.5rem);
  --fs-h2: clamp(2.35rem, 6.4vw, 5.4rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.06rem, 1.45vw, 1.32rem);
  --fs-body: clamp(1rem, 1.05vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-kicker: 0.78rem;

  /* space */
  --gutter: clamp(20px, 4.4vw, 56px);
  --max: 1280px;
  --section: clamp(84px, 11vw, 168px);
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --radius-xl: 44px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 900ms;

  --header-h: 68px;
  color-scheme: dark;
}

/* section themes: each sets the same handful of variables */
.t-dark {
  --bg: var(--ink);
  --fg: #f1f2ff;
  --muted: #a3a8de;
  --line: rgb(255 255 255 / 0.12);
  --card: rgb(255 255 255 / 0.05);
  --mark-bg: var(--lime);
  --mark-fg: var(--ink);
  --accent: var(--lime);
  --on-accent: var(--ink);
}
.t-night {
  --bg: var(--night);
  --fg: #f1f2ff;
  --muted: #a9aee6;
  --line: rgb(255 255 255 / 0.13);
  --card: rgb(255 255 255 / 0.06);
  --mark-bg: var(--lime);
  --mark-fg: var(--ink);
  --accent: var(--lime);
  --on-accent: var(--ink);
}
.t-blue {
  --bg: var(--blue);
  --fg: #ffffff;
  --muted: #d5d9ff;
  --line: rgb(255 255 255 / 0.22);
  --card: rgb(255 255 255 / 0.1);
  --mark-bg: var(--lime);
  --mark-fg: var(--ink);
  --accent: var(--lime);
  --on-accent: var(--ink);
}
.t-paper {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #545a8c;
  --line: rgb(6 7 26 / 0.12);
  --card: #ffffff;
  --mark-bg: var(--blue);
  --mark-fg: #ffffff;
  --accent: var(--blue);
  --on-accent: #ffffff;
}
.t-lime {
  --bg: var(--lime);
  --fg: var(--ink);
  --muted: #2c3410;
  --line: rgb(6 7 26 / 0.18);
  --card: rgb(6 7 26 / 0.06);
  --mark-bg: var(--ink);
  --mark-fg: var(--lime);
  --accent: var(--ink);
  --on-accent: var(--lime);
}

/* Reset, type and the shared pieces: container, headings, highlighted words, buttons, reveals. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--ink);
}
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: #f1f2ff;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}
img,
picture,
canvas,
svg {
  -webkit-user-drag: none;
  user-select: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
.plan-benefits {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding-inline-start: 1.2em;
  list-style: disc;
  font-size: 1rem;
  line-height: 1.5;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 8px;
}
.t-paper :focus-visible,
.t-lime :focus-visible {
  outline-color: var(--blue);
}
::selection {
  background: var(--lime);
  color: var(--ink);
}

.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  transition: top var(--t-fast) var(--ease-out);
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- layout */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: var(--section);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- type */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.032em;
  line-height: 0.94;
  text-wrap: balance;
}
.h2 .line {
  display: block;
}
.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-fis);
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  /* a thin ring that leaves the dot and fades: a line, not a filled disc (a faint disc reads as a smudge) */
  outline: 1.5px solid var(--accent);
  outline-offset: 0;
  animation: dot-ring 2.4s var(--ease-out) infinite;
}
@keyframes dot-ring {
  0% {
    outline-offset: 0;
    outline-color: color-mix(in srgb, var(--accent) 90%, transparent);
  }
  70%,
  100% {
    outline-offset: 11px;
    outline-color: color-mix(in srgb, var(--accent) 1%, transparent);
  }
}

/* highlighted words: the caption style of a phone video, a box behind the word */
mark {
  display: inline-block;
  padding: 0.02em 0.2em 0.07em;
  margin-inline: -0.04em;
  border-radius: 0.16em;
  background: var(--mark-bg);
  color: var(--mark-fg);
  transform: rotate(-1.4deg);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  isolation: isolate;
  transition:
    transform var(--t-fast) var(--ease-out),
    background-color var(--t-fast) ease,
    color var(--t-fast) ease,
    box-shadow var(--t-med) var(--ease-out);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgb(216 255 62 / 0.5);
}
.btn-lime:hover {
  background: #e6ff6e;
  box-shadow: 0 0 0 10px rgb(216 255 62 / 0);
}
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover {
  background: var(--blue-deep);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover {
  background: var(--night-2);
}
.btn-ghost {
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--fg);
}
.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}
.btn-lg {
  min-height: 62px;
  padding: 0 32px;
  font-size: 1.08rem;
}

/* ---------- the logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 84%;
  font-size: 1.55rem;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--fg, #fff);
}
.logo [data-l]::after {
  content: attr(data-l);
}
.logo .i {
  position: relative;
  display: inline-block;
}
/* the dot of the "i" is the bell: the letter is a dotless ı with a ringing dot above it */
.logo .i::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -0.04em;
  width: 0.19em;
  height: 0.19em;
  margin-left: -0.095em;
  border-radius: 50%;
  background: var(--logo-dot, var(--lime));
  animation: logo-ring 3.2s var(--ease-out) infinite;
}
@keyframes logo-ring {
  0%,
  55% {
    box-shadow:
      0 0 0 0 color-mix(in srgb, var(--logo-dot, var(--lime)) 70%, transparent),
      0 0 0 0 color-mix(in srgb, var(--logo-dot, var(--lime)) 40%, transparent);
  }
  100% {
    box-shadow:
      0 0 0 0.32em color-mix(in srgb, var(--logo-dot, var(--lime)) 0%, transparent),
      0 0 0 0.58em color-mix(in srgb, var(--logo-dot, var(--lime)) 0%, transparent);
  }
}
.logo .cepte {
  opacity: 0.62;
}

/* ---------- reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* headings rise line by line */
[data-lines] .line {
  display: block;
  overflow: hidden;
  padding-block: 0.08em 0.14em;
  margin-block: -0.08em -0.14em;
}
[data-lines] .line > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--l, 0) * 90ms);
}
[data-lines].is-in .line > span {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal],
  [data-lines] .line > span {
    opacity: 1;
    transform: none;
  }
}
/* without JavaScript nothing waits for a reveal */
html:not(.js) [data-reveal],
html:not(.js) [data-lines] .line > span {
  opacity: 1;
  transform: none;
}

/* The build loads the original ZilCepte tokens, fonts, wordmark and button styles first. */
html {
  color-scheme: light;
}
body {
  background: var(--paper);
  color: var(--ink);
  --muted: #545a8c;
  --line: rgb(6 7 26 / 0.13);
}
a {
  color: var(--blue-deep);
}
input,
select,
textarea,
button {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:not(.btn),
.btn:not(.btn-lime, .btn-ink, .btn-ghost) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  cursor: pointer;
}
button.primary,
.btn.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
button.purple,
.btn.purple {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:not(:disabled):hover,
.btn:hover {
  box-shadow: 0 0 0 2px rgb(43 59 255 / 0.18);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue-2);
  outline-offset: 3px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}
.portal-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 56px;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: 20px 10px;
  border-radius: 999px;
  background: rgb(8 10 34 / 0.92);
  color: white;
  --fg: white;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.12),
    0 12px 40px rgb(2 3 20 / 0.18);
  backdrop-filter: blur(18px) saturate(1.4);
  pointer-events: auto;
}
.brand {
  display: flex;
  color: white;
  align-items: center;
  flex: none;
}
.brand .logo {
  direction: ltr;
}
.top-actions,
.row,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.top-actions {
  flex-wrap: nowrap;
}
.top-actions select,
.top-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: 100%;
  padding: 5px 12px;
  color: #eceeff;
  background: var(--night);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}
.top-actions :is(a, button) {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.top-actions [hidden],
.portal-nav:empty {
  display: none;
}
.google-signin { display: grid; gap: 1rem; justify-items: start; }
.google-signin :is(h1,p) { margin: 0; }
.google-signin [hidden], .google-signin #google-status:empty { display: none; }
.portal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-nav a {
  border-radius: 999px;
  padding: 6px 12px;
  color: #dfe2ff;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.portal-nav a:hover,
.portal-nav a:focus-visible {
  color: white;
  background: #23254a;
}
main,
footer,
.portal-wrap,
.portal-hero-inner {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}
main {
  min-height: 72svh;
  padding: clamp(24px, 5vw, 60px) 0 48px;
}
h1,
h2,
h3,
.number,
.price,
.metric,
.boardnum,
.ticket strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.8rem);
}
h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}
h3 {
  font-size: var(--fs-h3);
}
html[dir="rtl"] :is(h1, h2, h3, .number, .price, .metric) {
  letter-spacing: normal;
  line-height: 1.3;
}
.stack,
.card,
form {
  display: grid;
  gap: 16px;
  align-content: start;
}
.card {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(18px, 3vw, 32px);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.grid > *,
.stack > *,
.desk > * {
  min-width: 0;
}
main:has(.portal-welcome) {
  width: 100%;
  padding: 0;
}
body:has(.portal-welcome) {
  background: var(--night);
}
.portal-hero {
  position: relative;
  isolation: isolate;
  background: #090c48;
  overflow: hidden;
  min-height: clamp(520px, 76svh, 790px);
  display: grid;
  align-items: center;
  margin-top: -68px;
}
.portal-hero picture,
.portal-hero picture img,
.portal-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portal-hero picture {
  z-index: -2;
}
.portal-hero picture img {
  object-fit: cover;
}
.portal-hero::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgb(6 7 26 / 0.85),
      rgb(6 7 26 / 0.49) 33%,
      transparent 58%
    ),
    linear-gradient(0deg, rgb(6 7 26 / 0.54), transparent 30%);
}
.portal-hero-inner {
  padding-block: 110px 60px;
  display: grid;
}
.portal-hero-inner > div {
  width: min(47%, 600px);
  display: grid;
  justify-items: start;
  gap: 20px;
  color: white;
  --fg: white;
}
.portal-hero h1 {
  font-size: clamp(3.6rem, 6.7vw, 7rem);
  line-height: 0.95;
}
.portal-hero mark {
  display: inline-block;
  padding: 0.02em 0.11em 0.08em;
  border-radius: 0.12em;
  transform: rotate(-1.4deg);
  background: var(--lime);
  color: var(--ink);
}
.portal-hero .lead-copy {
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 36ch;
}
.pilot-note {
  color: #e2e5ff;
  font-size: 0.88rem;
}
.portal-hero .btn-ghost {
  color: white;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.45);
}
html[dir="rtl"] .portal-hero picture {
  left: -25%;
  right: auto;
  mask-image: linear-gradient(90deg, #000 0 83%, transparent);
}
html[dir="rtl"] .portal-hero::after {
  background: linear-gradient(
    270deg,
    rgb(6 7 26 / 0.85),
    rgb(6 7 26 / 0.55) 31%,
    transparent 58%
  );
}
html[dir="rtl"] .portal-hero h1 {
  line-height: 1.24;
}
.welcome-pricing {
  background: var(--night);
  color: white;
  padding-block: clamp(36px, 6vw, 82px);
}
.welcome-pricing h2 {
  margin-bottom: 22px;
}
.price-card {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  gap: 16px;
  background: white;
  color: var(--ink);
  grid-template-rows: auto auto auto 1fr auto auto;
}
.plan-note { max-width: 82ch; font-size: 1rem; line-height: 1.55; }
.welcome-pricing .plan-note { margin-block-start: 18px; }
.plan-details { color: var(--ink); }
.price-card[data-plan="signature"] {
  background: var(--lime);
}
.price-card h2 {
  font: 700 0.88rem var(--font-fis);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #42486d;
  margin: 0;
}
.price-card .amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price {
  font-size: clamp(3.8rem, 7vw, 6rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
}
.amount span,
.caption {
  font-family: var(--font-fis);
  font-size: 0.82rem;
  color: var(--muted);
}
.price-card .muted {
  color: #404467;
}
.plan-cut {
  height: 0;
  border-top: 2px dashed rgb(6 7 26 / 0.22);
  margin-top: 4px;
  position: relative;
}
.price-card .btn {
  justify-self: start;
  min-width: min(215px, 100%);
}
.partner-line {
  margin-top: 22px;
  color: #dfe2ff;
}
.partner-line a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
html:has(.portal-welcome) { scroll-behavior:auto; }
body:has(.desk) {
  background: radial-gradient(80% 60% at 50% 0%,rgb(92 105 255 / .55),transparent 70%), var(--blue);
}
body:has(.desk) footer { border-color:rgb(255 255 255 / .3); }
body:has(.desk) footer a,.branch-heading,.branch-heading .caption { color:white; }
.desk .branch-heading .caption::before { background:var(--lime); }
#rows .ticket { margin-block:8px; padding:14px; border:0; border-radius:var(--radius-s); background:var(--night); color:white; }
#rows .ticket .caption { color:#dfe2ff; }
#rows .ticket:has(.state.ready) { background:var(--lime); color:var(--ink); }
#rows .ticket:has(.state.ready) .caption { color:#394900; }
#rows .ticket:has(.state.ready) button.primary { background:var(--night); color:white; }
#receipt:empty { display: none; }
#rows .ticket { scroll-margin-block-start: 6rem; }
.desk .branch-heading:has(.display-launch) { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#display-link:empty { display: none; }
.display-mode { background: radial-gradient(ellipse at 50% 12%, #262e83, transparent 70%), var(--night); color: white; }
.display-mode :is(.top, #foot, #feedback) { display: none; }
.display-mode #main { width: 100%; max-width: none; min-height: 100svh; margin: 0; padding: 1rem; display: grid; place-items: center; }
.customer-display { display: grid; justify-items: center; gap: clamp(.6rem, 2svh, 1.35rem); width: 100%; text-align: center; }
.customer-display .display-branch { color: #d8dcff; font-weight: 650; font-size: clamp(1rem, 2.2vmin, 1.35rem); margin: 0; overflow-wrap: anywhere; }
.customer-display .display-number { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55em; margin: 0; color: white; font-size: clamp(1.2rem, 4vmin, 2rem); letter-spacing: normal; }
.display-number bdi { max-width: 100%; padding: .08em .38em .12em; border-radius: var(--radius-s); background: var(--lime); color: var(--ink); font: 800 clamp(2rem, 8vmin, 4.5rem)/1.05 var(--font-display); overflow-wrap: anywhere; }
.display-code { width: min(82vw, 56svh, 28rem); background: white; border-radius: var(--radius-m); overflow: hidden; }
.display-code .qr, .display-code .qr svg { display: block; width: 100%; height: auto; padding: 0; }
.customer-display .display-instruction { color: white; font-size: clamp(1.05rem, 3vmin, 1.65rem); font-weight: 650; margin: 0; }
.customer-display .display-message { margin: 0; max-width: 22ch; color: white; font: 750 clamp(2rem, 7vmin, 4rem)/1.18 var(--font-display); letter-spacing: normal; text-wrap: balance; }
.desk :where(.stack > .banner) { color:var(--ink); }
.desk {
  display: grid;
  grid-template-columns: minmax(165px, 215px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 36px);
}
.rail {
  position: sticky;
  top: 80px;
  display: grid;
  gap: 5px;
  background: var(--night);
  padding: 10px;
  border-radius: var(--radius-m);
}
.rail :is(a, button, summary) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #e4e7ff;
  font-weight: 700;
  text-align: start;
  text-decoration: none;
}
.rail a:hover, .rail summary:hover { background: #25284c; }
.rail a[aria-current="page"], .rail summary.has-current {
  background: var(--lime);
  color: var(--ink);
}
.rail-more { min-width: 0; border-block-start: 1px solid #353951; padding-block-start: 5px; }
.rail summary { justify-content: space-between; cursor: pointer; list-style: none; }
.rail summary::-webkit-details-marker { display: none; }
.rail summary::after {
  content: ""; inline-size: 7px; block-size: 7px; border-inline-end: 2px solid; border-block-end: 2px solid;
  transform: rotate(45deg);
}
[dir="rtl"] .rail summary::after { transform: rotate(-45deg); }
.rail-more[open] > summary::after { rotate: 180deg; }
.rail-menu { display: grid; gap: 2px; }
.branch-picker { color: white; padding: 8px; }
.rail :focus-visible { outline-color: var(--lime); outline-offset: -3px; }
.rail [aria-current="page"]:focus-visible { outline-color: var(--ink); }
.order-entry {
  display: grid; grid-template-columns: minmax(110px, 280px) max-content; gap: 10px; align-items: end;
}
.order-entry button { min-height: 47px; }
.order-details, .brand-part + .brand-part { border-block-start: 1px solid var(--line); padding-block-start: 14px; }
.order-details summary, .tool-disclosure > summary { padding-block: 6px; }
.detail-fields { display: grid; gap: 14px; padding-block-start: 12px; }
.tool-disclosure .btn { justify-self: start; }
.brand-workspace {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .9fr);
  gap: clamp(14px, 2vw, 26px); align-items: start;
}
.brand-editor { gap: 18px; padding: clamp(20px, 2.4vw, 32px); min-width: 0; }
.brand-part { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.brand-part legend, .brand-fields > label {
  color: var(--ink); font-size: 1rem; font-weight: 750; padding: 0;
}
.brand-part legend { float: inline-start; width: 100%; margin-block-end: 8px; }
.brand-part legend + * { clear: both; }
.brand-upload { display: flex; align-items: center; gap: 12px; }
.brand-upload > div { min-width: 0; }
.brand-upload .actions { gap: 5px; }
.brand-editor small { font-size: .86rem; line-height: 1.45; color: var(--muted); }
.brand-upload small { display: block; margin-block-start: 3px; }
.logo-tile {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; overflow: hidden;
  border-radius: 14px; border: 1px solid #d3d7ff; background: var(--mist); color: var(--blue-deep);
  font: 800 1.55rem var(--font-display);
}
.logo-tile img { object-fit: contain; width: 100%; height: 100%; }
.upload-control {
  position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); cursor: pointer;
}
.upload-control input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-control:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.brand-editor .text-control { padding-inline: 8px; border: none; background: transparent; text-decoration: underline; }
.brand-editor [hidden] { display: none !important; }
.brand-editor .field-error:empty { display: none; }
.field-error { color: #982238; }
.brand-editor .check { color: var(--ink); min-height: 36px; }
.palette-toggle input { accent-color: var(--blue-deep); width: 20px; height: 20px; }
.brand-colour-picker { display: grid; gap: 8px; padding-block-start: 7px; }
.brand-colour-picker > label { display: flex; align-items: center; gap: 10px; }
.brand-colour-picker input[type="color"] { padding: 4px; cursor: pointer; }
.brand-colour-picker summary { font-size: .9rem; color: var(--blue-deep); }
.brand-colours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block-start: 8px; }
.brand-colours label { font-size: .88rem; }
.brand-colours input[type="color"] { width: 100%; min-width: 0; padding: 5px; cursor: pointer; }
.brand-fields { display: grid; gap: 6px; }
.brand-fields textarea { width: 100%; resize: vertical; min-height: 64px; line-height: 1.45; }
.brand-fields label:last-child { margin-block-start: 10px; }
.brand-actions { display: grid; gap: 8px; }
.brand-actions .actions { gap: 8px; }
.draft-state { font-size: .88rem; font-weight: 650; color: var(--blue-deep); }
.preview-shortcut { display: none; }
.brand-preview {
  position: sticky; top: 84px; min-width: 0; scroll-margin-top: 82px; color: white; background: var(--night);
  border-radius: var(--radius-l); padding: clamp(16px, 2.1vw, 28px);
}
.brand-preview h2 { font-size: clamp(1.1rem, 1.7vw, 1.55rem); margin-block-end: 14px; }
.brand-preview .guest-card { padding: clamp(14px, 2vw, 24px); gap: 12px; box-shadow: none; }
.brand-preview .guest-ticket { padding: 12px 15px; }
.brand-preview .number { font-size: clamp(2.6rem, 5vw, 3.8rem); }
.brand-preview .receipt-status { padding: 8px 0; }
.brand-preview .receipt-ring { width: 52px; margin-block-end: 12px; }
.brand-preview .receipt-status h3 { font-size: clamp(1.3rem, 2.6vw, 2.2rem); }
.guest-card :is(h1,h3,p,strong) { overflow-wrap: anywhere; }
html[lang="ar"] .desk :is(h1,h2,h3) { font-family: var(--font-display), Tahoma, sans-serif; }
@media (max-width: 1080px) {
  .desk { grid-template-columns: 1fr; gap: 12px; }
  .rail {
    display: flex; align-items: center; position: relative; top: auto; z-index: 4;
    padding: 6px; flex-wrap: wrap; gap: 2px;
  }
  .rail-more { position: static; border: 0; border-inline-start: 1px solid #353951; padding: 0; margin-inline-start: auto; }
  .rail summary { gap: 9px; }
  .rail-menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 5px); min-width: min(235px, 100%);
    max-height: 60svh; overflow-y: auto; padding: 8px; box-shadow: 0 12px 30px rgb(6 7 26 / .3);
    border-radius: 16px; background: var(--night);
  }
}
.branch-heading {
  padding-block: 6px;
}
.branch-heading .caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 8px;
}
.branch-heading .caption::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
}
input:not([type="checkbox"]),
select,
textarea {
  max-width: 100%;
  min-width: 0;
  border: 1px solid #aeb3da;
  border-radius: var(--radius-s);
  background: white;
  padding: 11px 13px;
  color: var(--ink);
}
input[type="color"] {
  min-width: 65px;
  height: 43px;
}
[data-colours][hidden] {
  display: none;
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.muted {
  color: var(--muted);
}
.metric {
  font-size: 2.7rem;
}
.ticket {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-block-end: 1px solid var(--line);
  padding-block: 14px;
}
.ticket strong {
  font-size: 1.55rem;
}
.state {
  display: inline-block;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue-deep);
  padding: 3px 11px;
  font-size: 0.88rem;
  font-weight: 700;
}
.state.ready {
  background: var(--lime);
  color: var(--ink);
}
.banner {
  border-inline-start: 4px solid var(--blue);
  background: var(--mist);
  padding: 12px 16px;
  border-radius: var(--radius-s);
}
.guest {
  max-width: 620px;
  margin-inline: auto;
}
body:not(:has(.desk)):has([data-receipt-state]) {
  background: radial-gradient(ellipse at top, var(--night-2), var(--ink) 80%);
}
.guest-card {
  border-top: 6px solid var(--guest-accent, var(--lime));
}
.guest-card[data-receipt-state] {
  --guest-ink: var(--night);
  background: var(--night);
  color: white;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid #353962;
  gap: 17px;
  box-shadow: 0 16px 50px rgb(6 7 26 / 0.24);
}
.guest-card[data-receipt-state="ready"] {
  background: var(--lime);
  color: var(--ink);
  border-color: transparent;
}
.guest-card[data-receipt-state="collected"],
.guest-card[data-receipt-state="cancelled"] {
  background: var(--paper);
  color: var(--ink);
}
.guest-card .receipt-shop {
  display: flex;
  align-items: center;
  gap: 10px;
}
.receipt-shop img,
.shop-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.receipt-shop img,
.logo-preview {
  max-width: 140px;
  max-height: 72px;
  object-fit: contain;
}
.shop-mark {
  display: grid;
  place-items: center;
  background: var(--guest-accent, var(--lime));
  color: var(--ink);
  font: 800 1.1rem var(--font-display);
}
[data-receipt-state="ready"] .shop-mark {
  background: var(--ink);
  color: var(--lime);
}
.receipt-shop small {
  display: block;
  font-size: 0.82rem;
  opacity: 0.8;
}
.guest-alerts { display: grid; gap: 8px; }
.guest-alerts small, .guest-other-order { font-size: .92rem; }
.guest-other-order { color: inherit; text-underline-offset: .2em; width: fit-content; }
.guest-install { display: grid; gap: 14px; }
.guest-install ol { margin: 0; padding-inline-start: 1.5em; }
.guest-install li + li { margin-top: .65em; }
.guest-install output { font: 700 1.45rem var(--mono, monospace); letter-spacing: .1em; text-align: center; }
.guest-ticket {
  padding: 17px 20px;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  border-bottom: 2px dashed #c2c6e3;
}
.guest-ticket span {
  display: block;
  font: 700 0.76rem var(--font-fis);
  letter-spacing: 0.06em;
}
.guest-card .number {
  display: block;
  text-align: center;
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  line-height: 0.95;
  margin-block-start: 6px;
}
.receipt-status {
  text-align: center;
  padding-block: clamp(12px, 2.7vw, 25px);
}
.receipt-status h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.receipt-status p {
  margin-block-start: 8px;
}
.receipt-ring {
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  margin: 5px auto 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.receipt-ring svg {
  width: 28px;
}
[data-receipt-state="ready"] .receipt-ring {
  background: var(--ink);
  color: var(--lime);
  box-shadow: 0 0 0 7px rgb(6 7 26 / 0.12);
  border: 0;
}
.guest-card[data-receipt-state] .muted {
  color: inherit;
  opacity: 0.84;
}
.demo-reward {
  padding: 12px;
  border-radius: var(--radius-s);
  background: var(--mist);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}
#demo-connection:empty {
  display: none;
}
.qr {
  background: white;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  justify-self: start;
}
.qr svg {
  width: 180px;
  height: 180px;
}
.receipt {
  border: 2px dashed #9ba2ca;
}
.segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.segments button[aria-pressed="true"] {
  background: var(--night);
  border-color: var(--night);
  color: white;
}
.boardnum {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  padding: 15px 22px;
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--radius-m);
}
.loader {
  width: 32px;
  height: 32px;
  margin: 15vh auto;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#feedback:not(:empty) {
  position: fixed;
  z-index: 8;
  bottom: 18px;
  inset-inline: 5%;
  margin: auto;
  width: fit-content;
  max-width: 90%;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: white;
}
footer {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body:has(.portal-welcome) footer,
body:not(:has(.desk)):has([data-receipt-state]) footer {
  border-color: #454971;
}
body:has(.portal-welcome) footer a,
body:not(:has(.desk)):has([data-receipt-state]) footer a {
  color: #dfe2ff;
}
#output:empty {
  display: none;
}
output {
  overflow-wrap: anywhere;
}
details > summary {
  cursor: pointer;
  font-weight: 700;
}
.gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--ink);
}
.gate-card {
  width: min(90%, 380px);
  min-height: 0;
  padding: 32px;
  margin: auto;
  border-radius: var(--radius-l);
  border: 1px solid #33365a;
  background: var(--night);
  color: white;
}
.gate-card .logo {
  font-size: 3rem;
  margin-bottom: 22px;
}
.gate-card form {
  gap: 12px;
}
.gate-card label {
  color: #e4e7ff;
}
.gate-card [role="alert"] {
  color: #ffacb3;
}
@media (max-width: 800px) {
  .portal-nav {
    display: none;
  }
  .desk {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card {
    border-radius: var(--radius-m);
  }
}
@media (max-width: 690px) {
  main:has(.desk) { width: calc(100% - 24px); padding-top: 15px; }
  .desk .rail :is(a,summary) { padding-inline: 9px; font-size: .88rem; }
  .desk .rail { row-gap: 3px; }
  .brand-workspace { grid-template-columns: 1fr; }
  .brand-preview { position: static; }
  .preview-shortcut { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; font-weight: 700; }
  .brand-preview .guest-card { max-width: 390px; margin-inline: auto; }
  .order-entry { grid-template-columns: minmax(76px, 1fr) auto; }
  .portal-hero {
    min-height: clamp(640px, 91svh, 850px);
    align-items: start;
  }
  .portal-hero-inner {
    padding: 94px 0 0;
  }
  .portal-hero-inner > div {
    width: 100%;
    gap: 10px;
  }
  .portal-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }
  .portal-hero .lead-copy {
    max-width: 31ch;
    font-size: 1rem;
  }
  .portal-hero .btn {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.88rem;
  }
  .portal-hero picture img {
    object-position: center 58%;
  }
  .portal-hero::after,
  html[dir="rtl"] .portal-hero::after {
    background: linear-gradient(
      180deg,
      rgb(6 7 26 / 0.92),
      rgb(6 7 26 / 0.7) 33%,
      transparent 58%
    );
  }
  html[dir="rtl"] .portal-hero picture {
    inset: 0;
    mask-image: none;
  }
  .top {
    padding-inline: 12px;
  }
  .portal-head-in {
    gap: 7px;
    padding-inline: 13px 6px;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions select,
  .top-actions :is(a, button) {
    padding-inline: 9px;
    font-size: 0.82rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
  }
}
@media print {
  header,
  footer,
  .rail,
  .noprint,
  #feedback,
  .desk:has(.receipt) .stack > .card:not(.receipt) {
    display: none !important;
  }
  body,
  main,
  .desk {
    display: block !important;
    background: white;
    width: 100%;
    padding: 0;
  }
  .receipt {
    break-inside: avoid;
  }
}
