/* Shared base — works for both Direction A & B
 * Theme tokens are imported from tokens.css; this layer adds:
 *  - dark mode overrides
 *  - density scaling (compact / comfortable / airy)
 *  - layout primitives (container, btn, surface, card)
 */

[data-theme="dark"] {
  --surface:         #0F1012;
  --surface-faint:   #15171A;
  --surface-off:     #15171A;
  --surface-clear:   #1A1C1F;
  --surface-search:  #1A1C1F;
  --surface-beige:   #1C1814;
  --grey-lightest:   #1A1C1F;
  --grey-lighter:    #25282C;
  --grey-light:      #34383D;
  --line:            #2A2D31;
  --line-soft:       #22252A;
  --line-strong:     #3A3F45;
  --input-border:    #3A3F45;
  --ink:             #FFFFFF;
  --ink-1:           #F4F4F5;
  --ink-2:           #D4D4D7;
  --ink-3:           #B4B4B7;
  --ink-placeholder: #9A9A9D;
  --muted-1:         #94959A;
  --muted-2:         #82838A;
  --muted-3:         #72737A;
  --grey-dark:       #6B6D72;
  --grey-mid:        #5A5C61;
  --grey:            #45474D;
  --shadow-card:     0 3px 9px 0 rgba(0,0,0,0.45);
  --shadow-nav-sm:   0 5px 12px 0 rgba(0,0,0,0.55);
  --shadow-nav-md:   0 11px 14px 0 rgba(0,0,0,0.5);
}

:root {
  --brand-orange-tint:  rgba(242, 101, 34, 0.08);
  --brand-orange-edge:  rgba(242, 101, 34, 0.30);
}

/* Each artboard sets --d, and section paddings use it. */
[data-density="compact"]     { --d: 0.82; }
[data-density="comfortable"] { --d: 1;    }
[data-density="airy"]        { --d: 1.18; }

/* Reset within artboards */
.ueni-page * { box-sizing: border-box; }
.ueni-page button { font-family: inherit; cursor: pointer; }
.ueni-page img { display: block; max-width: 100%; }
.ueni-page a:not(.btn) { color: inherit; text-decoration: none; }
.ueni-page a.btn { text-decoration: none; }
.ueni-page h1, .ueni-page h2, .ueni-page h3, .ueni-page h4, .ueni-page h5, .ueni-page h6 { margin: 0; }
.ueni-page p { margin: 0; }
.ueni-page ul, .ueni-page ol { margin: 0; padding: 0; list-style: none; }

.ueni-page {
  background: var(--surface);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(24px * var(--d, 1));
}
.container--wide { max-width: 1320px; }
.container--narrow { max-width: 920px; }

.section {
  padding: calc(96px * var(--d, 1)) 0;
}
.section--sm { padding: calc(56px * var(--d, 1)) 0; }
.section--lg { padding: calc(128px * var(--d, 1)) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}
.btn--primary:hover { background: var(--brand-orange-hover); }
.btn--ghost {
  background: transparent;
  color: var(--ink-1);
  border-color: var(--ink-1);
}
.btn--ghost:hover { background: var(--ink-1); color: var(--surface); }
.btn--link {
  background: transparent; color: var(--ink-1); padding: 8px 0;
  border-radius: 0; border-bottom: 1px solid currentColor;
}
.btn--lg { padding: 18px 36px; font-size: 16px; }

/* Eyebrow / kicker */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

/* Display headings — pull tighter than tokens for hero impact */
.display-1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: inherit;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: inherit;
}
.display-3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: inherit;
}

.body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}
.body-md {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.body-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-1);
}

/* Trustpilot stars block */
.tp-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.tp-stars > span {
  width: 24px; height: 24px;
  background: #00B67A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

/* Shared Trustpilot badge — label above stars, rating grouped + vertically centred */
.tp-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink-1);
}
.tp-badge__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-1);
}
.tp-badge__row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.tp-badge__rating {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-1);
}
.tp-badge--dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.tp-badge--dark .tp-badge__label,
.tp-badge--dark .tp-badge__rating { color: #fff; }

/* Marquee scroll for press logos */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
  align-items: center;
}

/* Card surface */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-soft);
}

/* Reveal-on-scroll: respects motion tokens via simple opacity transition */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Sticky promo + sticky header */
.promo-bar {
  background: #0E1116;
  color: #fff;
  font-family: var(--font-display);
  text-align: center;
  padding: 12px 24px;
  display: block;
  text-decoration: none;
}
.promo-bar__inner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.promo-bar__flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFD7AA;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 13px;
  white-space: nowrap;
}
.promo-bar__rule {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.22);
  display: inline-block;
}
.promo-bar__body { color: #fff; font-weight: 500; }
.promo-bar__price { color: #fff; font-weight: 800; font-size: 18px; margin: 0 4px; }
.promo-bar__cta {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.promo-bar__body { white-space: nowrap; }
.promo-bar__cta:hover { background: var(--brand-orange-hover); }

/* Make the nav bar sticky (NOT the promo). PromoBar is in source above and scrolls off. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}
.site-header__nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  align-items: center;
}
.site-header__nav a {
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.site-header__nav a:hover { color: var(--brand-orange); }
.site-header__cta { display: flex; gap: 12px; align-items: center; }
.site-header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}
.site-header__phone-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success-soft);
  box-shadow: 0 0 0 4px rgba(36,196,158,0.18);
}

/* Logo svg */
.brand-logo { height: 22px; display: block; color: inherit; }
.site-header .brand-logo { color: var(--ink-1); }
.site-footer .brand-logo { color: #fff; }
[data-theme="dark"] .site-header .brand-logo { color: #fff; }

/* Smooth in-page anchor scrolling (e.g. hero "See examples" → #examples).
   scroll-margin-top on the target offsets the sticky header. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Video lightbox — shared (home explainer + videos page) */
.vlb { position: fixed; inset: 0; z-index: 1200; background: rgba(10,10,12,0.88);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.vlb.active { opacity: 1; pointer-events: auto; }
.vlb__frame { position: relative; width: min(960px, 100%); }
.vlb__video { position: relative; width: 100%; aspect-ratio: 16/9; background: #000;
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.vlb__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vlb__title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.vlb__close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 6px; }
.vlb__close svg { display: block; }
body.vlb-open { overflow: hidden; }
@media (max-width: 600px) {
  .vlb { padding: 20px 16px; align-items: flex-start; padding-top: calc(env(safe-area-inset-top, 0px) + 56px); }
  .vlb__close { top: -40px; right: 0; }
}

/* Footer */
.site-footer {
  background: var(--ink-1);
  color: #E8E8EA;
  padding-top: 80px;
  padding-bottom: 32px;
}
[data-theme="dark"] .site-footer { background: #08090B; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px; }
.site-footer__col h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A9A9AC;
  margin-bottom: 18px;
}
.site-footer__col a {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  padding: 6px 0;
  color: #D9D9DC;
}
.site-footer__col a:hover { color: var(--brand-orange); }
.site-footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9A9A9C;
}
.site-footer__socials { display: flex; gap: 16px; }
.site-footer__socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #D9D9DC;
  font-size: 14px;
}
.site-footer__socials a:hover { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-10 { gap: 40px; } .gap-12 { gap: 48px; }
.text-center { text-align: center; }


/* Why grid: 3 cols when room allows, 2 on medium, 1 on small. */
.why-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}
@media (max-width: 1023px) {
  .why-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
 * Iframe preview lightbox (shared by example galleries).
 * A sticky header bar inside the frame holds the title + a text
 * "Close preview" button so it can't be covered by mobile chrome
 * and gives an obvious "this is a preview" cue.
 * ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-frame {
  position: relative;
  width: 95vw;
  height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.lightbox-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--ink-1);
  color: #fff;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-right: calc(env(safe-area-inset-right, 0px) + 16px);
  padding-left: calc(env(safe-area-inset-left, 0px) + 16px);
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.3;
}
.lightbox-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.15s, border-color 0.15s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}
.lightbox-frame iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  display: block;
  min-height: 0;
}
body.lightbox-open { overflow: hidden; }
@media (max-width: 720px) {
  .lightbox-overlay { padding: 0; }
  .lightbox-frame {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
  .lightbox-header { padding: 10px 14px; padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .lightbox-title { font-size: 13px; }
}

/* Example gallery card as a button (reset native styles) */
.example-card {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
