/* /pricing — builds on the public pages' tokens in ports/port.css
   (--bg, --card, --line, --text, --muted, --brand, --accent, ...), including
   its Vazirmatn typeface. */

/* Vazirmatn and the --font tokens now come from ports/port.css, which this
   page loads first, so all three public pages share one definition. */

body.bl button, body.bl input, body.bl select { font-family: var(--font); }

/* the map header's wordmark: «Persian Gulf Traffic» over the Persian line */
.bl .pg-brand { gap: 10px; }
.bl .pg-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.bl .pg-brand-name { direction: ltr; text-align: left; align-self: flex-start; font-size: 14.5px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.bl .pg-brand-sub { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[dir="ltr"] .bl .pg-brand-name { align-self: flex-start; }

.bl { --pk: #12305a; --pk-ink: #fff; }
.c-slate   { --pk: #64748b; }
.c-navy    { --pk: #12305a; }
.c-teal    { --pk: #0b9c8f; }
.c-sky     { --pk: #0284c7; }
.c-emerald { --pk: #15803d; }
.c-amber   { --pk: #b45309; }
:root[data-theme="dark"] .c-slate   { --pk: #94a3b8; --pk-ink: #0b1220; }
:root[data-theme="dark"] .c-navy    { --pk: #5b8def; --pk-ink: #0b1220; }
:root[data-theme="dark"] .c-teal    { --pk: #19d3c1; --pk-ink: #0b1220; }
:root[data-theme="dark"] .c-sky     { --pk: #38bdf8; --pk-ink: #0b1220; }
:root[data-theme="dark"] .c-emerald { --pk: #4ade80; --pk-ink: #0b1220; }
:root[data-theme="dark"] .c-amber   { --pk: #fbbf24; --pk-ink: #0b1220; }

.hide-xs { }
@media (max-width: 560px) { .hide-xs { display: none; } .pg-top-in { gap: 12px; padding: 0 12px; } .bl .pg-brand-text { display: none; } }
@media (min-width: 561px) and (max-width: 900px) { .bl .pg-brand-sub { display: none; } }

.bl-preview { background: #fff4d6; color: #7a4b00; text-align: center; padding: 8px 16px; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid #f1d38f; }
:root[data-theme="dark"] .bl-preview { background: #3a2a05; color: #fcd77a; border-color: #5c4310; }

.bl-main { max-width: 1120px; margin: 0 auto; padding: 0 20px 56px; }

/* ── hero ─────────────────────────────── */
.bl-hero { text-align: center; padding: 44px 0 26px; }
.bl-hero h1 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 700; letter-spacing: -.01em; }
.bl-sub { margin: 10px 0 0; font-size: 17px; color: var(--text-2); }
.bl-intro { max-width: 680px; margin: 12px auto 0; color: var(--muted); font-size: 14.5px; }
.bl-promo { display: inline-block; margin: 16px 0 0; padding: 6px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }

/* ── billing-period switch ─────────────── */
.bl-periods { display: flex; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 4px; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.bl-periods button { border: 0; background: transparent; color: var(--text-2); font: 500 14px/1 var(--font); padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
html[lang="en"] .bl-periods button { font-family: var(--font-en); }
.bl-periods button em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ok); margin-inline-start: 4px; }
.bl-periods button[aria-checked="true"] { background: var(--brand); color: #fff; }
.bl-periods button[aria-checked="true"] em { color: #7ff0c4; }
:root[data-theme="dark"] .bl-periods button[aria-checked="true"] { background: #e8eef6; color: #0b1220; }
:root[data-theme="dark"] .bl-periods button[aria-checked="true"] em { color: #047857; }

/* ── package cards ─────────────────────── */
.bl-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; align-items: stretch; }
.pk { position: relative; flex: 1 1 250px; max-width: 300px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 24px 22px 20px; }
.pk.is-hl { border-color: var(--pk); box-shadow: 0 0 0 1px var(--pk), var(--shadow-up); }
.pk-badge { position: absolute; top: -12px; inset-inline-start: 22px; background: var(--pk); color: var(--pk-ink); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.pk-draft, .pk-draft-inline { display: inline-block; background: #fff4d6; color: #7a4b00; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.pk-draft { position: absolute; top: -11px; inset-inline-end: 22px; border: 1px solid #f1d38f; }
:root[data-theme="dark"] .pk-draft, :root[data-theme="dark"] .pk-draft-inline { background: #3a2a05; color: #fcd77a; }
.pk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pk-head h2 { font-size: 20px; font-weight: 700; }
.pk-ic { width: 34px; height: 34px; color: var(--pk); flex: none; }
.pk-ic svg { width: 100%; height: 100%; }
.pk-tag { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; min-height: 2.6em; }

.pk-prices { min-height: 92px; margin-top: 14px; }
.pk-price { position: relative; }
.pk-amount { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pk-amount b { font-size: 34px; font-weight: 700; line-height: 1.15; font-variant-numeric: proportional-nums; letter-spacing: 0; }
.pk-amount span { color: var(--muted); font-size: 14px; }
.pk-amount.is-free b { font-size: 28px; }
.pk-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; min-height: 1.6em; }
.pk-sub s { color: var(--dim); margin-inline-end: 4px; }
.pk-save { display: inline-block; margin-top: 6px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }

.pk-cta, .pk-trial { display: block; width: 100%; box-sizing: border-box; text-align: center; padding: 11px 14px; border-radius: 10px; font: 600 14.5px/1.3 var(--font); cursor: pointer; text-decoration: none; }
html[lang="en"] .pk-cta, html[lang="en"] .pk-trial { font-family: var(--font-en); }
.pk-cta { margin-top: 16px; border: 1px solid var(--pk); background: var(--pk); color: var(--pk-ink); }
.pk-cta:hover { filter: brightness(1.08); text-decoration: none; }
.pk-cta.is-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.pk-cta.is-ghost:hover { border-color: var(--pk); }
.pk-cta:disabled, .pk-trial:disabled { opacity: .6; cursor: progress; }
.pk-trial { margin-top: 8px; border: 1px dashed var(--pk); background: transparent; color: var(--pk); }
.pk-msg { margin: 10px 0 0; font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 8px 10px; }

.pk-intro { margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.pk-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--text-2); }
.pk-intro + .pk-feat { margin-top: 0; }
.pk-cta + .pk-msg + .pk-feat, .pk-trial + .pk-msg + .pk-feat { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.pk-feat li { position: relative; padding-inline-start: 26px; }
.pk-feat li::before { content: ''; position: absolute; inset-inline-start: 0; top: .28em; width: 17px; height: 17px; background: var(--pk);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pk-all { margin-top: auto; padding-top: 18px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.pk-all:hover { color: var(--text); }

.bl-note { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }

/* ── comparison table ──────────────────── */
.bl-compare { margin-top: 64px; scroll-margin-top: 80px; }
.bl-h2 { text-align: center; font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.cmp-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 520px; table-layout: fixed; }
.cmp th, .cmp td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line-2); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:nth-child(even) th, .cmp tbody tr:nth-child(even) td { background: var(--card-2); }
.cmp thead th { vertical-align: top; padding: 14px 10px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.cmp-corner { width: 34%; }
.cmp-name { background: var(--pk); color: var(--pk-ink); font-weight: 700; font-size: 15px; letter-spacing: .02em; border-radius: 8px; padding: 8px 10px; }
.cmp-prices { list-style: none; margin: 10px auto 0; padding: 0; display: grid; gap: 4px; font-size: 13px; max-width: 210px; }
.cmp-cta { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--pk); }
.cmp-prices li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.cmp-prices li b { color: var(--text); font-weight: 600; }
.cmp-prices li:only-child { justify-content: center; }
.cmp-prices li.is-draft { opacity: .55; }
.cmp tbody th { text-align: start; font-weight: 500; color: var(--text-2); position: sticky; inset-inline-start: 0; background: var(--card); z-index: 1; }
.cmp-label { vertical-align: middle; }
.cmp-hint { position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-inline-start: 8px; border-radius: 50%; background: var(--line); color: var(--muted); font: 700 11px/1 var(--font-en); cursor: help; vertical-align: middle; }
.cmp-hint:hover::after, .cmp-hint:focus::after { content: attr(data-hint); position: absolute; bottom: calc(100% + 8px); inset-inline-start: -10px; width: max-content; max-width: 240px; padding: 8px 10px; border-radius: 8px; background: #0b1d39; color: #fff; font: 400 12.5px/1.6 var(--font); text-align: start; white-space: normal; box-shadow: var(--shadow-up); z-index: 5; }
.cmp svg { width: 20px; height: 20px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.cmp svg.ok { stroke: var(--ok); }
.cmp svg.no { stroke: #e7a1a1; width: 16px; height: 16px; }
:root[data-theme="dark"] .cmp svg.no { stroke: #7f4a4a; }
.cmp-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── FAQ ───────────────────────────────── */
.bl-faq { max-width: 760px; margin: 64px auto 0; }
.bl-faq-title { background: var(--brand); color: #fff; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .03em; padding: 12px; border-radius: 10px 10px 0 0; }
.bl-faq details { border-bottom: 1px solid var(--line); }
.bl-faq summary { list-style: none; cursor: pointer; padding: 16px 4px; color: var(--link); font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bl-faq summary::-webkit-details-marker { display: none; }
.bl-faq summary::after { content: ''; flex: none; width: 8px; height: 8px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-inline-end: 4px; }
.bl-faq details[open] summary::after { transform: rotate(225deg); }
.bl-faq details > div { padding: 0 4px 18px; color: var(--text-2); font-size: 14.5px; }
.bl-faq details.is-draft { opacity: .7; }

/* ── support + footer ──────────────────── */
.bl-support { max-width: 760px; margin: 48px auto 0; text-align: center; }
.bl-support h2 { font-size: 18px; margin-bottom: 8px; }
.bl-support p { margin: 6px 0; color: var(--text-2); }
.bl-contacts { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.bl-foot { max-width: 1120px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.bl-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.bl-foot a { color: var(--muted); }

.bl-result { padding-top: 40px; }
.bl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; margin: 22px 0; }

@media (max-width: 640px) {
  .bl-hero { padding: 28px 0 18px; }
  .bl-main { padding: 0 14px 40px; }
  .pk { max-width: none; }
  .bl-compare, .bl-faq { margin-top: 44px; }
  .cmp th, .cmp td { padding: 10px 8px; }
  .cmp tbody th { font-size: 13px; }
  /* two or three columns fit a phone without sideways scrolling */
  .cmp-n1, .cmp-n2, .cmp-n3 { min-width: 0; }
  .cmp-n2 .cmp-corner { width: 38%; }
  .cmp-n3 .cmp-corner { width: 31%; }
  .cmp-name { font-size: 13px; padding: 6px; }
  .cmp-prices li { flex-direction: column; align-items: center; gap: 0; font-size: 12px; }
  .cmp-hint { display: none; }
  .bl-periods { width: 100%; box-sizing: border-box; }
  .bl-periods button { flex: 1; padding: 8px 6px; font-size: 13px; line-height: 1.35; }
  .bl-periods button em { display: block; margin: 2px 0 0; font-size: 11px; }
}

/* comparison section headers (MarineTraffic/VesselFinder style grouping) */
.cmp tbody tr.cmp-group th, .cmp tbody tr.cmp-group:nth-child(even) th {
  text-align: start; background: var(--bg); color: var(--text); font-size: 12.5px;
  font-weight: 700; letter-spacing: .01em; padding: 10px 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: static; }
.cmp tbody tr.cmp-group:first-child th { border-top: 0; }

/* ── policy pages (/terms, /privacy, /refund, /contact) ───────────── */
.lg-main { max-width: 820px; }
.lg-head { padding: 26px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.lg-head h1 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 700; }
.lg-sum { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.lg-meta { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.lg-body h2 { font-size: 17px; font-weight: 700; margin: 30px 0 10px; color: var(--text);
  padding-inline-start: 11px; border-inline-start: 3px solid var(--accent); }
.lg-body h2:first-child { margin-top: 0; }
.lg-body p { margin: 0 0 10px; color: var(--text-2); font-size: 15px; line-height: 2.1; }
.lg-others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line); }
.lg-others a { padding: 8px 15px; border-radius: 9px; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-2); }
.lg-others a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
@media (max-width: 640px) { .lg-body p { font-size: 14.5px; line-height: 2; } }
