/* ============================================================
   Bookara marketing site. Every shared token (colors, type, radii,
   spacing, shadows, light and dark) comes from design-system/tokens.css,
   a generated copy of ../design-system/css/tokens.css linked before this
   file. Never redefine a shared token here; edit the source and run
   scripts/sync-landing-tokens.sh.

   This file adds only the marketing layout (DESIGN.md, "Landing
   (marketing site)" under Surfaces): the 1200px shell, display type,
   hero blobs and paper grain, all built from the shared tokens.
   ============================================================ */

/* Landing-only tokens. */
:root {
  --font-sans: var(--font-body);
  --shell-width: 1200px;
  /* The dark navy band behind the final CTA. */
  --navy-panel: #0b3558;
  /* Translucent --cloud for the sticky, blurred header. */
  --header-bg: rgba(248, 249, 251, 0.86);
  /* Bezel of the phone frames in #apps; stays dark in both themes. */
  --phone-bezel: #0b3558;
  /* Deeper --pine for the pricing discount badge, so its white 12px text
     passes AA (5.4:1) in both themes; --pine itself is 3.3:1 / 2:1. */
  --discount-bg: #157a4c;
  /* Success text (slug "available"): --pine is too light on white. */
  --ok-text: #157a4c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy-panel: #122840;
    --header-bg: rgba(10, 18, 28, 0.86);
    --phone-bezel: #2a3b4e;
    --ok-text: var(--pine);
  }
}

:root[data-theme="dark"] {
  --navy-panel: #122840;
  --header-bg: rgba(10, 18, 28, 0.86);
  --phone-bezel: #2a3b4e;
  --ok-text: var(--pine);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  position: relative;
  background: var(--cloud);
  color: var(--ink-navy);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Paper-grain: a barely-there texture so the "cool marble" canvas doesn't
   read as a flat vector fill. Fixed + pointer-events: none so it never
   intercepts clicks; z-index sits below the sticky header (40). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll-reveal: applied via script.js to benefit/step/plan items. Kept
   to transform + opacity only (GPU-friendly), and skipped entirely for
   prefers-reduced-motion — see initScrollReveal(). */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink-navy);
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

dd {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.shell {
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--action-bg);
  color: var(--on-accent);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-brass {
  background: var(--action-bg);
  color: var(--on-accent);
  box-shadow: var(--shadow-button);
}

.btn-brass:hover {
  background: var(--action-bg-hover);
}

.btn-outline {
  background: var(--paper);
  color: var(--ink-navy);
  border-color: var(--hairline);
}

.btn-outline:hover {
  border-color: var(--signal-blue);
  color: var(--signal-blue);
}

.btn-large {
  padding: 14px 28px;
  font-size: 18px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  min-height: 64px;
}

/* Brand name in the top bar and footer. The font link loads only the
   "bookara" glyphs at weight 800, so keep the text lowercase. */
.wordmark {
  font-family: "Bricolage Grotesque", var(--font-sans);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--signal-blue);
  text-decoration: none;
  margin-right: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-navy);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--signal-blue);
}

.site-nav a[aria-current="page"] {
  color: var(--signal-blue);
  font-weight: 600;
}

.site-header-actions {
  /* Every header control (language, theme, CTA, burger) shares the CTA's height. */
  --header-control-h: 39px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header-actions .nav-cta {
  box-sizing: border-box;
  height: var(--header-control-h);
  padding-top: 0;
  padding-bottom: 0;
}

.site-header-actions .menu-toggle {
  width: var(--header-control-h);
  height: var(--header-control-h);
}

/* .theme-toggle and .lang-select come from design-system/header-controls.css,
   sized by --header-control-h above.
   Landing renders both icons and swaps them with CSS, before its JS loads. */

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.nav-cta-short {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle:hover {
  border-color: var(--signal-blue);
}

.menu-toggle-bar {
  width: 16px;
  height: 1.6px;
  border-radius: 1px;
  background: var(--ink-navy);
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-bar {
    transition: none;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  /* Collapses into a dropdown panel anchored under the header row
     (which is position: relative for this) instead of disappearing
     outright — the menu-toggle button reveals it via .is-open. */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    flex-direction: column;
    gap: 0;
    margin-top: 1px;
    padding: 6px 8px;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 8px;
    border-top: 1px solid var(--hairline);
  }

  .site-nav a:first-child {
    border-top: none;
  }
}

@media (max-width: 480px) {
  .site-header-row {
    gap: 10px;
    padding: 12px 16px;
  }

  .site-header-actions {
    --header-control-h: 38px;
    gap: 8px;
  }

  .wordmark {
    font-size: 24px;
  }

  @media (max-width: 359px) {
    .site-header-row {
      gap: 8px;
    }

    .site-header-actions {
      gap: 4px;
    }

    .site-header .wordmark {
      font-size: 20px;
    }
  }

  .lang-select select {
    padding: 0 18px 0 8px;
    font-size: 11px;
  }

  .site-header-actions .btn-small {
    padding: 8px 12px;
    font-size: 13px;
  }

  .nav-cta-full {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .site-nav {
    left: 16px;
    right: 16px;
  }
}

/* ---------- Hero ---------- */

.hero {
  /* Bottom padding leaves room for .hero-glow (inset -70px + 50px blur) to
     fade out before overflow: hidden clips it; any less and the cut lands
     on the "who" line below. */
  padding: 72px 0 168px;
  overflow: hidden;
}

.hero-row {
  display: grid;
  /* minmax(0, ...): see the same-reasoning comment on the 900px override
     below — without it a long unbreakable content run can force a track
     wider than its share of the row. */
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

/* Grid items default to min-width: auto, so a long unbreakable word (or any
   other long content) can otherwise force this column — and the whole grid
   — wider than the viewport before overflow-wrap ever gets a chance to
   apply. */
.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--tint-bg);
  color: var(--deep-cobalt);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  /* Reuses .hero-sub's max-width below so a static one-sentence headline
     doesn't stretch into one very long line on wide desktops. white-space:
     pre-line lets a locale's copy force its own line break with a literal
     "\n" (the Armenian headline uses this) while still wrapping normally
     otherwise. overflow-wrap is a safety net for any long unbreakable
     word — without it, one such word sets the grid column's min-content
     width and blows out the layout. */
  max-width: 46ch;
  white-space: pre-line;
  overflow-wrap: break-word;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.24;
}

/* Armenian's headline currently ends on "նամակագրություն" (16 chars, no
   natural break point) alone on its own wrapped line — at the shared 34-60px
   range it doesn't fit that line at common mobile widths (360-414px) or on
   desktop (the hero-copy column tops out ~575px, bounded by the shell's
   1200px max-width and the 1.05fr/0.95fr split with hero-visual), so it
   breaks mid-word. Scoped to hy via <html lang> (set on load and on every
   locale switch). Even this narrower range still can't fit the word on the
   very narrowest phones (~320px); measured trade-off, not a bug. */
html[lang="hy"] .hero-copy h1 {
  font-size: clamp(30px, 4.6vw, 56px);
}

/* Russian's headline is forced to its own 2-line break (see the "\n" in
   STRINGS.ru) so it never reflows to 3 lines. At the shared 34-60px range,
   though, the second line ("меньше переписки.") is ~1-55px wider than the
   column at both ends of that range (320-360px mobile, and desktop where
   the column tops out ~575px per the hy comment above) — the forced break
   only prevents a 3rd line from wrapping *in*, it doesn't stop the browser
   overflow-wrapping mid-word within either line if a line itself doesn't
   fit. This narrower range keeps both forced lines within the column at
   every measured width from 320px to 1400px+. */
html[lang="ru"] .hero-copy h1 {
  font-size: clamp(27px, 4.6vw, 59px);
}

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 400;
  color: var(--slate-gray);
  max-width: 46ch;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 32px;
  /* Shrink to the button row's width so the note below can stretch to
     exactly that width (left edge of the primary button to right edge of
     "See how it works"). */
  width: fit-content;
  max-width: 100%;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Russian's two button labels are the longest of the three locales — at
   the desktop breakpoint (1024px+, where the hero-copy grid column tops
   out around 575px, same constraint as the headline comments above) their
   combined width plus the 14px gap was ~1px over that column, wrapping
   "Посмотреть, как это работает" onto its own line. Trimming the gap a
   little keeps both buttons on one row there; English/Armenian keep the
   default 14px since their labels never needed the extra room. */
html[lang="ru"] .hero-cta-row {
  gap: 10px;
}

.hero-cta-note {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 16px;
  background: var(--tint-bg);
  border-radius: 9999px;
  font-size: 14px;
  color: var(--slate-gray);
}

.hero-cta-highlight {
  color: var(--signal-blue);
  font-weight: 700;
  font-size: 16px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* ---------- Hero phones + ambient glow ---------- */

/* One hue (Signal Blue), two soft pools instead of the old two-color
   blob pair — reads as ambient light behind the phones, not a decal. */
.hero-glow {
  position: absolute;
  inset: -70px;
  z-index: 0;
  opacity: 0.5;
  filter: blur(50px);
  background:
    radial-gradient(280px 280px at 78% 10%, color-mix(in srgb, var(--signal-blue) 55%, transparent), transparent 70%),
    radial-gradient(240px 240px at 6% 92%, color-mix(in srgb, var(--deep-cobalt) 45%, transparent), transparent 70%);
}

/* Three real app stills fanned out: admin and master tilted behind, the
   customer's confirmation ticket in front. Widths are fractions of
   .hero-phones so the fan scales as one piece; the negative margins set
   the overlap. Two-class selectors so these beat the base .phone rules
   further down. Rotation and offset use the individual rotate/translate
   properties, which compose with card-in's transform. */
.hero-phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
}

.hero-phones .hero-phone {
  flex: none;
  width: 38%;
  max-width: none;
  padding: 6px;
  border-radius: 28px;
  opacity: 0;
  transform: translateY(14px);
  animation: card-in 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s forwards;
}

.hero-phones .hero-phone .phone-screen {
  border-radius: 22px;
}

.hero-phones .hero-phone-customer {
  z-index: 2;
  width: 44%;
  animation-delay: 0.15s;
}

.hero-phones .hero-phone-admin {
  margin-right: -13%;
  rotate: -7deg;
  translate: 0 24px;
}

.hero-phones .hero-phone-master {
  margin-left: -13%;
  rotate: 7deg;
  translate: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-phones .hero-phone {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-row {
    /* minmax(0, 1fr), not bare 1fr: a bare 1fr track's automatic minimum is
       its content's min-content size, and overflow-wrap: break-word (unlike
       overflow-wrap: anywhere) deliberately doesn't shrink min-content — so
       one long unbreakable Armenian run (no spaces) was still forcing this
       single-column track wider than the viewport even with .hero-copy's
       own min-width: 0. minmax(0, 1fr) removes that automatic minimum at
       the track level, which is what actually stops the overflow. */
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-phones {
    max-width: 440px;
  }
}

@media (max-width: 560px) {
  /* Side-by-side wraps mid-word on long Armenian/Russian button labels
     ("Начать бесплатно"), so mobile stacks full-width instead. */
  .hero-actions {
    width: auto;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    width: 100%;
  }
}

/* Russian's two button labels together need ~572px of row width (with the
   10px gap above) to sit side by side. That's available in the 700-900px
   single-column band and again at 1200px+ once the shell hits its max-width
   (matching the hero-copy column math in the headline comments above), but
   NOT from 900-1199px: the two-column grid kicks in there while the column
   itself is still narrower than 700-900px gave it (it only widens back out
   to ~575px as the shell approaches its 1200px cap). Rather than let the
   secondary button half-wrap onto its own line in that band — same
   failure mode the 560px rule above already avoids for mobile — this
   extends the same full-width stack to Russian across the whole broken
   range, so it's always either both buttons stacked or both on one row,
   never an awkward partial wrap. English/Armenian's shorter labels never
   hit this gap, so they're untouched. */
@media (min-width: 561px) and (max-width: 1199px) {
  html[lang="ru"] .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  html[lang="ru"] .hero-cta-row .btn {
    width: 100%;
  }
}

/* ---------- Who it's for (pill badges) ---------- */

.who {
  padding: 0 0 48px;
}

.who-title {
  color: var(--slate-gray);
  font-size: 15px;
  margin-bottom: 16px;
  text-align: center;
}

.who-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.who-list li {
  font-size: 13px;
  font-weight: 500;
  color: var(--deep-cobalt);
  background: var(--tint-bg);
  border-radius: 9999px;
  padding: 6px 14px;
}

/* ---------- Own address (<slug>.bookara.am) ---------- */

.address {
  padding: 72px 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.address-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--tint-bg);
  color: var(--deep-cobalt);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.address h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 16px;
}

.address-body {
  color: var(--slate-gray);
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
}

.address-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.address-points li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.address-actions .app-demo-link {
  margin-top: 0;
}

/* Check mark drawn from two borders. */
.address-points li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--signal-blue);
  border-bottom: 2px solid var(--signal-blue);
  transform: rotate(45deg);
}

/* Browser mock: the address bar is the point, the page under it is a
   wireframe of a shop's booking page. */
.browser {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--pebble);
  border-bottom: 1px solid var(--hairline);
}

.browser-dots {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mist-gray);
  opacity: 0.6;
}

.browser-url {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.7vw, 19px);
  color: var(--slate-gray);
  white-space: nowrap;
  overflow: hidden;
}

.browser-lock {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-right: 10px;
  color: var(--pine);
}

.browser-slug {
  color: var(--signal-blue);
  font-weight: 700;
}

.browser-caret {
  flex-shrink: 0;
  width: 2px;
  height: 1.15em;
  margin: 0 1px;
  background: var(--signal-blue);
  animation: browser-caret 1s steps(1) infinite;
}

@keyframes browser-caret {
  50% {
    opacity: 0;
  }
}

.browser-page {
  display: grid;
  gap: 12px;
  padding: 24px;
  transition: opacity 0.25s ease;
}

.browser.is-typing .browser-page {
  opacity: 0.35;
}

.browser-shop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.browser-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--action-bg);
  color: var(--on-accent);
  font-weight: 700;
}

.browser-shop-name {
  font-size: 19px;
  font-weight: 700;
}

.browser-line {
  display: block;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--pebble);
}

.browser-line-short {
  width: 45%;
  margin-bottom: 6px;
}

.browser-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
}

.browser-row .browser-line {
  width: 55%;
}

.browser-chip {
  width: 54px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--tint-bg);
}

.browser-button {
  height: 42px;
  margin-top: 6px;
  border-radius: var(--radius-control);
  background: var(--action-bg);
}

@media (prefers-reduced-motion: reduce) {
  .browser-caret {
    animation: none;
  }
}

@media (max-width: 900px) {
  .address-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .address-visual {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .browser-dots {
    display: none;
  }

  .browser-url {
    padding: 9px 12px;
  }

  .browser-page {
    padding: 18px;
  }
}

/* ---------- How it works ---------- */

.how {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}

.how h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  text-align: center;
  margin-bottom: 48px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.how-steps li {
  position: relative;
  padding-top: 22px;
}

.how-steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--signal-blue);
}

.how-num {
  display: block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--signal-blue);
  opacity: 0.25;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.how-steps h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.how-steps p {
  color: var(--slate-gray);
  font-size: 15px;
  line-height: 1.6;
  max-width: 34ch;
}

@media (max-width: 1024px) {
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Apps (customer / admin / master) ---------- */

.apps {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}

.apps h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  text-align: center;
  margin-bottom: 12px;
}

.apps-sub {
  color: var(--slate-gray);
  font-size: 17px;
  text-align: center;
  margin-bottom: 48px;
}

/* Tabs: one per app. While auto-advancing, the selected tab's bar fills
   over --apps-dur (initAppTabs sets it); once the visitor picks a tab the
   bar just sits full. .is-paused (off-screen or hovered) freezes it. */
.apps-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.apps-tab {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
  padding: 10px 6px 0;
  border: 0;
  background: none;
  color: var(--slate-gray);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.apps-tab:hover,
.apps-tab[aria-selected="true"] {
  color: var(--ink-navy);
}

.apps-tab:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 4px;
  border-radius: 6px;
}

.apps-tab-bar {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--hairline);
}

.apps-tab-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--signal-blue);
  transform: scaleX(0);
  transform-origin: left;
}

.apps-tab[aria-selected="true"] .apps-tab-bar::after {
  transform: scaleX(1);
}

.apps-tab.is-playing .apps-tab-bar::after {
  animation: apps-progress var(--apps-dur, 7s) linear forwards;
}

.apps.is-paused .apps-tab.is-playing .apps-tab-bar::after {
  animation-play-state: paused;
}

@keyframes apps-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.app-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 380px);
  justify-content: center;
  align-items: center;
  gap: 64px;
  animation: apps-fade 0.35s ease;
}

.app-panel[hidden] {
  display: none;
}

@keyframes apps-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-panel {
    animation: none;
  }
}

.phone {
  width: 100%;
  max-width: 260px;
  padding: 9px;
  border-radius: 38px;
  background: var(--phone-bezel);
  box-shadow: var(--shadow-card);
}

.phone-screen {
  position: relative;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 30px;
  background: var(--cloud);
}

.phone-screen img,
.phone-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-kicker {
  color: var(--deep-cobalt);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.app-copy h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  margin-bottom: 16px;
}

.app-points {
  display: grid;
  gap: 10px;
  color: var(--slate-gray);
  font-size: 16px;
  line-height: 1.5;
}

.app-points li {
  position: relative;
  padding-left: 22px;
}

.app-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-blue);
}

/* "See demo" under the customer bullets: opens a live shop's booking page. */
.app-demo-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 20px;
  color: var(--signal-blue);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.app-demo-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-demo-link:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .apps-tabs {
    gap: 6px;
    margin-bottom: 28px;
  }

  .apps-tab {
    flex: 1;
    min-width: 0;
    font-size: 14px;
  }

  .app-panel {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 28px;
  }

  .phone {
    max-width: 220px;
  }

  .app-copy {
    max-width: 360px;
  }
}

/* ---------- Benefits ---------- */

.benefits {
  padding: 72px 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.benefits h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  text-align: center;
  margin-bottom: 48px;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 34px;
}

.benefit {
  display: flex;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.benefit-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--signal-blue);
  margin-top: 2px;
}

.benefit h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.benefit p {
  color: var(--slate-gray);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .benefits-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */

.pricing {
  padding: 80px 0;
}

.pricing h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  text-align: center;
}

.pricing-sub {
  margin-top: 12px;
  color: var(--slate-gray);
  font-size: 16px;
  max-width: 56ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Pricing controls: currency select · billed monthly · billed yearly.
   One flat row separated by hairline dividers, no surrounding box. */
.billing-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 28px auto 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-navy);
}

.billing-divider {
  width: 1px;
  height: 22px;
  background: var(--hairline);
}

.currency-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Chevron: the native arrow is hidden by appearance: none. */
.currency-select::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.currency-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink-navy);
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px 22px 6px 4px;
  cursor: pointer;
}

.currency-select select:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 2px;
}

.period-radios {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.period-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.period-radio input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--slate-gray);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Selected: thick ring with a dot in the middle (inset shadow keeps it
   pixel-crisp without a pseudo-element). */
.period-radio input:checked {
  border-color: var(--ink-navy);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 11px var(--ink-navy);
}

.period-radio input:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 2px;
}

.period-save {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-gray);
  background: var(--pebble);
  border-radius: 6px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* Phone: the select sits on its own line, so its divider has nothing to
   separate. */
@media (max-width: 560px) {
  .billing-bar > .billing-divider {
    display: none;
  }
  .billing-bar {
    flex-direction: column;
  }
}

.pricing-trial-promo {
  margin-top: 20px;
  text-align: center;
}

.pricing-trial-headline {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-navy);
}

.pricing-trial-sub {
  margin-top: 4px;
  color: var(--slate-gray);
  font-size: 13.5px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.plans {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-featured {
  background: var(--tint-bg);
  border: 2px solid var(--signal-blue);
  box-shadow: 0 0 0 1px var(--signal-blue) inset, var(--shadow-card);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--action-bg);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
}

.plan-badge-discount {
  left: auto;
  right: 24px;
  background: var(--discount-bg);
}

.plan-head h3 {
  font-size: 20px;
  font-weight: 600;
}

.plan-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-title-badge {
  flex-shrink: 0;
  background: var(--pebble);
  color: var(--deep-cobalt);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.plan-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.plan-price[hidden] {
  display: none;
}

.plan-price-payment {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.plan-price-payment[hidden] {
  display: none;
}

.plan-price-star {
  color: var(--signal-blue);
  font-size: 16px;
}

.plan-price-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink-navy);
}

/* Card prices arrive from Paddle (see script.js#initPaddleLivePricing);
   until then keep their slot without showing a guessed amount. */
.plan-price-num[data-paddle-price-id]:empty {
  display: inline-block;
  min-width: 3.5em;
}

.plan-price-num[data-paddle-price-id]:empty + .plan-price-per {
  visibility: hidden;
}

.plan-price-per {
  color: var(--slate-gray);
  font-size: 13px;
  margin-left: 2px;
}

.plan-trial-note {
  margin-top: 6px;
  color: var(--slate-gray);
  font-size: 12.5px;
  font-weight: 600;
}

.plan-savings {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plan-savings-main {
  color: var(--pine);
  font-size: 13px;
  font-weight: 700;
}

.plan-savings-sub {
  color: var(--slate-gray);
  font-size: 11.5px;
  font-weight: 500;
}

.plan-desc {
  color: var(--slate-gray);
  font-size: 14px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--slate-gray);
  padding-left: 26px;
  position: relative;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background-color: var(--signal-blue);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.78 7.7-5.5 5.5a1 1 0 0 1-1.42 0l-2.64-2.64a1 1 0 1 1 1.42-1.42l1.93 1.93 4.79-4.79a1 1 0 0 1 1.42 1.42Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.78 7.7-5.5 5.5a1 1 0 0 1-1.42 0l-2.64-2.64a1 1 0 1 1 1.42-1.42l1.93 1.93 4.79-4.79a1 1 0 0 1 1.42 1.42Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.plans-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.plans-cta .btn {
  width: 360px;
  max-width: 100%;
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

.pricing-footnote {
  margin-top: 28px;
  color: var(--slate-gray);
  font-size: 13px;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq {
  padding: 80px 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.faq h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: inline-block;
  color: var(--signal-blue);
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 14px;
  color: var(--slate-gray);
  font-size: 15px;
  line-height: 1.65;
  max-width: 65ch;
}

/* The less-asked questions sit behind a "More questions" toggle. */
.faq-more > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  color: var(--signal-blue);
  font-size: 15px;
  font-weight: 600;
}

.faq-more > summary::-webkit-details-marker {
  display: none;
}

.faq-more > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-more[open] > summary {
  border-bottom: 1px solid var(--hairline);
}

.faq-more[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq-more-hide,
.faq-more[open] .faq-more-show {
  display: none;
}

.faq-more[open] .faq-more-hide {
  display: inline;
}

/* ---------- Request form ---------- */

.request {
  padding: 80px 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.request-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.request-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.request-copy p {
  margin-top: 12px;
  color: var(--slate-gray);
  font-size: 15.5px;
  max-width: 42ch;
}

.request-telegram-btn {
  margin-top: 20px;
}

.request-telegram-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--pebble);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
}

.field-full {
  grid-column: 1 / -1;
}

.request .field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-navy);
  margin-bottom: 6px;
}

.request .field input,
.request .field select,
.request .field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink-navy);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 12px;
}

.request .field textarea {
  min-height: 80px;
  resize: vertical;
}

.request .field input:focus,
.request .field select:focus,
.request .field textarea:focus {
  outline: none;
  border-color: var(--signal-blue);
}

/* "<slug>.bookara.am" input: one bordered box holding the input, the
   fixed suffix and the Check button, so it reads as a single address. */
.slug-input {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding-right: 5px;
}

.slug-input:focus-within {
  border-color: var(--signal-blue);
}

.request .field .slug-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding-right: 2px;
  font-family: var(--font-mono);
  text-align: right;
}

.slug-suffix {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--slate-gray);
  margin-right: 10px;
}

.slug-check-btn {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-cobalt);
  background: var(--tint-bg);
  border: 0;
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
}

.slug-check-btn:hover {
  color: var(--on-accent);
  background: var(--action-bg);
}

.slug-check-btn:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 2px;
}

.slug-status {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-gray);
}

.slug-status.is-available {
  color: var(--ok-text);
}

.slug-status.is-available::before {
  content: "✓ ";
}

.slug-status.is-taken,
.slug-status.is-reserved,
.slug-status.is-invalid {
  color: var(--rust);
}

.request-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.request-status.is-success {
  color: var(--deep-cobalt);
}

.request-status.is-error {
  color: var(--rust);
}

.request-form > .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (max-width: 900px) {
  .request-row {
    grid-template-columns: 1fr;
  }

  .request-copy p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .request-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Final CTA ---------- */

.final-cta {
  padding: 72px 0;
  background: var(--navy-panel);
}

.final-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta-copy {
  max-width: 46ch;
}

.final-cta h2 {
  color: var(--on-accent);
  font-size: clamp(24px, 2.8vw, 32px);
  max-width: 20ch;
}

.final-cta-sub {
  margin-top: 8px;
  color: var(--on-accent);
  opacity: 0.7;
  font-size: 15px;
}

.final-cta .btn-brass {
  background: var(--action-bg);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .final-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .final-cta .btn-brass {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 0;
  background: var(--cloud);
}

.site-footer-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px 24px;
  align-items: start;
}

@media (max-width: 760px) {
  .site-footer-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .site-footer-row {
    grid-template-columns: 1fr;
  }
}

.wordmark-footer {
  font-size: 24px;
}

.footer-tagline {
  margin-top: 4px;
  color: var(--slate-gray);
  font-size: 13px;
  max-width: 32ch;
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-navy);
  margin-bottom: 4px;
}

.footer-links,
.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a {
  color: var(--slate-gray);
  text-decoration: none;
  width: fit-content;
}

.footer-links a:hover {
  color: var(--signal-blue);
  text-decoration: underline;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal-blue);
  text-decoration: none;
  width: fit-content;
}

.footer-contact-link:hover {
  text-decoration: underline;
}

.footer-address {
  color: var(--slate-gray);
  font-style: normal;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer-social-link:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.footer-social-link-telegram {
  color: #26a5e4; /* allow-literal: Telegram brand color */
}

.footer-social-link-whatsapp {
  color: #25d366; /* allow-literal: WhatsApp brand color */
}

.footer-social-link-viber {
  color: #7360f2; /* allow-literal: Viber brand color */
}

.footer-social-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 32px;
  /* padding-block only: .footer-bottom sits on .shell, whose side gutter must survive. */
  padding-block: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--slate-gray);
}

/* ---------- Blog (/<lang>/blog/ and /<lang>/blog/<slug>/) ----------
   Separate static pages that share this stylesheet and script.js. */

.blog-head {
  padding: 72px 0 40px;
}

/* Kicker/title/sub on the left, the "Subscribe ↓" jump button on the
   right, level with the kicker (see initBlogSubscribe). */
.blog-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 24px;
}

.blog-head-copy {
  min-width: 0;
}

.blog-subscribe-jump {
  flex-shrink: 0;
}

.blog-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-blue);
  margin-bottom: 12px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.blog-head h1 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.blog-head-sub {
  margin-top: 14px;
  color: var(--slate-gray);
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
}

/* "Get new articles by email" box at the bottom of /blog/, between the
   article list and the final CTA (initBlogSubscribe). The note line
   doubles as the status line. */
.blog-subscribe-section {
  padding-bottom: 80px;
}

.blog-subscribe {
  margin: 0 auto;
  max-width: 560px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 96px;
}

.blog-subscribe-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-navy);
  margin-bottom: 12px;
}

.blog-subscribe-row {
  display: flex;
  gap: 10px;
}

.blog-subscribe-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-navy);
  background: var(--cloud);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 12px;
}

.blog-subscribe-row input:focus {
  outline: none;
  border-color: var(--signal-blue);
}

.blog-subscribe-row .btn {
  flex-shrink: 0;
}

.blog-subscribe-status {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--slate-gray);
}

.blog-subscribe-status.is-success {
  color: var(--deep-cobalt);
  font-weight: 600;
}

.blog-subscribe-status.is-error {
  color: var(--rust);
  font-weight: 600;
}

.blog-subscribe-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .blog-subscribe-row {
    flex-direction: column;
  }
}

/* On phones the button moves under the heading instead of squeezing it. */
@media (max-width: 640px) {
  .blog-head-row {
    flex-direction: column;
  }
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--signal-blue);
  box-shadow: var(--shadow-card);
}

.post-meta {
  font-size: 13px;
  color: var(--slate-gray);
  font-variant-numeric: tabular-nums;
}

.post-card h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* Stretched link: the title's anchor covers the whole card, so the card
   is one big click target without nesting block content inside <a>. */
.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.post-card p {
  color: var(--slate-gray);
  font-size: 15px;
  line-height: 1.6;
}

.post-card-more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--signal-blue);
  font-size: 15px;
  font-weight: 600;
}

/* Search, topic chips and pager around the /blog/ list (initBlogList).
   Cards outside the current page or filter get .is-filtered. */
.blog-browse {
  padding-bottom: 80px;
}

.blog-browse .blog-list {
  padding-bottom: 0;
}

.post-card.is-filtered {
  display: none;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 28px;
  scroll-margin-top: 96px;
}

.blog-toolbar[hidden] {
  display: none;
}

.blog-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 400px;
}

.blog-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--slate-gray);
  pointer-events: none;
}

.blog-search input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-navy);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 12px 11px 40px;
  box-shadow: var(--shadow-sm);
}

.blog-search input::placeholder {
  color: var(--slate-gray);
}

.blog-search input:focus {
  outline: none;
  border-color: var(--signal-blue);
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-topic,
.blog-page {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-navy);
  background: var(--paper);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.blog-topic {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

.blog-topic:hover,
.blog-page:hover:not(:disabled) {
  border-color: var(--signal-blue);
  color: var(--signal-blue);
}

.blog-topic[aria-pressed="true"],
.blog-page[aria-current="page"] {
  background: var(--action-bg);
  border-color: var(--action-bg);
  color: var(--on-accent);
}

.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 0 8px;
  text-align: center;
  color: var(--slate-gray);
  font-size: 16px;
}

.blog-empty[hidden],
.blog-pager[hidden] {
  display: none;
}

.blog-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.blog-page {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  font-variant-numeric: tabular-nums;
}

.blog-page:disabled {
  opacity: 0.45;
  cursor: default;
}

.blog-page-gap {
  min-width: 20px;
  text-align: center;
  color: var(--slate-gray);
}

@media (max-width: 640px) {
  .blog-search {
    max-width: none;
  }

  /* One scrollable row of chips instead of a stack of wrapped lines. */
  .blog-topics {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -24px;
    padding: 2px 24px;
    width: calc(100% + 48px);
    scrollbar-width: none;
  }

  .blog-topic {
    flex-shrink: 0;
  }

  .blog-page-step {
    padding: 0 10px;
  }
}

@media (max-width: 1024px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-list {
    grid-template-columns: 1fr;
  }

  .blog-head {
    padding: 48px 0 28px;
  }
}

/* Home page "from the blog" teaser: the 3 newest .post-card items, with
   an optional "Blog" button in the heading row (see initHomeBlog). */

.home-blog {
  padding: 80px 0;
}

.home-blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.home-blog-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  max-width: 32ch;
}

.home-blog-head .btn {
  flex-shrink: 0;
}

.home-blog-list {
  padding-bottom: 0;
}

/* The /blog/ subscribe box, repeated under the home page's cards. */
.home-blog-subscribe {
  margin-top: 40px;
}

.post-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

@media (max-width: 640px) {
  .home-blog {
    padding: 56px 0;
  }
}

/* Article page */

.article {
  max-width: 720px;
  margin: 0 auto;
  /* padding-block only: .article sits on .shell, whose side gutter must survive. */
  padding-block: 48px 80px;
}

.article-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--signal-blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.article-back:hover {
  text-decoration: underline;
}

.article h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.article .post-meta {
  margin-top: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.article-lead {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-navy);
}

.article-body h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.article-body p,
.article-body li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--slate-gray);
}

.article-body p + p {
  margin-top: 16px;
}

.article-body strong {
  color: var(--ink-navy);
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 26px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-blue);
}

.article-body ol {
  counter-reset: step;
}

.article-body ol li {
  counter-increment: step;
}

.article-body ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 15px;
  font-weight: 700;
  color: var(--signal-blue);
  font-variant-numeric: tabular-nums;
}

/* "Read next" under an article: 3 .post-card links in the page's language,
   written by scripts/new-blog-post.mjs. */
.article-related {
  padding-bottom: 80px;
}

.article-related h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-bottom: 24px;
}

.related-list {
  padding-bottom: 0;
}

.article-tip {
  margin-top: 32px;
  padding: 20px 22px;
  background: var(--tint-bg);
  border-left: 3px solid var(--signal-blue);
  border-radius: 0 10px 10px 0;
}

.article-body .article-tip p {
  color: var(--ink-navy);
  font-size: 16px;
}

/* Terms and Privacy pages (/terms/, /privacy/ + /en/, /ru/), written by
   scripts/new-blog-post.mjs from legal-pages/*.json. They reuse .article,
   plus a contents list built from the body's h2s. */
.legal-toc {
  margin-top: 32px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.legal-toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-gray);
}

.legal-toc ul {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.legal-toc a {
  color: var(--signal-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal .article-body h2 {
  scroll-margin-top: 96px;
}

.legal .article-body h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 18px;
}

.legal .article-body a {
  color: var(--signal-blue);
}

.legal .article-body li > ul {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .article {
    padding-block: 32px 56px;
  }

  .legal-toc ul {
    grid-template-columns: 1fr;
  }

  .article-lead {
    font-size: 17.5px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
  }
}
