/* Chawshin Service — site styles. Mobile-first; logical properties for RTL/LTR; light + dark. */

/* Ubuntu Arabic — the same font as the Chawshin app (Ubuntu Font Licence 1.0), subset to
   Arabic, Kurdish and Latin. */
@font-face {
  font-family: "Ubuntu Arabic";
  src: url("../fonts/ubuntu-arabic-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu Arabic";
  src: url("../fonts/ubuntu-arabic-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --brand: #0050c0;
  --brand-hover: #00439f;
  --brand-bright: #0b74ff;
  --brand-ink: #0050c0;          /* brand-coloured text */
  --navy: #071634;
  --navy-2: #0b2457;

  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --surface-3: #e2eaf7;
  --text: #0d1729;
  --text-2: #4a5872;
  --border: #dde5f1;
  --tile-bg: linear-gradient(140deg, #e9f2ff, #d5e5ff);
  --tile-ink: #0050c0;

  --ok: #22c55e;
  --no: #f04444;
  --wa: #25d366;
  --wa-hover: #1fbe5b;
  --wa-ink: #04341b;
  --soon-bg: #ffb11f;
  --soon-ink: #3b2500;
  --focus: #0b74ff;

  --shadow-sm: 0 1px 2px rgb(13 23 41 / .05), 0 2px 8px -2px rgb(13 23 41 / .08);
  --shadow-md: 0 14px 34px -14px rgb(13 23 41 / .22);
  --shadow-lg: 0 28px 70px -24px rgb(7 22 52 / .45);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --gutter: 16px;
  --maxw: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Ubuntu Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #86b9ff;
    --bg: #0a1222;
    --surface: #111c31;
    --surface-2: #17243d;
    --surface-3: #1e2d4b;
    --text: #e8eef9;
    --text-2: #a7b4ca;
    --border: #233453;
    --tile-bg: linear-gradient(140deg, #16305e, #1b3a72);
    --tile-ink: #a6cbff;
    --focus: #8cc0ff;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 2px 8px -2px rgb(0 0 0 / .35);
    --shadow-md: 0 14px 34px -14px rgb(0 0 0 / .6);
    --shadow-lg: 0 28px 70px -24px rgb(0 0 0 / .75);
  }
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html:lang(en) body { line-height: 1.6; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.35; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-ink); }
strong { font-weight: 700; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
[dir="rtl"] .icon-chevron { transform: scaleX(-1); }

.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--text-2); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -200px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .6em 1.2em;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-lg { min-height: 54px; padding-inline: 1.4em; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: .45em 1em; font-size: .95rem; border-radius: 12px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgb(0 80 192 / .8); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 24px -14px rgb(18 140 70 / .9); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-light { background: #fff; color: #0047ab; }
.btn-light:hover { background: #eaf2ff; }
.btn-glass {
  background: rgb(255 255 255 / .1);
  border-color: rgb(255 255 255 / .28);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgb(255 255 255 / .18); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.btn-note { font-weight: 400; opacity: .85; font-size: .92em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Dark bands: white focus ring */
.hero, .onsite-panel, .secret, .site-footer, .page-hero { --focus: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
  }
}
.site-header.is-scrolled, .site-header.menu-open { border-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header.menu-open { background: var(--surface); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  margin-inline-end: auto;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { width: 54px; height: 29px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { display: none; font-size: .78rem; color: var(--text-2); white-space: nowrap; }
@media (min-width: 420px) { .brand-tag { display: block; } }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Language switcher (<details>) */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn::marker { content: ""; }
.lang-btn:hover { border-color: var(--brand-ink); }
.lang-current, .lang-chev { display: none; }
.lang-chev { width: .9em; height: .9em; transform: rotate(90deg); transition: transform .2s; }
[dir="rtl"] .lang-chev { transform: rotate(90deg); }
.lang[open] .lang-chev { transform: rotate(-90deg); }
@media (min-width: 480px) {
  .lang-current, .lang-chev { display: inline; }
  .lang-btn { padding-inline: 12px; }
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.lang[open] .lang-menu { animation: pop .18s var(--ease); }
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding-inline: 14px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { color: var(--brand-ink); background: var(--surface-2); }

.header-call { display: none; }
.header-call .icon { width: 1.1em; height: 1.1em; }

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .icon-shut, .menu-open .menu-btn .icon-open { display: none; }
.menu-open .menu-btn .icon-shut { display: block; }

/* Navigation: drop-down panel on phones/tablets, inline from 1024px */
.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px var(--gutter) 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.menu-open .primary-nav { display: block; animation: drop .28s var(--ease); }
.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding-inline: 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
}
.nav-list .nav-chev { color: var(--text-2); width: 1.1em; height: 1.1em; }
.nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

.menu-lock body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgb(4 10 24 / .45);
}

@media (min-width: 768px) {
  .header-call { display: inline-flex; }
}
@media (max-width: 899.98px) {
  .header-call-text { display: none; }
  .header-call { width: 44px; padding: 0; }
}
@media (min-width: 1024px) {
  .menu-btn, .nav-cta { display: none; }
  .primary-nav {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .menu-open .primary-nav { animation: none; }
  .nav-list { display: flex; gap: 2px; }
  .nav-list a {
    min-height: 44px;
    padding-inline: 12px;
    border: 0;
    border-radius: 10px;
    color: var(--text-2);
    font-size: .98rem;
    white-space: nowrap;
  }
  .nav-list a:hover { color: var(--text); background: var(--surface-2); }
  .nav-list a.is-active { color: var(--brand-ink); }
  .nav-list .nav-chev { display: none; }
  .primary-nav { margin-inline-end: 8px; }
}
@media (min-width: 1024px) and (max-width: 1179.98px) {
  .brand-tag { display: none; }
  .nav-list a { padding-inline: 9px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .hero-call .btn-note { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 28px 92px;
  background: var(--navy);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(110% 60% at 100% 0%, rgb(11 116 255 / .35), transparent 60%),
    linear-gradient(180deg, rgb(7 22 52 / .5) 0%, rgb(7 22 52 / .82) 42%, rgb(7 22 52 / .97) 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 40%;
}
.hero-logo { display: none; }

.hero-copy { max-width: 640px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 44px;
  padding: 7px 16px;
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: 999px;
  background: rgb(7 22 52 / .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .92rem;
  line-height: 1.4;
  text-decoration: none;
}
.status-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--no);
  box-shadow: 0 0 0 4px rgb(240 68 68 / .25);
}
.status-chip[data-open="1"] .dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgb(34 197 94 / .28);
  animation: pulse 2.4s ease-in-out infinite;
}
.status-label { font-weight: 700; }
.status-sep { opacity: .6; }
.status-detail { color: rgb(255 255 255 / .86); }
.status-detail:empty, .status-detail:empty ~ .status-sep { display: none; }

.hero-title {
  margin: 18px 0 14px;
  font-size: clamp(1.95rem, 1.2rem + 3.6vw, 3.5rem);
  line-height: 1.3;
}
html:lang(en) .hero-title { line-height: 1.15; }
.hero-title .hl { color: #8fc3ff; }
.hero-sub {
  max-width: 36em;
  margin-bottom: 24px;
  color: rgb(255 255 255 / .86);
  font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem);
}

.hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-call { grid-column: 1 / -1; }
.hero-ctas .btn { padding-inline: .8em; }
.hero-call > span { display: inline-flex; flex-wrap: wrap; justify-content: center; column-gap: .45em; }
.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  color: #cfe3ff;
  font-weight: 700;
  text-decoration: none;
}
.hero-more:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero-more .icon { width: 1.05em; height: 1.05em; }

@media (min-width: 600px) {
  .hero { padding-block: 48px 110px; }
  .hero-ctas { display: flex; flex-wrap: wrap; }
  .hero-call { grid-column: auto; }
  .hero-ctas .btn { padding-inline: 1.4em; }
}

@media (min-width: 1024px) {
  .hero { padding-block: 64px 132px; }
  .hero::before {
    background:
      radial-gradient(60% 80% at 85% 10%, rgb(11 116 255 / .32), transparent 65%),
      radial-gradient(50% 60% at 0% 100%, rgb(0 80 192 / .35), transparent 70%),
      linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  }
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: center;
  }
  .hero-title { font-size: clamp(2.4rem, 1rem + 2.7vw, 3.4rem); }
  .hero-media {
    position: relative;
    inset: auto;
    z-index: auto;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / .08);
  }
  .hero-media picture { display: block; height: 100%; border-radius: inherit; overflow: hidden; }
  .hero-media img { object-position: 40% 50%; }
  .hero-logo {
    display: block;
    position: absolute;
    inset-block-end: -28px;
    inset-inline-start: -28px;
    width: 150px;
    padding: 14px 16px 10px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }
}

/* ---------- Quick services (overlaps the hero) ---------- */
.quick { position: relative; z-index: 2; margin-top: -64px; }
.quick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-list > li { display: flex; }
.quick-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.quick-card:hover { transform: translateY(-2px); border-color: var(--brand-ink); }
.quick-text { display: flex; flex-direction: column; gap: 2px; }
.quick-title { font-weight: 700; font-size: .98rem; line-height: 1.4; }
.quick-desc { font-size: .85rem; line-height: 1.6; color: var(--text-2); }
.quick-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
@media (min-width: 768px) {
  .quick-list { gap: 14px; }
  .quick-card { flex-direction: row; align-items: flex-start; padding: 18px; }
}
@media (min-width: 1024px) {
  .quick { margin-top: -72px; }
  .quick-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .quick-card { flex-direction: column; padding: 20px; }
}

/* ---------- Shared bits ---------- */
.section { padding-block: 64px; }
@media (min-width: 768px) { .section { padding-block: 88px; } }
@media (min-width: 1024px) { .section { padding-block: 104px; } }

.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 10px; }
.section-head > p:last-child { color: var(--text-2); font-size: 1.05rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 40px; } }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 14px 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand-ink);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
}
.kicker .icon { width: 1.1em; height: 1.1em; }
.kicker--light { background: rgb(255 255 255 / .14); color: #fff; }
.kicker-icon { width: 24px; height: 24px; border-radius: 6px; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tile-bg);
  color: var(--tile-ink);
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile--sm { width: 42px; height: 42px; border-radius: 12px; }
.icon-tile--sm .icon { width: 22px; height: 22px; }
.icon-tile--wa { background: #dcfce7; color: #128c4a; }
@media (prefers-color-scheme: dark) { .icon-tile--wa { background: #12351f; color: #5be38f; } }

.badge {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.check-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
}
.check-badge .icon { width: 18px; height: 18px; }
.check-badge--sm { width: 26px; height: 26px; border-radius: 8px; }
.check-badge--sm .icon { width: 15px; height: 15px; }

/* ---------- On-site ---------- */
.onsite { padding-block: 40px 24px; }
.onsite-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding: 40px var(--gutter) 28px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(11 116 255 / .55), transparent 70%),
    linear-gradient(150deg, #003c91 0%, #0050c0 55%, #0a5bd0 100%);
  color: #fff;
}
.onsite-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background-image:
    linear-gradient(rgb(255 255 255 / .6) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .6) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent);
}
.onsite-panel h2 { margin-bottom: 12px; }
.onsite-desc { color: rgb(255 255 255 / .9); font-size: 1.05rem; max-width: 34em; }
.area-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block: 18px 22px;
  padding: 8px 14px;
  border: 1px solid rgb(255 255 255 / .3);
  border-radius: 12px;
  background: rgb(4 18 48 / .3);
  font-weight: 700;
  line-height: 1.5;
}
.area-note .icon { color: #ffd166; }
.onsite-panel .cta-row .btn { flex: 1 1 200px; }
.onsite-media { max-width: 560px; margin: 28px auto 0; }
.onsite-media img { width: 100%; filter: drop-shadow(0 24px 30px rgb(0 10 40 / .45)); }

@media (min-width: 768px) {
  .onsite { padding-block: 56px 24px; }
  .onsite-panel { margin-inline: 0; padding: 48px; border-radius: 32px; box-shadow: var(--shadow-lg); }
}
@media (min-width: 1024px) {
  .onsite { padding-block: 72px 0; }
  .onsite-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 56px;
  }
  .onsite-media { margin: 0; }
  .onsite-panel .cta-row .btn { flex: 0 1 auto; }
}

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.svc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.svc h3 { line-height: 1.45; }
.svc p { color: var(--text-2); font-size: .97rem; }
@media (min-width: 600px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .svc { padding: 26px; } }

/* ---------- Why Chawshin ---------- */
.about { background: var(--surface); border-block: 1px solid var(--border); }
.about .kicker { background: var(--bg); }
.about-grid { display: grid; gap: 16px; }
.why { padding: 24px 20px; background: var(--bg); box-shadow: none; }
.why h3 { font-size: 1.3rem; margin-bottom: 8px; }
.checklist { display: grid; gap: 12px; margin-top: 20px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.checklist strong, .app-feats strong { display: block; line-height: 1.5; }
.checklist .muted, .app-feats .muted { display: block; font-size: .94rem; line-height: 1.65; margin-top: 2px; }
.secret {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px;
  border: 0;
  background: linear-gradient(160deg, var(--navy) 0%, #0d2f73 100%);
  color: #fff;
}
.secret::after {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -30%;
  z-index: -1;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(11 116 255 / .45), transparent 65%);
}
.secret h3 { font-size: 1.3rem; }
.secret-deco {
  position: absolute;
  inset-block-end: -48px;
  inset-inline-end: -48px;
  z-index: -1;
  width: 240px;
  height: 240px;
  color: #fff;
  opacity: .07;
}
.secret p { color: rgb(255 255 255 / .88); }
.secret .cta-row { margin-top: auto; padding-top: 8px; }
.secret-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgb(255 255 255 / .12);
  color: #ffd166;
}
.secret-icon .icon { width: 26px; height: 26px; }
@media (min-width: 768px) { .why, .secret { padding: 32px; } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; } }

/* ---------- Gallery ---------- */
.gallery-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery-list::-webkit-scrollbar { display: none; }
.gallery-list > li { scroll-snap-align: start; display: flex; }
.gallery-list figure {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.gallery-list picture { display: block; overflow: hidden; }
.gallery-list img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-list figure:hover img { transform: scale(1.04); }
.gallery-list figcaption { padding: 14px 16px 16px; color: var(--text-2); font-size: .94rem; line-height: 1.65; }
@media (min-width: 768px) {
  .gallery-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 1100px) { .gallery-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* ---------- App ---------- */
.app {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 85% 20%, rgb(11 116 255 / .14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
}
.app-inner { display: grid; gap: 40px; align-items: center; }
.app .lead { color: var(--text-2); font-size: 1.06rem; margin-top: 10px; }
.app-feats { display: grid; gap: 16px; margin-block: 28px 30px; }
.app-feats li { display: flex; gap: 14px; align-items: flex-start; }

/* Official badges, untouched. Google's PNG carries transparent padding: height H×1.488 and margin −H×0.244
   make its visible artwork exactly as tall as an Apple badge of height H (numbers from MANIFEST.md). */
.store-badges { --bh: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 38px 14px; padding-top: 32px; }
@media (min-width: 600px) { .store-badges { --bh: 52px; } }
.store-badge {
  position: relative;
  display: block;
  border-radius: 10px;
  line-height: 0;
  transition: transform .2s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge--apple img { height: var(--bh); width: auto; }
.store-badge--play img { height: calc(var(--bh) * 1.488); width: auto; max-width: none; margin: calc(var(--bh) * -.244); }
/* "Coming soon" sits just above each badge, centred — never on the official artwork. */
.soon {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soon-bg);
  color: var(--soon-ink);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 4px 10px -3px rgb(0 0 0 / .35);
}
.store-note { margin-top: 14px; color: var(--text-2); font-size: .92rem; }

.app-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 8px 16px;
}
.phone {
  --pw: min(36vw, 200px);
  position: relative;
  flex: none;
  width: var(--pw);
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .16);
  background: #0b1020;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), var(--shadow-lg);
}
.phone::before {
  content: "";
  position: absolute;
  top: calc(var(--pw) * .058);
  left: 50%;
  z-index: 1;
  width: 28%;
  height: calc(var(--pw) * .072);
  border-radius: 99px;
  background: #0b1020;
  transform: translateX(-50%);
}
.phone picture { display: block; }
.phone img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--pw) * .13);
  background: #fff;
}
.phone--main { --pw: min(48vw, 270px); z-index: 2; }
.phone--start { margin-inline-end: calc(var(--pw) * -.45); transform: translateY(18px) rotate(-7deg); opacity: .96; }
.phone--end { margin-inline-start: calc(var(--pw) * -.45); transform: translateY(18px) rotate(7deg); opacity: .96; }
[dir="rtl"] .phone--start { transform: translateY(18px) rotate(7deg); }
[dir="rtl"] .phone--end { transform: translateY(18px) rotate(-7deg); }

@media (min-width: 1024px) {
  .app-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .phone { --pw: 200px; }
  .phone--main { --pw: 260px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; }
.contact-main { display: grid; gap: 12px; align-content: start; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
a.contact-item:hover { border-color: var(--brand-ink); }
.contact-item > span:not(.icon-tile) { flex: 1; min-width: 0; }
.ci-label { display: block; color: var(--text-2); font-size: .88rem; line-height: 1.4; }
.ci-value { display: block; font-weight: 700; font-size: 1.15rem; line-height: 1.5; overflow-wrap: anywhere; }
.ci-text { display: block; font-weight: 700; line-height: 1.6; margin-bottom: 10px; }
.ci-chev { color: var(--text-2); }
.contact-address { align-items: flex-start; }

.hours { padding: 18px 16px 8px; }
.hours h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-inline: 4px; }
.hours h3 .icon { color: var(--brand-ink); }
.hours table { width: 100%; }
.hours th, .hours td { padding: 10px 8px; border-top: 1px solid var(--border); text-align: start; font-weight: 400; }
.hours td { text-align: end; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--brand-ink); }
.hours tr.is-today { background: var(--surface-2); }
.today-pill {
  display: none;
  margin-inline-start: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  vertical-align: 2px;
}
.is-today .today-pill { display: inline-block; }
.hours .closed { color: var(--no); font-weight: 700; }
@media (prefers-color-scheme: dark) { .hours .closed { color: #ff8a8a; } }

.map-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.map-card picture, .map-card img { width: 100%; height: 100%; }
.map-card img { object-fit: cover; object-position: 40% 42%; aspect-ratio: 1280 / 850; transition: transform .6s var(--ease); }
.map-card:hover img { transform: scale(1.03); }
@media (prefers-color-scheme: dark) { .map-card img { filter: brightness(.88) contrast(1.05); } }
.map-cta {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .map-card img { aspect-ratio: auto; }
  .map-card picture { position: absolute; inset: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 52px 28px;
  background: var(--navy);
  color: rgb(255 255 255 / .78);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-top { display: grid; gap: 28px; }
.brand--footer { color: #fff; margin: 0; }
.brand--footer .brand-tag { display: block; color: rgb(255 255 255 / .7); }
.brand--footer .brand-mark { width: 72px; height: 39px; }
.footer-address { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; max-width: 30em; font-size: .94rem; }
.footer-address .icon { margin-top: .3em; color: #8fc3ff; }
.footer-links { display: grid; gap: 2px; align-content: start; justify-items: start; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; font-weight: 700; }
.footer-links .icon { color: #8fc3ff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / .14);
  font-size: .9rem;
}
.footer-legal { display: flex; flex-wrap: wrap; column-gap: 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.footer-legal a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-inline-start: auto; font-weight: 700; }
@media (min-width: 768px) {
  .footer-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}

/* ---------- Phone action bar ---------- */
.action-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -10px 30px -16px rgb(7 22 52 / .45);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.action-bar.is-visible { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
.ab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 4px 6px;
  border-radius: 14px;
  font-weight: 700;
  font-size: .84rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ab-btn .icon { width: 1.2em; height: 1.2em; }
.ab-call { background: var(--brand); color: #fff; }
.ab-wa { background: var(--wa); color: var(--wa-ink); }
.ab-map { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
/* Room so the bar never hides the end of the page */
.site-footer { padding-bottom: calc(28px + 70px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .action-bar { display: none; }
  .site-footer { padding-bottom: 28px; }
}

/* ---------- Inner pages: privacy policy, support ---------- */
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 32px 84px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(11 116 255 / .4), transparent 65%),
    radial-gradient(50% 70% at 0% 100%, rgb(0 80 192 / .35), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .1;
  background-image:
    linear-gradient(rgb(255 255 255 / .6) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .6) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(60% 80% at 85% 20%, #000, transparent);
  mask-image: radial-gradient(60% 80% at 85% 20%, #000, transparent);
}
.page-hero h1 { margin-bottom: 10px; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.page-hero-sub { max-width: 40em; color: rgb(255 255 255 / .86); font-size: clamp(1rem, .96rem + .25vw, 1.12rem); }
.page-hero .hero-ctas { margin-top: 24px; }
@media (min-width: 768px) { .page-hero { padding-block: 48px 100px; } }

/* "On this page" links (support) */
.jump { margin-top: 20px; }
.jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 14px;
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: 999px;
  background: rgb(255 255 255 / .08);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.jump a:hover { background: rgb(255 255 255 / .16); }

.page-body { position: relative; z-index: 1; margin-top: -56px; padding-bottom: 64px; }
@media (min-width: 768px) { .page-body { margin-top: -64px; padding-bottom: 88px; } }
.page-stack { display: grid; gap: 16px; }
@media (min-width: 1024px) { .page-stack { gap: 20px; } }

/* Policy text */
.policy { padding: 22px 18px; box-shadow: var(--shadow-md); }
@media (min-width: 600px) { .policy { padding: 32px; } }
@media (min-width: 1024px) { .policy { padding: 44px 48px; } }
.policy > * + * { margin-top: 24px; }
.policy-lead { font-size: 1.06rem; }
.policy-summary {
  padding: 18px 16px;
  border: 1px solid color-mix(in srgb, var(--brand-ink) 28%, transparent);
  border-radius: 16px;
  background: var(--surface-2);
}
.policy-summary h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--brand-ink); font-size: 1.12rem; }
.policy-summary ul { display: grid; gap: 10px; }
.policy-summary li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.7; }
.policy-summary .check-badge { margin-top: .2em; }
@media (min-width: 600px) { .policy-summary { padding: 22px 24px; } }

.policy-toc details { border: 1px solid var(--border); border-radius: 16px; }
.policy-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding-inline: 16px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.policy-toc summary::-webkit-details-marker { display: none; }
.policy-toc summary::marker { content: ""; }
.policy-toc summary:hover { background: var(--surface-2); }
.toc-chev, [dir="rtl"] .toc-chev { flex: none; width: 1em; height: 1em; color: var(--text-2); transform: rotate(90deg); transition: transform .2s; }
.policy-toc details[open] .toc-chev { transform: rotate(-90deg); }
.policy-toc ol { margin: 0; padding: 6px 16px 12px; border-top: 1px solid var(--border); list-style: none; }
@media (min-width: 640px) { .policy-toc ol { columns: 2; column-gap: 28px; } }
.policy-toc li { break-inside: avoid; }
.policy-toc a { display: block; padding-block: 8px; font-size: .95rem; line-height: 1.5; text-decoration: none; }
.policy-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }

.policy-section > * + * { margin-top: 12px; }
.policy-section--2 { padding-top: 24px; border-top: 1px solid var(--border); }
.policy-section--3 { padding-top: 8px; }
.policy-section h2 { font-size: 1.22rem; line-height: 1.45; }
.policy-section h3 { font-size: 1.05rem; line-height: 1.5; }
.policy-num { color: var(--brand-ink); }
.policy-section p, .policy-terms dd, .policy-list { color: var(--text-2); }
.policy-terms { display: grid; gap: 14px; margin-block-end: 0; }
.policy-terms > div { padding-inline-start: 14px; border-inline-start: 3px solid color-mix(in srgb, var(--brand-ink) 30%, transparent); }
.policy-terms dt { font-weight: 700; line-height: 1.5; }
.policy-terms dd { margin: 2px 0 0; }
.policy-list { display: grid; gap: 6px; padding-inline-start: 1.3em; list-style: disc; }
.policy-list li::marker { color: var(--brand-ink); }

/* Contact card under the policy */
.page-contact { margin-top: 16px; padding: 22px 18px; }
.page-contact h2 { font-size: 1.22rem; }
.page-contact-name { margin-top: 2px; color: var(--text-2); font-weight: 700; }
.page-contact-operator { margin-top: 2px; color: var(--text-2); font-size: .95rem; }
.page-contact-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 600px) {
  .page-contact { padding: 28px 32px; }
  .page-contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-contact-grid .contact-address, .page-contact-grid .contact-email { grid-column: 1 / -1; }
}
.page-contact .contact-item, .support-block .contact-item, .support-block .hours { background: var(--bg); box-shadow: none; }
.page-other { margin-top: 24px; text-align: center; }
.page-other .icon, .faq-link .icon, .support-privacy .btn .icon { width: 1.05em; height: 1.05em; }

/* Support blocks */
.support-block { padding: 22px 18px; }
@media (min-width: 600px) { .support-block { padding: 28px 32px; } }
@media (min-width: 1024px) { .support-block { padding: 36px 40px; } }
.support-block:first-child { box-shadow: var(--shadow-md); }
.block-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.block-head h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.block-head p { margin-top: 4px; color: var(--text-2); }
.support-block .contact-main { align-content: start; }
.support-block .page-contact-name { margin: 0 0 2px; }
.support-block .page-contact-operator { margin: -4px 0 2px; }

.faq { display: grid; gap: 12px; }
@media (min-width: 768px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; } }
.faq-item { padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.faq-item h3 { margin-bottom: 6px; font-size: 1.04rem; line-height: 1.5; }
.faq-item p { color: var(--text-2); }
.faq-item p + p { margin-top: 8px; }
.faq-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.faq-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 700;
  line-height: 1.5;
}
.note .icon { color: var(--brand-ink); }
.sub-title { margin-top: 22px; font-size: 1.08rem; }
.steps { display: grid; gap: 12px; margin: 12px 0 16px; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .steps li { flex-direction: column; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
}
.support-block .cta-row { margin-top: 18px; }
.support-block .checklist { margin-top: 0; }
.support-block .checklist li { align-items: center; background: var(--bg); }
@media (min-width: 768px) { .support-block .checklist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.support-privacy .block-head { margin-bottom: 16px; }

/* ---------- App pop-up (bottom sheet on phones, dialog from 640px) ---------- */
.app-popup {
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - 16px);
  margin: auto 0 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 -20px 60px -20px rgb(0 0 0 / .5);
}
.app-popup::backdrop { background: rgb(4 10 24 / .55); }
.app-popup[open] { animation: sheet-in .42s var(--ease); }
.app-popup[open]::backdrop { animation: fade-in .3s ease; }
.app-popup.is-closing { animation: sheet-out .26s ease-in forwards; }
.app-popup.is-closing::backdrop { animation: fade-out .26s ease-in forwards; }

.popup-card { position: relative; padding: 10px 20px calc(16px + env(safe-area-inset-bottom)); }
.popup-card:focus { outline: none; }
.sheet-handle {
  position: relative;
  display: block;
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: var(--border);
  cursor: grab;
  touch-action: none;
}
/* A comfortable grab area across the top of the sheet (the close button stays above it). */
.sheet-handle::before { content: ""; position: absolute; inset: -12px -120px -12px; }
.sheet-handle:active { cursor: grabbing; }
.popup-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.popup-close:hover { background: var(--surface-3); }
.popup-head { display: flex; align-items: center; gap: 14px; padding-inline-end: 52px; }
.popup-icon { width: 64px; height: 64px; border-radius: 22%; box-shadow: var(--shadow-md), 0 0 0 1px var(--border); flex: none; }
.popup-kicker { color: var(--brand-ink); font-weight: 700; font-size: .88rem; line-height: 1.4; }
.app-popup h2 { font-size: 1.35rem; line-height: 1.4; }
.popup-sub { margin-top: 14px; color: var(--text-2); }
.popup-benefits { display: grid; gap: 10px; margin-block: 18px 22px; }
.popup-benefits li { display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 1.45; }
.app-popup .store-badges { justify-content: center; padding-top: 30px; }
.popup-later {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--text-2);
  font-weight: 700;
  cursor: pointer;
}
.popup-later:hover { background: var(--surface-2); color: var(--text); }

@media (min-width: 640px) {
  .app-popup {
    width: min(480px, calc(100% - 48px));
    max-height: calc(100dvh - 48px);
    margin: auto;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
  }
  .app-popup[open] { animation-name: dialog-in; }
  .app-popup.is-closing { animation-name: dialog-out; }
  .sheet-handle { display: none; }
  .popup-card { padding: 28px 28px 20px; }
}

.popup-phone { display: none; }
@media (min-width: 768px) {
  .app-popup { width: min(720px, calc(100% - 48px)); }
  .popup-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 32px;
  }
  .popup-content { grid-column: 2; grid-row: 1; }
  .popup-phone {
    --pw: 190px;
    display: block;
    grid-column: 1;
    grid-row: 1;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), var(--shadow-md);
  }
  .app-popup .store-badges { justify-content: flex-start; }
}

html.modal-lock, html.menu-lock { overflow: hidden; }

/* ---------- Reveal on scroll (JS adds the classes; content is visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; transform: translateY(22px); }
  .reveal-in {
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0ms);
  }
}

/* ---------- Motion ---------- */
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(34 197 94 / 0); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}

@media print {
  .site-header, .action-bar, .app-popup, .hero-ctas, .skip-link { display: none !important; }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
  .hero, .page-hero { color: #000; background: none; }
  .page-hero::after, .jump, .page-other { display: none; }
  .page-hero-sub { color: #000; }
  .page-body { margin-top: 0; }
}
