/* rabta.love: one stylesheet for every page (home, blog, help, legal, guides).
   Colours are the app's own (src/theme/index.ts). Page-only rules stay in the page. */
:root {
  /* Rabta app colours (src/theme/index.ts) */
  --bg: #F6F6F6;
  --ink: #18181B;
  --muted: #71717A;
  --line: rgba(24, 24, 27, 0.10);
  --brand: #8D97FD;
  --violet: #8D97FD; /* main brand colour: fills, buttons */
  --brand-ink: #4D58CB; /* same hue, readable as small text */
  --deep: #2210CC;
  --tint: #EDEAFF;
  --accent: #C5BEFF;
  --gold: #F5C842;
  --gold-light: #FDF3C3;
  --card: #FFFFFF;
  --r: 28px;
  --pad: clamp(16px, 3.2vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter Tight', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); letter-spacing: 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.022em; line-height: 1.04; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.label { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.idx { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.muted { color: var(--muted); }
.photo { border-radius: var(--r); overflow: hidden; background: var(--tint); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons: pill with a dark arrow chip, like the reference */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; background: #fff; color: var(--ink); border: 1px solid var(--line); transition: transform .25s ease, background .25s ease; white-space: nowrap; }
.btn .chip { width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; transition: transform .25s ease; }
.btn:hover .chip { transform: translateX(3px); }
.btn.dark { background: var(--violet); color: #fff; border-color: transparent; }
.btn.dark .chip { background: #fff; color: var(--brand-ink); }
.btn.full { width: 100%; justify-content: space-between; }
.arrow { width: 14px; height: 14px; }

/* Nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 28px; padding: 8px 8px 8px 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); color: var(--ink); box-shadow: 0 10px 30px rgba(20, 12, 72, 0.14); max-width: calc(100vw - 24px); }
.nav .logo { font-size: 22px; letter-spacing: -0.022em; display: flex; align-items: center; gap: 2px; }
.nav .logo sup { font-size: 13px; color: var(--violet); }
.nav .links { display: flex; gap: 20px; font-size: 13px; opacity: .92; }
.nav .links a:hover { color: var(--brand-ink); }
.nav .btn { background: var(--violet); color: #fff; border: 0; }
.nav .btn .chip { background: #fff; color: var(--brand-ink); }

/* Hero */
.hero { padding: 12px; }
.hero-card { position: relative; border-radius: var(--r); overflow: hidden; min-height: 640px; height: calc(100svh - 24px); color: #fff; }
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 12, 72, 0.80) 0%, rgba(20, 12, 72, 0.36) 42%, rgba(20, 12, 72, 0.04) 70%); }
.hero-in { position: absolute; inset: auto 0 0 0; z-index: 2; padding: var(--pad); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(44px, 6.4vw, 96px); max-width: 11ch; }
.hero .label { color: var(--accent); margin-bottom: 18px; }
.hero-side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 420px; justify-self: end; }
.hero-side p { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.88); }
.hero-note { position: absolute; z-index: 2; top: calc(var(--pad) + 70px); right: var(--pad); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* Moving strip */
.strip { overflow: hidden; padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.strip-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.strip-track span { font-size: clamp(30px, 4vw, 56px); letter-spacing: -0.022em; text-transform: uppercase; padding-right: 40px; white-space: pre; color: var(--deep); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Section head */
section.block { padding-top: clamp(70px, 9vw, 130px); }
.head { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 40px; }
h2 { font-size: clamp(36px, 4.6vw, 68px); }

/* About [001] */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; }
.about-photo { aspect-ratio: 4 / 5; }
.about .cap { margin-top: 16px; }
.about .cap b { display: block; font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.quote { font-size: clamp(26px, 2.9vw, 44px); letter-spacing: -0.018em; line-height: 1.16; }
.about-low { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.about-low .photo { aspect-ratio: 4 / 3; }
.about-low p { font-size: 16px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.stat { background: var(--accent); border-radius: 22px; padding: 20px 22px; margin-top: 22px; }
.stat .label { color: var(--deep); opacity: .75; }
.stat .big { font-size: 46px; letter-spacing: -0.028em; margin: 8px 0 6px; }
.stat .dots { display: flex; gap: 8px; margin-top: 14px; }
.stat .dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--deep); opacity: .9; }
.stat .dots i:nth-child(n+5) { opacity: .22; }

/* Features [002] */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.chips span { font-size: 13px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.feat p.lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.feat-photo { aspect-ratio: 4 / 5; }
.feat-photo .float { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(237, 234, 255, 0.95); color: var(--deep); border-radius: 20px; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.feat-photo .float b { font-weight: 500; font-size: 22px; letter-spacing: -0.014em; }
.feat-photo .float .label { color: var(--deep); opacity: .75; }
.feat-photo .float .t { font-size: 13px; opacity: .85; }
.feat-photo .float .clock { grid-row: span 3; align-self: center; font-size: 13px; padding: 8px 12px; border-radius: 999px; background: var(--deep); color: var(--tint); }
.wali-card { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; margin-top: 56px; }
.wali-card .photo { aspect-ratio: 1; border-radius: 22px; }
.wali-card h3 { font-size: 26px; letter-spacing: -0.014em; margin-bottom: 8px; }
.wali-card p { color: var(--muted); line-height: 1.5; margin-bottom: 16px; }

/* How it works [003] */
.how-top { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; margin-bottom: 40px; }
.how-top p { color: var(--muted); font-size: 17px; justify-self: end; }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.how-photo { aspect-ratio: 4 / 5; }
.how-photo .over { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(255, 255, 255, 0.94); border-radius: 20px; padding: 20px 22px; }
.how-photo .over .label { color: var(--brand-ink); }
.how-photo .over b { display: block; font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.022em; margin: 8px 0 6px; }
.how-photo .over p { font-size: 14px; color: var(--muted); }
.steps { display: flex; flex-direction: column; }
.step { padding: 26px 0; border-bottom: 1px solid var(--line); }
.step:first-child { padding-top: 0; }
.step h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.018em; margin-bottom: 10px; }
.step p { color: var(--muted); line-height: 1.5; margin-bottom: 12px; max-width: 520px; }

/* Inside the app [004] */
.app { display: grid; grid-template-columns: 1fr 0.9fr 1fr; gap: 28px; align-items: start; }
.app .photo.wide { aspect-ratio: 4 / 3; }
.app h3 { font-size: 22px; letter-spacing: -0.014em; margin: 18px 0 6px; font-weight: 500; }
.app p { color: var(--muted); line-height: 1.5; }
.phone-stage { background: var(--tint); border-radius: var(--r); padding: 36px 0; display: grid; place-items: center; }
.phone { width: min(300px, 78%); aspect-ratio: 9 / 19.5; border-radius: 44px; background: #111; padding: 10px; box-shadow: 0 30px 60px rgba(34, 16, 204, 0.22); }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app-right .label { margin-bottom: 10px; display: block; }
.app-right h3 { margin-top: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.018em; }
.app-right .meta { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 16px 0 22px; }
.app-right .photo { aspect-ratio: 4 / 3; margin-top: 22px; }

/* Promise (dark band) */
.promise { background: var(--deep); color: #fff; border-radius: var(--r); padding: clamp(28px, 4vw, 56px); margin-top: clamp(70px, 9vw, 130px); }
.promise .label { color: rgba(255,255,255,.6); }
.promise h2 { margin: 18px 0 40px; max-width: 18ch; }
.promise-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; }
.promise .photo { aspect-ratio: 4 / 3.4; }
.promise .qcard { background: var(--tint); color: var(--deep); border-radius: 22px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.promise .qcard .q { font-size: clamp(22px, 2.3vw, 34px); letter-spacing: -0.014em; line-height: 1.22; }
.promise .qcard .q::before { content: '“'; display: block; font-size: 54px; line-height: .6; margin-bottom: 14px; }
.promise .qcard .label { color: var(--deep); opacity: .7; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.values div { background: rgba(255, 255, 255, 0.09); border-radius: 20px; padding: 22px; }
.values b { display: block; font-weight: 500; font-size: 18px; margin-bottom: 8px; color: var(--accent); }
.values p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); }

/* FAQ [006] */
.faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; }
.faq-left p { color: var(--muted); font-size: 17px; margin: 18px 0 26px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.008em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); line-height: 1.6; margin-top: 12px; max-width: 640px; }

/* Final call */
.cta { margin-top: clamp(70px, 9vw, 130px); padding: 0 12px; }
.cta-card { position: relative; border-radius: var(--r); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; }
.cta-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(20, 12, 72, 0.78), rgba(20, 12, 72, 0.12) 72%); }
.cta-in { position: relative; z-index: 2; padding: clamp(28px, 4vw, 60px); }
.cta .label { color: var(--accent); }
.cta h2 { margin: 16px 0 14px; max-width: 14ch; }
.cta p { color: rgba(255,255,255,.88); font-size: 17px; margin-bottom: 26px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stores img.apple { height: 48px; }
.stores img.play { height: 70px; margin: -11px 0; }

/* Footer */
footer.site { background: var(--deep); color: #fff; margin-top: 12px; padding: clamp(40px, 6vw, 80px) 0 28px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot h3 { font-size: clamp(28px, 3vw, 42px); max-width: 14ch; margin-bottom: 14px; }
.foot .label { color: rgba(255,255,255,.55); margin-bottom: 14px; display: block; }
.foot p { color: rgba(255,255,255,.75); line-height: 1.5; margin-bottom: 22px; max-width: 380px; }
.foot nav a { display: block; font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.foot nav a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 70px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
.foot-bottom .logo { font-size: clamp(56px, 9vw, 130px); letter-spacing: -0.035em; line-height: .85; color: var(--accent); }
.foot-bottom small { color: rgba(255,255,255,.55); font-size: 12px; }

/* App tour [003] */
.tour-top { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; margin-bottom: 40px; }
.tour-top p { color: var(--muted); font-size: 17px; line-height: 1.5; justify-self: end; max-width: 440px; }
.tour { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tour figure { background: var(--tint); border-radius: 24px; padding: 26px 18px 22px; display: flex; flex-direction: column; align-items: center; }
.tour figure:nth-child(even) { background: #fff; border: 1px solid var(--line); }
.phone.sm { width: 100%; max-width: 220px; border-radius: 34px; padding: 7px; }
.phone.sm .screen { border-radius: 27px; }
.tour figcaption { margin-top: 20px; text-align: center; }
.tour figcaption b { display: block; font-weight: 500; font-size: 18px; letter-spacing: -0.008em; margin-bottom: 6px; }
.tour figcaption span { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Everything inside [005] */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; min-height: 190px; display: flex; flex-direction: column; }
.fcard .fic { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: auto; }
.fcard .fic svg { width: 22px; height: 22px; }
.fcard b { font-weight: 500; font-size: 17px; letter-spacing: -0.008em; margin: 22px 0 6px; }
.fcard p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.fcard:nth-child(5n+1) { background: var(--accent); border-color: transparent; }
.fcard:nth-child(5n+1) .fic { background: rgba(255,255,255,.55); color: var(--deep); }
.fcard:nth-child(5n+1) p { color: var(--deep); opacity: .8; }

/* Compare [007] */
.compare { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.crow { display: grid; grid-template-columns: 1fr 1fr; }
.crow span { padding: 18px 24px; font-size: 15px; border-top: 1px solid var(--line); }
.crow .no { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(113,113,122,.45); }
.crow .yes { background: var(--tint); color: var(--deep); font-weight: 500; }
.crow.chead span { border-top: 0; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.crow.chead span:last-child { background: var(--deep); color: var(--tint); }

/* Journal [009] */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bcard { border-radius: 22px; padding: 24px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.bcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(34,16,204,.08); }
.bcard:nth-child(3n+1) { background: var(--tint); border-color: transparent; }
.bcard:nth-child(3n+2) { background: var(--deep); color: #fff; border-color: transparent; }
.bcard:nth-child(3n+2) .label, .bcard:nth-child(3n+2) .bmeta { color: rgba(255,255,255,.65); }
.bcard h3 { font-size: 22px; letter-spacing: -0.014em; line-height: 1.2; margin: 14px 0 18px; }
.bcard .bmeta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.bcard .bmeta i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,16,204,.08); }
.bcard:nth-child(3n+2) .bmeta i { background: var(--accent); color: var(--deep); }
.bmore { margin-top: 26px; display: flex; justify-content: center; }

/* Phone "Get the app" bar */
.appbar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); border: 1px solid rgba(24,24,27,.06); box-shadow: 0 16px 40px rgba(20,12,72,.3); transform: translateY(140%); transition: transform .35s ease; }
.appbar.on { transform: none; }
.appbar img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.appbar span { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.appbar b { font-weight: 500; font-size: 15px; }
.appbar small { font-size: 12px; color: var(--muted); }
.appbar i { font-style: normal; font-size: 14px; font-weight: 500; background: var(--violet); color: #fff; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
@media (min-width: 761px) { .appbar { display: none; } }

/* Cookie choice (Europe) */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin: 0 auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(20,12,72,.18); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.consent p { flex: 1; min-width: 220px; font-size: 14px; line-height: 1.45; color: #3F3F46; }
.consent a { color: var(--brand-ink); text-decoration: underline; }
.consent div { display: flex; gap: 8px; }
.consent button { font: inherit; font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.consent button.yes { background: var(--violet); color: #fff; border-color: transparent; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .nav .links { display: none; }
  .hero-in, .about, .feat, .how-top, .how, .faq, .promise-grid, .tour-top { grid-template-columns: 1fr; }
  .tour-top p { justify-self: start; }
  .tour { grid-template-columns: repeat(4, 220px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .tour figure { scroll-snap-align: start; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .bgrid { grid-template-columns: 1fr 1fr; }
  .hero-side { justify-self: start; }
  .how-top p { justify-self: start; }
  .app { grid-template-columns: 1fr 1fr; }
  .app-right { grid-column: span 2; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav { gap: 14px; padding-left: 16px; }
  .hero-card { min-height: 600px; }
  .hero-card > img { object-position: 24% center; }
  .hero-note { display: none; }
  .about-low { grid-template-columns: 1fr; }
  .wali-card { grid-template-columns: 110px 1fr; gap: 16px; }
  .app { grid-template-columns: 1fr; }
  .app-right { grid-column: auto; }
  .values { grid-template-columns: 1fr; }
  .fgrid, .bgrid { grid-template-columns: 1fr; }
  .crow span { padding: 14px 16px; font-size: 14px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
  

/* ---------- Shared across pages ---------- */

/* Menu button and sheet (phones and tablets) */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--tint); color: var(--brand-ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
.sheet { position: fixed; inset: 0; z-index: 49; background: rgba(20, 12, 72, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.sheet-in { position: absolute; top: 78px; left: 12px; right: 12px; background: #fff; border-radius: 24px; padding: 14px; box-shadow: 0 24px 60px rgba(20,12,72,.3); transform: translateY(-10px); transition: transform .25s ease; }
.sheet-in a { display: flex; justify-content: space-between; align-items: center; padding: 15px 12px; font-size: 18px; letter-spacing: -0.008em; border-bottom: 1px solid var(--line); }
.sheet-in a:last-of-type { border-bottom: 0; }
.sheet-in a::after { content: '→'; color: var(--brand-ink); font-size: 15px; }
.sheet-in .stores { padding: 14px 8px 4px; }
body.menu-open .sheet { opacity: 1; pointer-events: auto; }
body.menu-open .sheet-in { transform: none; }
body.menu-open { overflow: hidden; }
.nav .links a.on { color: var(--brand-ink); opacity: 1; }
body.light .nav { background: rgba(255, 255, 255, 0.9); }
.nav { transition: background .3s ease, box-shadow .3s ease; border: 1px solid rgba(24, 24, 27, 0.06); }
body.scrolled .nav { background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 34px rgba(20, 12, 72, 0.16); }

/* Footer */
footer.site { background: var(--deep); color: #fff; margin-top: clamp(70px, 9vw, 130px); padding: clamp(40px, 6vw, 80px) 0 28px; }
main:has(> .cta:last-child) + footer.site { margin-top: 12px; }
.foot-social { display: flex; gap: 18px; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 10px; }
.foot-social a:hover { color: var(--accent); }
footer.site .foot { grid-template-columns: 1.9fr 1fr 1fr 1fr .8fr; }
footer.site .foot .stores img.apple { height: 44px; }
footer.site .foot .stores img.play { height: 64px; margin: -10px -6px; }

/* Inner page top (no photo) */
.page-top { padding-top: 128px; }
.page-top .crumbs { font-size: 12px; color: var(--muted); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.page-top .crumbs a:hover { color: var(--brand-ink); }
.page-top .label { display: block; margin-bottom: 18px; color: var(--brand-ink); }
.page-top h1 { font-size: clamp(42px, 6vw, 92px); max-width: 15ch; }
.page-top p.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); max-width: 640px; margin-top: 24px; }
.page-top .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* Photo hero for inner pages */
.hero.short .hero-card { min-height: 560px; height: min(78svh, 760px); }
.hero.short h1 { font-size: clamp(42px, 5.6vw, 84px); max-width: 13ch; }

/* Two columns: words and a picture */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .photo { aspect-ratio: 4 / 5; }
.split .photo.wide { aspect-ratio: 4 / 3; }
.split h2 { margin-bottom: 20px; }
.split p { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 16px; max-width: 540px; }
.split .btn { margin-top: 10px; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 22px 0 8px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.45; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%236B52F5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* Phone beside text */
.phone-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.phone-split .phone-stage { padding: 44px 0; }

/* Do / don't columns (community guidelines) */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rules > div { border-radius: 24px; padding: clamp(22px, 3vw, 34px); }
.rules .do { background: var(--tint); color: var(--deep); }
.rules .dont { background: #fff; border: 1px solid var(--line); }
.rules h3 { font-size: 26px; letter-spacing: -0.014em; margin-bottom: 18px; }
.rules ul { list-style: none; display: grid; gap: 14px; }
.rules li { font-size: 15px; line-height: 1.5; padding-left: 26px; position: relative; }
.rules .do li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-ink); font-weight: 600; }
.rules .dont li { color: #3F3F46; }
.rules .dont li::before { content: '✕'; position: absolute; left: 0; color: #B42318; }

/* Numbered guideline cards */
.gl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gl div { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.gl i { font-style: normal; font-size: 12px; color: var(--brand-ink); letter-spacing: .06em; }
.gl b { display: block; font-weight: 500; font-size: 19px; letter-spacing: -0.008em; margin: 14px 0 8px; }
.gl p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Notice band */
.note-band { background: var(--gold-light); color: #5C4400; border-radius: 22px; padding: 22px 26px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; font-size: 15px; line-height: 1.55; }
.note-band b { font-weight: 600; }
.note-band svg { width: 22px; height: 22px; margin-top: 1px; }

/* Link tiles (related guides) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiles a { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; transition: transform .25s ease, box-shadow .25s ease; }
.tiles a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(34,16,204,.08); }
.tiles a b { font-weight: 500; font-size: 19px; letter-spacing: -0.008em; }
.tiles a span { font-size: 14px; color: var(--muted); line-height: 1.5; flex: 1; }
.tiles a i { font-style: normal; color: var(--brand-ink); font-size: 13px; }

/* Long-form text on landing pages */
.longread { max-width: 760px; }
.longread h2 { font-size: clamp(28px, 3vw, 40px); margin: 52px 0 16px; }
.longread h3 { font-size: 21px; letter-spacing: -0.008em; font-weight: 500; line-height: 1.3; margin: 30px 0 10px; }
.longread p, .longread li { font-size: 17px; line-height: 1.75; color: #3F3F46; margin-bottom: 16px; }
.longread ul { margin: 0 0 20px 22px; }
.longread a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Blog articles and legal / help pages */
article.post, .content { max-width: 760px; margin: 0 auto; padding: 132px var(--pad) 0; }
article.post .category { display: inline-block; background: var(--tint); color: var(--deep); font-size: 11px; font-weight: 500; padding: 7px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 22px; }
article.post h1, .content h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; margin-bottom: 18px; }
article.post .meta { font-size: 14px; color: var(--muted); margin-bottom: 40px; display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
article.post .meta strong { font-weight: 500; color: var(--ink); }
article.post h2, .content h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.014em; line-height: 1.2; margin: 46px 0 16px; }
article.post h3, .content h3 { font-size: 20px; letter-spacing: -0.008em; line-height: 1.3; margin: 30px 0 12px; font-weight: 500; }
article.post p, .content p { font-size: 17px; line-height: 1.8; color: #3F3F46; margin-bottom: 20px; }
article.post a, .content a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
article.post blockquote { border-left: 3px solid var(--brand); padding: 18px 24px; margin: 28px 0; background: #fff; border-radius: 0 18px 18px 0; color: #3F3F46; font-size: 17px; line-height: 1.7; }
article.post blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--brand-ink); font-weight: 500; }
article.post ul, article.post ol, .content ul, .content ol { margin: 16px 0 24px 22px; }
article.post li, .content li { font-size: 16px; line-height: 1.75; color: #3F3F46; margin-bottom: 12px; }
article.post strong, .content strong { font-weight: 600; }
article.post .cta-box { margin-top: 56px; background: var(--deep); border-radius: 26px; padding: clamp(26px, 4vw, 40px); color: #fff; position: relative; overflow: hidden; }
article.post .cta-box::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(197,190,255,.35), transparent 70%); }
article.post .cta-box h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; letter-spacing: -0.014em; margin: 0 0 8px; }
article.post .cta-box p { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: 22px; max-width: 460px; }
article.post .cta-box a { display: inline-flex; background: #fff; color: var(--ink); font-weight: 500; padding: 13px 22px; border-radius: 999px; font-size: 14px; text-decoration: none; position: relative; z-index: 1; }
.post-more { max-width: 760px; margin: 56px auto 0; padding: 0 var(--pad); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.content .subtitle, .content .updated { font-size: 14px; color: var(--muted); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.content .contact-card, .content .app-id { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; margin: 28px 0; }
.content .app-id p { margin-bottom: 4px; font-size: 15px; }
.content .contact-card h3 { margin-top: 0; }
.content .contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; font-size: 15px; }
.content .contact-icon { width: 42px; height: 42px; background: var(--tint); border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.content .contact-icon svg { width: 20px; height: 20px; fill: var(--brand-ink); }
.content .faq { display: block; margin-top: 48px; }
.content .faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.content .faq-item h3 { font-size: 18px; margin: 0 0 8px; }
.content .faq-item p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.content ol.steps { counter-reset: step; list-style: none; margin-left: 0; display: block; }
.content ol.steps li { position: relative; padding-left: 44px; margin-bottom: 14px; }
.content ol.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.content .callout { border-left: 3px solid var(--brand); background: #fff; border-radius: 0 18px 18px 0; padding: 18px 22px; margin: 22px 0; }
.content .callout p:last-child { margin-bottom: 0; }
.content .callout.warn { border-left-color: #E5484D; }

/* Blog list */
.blog-tools { display: flex; gap: 12px; align-items: center; margin: 34px 0 18px; flex-wrap: wrap; }
.search { flex: 1; min-width: 240px; max-width: 460px; position: relative; }
.search input { width: 100%; font: inherit; font-size: 15px; padding: 14px 18px 14px 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); outline: none; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--tint); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.blog-count { font-size: 13px; color: var(--muted); }
.categories { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.cat-pill { flex: none; font: inherit; font-size: 13px; padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: background .2s ease, color .2s ease; }
.cat-pill:hover { border-color: var(--brand); }
.cat-pill.active { background: var(--violet); color: #fff; border-color: var(--violet); }
.grid.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.grid.posts .card { border-radius: 22px; padding: 24px; min-height: 210px; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.grid.posts .card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(34,16,204,.08); }
.grid.posts .card:nth-child(6n+1) { background: var(--tint); border-color: transparent; }
.grid.posts .card:nth-child(6n+5) { background: var(--deep); color: #fff; border-color: transparent; }
.grid.posts .card:nth-child(6n+5) .card-cat, .grid.posts .card:nth-child(6n+5) .card-meta { color: rgba(255,255,255,.65); }
.card-cat { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-ink); }
.grid.posts .card h2 { font-size: 21px; letter-spacing: -0.014em; line-height: 1.22; margin: 14px 0 18px; flex: 1; }
.card-meta { font-size: 12px; color: var(--muted); }
.grid.posts .card.hide { display: none; }
.blog-more { display: flex; justify-content: center; margin-top: 30px; }
.blog-more button { font: inherit; cursor: pointer; }
.blog-empty { display: none; padding: 40px 0; color: var(--muted); text-align: center; }

/* Chip groups (filters, languages) */
.chip-group { margin: 22px 0 6px; }
.chip-group .label { display: block; margin-bottom: 10px; }
.chip-group .chips { margin: 0; }
.chips span.gold { background: var(--gold-light); border-color: transparent; color: #5C4400; }
.chips span.tint { background: var(--tint); border-color: transparent; color: var(--deep); }

/* Wide photo band */
.wide-photo { aspect-ratio: 16 / 7; margin-top: 44px; }

/* Fact cards */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.facts div:nth-child(odd) { background: var(--accent); border-color: transparent; }
.facts b { display: block; font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.028em; line-height: 1; margin-bottom: 10px; }
.facts span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.facts div:nth-child(odd) span { color: var(--deep); opacity: .8; }

@media (max-width: 1060px) { .facts { grid-template-columns: 1fr 1fr; } .wide-photo { aspect-ratio: 4 / 3; } }

@media (max-width: 1060px) {
  .menu-btn { display: grid; }
  footer.site .foot { grid-template-columns: 1fr 1fr; }
  .split, .phone-split, .rules { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .gl, .tiles { grid-template-columns: 1fr 1fr; }
  .grid.posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav .btn { padding-left: 14px; gap: 10px; }
  .nav .btn .chip { width: 28px; height: 28px; }
  .page-top { padding-top: 112px; }
  .hero.short .hero-card { min-height: 540px; }
  .gl, .tiles, .grid.posts { grid-template-columns: 1fr; }
  article.post, .content { padding-top: 112px; }
  footer.site .foot { grid-template-columns: 1fr 1fr; }
}
