/*
Theme Name: Plastickai
Theme URI: https://plastickai.co.il
Author: Plastickai
Description: A calm, accessible Hebrew credit-card comparison theme.
Version: 1.2.1
Text Domain: plastickai
Requires at least: 6.4
Requires PHP: 8.0
*/
:root {
  --pk-paper: #faf9f6; --pk-surface: #fff; --pk-ink: #243d33;
  --pk-muted: #606d65; --pk-line: #dce2db; --pk-teal: #285c43;
  --pk-teal-dark: #1e4935; --pk-teal-soft: #edf3eb;
  --pk-amber: #936231; --pk-amber-soft: #fff3e3; --pk-danger: #973a32;
  --pk-radius: 16px; --pk-shadow: 0 8px 26px #243d3309;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--pk-paper); color: var(--pk-ink); direction: rtl; text-align: right; font-size: 16px; line-height: 1.65; }
body, button, input, select, textarea { font-family: Arial, "Segoe UI", sans-serif; }
h1, h2, h3, p { overflow-wrap: break-word; }
a { color: var(--pk-teal); text-underline-offset: 4px; }
button, select, summary, label:has(input) { cursor: pointer; }
input[type="checkbox"] { accent-color: var(--pk-teal); width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #98611f; outline-offset: 4px; }
[hidden] { display: none !important; }
.pk-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pk-main { margin-block-start: 0 !important; }
.pk-shell, .pk-directory, .pk-header-inner, .pk-footer-inner, .pk-compare {
  width: min(1180px, calc(100% - 64px)); margin-inline: auto;
}
.pk-site-header { border-bottom: 1px solid var(--pk-line); background: var(--pk-paper); }
.pk-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.pk-brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--pk-ink); font-weight: 800; font-size: 25px; white-space: nowrap; }
.pk-logo-mark { width: 49px; height: 43px; color: var(--pk-teal); flex: 0 0 auto; overflow: visible; }
.pk-logo-scalpel { fill: var(--pk-paper); }
.pk-brand small { display: none; }
.pk-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.pk-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; color: var(--pk-muted); text-decoration: none; font-size: 15px; border-radius: 8px; }
.pk-nav a:hover, .pk-nav a[aria-current="page"] { color: var(--pk-teal); background: var(--pk-teal-soft); }
.pk-hero { padding: 66px 0 58px; overflow: hidden; }
.pk-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 50px; }
.pk-eyebrow { color: var(--pk-teal); font-size: 14px; font-weight: 600; margin: 0 0 18px; }
.pk-hero h1 { font-size: clamp(38px, 4.7vw, 60px); line-height: 1.15; letter-spacing: -1.3px; margin: 0; font-weight: 700; }
.pk-hero h1 span { color: var(--pk-teal); }
.pk-hero p:not(.pk-eyebrow):not(.pk-hero-note) { color: var(--pk-muted); font-size: 19px; margin: 22px 0 0; line-height: 1.8; }
.pk-actions { display: flex; align-items: center; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.pk-button, .pk-button:visited { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 11px 22px; background: var(--pk-teal); color: #fff; border: 1px solid transparent; border-radius: 9px; font-weight: 600; text-decoration: none; transition: background .15s; }
.pk-button:hover { background: var(--pk-teal-dark); color: #fff; }
.pk-button:disabled { cursor: default; opacity: .6; }
.pk-button--secondary, .pk-button--secondary:visited { background: white; color: var(--pk-teal); border-color: var(--pk-line); }
.pk-button--secondary:hover { background: var(--pk-teal-soft); color: var(--pk-teal); }
.pk-card-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--pk-teal); font-weight: 600; text-decoration: none; font-size: 15px; }
.pk-card-link:hover { text-decoration: underline; }
.pk-hero-note { font-size: 13px; color: var(--pk-muted); margin: 23px 0 0; }
.pk-hero-art { position: relative; height: 320px; isolation: isolate; direction: rtl; }
.pk-art-ring { position: absolute; width: 285px; height: 285px; border: 1px solid #dce4d8; border-radius: 50%; top: 18px; left: 30px; box-shadow: 0 0 0 38px #f0f2e9; z-index: -1; }
.pk-plastic { position: absolute; width: 278px; height: 174px; border-radius: 16px; padding: 23px; box-shadow: 0 18px 35px #243d3315; }
.pk-plastic span { font-size: 13px; }
.pk-plastic i { display: block; width: 29px; height: 21px; border: 1px solid #bcb48b; border-radius: 5px; background: linear-gradient(90deg, transparent 46%, #bcb48b 47%, #bcb48b 51%, transparent 52%), linear-gradient(transparent 45%, #bcb48b 46%, #bcb48b 51%, transparent 52%), #ded7b2; }
.pk-plastic--back { top: 18px; left: 78px; transform: rotate(-14deg); background: #e3e5ca; color: #45523b; }
.pk-plastic--back i { margin-top: 12px; }
.pk-plastic--front { top: 87px; left: 28px; transform: rotate(8deg); color: #fff; background: #2d5644; }
.pk-plastic--front i { position: absolute; left: 24px; top: 23px; }
.pk-plastic b { display: block; margin-top: 16px; font-size: 20px; line-height: 1.35; font-weight: 500; }
.pk-plastic small { display: block; margin-top: 12px; color: #e1e9df; font-size: 11px; }
.pk-art-note { position: absolute; top: 261px; right: 25px; display: flex; align-items: center; gap: 10px; padding: 11px 17px; border-radius: 10px; background: white; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow); font-size: 13px; }
.pk-art-note span { background: var(--pk-teal-soft); border-radius: 50%; width: 24px; height: 24px; text-align: center; color: var(--pk-teal); }
.pk-section { padding: 45px 0; }
.pk-section--surface { background: #f1f3ed; border-block: 1px solid #e3e7df; }
.pk-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.pk-section-heading h2 { font-size: 28px; font-weight: 600; margin: 0; }
.pk-section-heading p { color: var(--pk-muted); font-size: 15px; margin: 7px 0 0; }
.pk-filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; align-items: end; gap: 14px; margin-bottom: 18px; }
.pk-filter-label { display: grid; gap: 6px; color: var(--pk-muted); font-size: 13px; }
.pk-filter-label select { min-width: 0; width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #839083; border-radius: 8px; background: white; color: var(--pk-ink); }
.pk-reset { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.pk-filter-status { font-size: 14px; color: var(--pk-muted); }
.pk-card-grid { display: grid; gap: 15px; }
.pk-card { min-width: 0; display: grid; grid-template-columns: minmax(225px, 1fr) minmax(0, 2.5fr); gap: 0 28px; padding: 25px 26px 10px; border: 1px solid var(--pk-line); border-radius: var(--pk-radius); background: white; box-shadow: 0 2px 3px #243d3303; transition: border-color .15s; }
.pk-card:hover { border-color: #a9b9a5; }
.pk-card:has(input:checked) { border-color: var(--pk-teal); box-shadow: 0 0 0 1px var(--pk-teal); }
.pk-card-identity { display: flex; align-items: center; gap: 16px; align-self: start; }
.pk-mini-card { position: relative; isolation: isolate; width: 78px; height: 50px; border: 1px solid #ffffff2e; border-radius: 8px; overflow: hidden; background: #395f4b; color: #fff; flex-shrink: 0; transform: rotate(-6deg); box-shadow: 0 6px 13px #243d331b; }
.pk-mini-card::before { content: ""; position: absolute; z-index: -1; width: 76px; height: 76px; border-radius: 19px; background: #ffffff24; transform: rotate(34deg); left: -38px; top: -26px; }
.pk-mini-card::after { content: ""; position: absolute; z-index: -1; width: 34px; height: 80px; background: var(--pk-card-accent, #d5e4a750); transform: rotate(35deg); right: -9px; top: -17px; }
.pk-mini-card span { position: absolute; left: 9px; bottom: 7px; display: block; max-width: 55px; font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: .02em; white-space: nowrap; }

/* Palettes echo each product's dominant colours; the geometry remains Plastickai's own. */
.pk-card[data-card-key="isracard-basic"] .pk-mini-card { background: #e5e7e8; border-color: #c9ced1; color: #252b2e; --pk-card-accent: #aeb5ba80; }
.pk-card[data-card-key="cal-cashcal-pro"] .pk-mini-card { background: #16191d; --pk-card-accent: #c8a5538c; }
.pk-card[data-card-key="max-back-total"] .pk-mini-card { background: linear-gradient(115deg, #a8ded8, #2f9fc0); color: #163642; --pk-card-accent: #f0fbf580; }
.pk-card[data-card-key="isracard-fly-card-standard"] .pk-mini-card { background: linear-gradient(120deg, #0f263f, #204f83); --pk-card-accent: #67b6de66; }
.pk-card[data-card-key="cal-flyall-standard"] .pk-mini-card { background: #15171c; --pk-card-accent: #8d5fc78f; }
.pk-tag, .pk-issuer { color: var(--pk-muted); font-size: 12px; }
.pk-card h3 { font-size: 20px; line-height: 1.4; margin: 3px 0 0; font-weight: 600; }
.pk-card h3 a { color: var(--pk-ink); text-decoration: none; }
.pk-card h3 a:hover { text-decoration: underline; }
.pk-score-inline { font-size: 12px; color: var(--pk-muted); margin: 7px 0 0; }
.pk-score-inline bdi { color: var(--pk-teal); margin-inline-start: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pk-meta-list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pk-meta-list div { padding-inline-start: 18px; border-inline-start: 1px solid var(--pk-line); }
.pk-meta-list dt { font-size: 12px; color: var(--pk-muted); margin-bottom: 9px; }
.pk-meta-list dd { margin: 0; font-size: 14px; color: var(--pk-ink); line-height: 1.8; }
.pk-card-terms { grid-column: 1; margin-top: 17px; min-width: 0; color: var(--pk-muted); font-size: 13px; }
.pk-card-terms summary { min-height: 44px; display: list-item; align-content: center; width: fit-content; }
.pk-card-terms[open] { grid-column: 1 / -1; }
.pk-card-terms[open] summary { color: var(--pk-teal); }
.pk-card-terms dl { margin: 10px 0; max-width: 85ch; }
.pk-card-terms dt { font-weight: 700; margin-top: 12px; color: var(--pk-ink); }
.pk-card-terms dd { margin: 0; font-size: 14px; }
.pk-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 26px; border-top: 1px solid var(--pk-line); margin-top: 17px; padding-top: 3px; }
.pk-card-terms[open] + .pk-card-actions { grid-column: 1 / -1; }
.pk-compare-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--pk-ink); font-size: 14px; }
.pk-compare-bar { position: sticky; bottom: 14px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; padding: 13px 20px; background: var(--pk-ink); color: white; border-radius: 12px; box-shadow: 0 6px 22px #243d3326; }
.pk-js .pk-compare-bar { display: none; }
.pk-js .pk-compare-bar.is-visible { display: flex; }
.pk-compare-bar p { margin: 0; font-size: 14px; }
.pk-compare-bar .pk-button { background: #e9f0de; color: var(--pk-ink); flex-shrink: 0; }
.pk-empty-state { padding: 30px; background: white; border: 1px dashed var(--pk-line); border-radius: 12px; color: var(--pk-muted); }
.pk-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; }
.pk-trust-item { padding: 0 0 0 16px; }
.pk-trust-item strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pk-trust-item p { margin: 0; color: var(--pk-muted); font-size: 15px; }
.pk-trust-item + .pk-trust-item { border-inline-start: 1px solid var(--pk-line); padding-inline-start: 28px; }
.pk-review, .pk-methodology { width: min(1080px, calc(100% - 64px)); margin-inline: auto; padding: 40px 0; }
.pk-page-title, .pk-review h1, .pk-compare h1, .pk-methodology h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; margin: 0; font-weight: 600; }
.pk-back { margin-bottom: 25px; }
.pk-review-hero { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--pk-line); }
.pk-review-dek, .pk-methodology-lead, .pk-compare-lead { color: var(--pk-muted); font-size: 17px; line-height: 1.8; max-width: 68ch; }
.pk-review-score { background: var(--pk-teal-soft); padding: 19px; border-radius: 12px; text-align: center; }
.pk-review-score strong { display: block; font-size: 36px; line-height: 1.3; }
.pk-review-score span { color: var(--pk-muted); font-size: 12px; }
.pk-review + .pk-review { padding-top: 0; margin-top: 0; }
.pk-review-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; }
.pk-review-grid h2, .pk-methodology h2 { font-size: 23px; font-weight: 600; margin: 24px 0 12px; }
.pk-review-grid h2:first-child { margin-top: 0; }
.pk-review-copy { color: var(--pk-muted); line-height: 1.9; }
.pk-review-copy strong { color: var(--pk-ink); }
.pk-score-grid, .pk-weight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-block: 20px; }
.pk-score-item, .pk-weight { border: 1px solid var(--pk-line); border-radius: 10px; padding: 17px; background: white; }
.pk-score-item span, .pk-weight span { display: block; color: var(--pk-muted); font-size: 13px; }
.pk-score-item strong, .pk-weight strong { display: block; font-size: 24px; color: var(--pk-teal); }
.pk-weight-grid { grid-template-columns: repeat(4, 1fr); }
.pk-facts { border: 1px solid var(--pk-line); border-radius: 12px; background: white; overflow: hidden; margin: 0; }
.pk-facts div { padding: 18px 20px; border-bottom: 1px solid var(--pk-line); }
.pk-facts div:last-child { border: 0; }
.pk-facts dt { color: var(--pk-muted); font-size: 13px; margin-bottom: 6px; }
.pk-facts dd { margin: 0; font-size: 15px; line-height: 1.8; }
.pk-callout { margin-top: 20px; padding: 18px; border-inline-start: 3px solid var(--pk-amber); background: var(--pk-amber-soft); color: #64451d; border-radius: 8px; font-size: 14px; }
.pk-source-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.pk-source-list small { display: block; color: var(--pk-muted); font-size: 12px; }
.pk-official-link { margin-top: 20px; }
.pk-compare { padding-block: 42px; }
.pk-compare > .pk-section { background: transparent; border: 0; padding-block: 25px; }
.pk-compare .pk-directory { width: 100%; }
.pk-compare-table-wrap { overflow: auto; max-height: 74vh; margin-top: 15px; border: 1px solid var(--pk-line); border-radius: 12px; background: white; }
.pk-compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 15px; }
.pk-compare-table th, .pk-compare-table td { padding: 20px; text-align: right; vertical-align: top; border-bottom: 1px solid var(--pk-line); border-inline-end: 1px solid var(--pk-line); line-height: 1.8; }
.pk-compare-table tr > :first-child { position: sticky; right: 0; width: 150px; background: #f4f6f0; z-index: 1; font-size: 13px; font-weight: 600; }
.pk-compare-table thead th { position: sticky; top: 0; background: #edf2e7; z-index: 2; font-size: 16px; box-shadow: 0 1px var(--pk-line); }
.pk-compare-table thead th:first-child { z-index: 3; }
.pk-compare-table tbody tr:hover td { background: #fafbf7; }
.pk-scroll-hint { color: var(--pk-muted); font-size: 13px; margin-bottom: 0; }
.pk-site-footer { border-top: 1px solid var(--pk-line); margin-top: 30px; }
.pk-footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 40px; padding-block: 34px; }
.pk-footer-inner .pk-brand { font-size: 20px; }
.pk-footer-copy { max-width: 52ch; font-size: 13px; color: var(--pk-muted); margin: 18px 0 0; }
.pk-footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; max-width: 480px; }
.pk-footer-nav a { min-height: 44px; align-content: center; color: var(--pk-muted); font-size: 13px; text-decoration: none; }
.pk-footer-nav a:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .pk-card { grid-template-columns: 1fr; }
  .pk-card-identity { margin-bottom: 20px; }
  .pk-meta-list div:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .pk-card-terms, .pk-card-actions { grid-column: 1; }
  .pk-card-actions { justify-content: space-between; margin-top: 0; }
  .pk-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-hero-grid { gap: 18px; }
  .pk-plastic { width: 240px; height: 162px; }
  .pk-plastic--back { left: 42px; }
  .pk-art-note { right: 0; }
}
@media (max-width: 700px) {
  .pk-shell, .pk-directory, .pk-header-inner, .pk-footer-inner, .pk-review, .pk-methodology, .pk-compare { width: calc(100% - 32px); }
  .pk-header-inner { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 17px 0 9px; }
  .pk-brand { font-size: 23px; }
  .pk-nav { justify-content: center; width: 100%; gap: 3px; }
  .pk-nav a { padding: 8px 14px; font-size: 14px; }
  .pk-hero { padding: 26px 0; }
  .pk-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .pk-hero h1 { font-size: 38px; letter-spacing: -.5px; }
  .pk-hero .pk-eyebrow { margin-bottom: 12px; }
  .pk-hero p:not(.pk-eyebrow):not(.pk-hero-note) { font-size: 17px; margin-top: 16px; }
  .pk-actions { justify-content: center; gap: 15px; margin-top: 20px; }
  .pk-hero-note { margin-top: 16px; }
  .pk-hero-art { display: none; }
  .pk-section { padding-block: 30px; }
  .pk-section-heading { align-items: flex-start; gap: 12px; }
  .pk-section-heading h2 { font-size: 24px; }
  .pk-section-heading > .pk-card-link { white-space: nowrap; font-size: 13px; }
  .pk-section-heading p { font-size: 14px; }
  .pk-section-heading:has(> p) { flex-direction: column; }
  .pk-card { padding: 20px 18px 8px; border-radius: 12px; }
  .pk-card h3 { font-size: 21px; }
  .pk-meta-list { grid-template-columns: 1fr; gap: 13px; }
  .pk-meta-list div, .pk-meta-list div:first-child { display: grid; grid-template-columns: minmax(90px, .72fr) minmax(0, 1.28fr); gap: 15px; border: 0; padding: 0; }
  .pk-meta-list dt { padding-top: 2px; font-size: 12px; margin: 0; }
  .pk-meta-list dd { font-size: 14px; }
  .pk-compare-bar { padding: 12px; bottom: 8px; }
  .pk-compare-bar p { font-size: 13px; }
  .pk-compare-bar .pk-button { padding-inline: 13px; gap: 8px; }
  .pk-trust-grid, .pk-review-grid { grid-template-columns: 1fr; gap: 24px; }
  .pk-trust-item + .pk-trust-item { border-inline-start: 0; border-top: 1px solid var(--pk-line); padding: 22px 0 0; }
  .pk-review-hero { grid-template-columns: 1fr; }
  .pk-review-score { display: flex; align-items: center; gap: 15px; width: fit-content; padding: 10px 18px; }
  .pk-review-score strong { font-size: 26px; }
  .pk-review, .pk-methodology { padding-block: 26px; }
  .pk-weight-grid { grid-template-columns: repeat(2, 1fr); }
  .pk-compare-table { min-width: 650px; }
  .pk-compare-table tr > :first-child { width: 95px; padding: 12px 10px; font-size: 12px; }
  .pk-compare-table td, .pk-compare-table th { padding: 14px; font-size: 14px; }
  .pk-footer-inner { flex-direction: column; gap: 15px; }
  .pk-footer-nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
