/* goldayar.ir: one stylesheet for every page. Tokens first, then layout, then components. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-wght.woff2") format("woff2-variations"),
       url("/assets/fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --ink: #1d2430;
  --muted: #5d6573;
  --line: #e2dfd6;
  --gold: #a77a12;
  --gold-soft: #f3e7c6;
  --silver: #4f6476;
  --silver-soft: #e4ebf1;
  --bronze: #9a5a32;
  --band: #1d2430;
  --band-fg: #f5f1e6;
  --ok: #2f7a55;
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.9; }
img { max-width: 100%; height: auto; }
a { color: var(--silver); }
a:hover { color: var(--ink); }
.wrap { max-width: 1060px; margin: 0 auto; padding-inline: 16px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* header and nav */
.site-head { background: var(--band); color: var(--band-fg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-block: 14px; }
.logo { color: var(--gold); text-decoration: none; font-weight: 800; font-size: 22px; display: flex; align-items: baseline; gap: 8px; }
.logo small { color: var(--band-fg); opacity: .7; font-size: 12px; font-weight: 500; }
.logo:hover { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.nav a { color: var(--band-fg); text-decoration: none; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--gold); }

/* hero band */
.band { background: var(--band); color: var(--band-fg); }
.band .wrap { padding-block: 28px 56px; display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr; align-items: center; }
.band.short .wrap { grid-template-columns: 1fr; padding-block: 24px 40px; }
h1 { font-weight: 800; font-size: clamp(27px, 5vw, 40px); line-height: 1.45; margin: 0 0 12px; text-wrap: balance; }
.lede { margin: 0; max-width: 36em; opacity: .88; font-size: 17px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-block; padding: 9px 20px; border-radius: 99px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn.primary { background: var(--gold); color: #fff; }
.btn.primary:hover { background: #8e670e; color: #fff; }
.btn.ghost { border: 1px solid color-mix(in srgb, var(--band-fg) 35%, transparent); color: var(--band-fg); }
.btn.ghost:hover { color: var(--gold); border-color: var(--gold); }
.receipt { background: color-mix(in srgb, var(--band-fg) 7%, transparent); border: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent); border-radius: 10px; padding: 16px 18px; }
.receipt .lbl { font-size: 12.5px; opacity: .65; }
.receipt .msg { margin-top: 6px; }
.receipt .msg b { color: var(--gold); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { font-size: 12.5px; padding: 1px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--band-fg) 25%, transparent); }

/* content */
main { padding-bottom: 24px; }
section { margin-top: 48px; }
h2 { font-weight: 800; font-size: 24px; line-height: 1.5; margin: 0 0 14px; text-wrap: balance; }
h3, .h3 { font-weight: 700; font-size: 18px; line-height: 1.6; margin: 0 0 6px; }
.card .h3 a { color: var(--ink); text-decoration: none; }
.card .h3 a:hover { color: var(--gold); }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.prose { max-width: 46em; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.lift { margin-top: -28px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step, persian); width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-weight: 800; display: grid; place-items: center; }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.compare th, .compare td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: right; }
.compare thead th { background: var(--bg); font-weight: 800; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .grp { text-align: right; font-weight: 700; font-size: 13px; color: var(--muted); background: var(--bg); }
.compare .silver-col { background: color-mix(in srgb, var(--silver-soft) 55%, transparent); }
.compare thead .silver-col { color: var(--silver); }
.yes { color: var(--ok); font-weight: 800; }
.no { color: var(--muted); opacity: .6; }
.soon { color: var(--gold); font-weight: 700; font-size: 13px; }
.sub { display: block; font-size: 12.5px; color: var(--muted); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.plan.featured { border: 2px solid var(--silver); box-shadow: 0 10px 30px -18px rgba(20, 30, 45, .45); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-name { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.bronze .dot { background: var(--bronze); } .silver .dot { background: var(--silver); } .gold .dot { background: var(--gold); }
.tag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.tag.rec { background: var(--silver-soft); color: var(--silver); }
.tag.soon-tag { background: var(--gold-soft); color: var(--gold); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .num { font-size: 32px; font-weight: 800; line-height: 1.2; }
.price .unit { color: var(--muted); font-size: 13.5px; }
.gold .price .num { color: var(--muted); }
.feat { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; }
.feat li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.feat li::before { content: ""; width: 9px; height: 5px; margin-top: 10px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); justify-self: center; }
.feat li.inherit { color: var(--muted); }
.feat li.inherit::before { border-color: var(--muted); }

.terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.terms li { padding-inline-start: 14px; border-inline-start: 3px solid var(--gold-soft); min-width: 0; }
.terms b { display: block; }
.terms span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* contact */
.phone-big { font-size: 28px; font-weight: 800; text-decoration: none; color: var(--ink); }

/* closing call to action */
.closing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.closing p { margin: 0; }
.closing .btn.ghost { color: var(--ink); border-color: var(--line); }

/* footer */
.site-foot { margin-top: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot .wrap { padding-block: 24px 32px; display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot p { margin: 0; }

@media (max-width: 860px) {
  .band .wrap { grid-template-columns: 1fr; }
  .cards, .cards.two, .plans, .terms { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .lift { margin-top: -20px; }
}
