/* ══════════════════════════════════════════════════════════
   /join in the home page's 2026-10 look: black/white with the
   logo's red, rounder surfaces, the real logo. Loaded after
   styles.css and join.css and only by this page, so /track
   keeps its own look until it is redone.
   ══════════════════════════════════════════════════════════ */
:root {
  --ground: #F5F4F0; --surface: #FFFFFF; --raised: #FFFFFF;
  --ink: #0B0B0C; --muted: #66666B;
  --accent: #0B0B0C; --accent-soft: rgba(11,11,12,.06);
  --figure: #D9202B; --red: #D9202B; --red-soft: rgba(217,32,43,.09);
  --line: rgba(11,11,12,.11); --line-soft: rgba(11,11,12,.06);
  --shadow: 0 1px 2px rgba(11,11,12,.04), 0 18px 40px -22px rgba(11,11,12,.28);
  --on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #070708; --surface: #0E0E10; --raised: #131315;
    --ink: #F5F4F0; --muted: #9C9CA2;
    --accent: #F5F4F0; --accent-soft: rgba(255,255,255,.08);
    --figure: #FF4650; --red: #FF4650; --red-soft: rgba(255,70,80,.13);
    --line: rgba(255,255,255,.12); --line-soft: rgba(255,255,255,.06);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -22px rgba(0,0,0,.8);
    --on-accent: #0B0B0C;
  }
}
:root[data-theme='dark'] {
  --ground: #070708; --surface: #0E0E10; --raised: #131315;
  --ink: #F5F4F0; --muted: #9C9CA2;
  --accent: #F5F4F0; --accent-soft: rgba(255,255,255,.08);
  --figure: #FF4650; --red: #FF4650; --red-soft: rgba(255,70,80,.13);
  --line: rgba(255,255,255,.12); --line-soft: rgba(255,255,255,.06);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -22px rgba(0,0,0,.8);
  --on-accent: #0B0B0C;
}
:root[data-theme='light'] { --on-accent: #FFFFFF; }

/* Text drawn on a filled accent follows the accent's flip. */
.btn--solid { --btn-fg: var(--on-accent); }
.jbtn--solid, .csheet__done,
:root[data-theme='dark'] .jbtn--solid, :root[data-theme='dark'] .csheet__done { color: var(--on-accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .jbtn--solid,
  :root:not([data-theme='light']) .csheet__done { color: var(--on-accent); }
}

.brand__logo { width: 3.2rem; height: 2.9rem; flex: none; display: block; perspective: 300px; }
.brand__turn { display: block; position: relative; transform-style: preserve-3d; animation: logo-turn 9s cubic-bezier(.6, 0, .2, 1) infinite; }
.brand__turn img { display: block; width: 100%; height: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.brand__turn img + img { position: absolute; inset: 0; transform: rotateY(180deg); }
@keyframes logo-turn { 0% { transform: rotateY(0); } 45%, 100% { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand__turn { animation: none; } }

/* ── Intro: the home page's dark panel ── */
.join__intro {
  position: relative; overflow: hidden; isolation: isolate; max-width: none;
  padding: clamp(1.75rem, 1rem + 3.5vw, 3.5rem);
  border-radius: 2rem; background: #0B0B0C; color: #F5F4F0;
  border: 1px solid rgba(255,255,255,.11);
}
.join__intro::before {
  content: ''; position: absolute; z-index: -1; inset: -60% auto auto -15%;
  width: 40rem; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217,32,43,.34), transparent 70%);
}
.join__intro .eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: #FF4650; letter-spacing: 0; font-weight: 700; font-size: .85rem; }
.join__intro .eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: currentColor; border-radius: 2px; }
.join__title { font-weight: 900; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); letter-spacing: -.02em; }
.join__lede { color: #A3A3A8; max-width: 46ch; }
@media (max-width: 40rem) { .join__intro { border-radius: 1.5rem; } }

/* ── Cards, fields, buttons: rounder, like the home page ── */
.jcard { border-radius: 1.6rem; }
.jaside { border-radius: 1.6rem; background: var(--raised); border-color: var(--line); }
.jbtn { border-radius: 999px; font-weight: 700; padding-block: .95rem; }
.jbtn--solid { box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }

/* ── Footer ── */
.foot__brand .brand__logo { width: 2.6rem; height: 2.35rem; }
.foot__phone:hover, .foot__links a:hover { color: var(--red); }


/* ══ Header: the home page's, copied 2026-10-10 ══ */
:root { --bg: var(--ground); --line-2: var(--line-soft); --sunk: #ECEAE4; }
:root[data-theme='dark'] { --sunk: #0E0E10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --sunk: #0E0E10; } }
.top a { color: inherit; text-decoration: none; }
.top button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.top svg, .sheet svg { display: block; }
.top .ic, .sheet .ic { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.top .shell { width: min(76rem, 100% - 2rem); }
.top .btn { border: 0; background: none; color: inherit; line-height: 1; }
.top__nav a[aria-current], .top__act .btn[aria-current] { box-shadow: inset 0 0 0 1px var(--red); }
.sheet a { color: var(--ink); text-decoration: none; }
.sheet a[aria-current] { background: var(--red-soft); border-radius: .8rem; }
/* ── Buttons ── */
.top .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: 0 1.45rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; white-space: nowrap;
  transition: transform .2s ease, background-color .2s, border-color .2s, box-shadow .2s;
}
.top .btn:hover { transform: translateY(-2px); }
.top .btn:active { transform: none; }
.top .btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px var(--red); }
.top .btn--ink { background: var(--ink); color: var(--bg); }
.top .btn--line { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.top .btn--glass { border: 1px solid var(--panel-line); color: var(--on-panel); background: rgba(255,255,255,.05); }
.top .btn--glass:hover { background: rgba(255,255,255,.1); }
.top .btn--white { background: #F5F4F0; color: #0B0B0C; }
.top .btn--sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: .9rem; }

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-stuck { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 1rem; height: 4.5rem; }
.top .brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { width: 3.4rem; height: 3.1rem; flex: none; display: block; perspective: 300px; }
.brand__turn { display: block; position: relative; transform-style: preserve-3d; animation: logo-turn 9s cubic-bezier(.6, 0, .2, 1) infinite; }
.brand__turn img { display: block; width: 100%; height: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.brand__turn img + img { position: absolute; inset: 0; transform: rotateY(180deg); }
@keyframes logo-turn { 0% { transform: rotateY(0); } 45%, 100% { transform: rotateY(360deg); } }
.brand__name { font-weight: 900; font-size: 1.2rem; line-height: 1.1; }
.brand__sub { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.top__nav { display: flex; gap: .1rem; margin-inline-start: .5rem; white-space: nowrap; }
.top .brand, .top__act { white-space: nowrap; flex: none; }
.top__nav a { padding: .4rem .65rem; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.top__nav a.top__drv { display: inline-flex; align-items: center; gap: .4rem; color: var(--red); font-weight: 700; background: var(--red-soft); margin-inline-start: .4rem; }
.top__nav a.top__drv .ic { width: 1.1rem; height: 1.1rem; }
.top__nav a:hover { color: var(--ink); background: var(--line-2); }
.top__act { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.top .iconbtn { width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.i-moon { display: none; }
:root[data-theme='dark'] .i-sun { display: none; } :root[data-theme='dark'] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .i-sun { display: none; } :root:not([data-theme='light']) .i-moon { display: block; } }
.top .menubtn { display: none; }
.dl { position: relative; }
.dl__panel { position: absolute; inset-block-start: calc(100% + .7rem); inset-inline-end: 0; width: 20rem; padding: .6rem; border-radius: 1.3rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dl__h { display: flex; justify-content: space-between; padding: .5rem .7rem .2rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.dl__panel a { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: .9rem; transition: background-color .2s; }
.dl__panel a:hover { background: var(--sunk); }
.dl__panel b { display: block; font-size: .93rem; line-height: 1.5; } .dl__panel small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.sheet { position: fixed; inset: 4.5rem 0 auto 0; z-index: 49; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .75rem 1rem 1.25rem; }
.sheet a { display: flex; align-items: center; justify-content: space-between; padding: .85rem .5rem; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.sheet a:last-child { border: 0; }
.sheet a.is-key { color: var(--red); }

@media (max-width: 1300px) { .top__nav { display: none; } .top .menubtn { display: grid; } }
@media (max-width: 760px) { .top__call span { display: none; } .top .top__call { width: 2.6rem; padding: 0; } }
@media (max-width: 640px) {
  .top__in { height: 4rem; gap: .5rem; } .sheet { inset-block-start: 4rem; }
  .brand__sub, .top .top__theme, .dl__btn .ic { display: none; }
  .top .dl__btn { padding: 0 .85rem; }
  .brand__logo { width: 2.9rem; height: 2.65rem; }
}

@media (max-width: 500px) { .top__act > .btn--line:not(.top__call) { display: none; } .top__act { gap: .4rem; } }
@media (max-width: 340px) { .brand__name { display: none; } }


/* ── /track's two tabs, like the home estimator's درون‌شهری/بین‌شهری switch ── */
.ttabs { background: var(--sunk); border: 0; border-radius: 1.1rem; }
.ttab { border-radius: .85rem; font-weight: 800; font-size: .95rem; }
.ttab.is-on { background: var(--raised); box-shadow: 0 2px 8px -3px rgba(0,0,0,.25); }
:root[data-theme='dark'] .ttab.is-on { background: #26262B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .ttab.is-on { background: #26262B; } }

/* «ثبت‌نام راننده» beside «دانلود اپ», for every width where the link row
   (which carries its own red pill) has folded into the menu. */
.top .top__join { display: none; gap: .35rem; color: var(--red); background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); padding: 0 .9rem; }
.top .top__join .ic { width: 1.1rem; height: 1.1rem; }
.top .top__join-s { display: none; }
@media (max-width: 1300px) { .top .top__join { display: inline-flex; } }
@media (max-width: 640px) { .top .top__join-l, .top .top__join .ic { display: none; } .top .top__join-s { display: inline; } .top .top__join { padding: 0 .75rem; } }
@media (max-width: 900px) { .top .btn--line > .top__theme { display: none; } }
@media (max-width: 500px) { .top .brand__name { display: none; } }
@media (max-width: 1000px) { .top .top__call span { display: none; } .top .top__call { width: 2.6rem; padding: 0; } }
@media (max-width: 380px) { .top .top__act { gap: .3rem; } .top .top__join, .top .dl__btn { padding: 0 .6rem; font-size: .85rem; } }
@media (max-width: 360px) { .top .iconbtn, .top .top__call { width: 2.35rem; height: 2.35rem; } .top .top__join, .top .dl__btn { min-height: 2.35rem; padding: 0 .5rem; font-size: .8rem; } .top .brand__logo { width: 2.5rem; height: 2.3rem; } }
