/* mylocy.ir public site (UX.9). Tokens copied from design/ux/tokens.md 1.7 and 1.10 so site and app read as one product. */
@font-face {
  font-family: "Vazirmatn"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --locy-primary: #0b6e7f; --locy-primary-hover: #095e6c; --locy-on-primary: #ffffff;
  --locy-primary-container: #e2eef0; --locy-on-primary-container: #074853;
  --locy-bg: #ffffff; --locy-surface: #f5f6f8; --locy-surface-2: #eceef1;
  --locy-border: #dde1e6; --locy-border-input: #868e98;
  --locy-text: #15191e; --locy-text-muted: #5a636e;
  --locy-focus-ring: #1d5fd1;
  --locy-danger: #b42318; --locy-danger-container: #fde8e6; --locy-on-danger-container: #7a1710;
  --locy-warning-container: #fff1d6; --locy-on-warning-container: #6b4300;
  --locy-status-moving: #1e8e4a; --locy-status-alarm: #d0271d;
  --locy-map-bg: #f2efe9; --locy-map-street: #ffffff; --locy-map-block: #e6e1d8;
  --locy-ink: #1a2029; --locy-on-ink: #eef1f4; --locy-on-ink-muted: #9aa4b0; --locy-route: #5b3f8c;
  --locy-font: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  --locy-e2: 0 4px 12px rgba(16,24,40,.12);
  --locy-e3: 0 12px 32px rgba(16,24,40,.18);
  --gutter: 16px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --locy-primary: #46919e; --locy-primary-hover: #62a2ad; --locy-on-primary: #0e1114;
    --locy-primary-container: #0f2d35; --locy-on-primary-container: #b6d4d9;
    --locy-bg: #111418; --locy-surface: #1a1e23; --locy-surface-2: #232830;
    --locy-border: #353c45; --locy-border-input: #7d8692;
    --locy-text: #eceff3; --locy-text-muted: #a3acb7;
    --locy-focus-ring: #8ab4ff;
    --locy-danger: #ff8f85; --locy-danger-container: #4a1611; --locy-on-danger-container: #ffd9d4;
    --locy-warning-container: #3f2e0a; --locy-on-warning-container: #ffdd9e;
    --locy-status-moving: #3fbf6f; --locy-status-alarm: #ff5b4f;
    --locy-map-bg: #1e2125; --locy-map-street: #2c3036; --locy-map-block: #23272c;
    --locy-ink: #0a0c0f; --locy-on-ink: #eceff3; --locy-on-ink-muted: #8f99a5; --locy-route: #b49be0;
    --locy-e2: 0 0 0 1px var(--locy-border); --locy-e3: 0 0 0 1px var(--locy-border);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--locy-bg); color: var(--locy-text); font: 400 16px/28px var(--locy-font); }
a { color: var(--locy-primary); text-underline-offset: 4px; }
a:hover { color: var(--locy-primary-hover); }
:focus-visible { outline: 2px solid var(--locy-focus-ring); outline-offset: 2px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.muted { color: var(--locy-text-muted); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--locy-bg); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

/* Header: page colour with a hairline, like the app bars; brand mark as on the login page (C01) */
.site-header { border-block-end: 1px solid var(--locy-border); background: var(--locy-bg); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 800 24px/1 var(--locy-font); color: var(--locy-primary); text-decoration: none; }
.brand::before { content: ""; width: 18px; height: 18px; background: currentColor; flex: none; -webkit-mask: url(mark.svg) center / contain no-repeat; mask: url(mark.svg) center / contain no-repeat; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--locy-text-muted); font: 500 14px/20px var(--locy-font); text-decoration: none; }
.nav a:hover { color: var(--locy-text); }
.nav a[aria-current="page"] { color: var(--locy-text); font-weight: 700; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 0; height: 3px; background: var(--locy-text); }
.bar .nav { margin-inline-start: auto; }
.nav-row { display: none; }
@media (max-width: 719px) {
  .bar .nav { display: none; }
  .nav-row { display: flex; justify-content: space-between; border-block-start: 1px solid var(--locy-border); padding-inline: 4px; }
  .nav-row a { padding: 0 8px; }
  .nav-row a[aria-current="page"]::after { inset-inline: 8px; }
}

/* Buttons: 48 px, 4 px corners, primary only for the one main action */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 4px; font: 500 15px/20px var(--locy-font); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--locy-primary); color: var(--locy-on-primary); }
.btn-primary:hover { background: var(--locy-primary-hover); color: var(--locy-on-primary); }
.btn-text { color: var(--locy-text); text-decoration: underline; text-decoration-color: var(--locy-border-input); padding-inline: 4px; }
.btn-text:hover { color: var(--locy-text); text-decoration-color: currentColor; }
.btn-outline { color: var(--locy-text); border-color: var(--locy-border-input); }
.btn-outline:hover { color: var(--locy-text); background: var(--locy-surface); }
.site-header .btn { min-height: 40px; padding: 0 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Hero */
.hero { padding-block: 32px 40px; }
.hero .wrap { display: grid; gap: 32px; }
.hero h1 { font: 800 30px/44px var(--locy-font); max-width: 16em; text-wrap: balance; }
.hero .lead { margin-block: 12px 24px; font-size: 17px; line-height: 30px; color: var(--locy-text-muted); max-width: 34em; }
.hero .note { margin-top: 16px; font-size: 14px; line-height: 24px; color: var(--locy-text-muted); }
@media (min-width: 960px) {
  .hero { padding-block: 56px 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 440px; align-items: center; gap: 56px; }
  .hero h1 { font-size: 40px; line-height: 56px; }
}

/* Street-plan map behind the device card (decorative) */
.scene { position: relative; border-radius: 14px; overflow: hidden; background: var(--locy-map-bg); padding: 120px 12px 12px; min-height: 360px; }
.scene svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .marker { position: absolute; top: 56px; inset-inline-start: 44%; width: 22px; height: 22px; border-radius: 50%; background: var(--locy-status-moving); border: 3px solid var(--locy-bg); box-shadow: var(--locy-e2); }
@media (prefers-reduced-motion: no-preference) {
  .scene .marker::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--locy-status-moving); opacity: 0; animation: ping 2.4s ease-out 3; }
}
@keyframes ping { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }

/* Device card (components.md C07 anatomy, simplified) */
.card { position: relative; background: var(--locy-bg); border-radius: 14px; box-shadow: var(--locy-e3); padding: 16px; }
.idline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.idline .name { font: 800 20px/30px var(--locy-font); }
.status { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/20px var(--locy-font); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--locy-status-moving); }
.fresh { margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--locy-text-muted); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border-block-start: 1px solid var(--locy-border); }
.kv > div { padding: 8px 0 10px; padding-inline-end: 8px; border-block-end: 1px solid var(--locy-border); }
.kv .k { display: block; font: 500 13px/20px var(--locy-font); color: var(--locy-text-muted); }
.kv .v { font: 700 18px/26px var(--locy-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv .v small { display: block; font: 500 13px/20px var(--locy-font); color: var(--locy-text-muted); }
.card-actions { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.card-actions span { font: 500 14px/20px var(--locy-font); padding: 10px 8px; }
.card-actions .cut { margin-inline-start: auto; border: 1px solid var(--locy-danger); color: var(--locy-danger); border-radius: 4px; padding: 9px 14px; display: inline-flex; gap: 6px; align-items: center; }

/* Iranian plate: fixed LTR box order (components.md Plate) */
.plate { direction: ltr; display: inline-flex; align-items: stretch; height: 28px; border: 1.5px solid #222; border-radius: 4px; background: #fff; color: #111; font: 700 15px/1 var(--locy-font); overflow: hidden; flex: none; }
.plate .ir { width: 9px; background: #1b4fa3; }
.plate .num { display: flex; align-items: center; gap: 5px; padding: 0 6px; }
.plate .reg { display: flex; flex-direction: column; align-items: center; justify-content: center; border-inline-start: 1.5px solid #222; padding: 0 5px; font-size: 9px; line-height: 1.1; }
.plate .reg b { font-size: 13px; }

/* Sections: headings and hairlines, no boxed cards */
.section { padding-block: 40px; border-block-start: 1px solid var(--locy-border); }
.section h2 { font: 800 24px/36px var(--locy-font); margin-bottom: 8px; }
.section .intro { color: var(--locy-text-muted); max-width: 40em; margin-bottom: 24px; }
@media (min-width: 960px) { .section { padding-block: 56px; } .section h2 { font-size: 28px; line-height: 40px; } }

.ledger { list-style: none; padding: 0; display: grid; border-block-start: 1px solid var(--locy-border); }
.ledger > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 16px; padding-block: 16px; border-block-end: 1px solid var(--locy-border); }
.ledger svg { width: 28px; height: 28px; color: var(--locy-text); grid-row: span 2; margin-top: 2px; }
.ledger h3 { font: 700 17px/28px var(--locy-font); }
.ledger p { color: var(--locy-text-muted); font-size: 15px; line-height: 26px; max-width: 34em; }
@media (min-width: 960px) { .ledger { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0; border-block-start: 1px solid var(--locy-border); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 12px; padding-block: 16px; border-block-end: 1px solid var(--locy-border); }
.steps > li::before { content: counter(step, persian); grid-row: span 2; font: 800 32px/40px var(--locy-font); color: var(--locy-text-muted); }
.steps h3 { font: 700 17px/28px var(--locy-font); }
.steps p { color: var(--locy-text-muted); font-size: 15px; line-height: 26px; max-width: 40em; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; border-block-start: 0; }
  .steps > li { grid-template-columns: 1fr; border-block: 0; border-block-start: 3px solid var(--locy-text); padding-top: 12px; }
  .steps > li::before { grid-row: auto; }
}

.notice { display: grid; gap: 8px; padding: 16px; border-radius: 4px; background: var(--locy-surface); }
.notice h3 { font: 700 17px/28px var(--locy-font); }
.notice.warn { background: var(--locy-warning-container); color: var(--locy-on-warning-container); }

.faq { border-block-start: 1px solid var(--locy-border); max-width: 52em; }
.faq details { border-block-end: 1px solid var(--locy-border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding-block: 12px; font: 700 16px/26px var(--locy-font); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-inline-start: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(-45deg); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(135deg); margin-top: 4px; }
.faq details > div { padding-block-end: 16px; color: var(--locy-text-muted); max-width: 44em; }

.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.strip p { max-width: 40em; }

/* Text pages (about, terms, shops) */
.page-head { padding-block: 32px 24px; }
.page-head h1 { font: 800 30px/44px var(--locy-font); }
.page-head p { margin-top: 8px; color: var(--locy-text-muted); max-width: 40em; font-size: 17px; line-height: 30px; }
@media (min-width: 960px) { .page-head { padding-block: 48px 32px; } .page-head h1 { font-size: 36px; line-height: 52px; } }
.prose { max-width: 44em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol { margin-top: 12px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li + li { margin-top: 6px; }
.prose h3 { font: 700 17px/28px var(--locy-font); margin-block: 24px 6px; }
.clauses { padding-inline-start: 0; list-style: none; counter-reset: c; }
.clauses > li { counter-increment: c; padding-block: 12px; border-block-end: 1px solid var(--locy-border); }
.clauses > li > h3 { margin: 0 0 4px; }
.clauses > li > h3::before { content: counter(c, persian) ". "; color: var(--locy-text-muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }

dl.contact { display: grid; grid-template-columns: max-content minmax(0, 1fr); border-block-start: 1px solid var(--locy-border); max-width: 36em; }
dl.contact dt, dl.contact dd { padding-block: 12px; border-block-end: 1px solid var(--locy-border); }
dl.contact dt { font: 500 14px/28px var(--locy-font); color: var(--locy-text-muted); padding-inline-end: 24px; }
dl.contact dd { font-weight: 700; overflow-wrap: anywhere; }

table.ret { width: 100%; max-width: 44em; border-collapse: collapse; font-size: 15px; line-height: 24px; }
table.ret th, table.ret td { text-align: start; padding: 10px 8px 10px 0; border-block-end: 1px solid var(--locy-border); vertical-align: top; }
table.ret th { font: 500 13px/20px var(--locy-font); color: var(--locy-text-muted); }
table.ret td:last-child { white-space: nowrap; font-weight: 700; }

.page-head .draft, .draft { display: block; font-size: 15px; line-height: 26px; padding: 12px 16px; border-radius: 4px; background: var(--locy-warning-container); color: var(--locy-on-warning-container); font-weight: 500; max-width: 44em; }

/* Footer: the ink of the app's bottom bar */
.site-footer { background: var(--locy-ink); color: var(--locy-on-ink); padding-block: 40px 24px; margin-top: 0; }
.site-footer .brand { color: var(--locy-on-ink); }
.site-footer .cols { display: grid; gap: 24px; margin-block: 24px; }
.site-footer h2 { font: 500 13px/20px var(--locy-font); color: var(--locy-on-ink-muted); margin-bottom: 4px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--locy-on-ink); text-decoration: none; font-size: 15px; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .legal { border-block-start: 1px solid #39414c; padding-top: 16px; font-size: 13px; line-height: 22px; color: var(--locy-on-ink-muted); }
.site-footer :focus-visible { outline-color: #8ab4ff; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
