/* Japarak 2 — home page theme (scoped under .jp2 so Goodup styles of inner pages are untouched).
   Layout: airy light page, centered hero with a pill search and category chips, soft rounded cards, warm amber highlights. */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("../fonts/Lalezar.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* master header / footer of the old theme are hidden on this page only (class is set by an inline script in <head>) */
html.jp2-on #main-wrapper > .header,
html.jp2-on #main-wrapper > .clearfix,
html.jp2-on footer.skin-light-footer,
html.jp2-on #tops-button { display: none !important; }
html.jp2-on #main-wrapper { overflow: visible; }

.jp2 {
  --bg: #f3f8f6; --surface: #ffffff; --fg: #0b2b28; --muted: #4f6b67; --line: #d8e6e2;
  --solid: #0f766e; --on-solid: #ffffff; --brand-soft: #e1f1ee; --label: #0f766e;
  --accent: #f5b700; --accent-fg: #231a00; --accent-soft: #fdf1cc; --accent-ink: #a87700;
  --cta-bg: #0f766e; --cta-fg: #ffffff;
  --hdr-bg: #f3f8f6; --hdr-fg: #0b2b28; --hdr-muted: #4f6b67; --hdr-line: #d8e6e2; --hdr-hover: #e1f1ee;
  --logo-pin: #0f766e; --logo-bars: #ffffff; --logo-bar: #f5b700; --logo-text: #0a3d39;
  --hero-a: #dcefea; --hero-b: #f3f8f6;
  --shadow: 0 2px 4px rgba(15,118,110,.06), 0 14px 34px rgba(15,118,110,.12);
  --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif; --font-display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --r-btn: 999px; --r-card: 22px; --r-icon: 16px; --r-band: 28px;
  background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.8; direction: rtl; text-align: right;
  overflow-x: clip; -webkit-text-size-adjust: 100%;
}
html[data-theme="dark"] .jp2 {
  --bg: #08201e; --surface: #0e2d2a; --fg: #e9f6f3; --muted: #98b8b3; --line: #1c4440;
  --brand-soft: #12403b; --label: #4fd1c0; --accent-soft: #2e2a10; --accent-ink: #f5b700;
  --cta-bg: #f5b700; --cta-fg: #231a00;
  --hdr-bg: #08201e; --hdr-fg: #e9f6f3; --hdr-muted: #98b8b3; --hdr-line: #1c4440; --hdr-hover: #12403b;
  --logo-pin: #1aa396; --logo-text: #e9f6f3;
  --hero-a: #0f3a36; --hero-b: #08201e;
  --shadow: 0 2px 4px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.35); color-scheme: dark;
}

.jp2 *, .jp2 *::before, .jp2 *::after { box-sizing: border-box; }
.jp2 a { color: inherit; text-decoration: none; background: none; }
.jp2 a:hover, .jp2 a:focus { color: inherit; text-decoration: none; }
.jp2 h1, .jp2 h2, .jp2 h3, .jp2 h4, .jp2 p { margin: 0; color: inherit; text-wrap: balance; }
.jp2 p { line-height: 1.8; text-wrap: pretty; }
.jp2 h1, .jp2 h2, .jp2 h3, .jp2 h4 { line-height: 1.4; letter-spacing: 0; }
.jp2 ul { list-style: none; margin: 0; padding: 0; }
.jp2 li { list-style: none; }
.jp2 img { max-width: 100%; vertical-align: middle; }
.jp2 section { padding: 64px 0 0; position: relative; }
.jp2 header, .jp2 main, .jp2 footer, .jp2 nav { display: block; }
.jp2 :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.jp2 button, .jp2 input { font-family: inherit; }
.jp2 .jp-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.jp2 .jp-ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.jp2 .jp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.8; padding: 10px 20px; border-radius: var(--r-btn); border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.jp2 .jp-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.jp2 .jp-btn-primary, .jp2 .jp-btn-primary:hover { background: var(--cta-bg); color: var(--cta-fg); }
.jp2 .jp-btn-ghost, .jp2 .jp-btn-ghost:hover { border-color: var(--line); background: var(--surface); color: var(--fg); }
.jp2 .jp-btn-solid, .jp2 .jp-btn-solid:hover { background: var(--solid); color: var(--on-solid); }

/* header */
.jp2 .jp-top { position: sticky; top: 0; z-index: 50; background: var(--hdr-bg); color: var(--hdr-fg); border-bottom: 1px solid var(--hdr-line); }
.jp2 .jp-top .jp-wrap { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.jp2 .jp-brand { display: inline-flex; align-items: center; gap: 10px; }
.jp2 .jp-brand svg { width: 40px; height: 40px; flex: none; }
.jp2 .jp-brand b { font-weight: 800; font-size: 28px; line-height: 1; color: var(--logo-text); }
.jp2 .jp-nav { display: flex; gap: 4px; margin-inline-end: auto; }
.jp2 .jp-nav a { display: block; padding: 6px 14px; border-radius: var(--r-btn); font-weight: 500; font-size: 15px; color: var(--hdr-muted); }
.jp2 .jp-nav a:hover, .jp2 .jp-nav a[aria-current] { background: var(--hdr-hover); color: var(--hdr-fg); }
.jp2 .jp-actions { display: flex; gap: 10px; align-items: center; }
.jp2 .jp-top .jp-btn-ghost { background: transparent; border-color: var(--hdr-line); color: var(--hdr-fg); }
.jp2 .jp-themebtn, .jp2 .jp-burger { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--hdr-line); background: transparent; color: var(--hdr-fg); display: grid; place-items: center; cursor: pointer; }
.jp2 .jp-burger { display: none; }

/* hero */
.jp2 .jp-hero { background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); padding-block: 64px 24px; position: relative; overflow: hidden; text-align: center; }
.jp2 .jp-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.jp2 .jp-blob-a { width: 340px; height: 340px; background: var(--accent); opacity: .22; top: -120px; left: -90px; }
.jp2 .jp-blob-b { width: 280px; height: 280px; background: var(--solid); opacity: .12; top: 60px; right: -100px; }
.jp2 .jp-hero .jp-wrap { position: relative; }
.jp2 .jp-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--fg); border-radius: 999px; padding: 4px 16px 4px 12px; font-size: 14px; font-weight: 500; }
.jp2 .jp-eyebrow i { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.jp2 .jp-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 7vw, 80px); line-height: 1.3; margin: 18px auto 0; max-width: 18ch; color: var(--fg); }
.jp2 .jp-hero h1 mark { background: none; color: var(--label); position: relative; white-space: nowrap; padding: 0; z-index: 0; }
.jp2 .jp-hero h1 mark::after { content: ""; position: absolute; inset-inline: 0; bottom: .1em; height: .26em; background: var(--accent); opacity: .75; z-index: -1; border-radius: 999px; }
.jp2 .jp-lead { margin: 14px auto 0; color: var(--muted); font-size: 18px; max-width: 54ch; }

.jp2 .jp-search { margin: 30px auto 0; max-width: 820px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr auto; gap: 0; text-align: start; }
.jp2 .jp-field { display: flex; flex-direction: column; padding: 6px 22px; border-radius: 999px; min-width: 0; text-align: start; position: relative; }
.jp2 .jp-field + .jp-field { border-inline-start: 1px solid var(--line); border-radius: 0; }
.jp2 .jp-field:focus-within { background: var(--brand-soft); }
.jp2 .jp-field label { display: block; margin: 0; font-size: 12px; font-weight: 700; color: var(--label); line-height: 1.6; }
.jp2 .jp-field input { font: inherit; font-size: 15px; height: auto; border: 0; background: transparent; box-shadow: none; color: var(--fg); padding: 2px 0; outline: none; min-width: 0; width: 100%; border-radius: 0; }
.jp2 .jp-field input::placeholder { color: var(--muted); opacity: .5; }
.jp2 .jp-search .jp-btn { padding-inline: 26px; font-size: 16px; }
.jp2 .jp-suggest { position: absolute; z-index: 40; top: calc(100% + 10px); inset-inline: 0; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; text-align: start; }
.jp2 .jp-suggest:empty, .jp2 .jp-suggest.hide { display: none; }
.jp2 .jp-suggest li { padding: 6px 14px; border-radius: 12px; font-size: 15px; cursor: pointer; }
.jp2 .jp-suggest li:hover { background: var(--brand-soft); }

.jp2 .jp-chips { margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.jp2 .jp-chips a { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px 5px 12px; font-size: 14px; font-weight: 500; }
.jp2 .jp-chips a .jp-ico { width: 18px; height: 18px; color: var(--accent-ink); }
.jp2 .jp-chips a:hover { border-color: var(--solid); }

.jp2 .jp-stats { position: relative; margin: 48px auto 0; max-width: 960px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.jp2 .jp-stats div { padding: 20px 12px; }
.jp2 .jp-stats div + div { border-inline-start: 1px solid var(--line); }
.jp2 .jp-stats b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; color: var(--label); line-height: 1.4; font-variant-numeric: tabular-nums; }
.jp2 .jp-stats span { font-size: 13px; color: var(--muted); }

/* sections */
.jp2 .jp-sechead { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.jp2 .jp-sechead h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 400; color: var(--fg); }
.jp2 .jp-sechead p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.jp2 .jp-more { color: var(--label); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.jp2 .jp-more:hover { color: var(--label); }
.jp2 .jp-more .jp-ico { transform: scaleX(-1); }

.jp2 .jp-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.jp2 .jp-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: flex; gap: 14px; align-items: center; min-width: 0; transition: border-color .15s, transform .15s; }
.jp2 .jp-cat:hover { border-color: var(--accent-ink); transform: translateY(-2px); }
.jp2 .jp-badge { width: 48px; height: 48px; border-radius: var(--r-icon); background: var(--brand-soft); color: var(--label); display: grid; place-items: center; flex: none; }
.jp2 .jp-cat:nth-child(even) .jp-badge { background: var(--accent-soft); color: var(--accent-ink); }
.jp2 .jp-badge .jp-ico { width: 24px; height: 24px; }
.jp2 .jp-cat h3 { font-size: 16px; font-weight: 700; color: var(--fg); }
.jp2 .jp-cat span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.jp2 .jp-bizgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.jp2 .jp-biz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .15s, transform .15s; }
.jp2 .jp-biz:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.jp2 .jp-thumb { aspect-ratio: 16 / 10; position: relative; background: var(--brand-soft); overflow: hidden; }
.jp2 .jp-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jp2 .jp-tag { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; padding: 0 10px; border-radius: var(--r-btn); }
.jp2 .jp-cardbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.jp2 .jp-biz h3 { font-size: 16px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jp2 .jp-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.jp2 .jp-meta .jp-ico { width: 15px; height: 15px; }

.jp2 .jp-steps { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--solid); color: var(--on-solid); border-radius: var(--r-band); overflow: hidden; }
.jp2 .jp-step { padding: 32px 30px; position: relative; }
.jp2 .jp-step + .jp-step { border-inline-start: 1px solid rgba(255,255,255,.18); }
.jp2 .jp-step small { font-size: 13px; opacity: .75; }
.jp2 .jp-step h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin-top: 2px; color: var(--on-solid); }
.jp2 .jp-step p { margin-top: 6px; opacity: .88; font-size: 15px; }
.jp2 .jp-dot { position: absolute; top: 28px; left: 28px; width: 14px; height: 14px; background: var(--accent); transform: rotate(45deg); border-radius: 3px; }

.jp2 .jp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.jp2 .jp-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-band); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.jp2 .jp-plan-pop { border: 2px solid var(--solid); box-shadow: var(--shadow); position: relative; }
.jp2 .jp-plan-pop::before { content: "پیشنهاد جاپرک"; position: absolute; top: -14px; right: 22px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; padding: 1px 12px; border-radius: var(--r-btn); }
.jp2 .jp-plan h3 { font-size: 20px; font-weight: 800; color: var(--fg); }
.jp2 .jp-price { font-size: 30px; font-weight: 800; color: var(--label); font-variant-numeric: tabular-nums; line-height: 1.4; }
.jp2 .jp-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.jp2 .jp-price del { font-size: 15px; font-weight: 500; color: var(--muted); margin-inline-start: 8px; }
.jp2 .jp-plan ul { display: grid; gap: 8px; font-size: 15px; flex: 1; align-content: start; }
.jp2 .jp-plan li { display: flex; gap: 8px; align-items: start; }
.jp2 .jp-plan li .jp-ico { width: 18px; height: 18px; color: var(--accent-ink); margin-top: 6px; stroke-width: 2.4; }
.jp2 .jp-plan .jp-btn { width: 100%; }

.jp2 .jp-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jp2 .jp-post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .15s, transform .15s; }
.jp2 .jp-post:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.jp2 .jp-cover { aspect-ratio: 16 / 8; position: relative; overflow: hidden; background: var(--brand-soft); }
.jp2 .jp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jp2 .jp-postbody { padding: 16px 18px 18px; display: grid; gap: 6px; }
.jp2 .jp-post h3 { font-size: 17px; font-weight: 700; color: var(--fg); }
.jp2 .jp-post p { font-size: 14px; color: var(--muted); }
.jp2 .jp-post .jp-meta { font-size: 12.5px; gap: 12px; font-variant-numeric: tabular-nums; }

.jp2 .jp-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.jp2 .jp-faq h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 400; color: var(--fg); }
.jp2 .jp-faq-side p { color: var(--muted); margin-top: 8px; }
.jp2 .jp-faq-side .jp-btn { margin-top: 16px; }
.jp2 .jp-faqlist { display: grid; gap: 10px; }
.jp2 details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-icon); padding: 0 18px; margin: 0; }
.jp2 details[open] { border-color: var(--solid); }
.jp2 summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--fg); }
.jp2 summary::-webkit-details-marker { display: none; }
.jp2 summary::after { content: "+"; font-size: 22px; color: var(--accent-ink); line-height: 1; flex: none; }
.jp2 details[open] summary::after { content: "−"; }
.jp2 details p { padding-bottom: 14px; color: var(--muted); font-size: 15px; }
.jp2 details p a { color: var(--label); font-weight: 700; }

.jp2 .jp-cta { background: var(--solid); color: var(--on-solid); border-radius: var(--r-band); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.jp2 .jp-cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); max-width: 22ch; color: var(--on-solid); }
.jp2 .jp-cta p { opacity: .85; margin-top: 4px; }
.jp2 .jp-cta .jp-btn { font-size: 17px; padding: 14px 30px; }
.jp2 .jp-cta .jp-btn-primary, .jp2 .jp-cta .jp-btn-primary:hover { background: var(--accent); color: var(--accent-fg); }

.jp2 .jp-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); padding-block: 44px 28px; font-size: 14px; color: var(--fg); position: static; z-index: auto; }
.jp2 .jp-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.jp2 .jp-foot h4 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--fg); }
.jp2 .jp-foot ul { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.jp2 .jp-foot a:hover { color: var(--label); }
.jp2 .jp-about { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 36ch; }
.jp2 .jp-contact { margin-top: 12px; }
.jp2 .jp-contact li { display: flex; gap: 8px; align-items: baseline; }
.jp2 .jp-contact li .jp-ico { width: 16px; height: 16px; align-self: center; color: var(--accent-ink); }
.jp2 .jp-social { display: flex; gap: 10px; margin-top: 14px; }
.jp2 .jp-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--label); }
.jp2 .jp-social a:hover { background: var(--brand-soft); color: var(--label); }
.jp2 .jp-enamad { display: inline-block; }
.jp2 .jp-enamad img { width: 96px; height: auto; border-radius: 12px; }
.jp2 .jp-copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jp2 .jp-copy a { color: var(--label); font-weight: 700; }

@media (max-width: 980px) {
  .jp2 .jp-cats, .jp2 .jp-bizgrid { grid-template-columns: repeat(2, 1fr); }
  .jp2 .jp-plans, .jp2 .jp-posts { grid-template-columns: 1fr; }
  .jp2 .jp-faq { grid-template-columns: 1fr; gap: 20px; }
  .jp2 .jp-foot { grid-template-columns: 1fr 1fr; }
  .jp2 .jp-stats { grid-template-columns: repeat(2, 1fr); }
  .jp2 .jp-stats div:nth-child(3) { border-inline-start: 0; }
  .jp2 .jp-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .jp2 .jp-top .jp-wrap { gap: 12px; }
  .jp2 .jp-actions { margin-inline-start: auto; }
  .jp2 .jp-burger { display: grid; }
  .jp2 .jp-nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 2px; padding: 10px 16px 16px; background: var(--hdr-bg); border-bottom: 1px solid var(--hdr-line); box-shadow: var(--shadow); margin: 0; }
  .jp2 .jp-nav.jp-open { display: flex; }
  .jp2 .jp-nav a { padding: 10px 14px; }
}
@media (max-width: 640px) {
  .jp2 .jp-hero { text-align: start; }
  .jp2 .jp-chips { justify-content: flex-start; }
  .jp2 .jp-hero .jp-eyebrow { display: flex; width: fit-content; margin-inline: auto; }
  .jp2 .jp-hero h1 { margin-inline: auto; text-align: center; }
  .jp2 .jp-lead { margin-inline: 0; }
  .jp2 .jp-search { grid-template-columns: 1fr; border-radius: 24px; }
  .jp2 .jp-field { border-radius: 16px; }
  .jp2 .jp-field + .jp-field { border-inline-start: 0; border-top: 1px solid var(--line); border-radius: 16px; }
  .jp2 .jp-steps { grid-template-columns: 1fr; }
  .jp2 .jp-step + .jp-step { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .jp2 .jp-cats, .jp2 .jp-bizgrid { grid-template-columns: 1fr; }
  .jp2 .jp-cta { padding: 28px 22px; }
  .jp2 .jp-foot { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .jp2 .jp-foot > div:first-child { grid-column: 1 / -1; }
  .jp2 .jp-hide-sm { display: none; }
  .jp2 section { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { .jp2 * { transition: none !important; } }
.jp2 [hidden] { display: none !important; }
