/* joinbaham.com (Dorehami). Built by tools/site/build.mjs. No scripts: motion is CSS only and respects reduced motion. */

@font-face { font-family: 'Bricolage'; src: url(/fonts/bricolage.woff2) format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Hanken'; src: url(/fonts/hanken.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url(/fonts/vazirmatn-arabic.woff2) format('woff2'); font-weight: 500 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --bg: #FFFFFF;
  --bg-2: #F3F3F5;        /* soft grey for bands */
  --surface: #FFFFFF;
  --ink: #212124;         /* near-black, also the CTA colour */
  --ink-2: #45454B;       /* body text */
  --ink-3: #616167;       /* captions */
  --line: #E6E6EA;
  --teal: #6A55D8;        /* the one accent: Dorehami violet (name kept for the build) */
  --teal-ink: #5640C4;
  --teal-soft: #F0EDFD;
  --saffron: #B02E3C;     /* the pomegranate red, used as a small mark only */
  --night: #212124;       /* near-black for the business band */
  --display: 'Bricolage', 'Hanken', system-ui, sans-serif;
  --body: 'Hanken', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fa: 'Vazirmatn', 'Hanken', system-ui, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --shadow: 0 30px 60px -30px rgba(42, 30, 10, .28), 0 12px 24px -16px rgba(42, 30, 10, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 750; letter-spacing: -0.025em; line-height: 1.04; }
p { margin: 0; }
[lang="fa"] { font-family: var(--fa); }

.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo { display: inline-flex; color: var(--teal-ink); }
.logo svg, .logo img { height: 34px; width: auto; }
.top nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 999px; transition: background .25s var(--ease), color .25s var(--ease); }
.top nav a:hover { background: var(--bg-2); color: var(--ink); }
.top nav a.cta { background: var(--ink); color: #fff; }
.top nav a.cta:hover { background: #2a2c33; color: #fff; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 16px/1 var(--body);
  text-decoration: none; background: var(--ink); color: #fff; border: 0; cursor: pointer; transition: transform .2s var(--ease), background .25s var(--ease); }
.btn:hover { background: #2a2c33; color: #fff; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--bg); color: var(--ink); }
.btn svg { width: 20px; height: 20px; }

.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 11.5px; opacity: .75; font-weight: 500; }
.store strong { font: 700 18px/1.1 var(--display); letter-spacing: -0.01em; }
.store.soon { cursor: default; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 24px 0 72px; min-height: min(780px, calc(100dvh - 80px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .02em; color: var(--teal-ink); background: var(--teal-soft); padding: 8px 14px 8px 10px; border-radius: 999px; }
.eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(233, 180, 76, .25); }
.hero h1 { font-size: clamp(42px, 5.2vw, 74px); margin: 22px 0 16px; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .fa { font-size: 24px; font-weight: 700; color: var(--ink-3); margin-bottom: 22px; text-align: left; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 40ch; margin-bottom: 32px; }
.hero .note { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }

.stage { position: relative; height: 640px; }
.phone { position: absolute; width: 290px; border-radius: 48px; padding: 10px; background: #15161A; box-shadow: var(--shadow), inset 0 0 0 2px #2c2e35; }
.phone .scr { border-radius: 38px; overflow: hidden; background: #fff; position: relative; }
.phone .scr::before { content: ''; position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #15161A; z-index: 2; }
.phone .bar { height: 46px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px; font: 700 14px/1 var(--body); color: #111; }
.phone .bar b { display: flex; gap: 5px; }
.phone .bar b i { display: block; width: 16px; height: 9px; border-radius: 3px; background: #111; }
.phone .bar b i:first-child { width: 14px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 1px; }
.phone img { width: 100%; height: auto; aspect-ratio: 660 / 1431; }
.stage .p1 { right: 34%; top: 40px; transform: rotate(-5deg); z-index: 2; }
.stage .p2 { right: 2%; top: 0; transform: rotate(4deg); }

.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 10px 18px 10px 10px; font-weight: 700; font-size: 15px; box-shadow: 0 18px 40px -18px rgba(42, 30, 10, .35), inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); font-style: normal; }
.chip i svg { width: 18px; height: 18px; }
.chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.chip.c1 { left: -2%; top: 120px; }
.chip.c2 { right: -4%; top: 380px; }
.chip.c3 { left: 8%; bottom: 40px; }
.chip.c3 i { background: #FBEBC8; color: #7A5300; }

/* ------------------------------------------------------------------ city marquee */
.cities { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.cities .track { display: flex; gap: 0; width: max-content; animation: marquee 48s linear infinite; }
.cities ul { display: flex; list-style: none; margin: 0; padding: 0; }
.cities li { font: 700 clamp(22px, 2.6vw, 32px)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); padding: 0 28px; display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.cities li::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); }
.cities li.fa { font-family: var(--fa); color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
section { padding: 112px 0 0; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.h2 { font-size: clamp(36px, 4.6vw, 60px); max-width: 16ch; }
.sub { font-size: 19px; color: var(--ink-2); max-width: 52ch; margin-top: 18px; }
.head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: 48px; }

/* bento: what's inside */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tile { background: var(--surface); border-radius: var(--r-lg); padding: 34px; box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.tile h3 { font-size: 28px; margin-bottom: 10px; }
.tile p { color: var(--ink-2); font-size: 16.5px; max-width: 40ch; }
.tile .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); margin-bottom: 22px; }
.tile .ico svg { width: 24px; height: 24px; }
.tile.big { grid-row: span 2; background: var(--teal); color: #fff; padding-bottom: 0; display: flex; flex-direction: column; }
.tile.big h3, .tile.big p { color: #fff; }
.tile.big p { opacity: .85; }
.tile.big .ico { background: rgba(255,255,255,.14); color: #fff; }
.tile.big .peek { margin: 34px auto 0; width: 78%; border-radius: 34px 34px 0 0; padding: 9px 9px 0; background: #15161A; flex: 1; display: flex; }
.tile.big .peek .scr { border-radius: 26px 26px 0 0; overflow: hidden; width: 100%; max-height: 430px; }
.tile.big .peek img, .shot img { width: 100%; height: auto; aspect-ratio: 660 / 1431; }
.tile.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }

/* small app-style previews inside bento tiles */
.mini { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.mini li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 15px; }
.mini li span { flex: 1; display: grid; line-height: 1.25; }
.mini li small { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.mini li i { width: 36px; height: 36px; border-radius: 11px; background: var(--teal-soft); flex: none; }
.mini li i.t2 { background: #FBEBC8; }
.mini li i.t3 { background: #ECE6FB; }
.mini li b { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
.mini li b.on { background: var(--teal-soft); color: var(--teal-ink); }
.mini.bring li i { width: 24px; height: 24px; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.mini.bring li i.tick { background: var(--teal); box-shadow: none; position: relative; }
.mini.bring li i.tick::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); }
.mini.bring li b { background: var(--saffron); color: #FFFFFF; }

/* zig-zag: how it works */
.zig { display: grid; gap: 120px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row2.flip .copy { order: 2; }
.row2 .copy .n { font: 700 15px/1 var(--display); color: var(--teal); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.row2 .copy .n::before { content: ''; width: 28px; height: 2px; background: var(--teal); }
.row2 h3 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; max-width: 14ch; }
.row2 p { color: var(--ink-2); font-size: 18px; max-width: 42ch; }
.row2 ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.row2 li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.row2 li svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 2px; }
.shot { position: relative; display: grid; place-items: center; background: var(--bg-2); border-radius: 36px; padding: 56px 24px 0; overflow: hidden; min-height: 520px; }
.shot .phone { position: relative; width: 300px; border-radius: 48px 48px 0 0; padding-bottom: 0; }
.shot .phone .scr { border-radius: 38px 38px 0 0; max-height: 520px; }
.shot .chip { bottom: 40px; right: 24px; left: auto; top: auto; }

/* calendar: celebrate together */
.cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.cal div { padding: 30px 28px 32px; border-left: 1px solid var(--line); }
.cal div:first-child { border-left: 0; }
.cal .d { font: 700 14px/1 var(--body); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.cal .fa { font-size: 30px; font-weight: 800; color: var(--teal); margin: 18px 0 6px; line-height: 1.3; }
.cal h3 { font-size: 22px; margin-bottom: 8px; }
.cal p { color: var(--ink-2); font-size: 15.5px; }

/* businesses */
.biz { background: var(--night); color: #F4F4F6; border-radius: 36px; padding: 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.biz::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(233,180,76,.22), transparent 65%); pointer-events: none; }
.biz .kicker { color: var(--saffron); }
.biz h2 { color: #fff; font-size: clamp(34px, 4vw, 52px); max-width: 15ch; }
.biz p { color: #C9C9D1; font-size: 18px; margin-top: 18px; max-width: 46ch; }
.biz .price { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 26px; color: #fff; font-size: 17px; }
.biz .price strong { font: 750 36px/1 var(--display); color: var(--saffron); }
.biz .price s { opacity: .6; }
.biz ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.biz li { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.06); border-radius: 18px; padding: 16px 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #fff; font-weight: 600; }
.biz li svg { width: 22px; height: 22px; color: var(--saffron); flex: none; }
.biz .btn { margin-top: 30px; }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq dl, .faq .list { margin: 0; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 4px; font: 700 20px/1.3 var(--display); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: 14px; height: 14px; flex: none; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
details p { padding: 0 4px 26px; color: var(--ink-2); max-width: 62ch; }

/* closing call */
.closing { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 72px 0 0; border-top: 1px solid var(--line); margin-top: 112px; }
.closing h2 { font-size: clamp(40px, 5.4vw, 72px); max-width: 13ch; }
.closing .fa { font-size: 24px; color: var(--ink-3); margin-top: 14px; font-weight: 700; text-align: left; }

/* ------------------------------------------------------------------ footer */
footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 14.5px; }
footer .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------------ legal and help pages */
.legal { max-width: 760px; margin: 24px auto 0; padding: 0 24px; }
.legal h1 { font-size: clamp(40px, 5vw, 58px); margin: 32px 0 20px; }
.legal h2 { font-size: 26px; margin: 48px 0 12px; }
.legal h3 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin: 6px 0; }
.legal em { color: var(--ink-3); }
.legal code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------------ shared-link pages (/e, /g, /b, /i) */
.share { max-width: 560px; margin: 24px auto 0; padding: 0 20px; }
.share .card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.share .cover { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--bg-2); }
.share .meta.center { text-align: center; }
.share .body { padding: 28px 28px 30px; }
.share h1 { font-size: 34px; margin: 6px 0 12px; }
.share .meta { color: var(--ink-2); margin: 4px 0; }
.share .actions { display: grid; gap: 10px; margin-top: 24px; }
.share .actions a { width: 100%; }
.pill { display: inline-block; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); }
.pill.bad { background: #FBE3E1; color: #A2281C; }

/* ------------------------------------------------------------------ motion */
.rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; } .d5 { --i: 5; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float { 50% { translate: 0 -10px; } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 24px; }
  .stage { height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.big { grid-row: auto; grid-column: span 2; }
  .tile.big .peek { width: 52%; }
  .cal { grid-template-columns: 1fr 1fr; }
  .cal div:nth-child(3) { border-left: 0; }
  .cal div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .biz { grid-template-columns: 1fr; padding: 48px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top { padding: 16px 0; }
  .top nav a:not(.cta) { display: none; }
  .hero { padding-top: 16px; gap: 28px; }
  .hero .lead { font-size: 18px; }
  .stage { height: 540px; margin-bottom: 8px; }
  .phone { width: 196px; border-radius: 34px; padding: 7px; }
  .phone .scr { border-radius: 30px; }
  .phone .scr::before { width: 66px; height: 19px; margin-left: -33px; top: 8px; }
  .phone .bar { height: 34px; font-size: 11px; padding: 4px 20px 0 22px; }
  .stage .p1 { right: auto; left: 0; top: 40px; }
  .stage .p2 { right: 0; }
  .chip { font-size: 13px; padding: 8px 14px 8px 8px; }
  .chip i { width: 28px; height: 28px; }
  .chip.c1 { left: 30%; top: 4px; }
  .chip.c2 { right: 0; top: 330px; }
  .chip.c3 { display: none; }
  section { padding-top: 80px; }
  .head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.big, .tile.wide { grid-column: auto; padding: 26px; }
  .tile.big { padding-bottom: 0; }
  .tile.big .peek { width: 80%; }
  .tile.wide { grid-template-columns: 1fr; }
  .zig { gap: 72px; }
  .row2 { grid-template-columns: 1fr; gap: 32px; }
  .row2.flip .copy { order: 0; }
  .shot { min-height: 420px; padding-top: 40px; border-radius: 28px; }
  .shot .phone { width: 240px; }
  .cal { grid-template-columns: 1fr; }
  .cal div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .cal div:first-child { border-top: 0; }
  .biz { padding: 34px 24px; border-radius: 28px; }
  .closing { grid-template-columns: 1fr; gap: 24px; }
  footer .row { flex-direction: column; align-items: flex-start; }
}
