/* One Week — موقع التطبيق
   Layout: app-shell on phones (sticky top bar + floating bottom tab bar, swipeable rails),
   wide editorial split layout on desktop. Brand red from the logo, warm-tinted neutrals. */
:root {
  --brand: #e64461;
  --brand-ink: #c42e4b;
  --brand-soft: #fde8ec;
  --ink: #17121a;
  --ink-2: #4d4450;
  --muted: #8a7f8c;
  --bg: #fffafa;
  --surface: #ffffff;
  --surface-2: #f6eef0;
  --line: #eadfe2;
  --on-brand: #ffffff;
  --night: #17121a;
  --on-night: #fbf3f5;
  --shadow: 0 18px 50px -20px rgba(80, 20, 35, .28);
  --glass: rgba(255, 255, 255, .82);

  --f-display: "Readex Pro", "Almarai", "Segoe UI", Tahoma, sans-serif;
  --f-body: "Almarai", "Readex Pro", "Segoe UI", Tahoma, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1180px;
  --gut-l: max(18px, env(safe-area-inset-left, 0px));
  --gut-r: max(18px, env(safe-area-inset-right, 0px));
  --tabbar-h: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #f0566f; --brand-ink: #ff7b90; --brand-soft: #3a1b23;
    --ink: #f6eef0; --ink-2: #cdbfc4; --muted: #94868c;
    --bg: #120e12; --surface: #1c161b; --surface-2: #241c22; --line: #33282f;
    --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7); --glass: rgba(28, 22, 27, .82);
    --night: #2a1f27;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #f0566f; --brand-ink: #ff7b90; --brand-soft: #3a1b23;
  --ink: #f6eef0; --ink-2: #cdbfc4; --muted: #94868c;
  --bg: #120e12; --surface: #1c161b; --surface-2: #241c22; --line: #33282f;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7); --glass: rgba(28, 22, 27, .82);
  --night: #2a1f27;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.35; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 11px 22px; border: 0; cursor: pointer; transition: transform .15s ease, background .2s ease; }
.btn:active { transform: scale(.96); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-ink); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: block; height: 50px; border-radius: 12px; overflow: hidden; transition: transform .15s ease; }
.store img { height: 100%; width: auto; }
.store:hover { transform: translateY(-2px); }
.store:active { transform: scale(.96); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.topnav { display: flex; gap: 4px; margin-inline-start: auto; }
.topnav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.topnav a:hover, .topnav a.active { background: var(--surface-2); color: var(--ink); }
.topbar .btn { margin-inline-start: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); border: 0; cursor: pointer; }
.icon-btn:active { transform: scale(.92); }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --tabbar-h: 74px; }
  body { padding-bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); }
  .topnav, .topbar .btn-dl-wide { display: none; }
  .topbar .wrap { height: 58px; }
  .brand img { height: 34px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    pointer-events: none;
  }
  .tabbar-inner {
    grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    height: var(--tabbar-h); border-radius: 26px; pointer-events: auto;
    background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-family: var(--f-display); color: var(--muted); padding: 8px 0; transition: color .2s; }
  .tab .ico { width: 23px; height: 23px; }
  .tab.active { color: var(--brand); }
  .tab-fab { justify-self: center; width: 58px; height: 58px; margin-top: -30px; border-radius: 20px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 12px 26px -8px var(--brand); transition: transform .15s; }
  .tab-fab:active { transform: scale(.92); }
  .tab-fab .ico { width: 26px; height: 26px; }
}

/* ---------- sheets (download sheet on mobile) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(10, 5, 10, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; margin-inline: auto; max-width: 520px;
  background: var(--surface); border-radius: 28px 28px 0 0;
  padding: 10px max(22px, env(safe-area-inset-right, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
  transform: translateY(105%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .9, .25, 1), visibility 0s .35s;
}
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 18px; }
.sheet.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .9, .25, 1); }
.sheet.open + .sheet-backdrop, .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet h3 { font-size: 20px; margin-bottom: 6px; }
.sheet p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.sheet .stores { justify-content: center; }
.sheet-app { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sheet-app img { width: 62px; height: 62px; border-radius: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 28px 0; }
.hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand); color: var(--on-brand); border-radius: 36px;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  padding: 56px 56px 0;
  min-height: 560px;
}
.hero-card::before { /* the big "1" ring from the logo */
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; border-radius: 50%;
  left: -180px; bottom: -330px; border: 90px solid rgba(255, 255, 255, .09);
}
.hero-card::after {
  content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%;
  right: -80px; top: -110px; background: rgba(255, 255, 255, .08);
}
.hero-copy { padding-bottom: 56px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 13px; font-weight: 500; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); margin-bottom: 18px; }
.pill b { background: #fff; color: #e64461; border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(23, 18, 26, .25) 0); }
.hero-lead { margin-top: 16px; font-size: 18px; opacity: .92; max-width: 30em; }
.hero .stores { margin-top: 28px; }
.hero .store { box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; opacity: .92; }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ico { width: 18px; height: 18px; }

.hero-phones { position: relative; height: 100%; min-height: 500px; align-self: end; }
.hero-phones img { position: absolute; bottom: -2px; width: 46%; max-width: 270px; filter: drop-shadow(0 24px 40px rgba(60, 0, 15, .35)); }
.hero-phones .p-main { left: 50%; transform: translateX(-50%); width: 54%; max-width: 300px; z-index: 3; bottom: -60px; }
.hero-phones .p-left { left: 0; bottom: -110px; transform: rotate(-7deg); z-index: 2; }
.hero-phones .p-right { right: 0; bottom: -110px; transform: rotate(7deg); z-index: 1; }
.mascot { position: absolute; z-index: 0; width: 84px; right: 0; top: 26%; transform: rotate(-12deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-phones .p-main { animation: rise .9s cubic-bezier(.2, .9, .25, 1) both; }
  .hero-phones .p-left { animation: rise-l 1s .12s cubic-bezier(.2, .9, .25, 1) both; }
  .hero-phones .p-right { animation: rise-r 1s .2s cubic-bezier(.2, .9, .25, 1) both; }
  .mascot { animation: wave 3.2s ease-in-out infinite; transform-origin: bottom center; }
}
@keyframes rise { from { transform: translate(-50%, 70px); } }
@keyframes rise-l { from { transform: translateY(90px) rotate(-2deg); } }
@keyframes rise-r { from { transform: translateY(90px) rotate(2deg); } }
@keyframes wave { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(-4deg) translateY(-6px); } }

/* ---------- sections ---------- */
section.block { padding-block: 92px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--brand); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media .photo { border-radius: var(--r-lg); width: 100%; aspect-ratio: 583 / 477; object-fit: cover; }
.about-media .badge-ico { position: absolute; width: 86px; right: -18px; bottom: 34px; border-radius: 22px; box-shadow: var(--shadow); transform: rotate(-8deg); }
.about-copy p { color: var(--ink-2); font-size: 17px; }
.about-copy p + p { margin-top: 14px; }
.about-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; }
.about-list .dot { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.about-list .dot .ico { width: 18px; height: 18px; }
.about-list b { font-family: var(--f-display); font-weight: 600; display: block; }
.about-list span { color: var(--ink-2); font-size: 15px; }

/* features: bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.f-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.f-card h3 { font-size: 19px; font-weight: 600; }
.f-card p { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.f-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.f-ico .ico { width: 24px; height: 24px; }
.f-video { grid-column: span 7; grid-row: span 2; background: var(--night); border-color: transparent; color: var(--on-night); padding-bottom: 0; }
.f-video h3 { color: var(--on-night); font-size: 24px; }
.f-video p { color: var(--on-night); opacity: .75; max-width: 26em; }
.f-video .f-ico { background: var(--brand); color: #fff; }
.f-video .shot { margin: 18px auto -150px; width: 62%; max-width: 300px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.f-geo { grid-column: span 5; padding-bottom: 150px; }
.f-geo .map { position: absolute; left: -10%; bottom: -26%; width: 120%; max-width: none; opacity: .9; pointer-events: none; }
.f-geo .ping { position: absolute; left: 30%; bottom: 58px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 25%, transparent); }
@media (prefers-reduced-motion: no-preference) { .f-geo .ping { animation: ping 2s ease-out infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }
.f-follow { grid-column: span 5; }
.f-sm { grid-column: span 4; }

/* screens rail */
.screens { padding-block: 92px 0; }
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px max(18px, calc((100vw - var(--wrap)) / 2 + 18px)) 30px; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.shot-card { flex: none; width: 240px; scroll-snap-align: center; text-align: center; }
.shot-card img { width: 100%; filter: drop-shadow(0 18px 28px rgba(40, 10, 20, .22)); transition: transform .3s ease; }
.shot-card:hover img { transform: translateY(-6px); }
.shot-card figcaption { margin-top: 12px; font-family: var(--f-display); font-size: 14px; color: var(--ink-2); }
.rail-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 9px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 24px; background: var(--brand); }

/* how it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.step { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; width: 100%; text-align: start; font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-radius: var(--r-md); padding: 18px; cursor: pointer; transition: background .25s, border-color .25s; }
.step::before { content: counter(s); flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 17px; background: var(--surface-2); color: var(--ink-2); transition: background .25s, color .25s; }
.step b { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.step span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.step[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.step[aria-selected="true"]::before { background: var(--brand); color: #fff; }
.step .bar { display: block; height: 3px; border-radius: 3px; background: var(--line); margin-top: 12px; overflow: hidden; }
.step .bar i { display: block; height: 100%; width: 0; background: var(--brand); }
.step[aria-selected="true"] .bar i { animation: fill 5s linear forwards; }
.how.paused .step .bar i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.how-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.how-stage::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; background: var(--brand-soft); }
.how-stage img { position: relative; grid-area: 1 / 1; width: 62%; max-width: 300px; filter: drop-shadow(0 26px 40px rgba(40, 10, 20, .25)); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .45s, transform .45s; }
.how-stage img.on { opacity: 1; transform: none; }
.how-stage .mascot2 { position: absolute; width: 80px; right: 4%; bottom: 8%; transform: rotate(10deg); opacity: 1; filter: none; z-index: 2; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--brand); transition: transform .25s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; font-size: 15px; }
.faq details a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* cta */
.cta { margin-top: 92px; }
.cta-card { position: relative; overflow: hidden; border-radius: 36px; background: var(--night); color: var(--on-night); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 20px; padding: 48px 56px 0; }
.cta-card h2 { color: var(--on-night); font-size: clamp(26px, 3vw, 38px); }
.cta-card p { opacity: .75; margin-top: 12px; max-width: 30em; }
.cta-card .stores { margin-top: 24px; }
.cta-copy { padding-bottom: 48px; }
.cta-card .art { align-self: end; width: 100%; max-width: 460px; margin-inline: auto; }

/* footer */
.footer { margin-top: 72px; border-top: 1px solid var(--line); padding-block: 48px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--ink-2); font-size: 15px; }
.footer ul a:hover { color: var(--brand); }
.footer .about-f p { color: var(--ink-2); font-size: 15px; margin-top: 12px; max-width: 26em; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); transition: background .2s, color .2s; }
.socials a:hover { background: var(--brand); color: #fff; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.copy nav { display: flex; gap: 18px; }
.copy .credit b { font-family: var(--f-display); font-weight: 600; color: var(--brand); }
.copy a:hover { color: var(--brand); }

/* ---------- legal pages ---------- */
.legal-hero { padding-block: 34px 8px; }
.legal-hero .crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.legal-hero .crumbs a:hover { color: var(--brand); }
.legal-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.legal-hero .lead { color: var(--ink-2); margin-top: 10px; font-size: 17px; max-width: 46em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-family: var(--f-display); }
.chip .ico { width: 16px; height: 16px; }
.doc-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); margin-top: 22px; }
.doc-switch a { padding: 8px 18px; border-radius: 999px; font-family: var(--f-display); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.doc-switch a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .2); }

.legal { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 32px 0; }
.toc { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 110px); overflow: auto; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.toc h2 { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 8px; padding-inline: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); transition: background .2s, color .2s; }
.toc a::before { content: counter(t); flex: none; min-width: 1.4em; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--surface-2); }
.toc a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.toc a.active::before { color: var(--brand); }

.doc { min-width: 0; max-width: 760px; counter-reset: sec; }
.summary-box { background: var(--brand-soft); border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 36px; }
.summary-box h2 { font-size: 18px; margin-bottom: 10px; color: var(--ink); display: block; }
.summary-box h2::before { content: none; }
.summary-box ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.doc section { counter-increment: sec; padding-block: 8px 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.doc section:last-of-type { border-bottom: 0; }
.doc h2 { font-size: 22px; font-weight: 600; display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.doc h2::before { content: counter(sec); flex: none; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-soft); min-width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; transform: translateY(-3px); }
.doc h3 { font-size: 17px; font-weight: 600; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.95; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { margin: 10px 0 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.doc li::marker { color: var(--brand); }
.doc strong { color: var(--ink); }
.doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.doc .note { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 15px; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.doc th, .doc td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); line-height: 1.7; }
.doc th { background: var(--surface-2); color: var(--ink); font-family: var(--f-display); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
mark.fill { background: color-mix(in srgb, #f5c400 30%, transparent); color: inherit; padding: 0 4px; border-radius: 4px; }
.contact-card { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.contact-card a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none !important; color: var(--ink) !important; font-size: 15px; }
.contact-card .ico { color: var(--brand); width: 18px; height: 18px; }
.back-top { position: fixed; z-index: 55; left: max(18px, env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; transform: translateY(10px); box-shadow: var(--shadow); background: var(--surface); }
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* mobile toc as chip rail */
.toc-rail { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-card { padding: 44px 36px 0; gap: 8px; }
  .f-video { grid-column: span 12; grid-row: auto; }
  .f-geo, .f-follow { grid-column: span 6; }
  .f-sm { grid-column: span 6; }
  .f-sm:last-child { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 70px; }
  .hero { padding-block: 10px 0; }
  .hero-card { grid-template-columns: 1fr; text-align: center; border-radius: 30px; padding: 34px 22px 0; min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero .stores, .hero-points { justify-content: center; }
  .hero-lead { margin-inline: auto; font-size: 16px; }
  .hero-phones { min-height: 0; height: 380px; margin-top: 8px; }
  .hero-phones .p-main { width: 58%; bottom: -70px; }
  .hero-phones .p-left, .hero-phones .p-right { width: 44%; bottom: -120px; }
  .mascot { width: 58px; right: 2px; top: 6%; z-index: 0; }
  .store { height: 46px; }

  section.block, .screens { padding-block: 64px 0; }
  .sec-head { margin-bottom: 26px; }
  .about, .how { grid-template-columns: 1fr; gap: 28px; }
  .about-media .badge-ico { width: 64px; right: 10px; bottom: -18px; }

  /* feature cards become a swipeable rail, like an app */
  .bento { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; margin-inline: calc(-1 * var(--gut-r)) calc(-1 * var(--gut-l)); padding: 4px var(--gut-r) 18px var(--gut-l); }
  .bento::-webkit-scrollbar { display: none; }
  .f-card { flex: none; width: 78%; max-width: 330px; scroll-snap-align: start; padding: 22px; }
  .f-video { width: 84%; }
  .f-video .shot { width: 70%; margin-bottom: -120px; }
  .f-geo { padding-bottom: 130px; }
  .shot-card { width: 200px; }
  .rail { gap: 14px; padding-inline: var(--gut-r) var(--gut-l); }

  .how-stage { min-height: 0; order: -1; }
  .how-stage img { width: 56%; }
  .steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
  .step { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 8px; }
  .step span { display: none; }
  .step b { font-size: 14px; }
  .step .bar { width: 100%; }
  .how-caption { display: block !important; }

  .cta { margin-top: 64px; }
  .cta-card { grid-template-columns: 1fr; text-align: center; padding: 36px 22px 0; border-radius: 30px; }
  .cta-copy { padding-bottom: 0; }
  .cta-card .stores { justify-content: center; }
  .cta-card p { margin-inline: auto; }

  .footer { margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer .about-f { grid-column: 1 / -1; }

  .legal { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .toc { display: none; }
  .toc-rail {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 40;
    margin-inline: calc(-1 * var(--gut-r)) calc(-1 * var(--gut-l)); padding: 10px var(--gut-r) 10px var(--gut-l);
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
  }
  .toc-rail::-webkit-scrollbar { display: none; }
  .toc-rail a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-family: var(--f-display); color: var(--ink-2); white-space: nowrap; }
  .toc-rail a.active { background: var(--brand); color: #fff; }
  html.legal-page { scroll-padding-top: 120px; }
  .doc h2 { font-size: 19px; }
  .back-top { bottom: calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  .hero-phones { height: 330px; }
  .hero h1 { font-size: 28px; }
  .store { height: 42px; }
}
.how-caption { display: none; text-align: center; color: var(--ink-2); font-size: 15px; margin-top: 10px; min-height: 3.4em; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
