/* ===========================================================
   PRODUCTS PAGE
   Uses tokens defined in style.css (--text, --text-2, --line,
   --ink-0/1/2, --hilight, --surface-card, --grad-blue, etc.)
   =========================================================== */

/* ============== HERO ============== */
.ph-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: clip;
}
.ph-hero__aurora {
  position: absolute; inset: -10% -5% auto;
  height: 70%;
  background: var(--grad-aurora);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.85;
}
.ph-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ph-hero__copy h1 {
  font-weight: 280;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 22px 0 24px;
  color: var(--text);
}
.ph-hero__copy h2 {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
  max-width: 520px;
  margin-bottom: 32px;
}
.ph-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============== HERO ORBIT ============== */
.ph-hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}
.ph-orbit {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
}
.ph-orbit__rings {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.ph-orbit__rings circle {
  fill: none;
  stroke: var(--line-strong);
  stroke-dasharray: 4 6;
  opacity: 0.6;
}
.ph-orbit__core {
  width: 116px; height: 116px;
  border-radius: 28px;
  background: var(--surface-card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--glass-edge), var(--glow-md);
  display: grid;
  place-items: center;
  color: var(--hilight-light);
  position: relative;
  z-index: 2;
}
.ph-chip {
  position: absolute;
  top: 50%; left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  animation: phFloat 6s ease-in-out infinite;
  --tx: 0px;
  --ty: 0px;
  /* `translate` (CSS prop) handles placement; `transform` is free for animation */
  translate: calc(-50% + var(--tx)) calc(-50% + var(--ty));
}
.ph-chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hilight-light);
  box-shadow: 0 0 10px var(--hilight-light);
}
/* Distributed around orbit — outer ring (~r=180), inner ring (~r=120).
   Angles measured from 12 o'clock, clockwise. */
.ph-chip--1 { --tx:  -10px; --ty: -190px; animation-delay:  0s;  }   /* top */
.ph-chip--2 { --tx:  170px; --ty:  -90px; animation-delay: -1s;  }   /* upper right */
.ph-chip--3 { --tx:  170px; --ty:   80px; animation-delay: -2s;  }   /* lower right */
.ph-chip--4 { --tx:    0px; --ty:  190px; animation-delay: -3s;  }   /* bottom */
.ph-chip--5 { --tx: -170px; --ty:   80px; animation-delay: -4s;  }   /* lower left */
.ph-chip--6 { --tx: -170px; --ty:  -90px; animation-delay: -5s;  }   /* upper left */
.ph-chip--7 { --tx:  100px; --ty:  -10px; animation-delay: -2.5s; }  /* inner right (API) */

@keyframes phFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes phFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============== SHOWCASE ============== */
.ph-showcase { padding-top: 40px; }
.ph-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-top: 36px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge);
  border-radius: 28px;
  padding: 18px;
}

/* Tabs */
.ph-tabs {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ph-tab {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: background .25s ease, border-color .25s ease;
  font-family: inherit;
}
.ph-tab:hover {
  background: var(--glass-bg);
  border-color: var(--line);
}
.ph-tab__num {
  grid-row: 1 / span 2;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--glass-bg);
  color: var(--text-2);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.ph-tab__lbl {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.ph-tab__sub {
  font-size: 12px;
  color: var(--text-2);
}
.ph-tab.is-active {
  background: linear-gradient(180deg, rgba(20,120,220,0.18), rgba(20,120,220,0.05));
  border-color: rgba(10,180,250,0.45);
}
.ph-tab.is-active .ph-tab__num {
  background: var(--grad-blue);
  color: #fff;
  border-color: transparent;
}

/* Stage */
.ph-stage {
  position: relative;
  border-radius: 18px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(20,120,220,0.18), transparent 70%),
    var(--ink-1);
  border: 1px solid var(--line);
  min-height: 520px;
  overflow: hidden;
}
[data-theme="light"] .ph-stage {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(20,120,220,0.10), transparent 70%),
    var(--ink-2);
}
.ph-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  padding: 44px;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.ph-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ph-panel__copy h4 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 320;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--text);
}
.ph-panel__copy p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 38ch;
}
.ph-bullets {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ph-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.ph-bullets i {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(10,180,250,0.18);
  border: 1px solid rgba(10,180,250,0.55);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}
.ph-bullets i::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--hilight-light);
}

/* Visual stage */
.ph-panel__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============== PROP: BROWSER + LINK CARD ============== */
.ph-browser {
  width: 100%;
  max-width: 380px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge), 0 40px 100px -30px rgba(0,0,0,0.55);
  border-radius: 14px;
  overflow: hidden;
}
.ph-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--line);
}
.ph-browser__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.ph-browser__url {
  flex: 1;
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-2);
  background: var(--ink-0);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.ph-browser__url b { color: var(--text); font-weight: 600; }
.ph-browser__body {
  padding: 24px 22px 22px;
}
.ph-link-card__head {
  margin-bottom: 14px;
}
.ph-merchant {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ph-merchant__logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.ph-merchant__name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.ph-merchant__addr {
  font-size: 11px;
  color: var(--text-2);
}
.ph-link-card__amount {
  font-weight: 320;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 10px 0 4px;
  color: var(--text);
}
.ph-amt__currency { font-size: 24px; color: var(--text-2); }
.ph-amt__num { font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.ph-link-card__btc {
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.ph-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.ph-qr__art {
  position: relative;
  width: 130px; height: 130px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}
.ph-qr__art--sm { width: 90px; height: 90px; padding: 6px; }
.ph-qr__grid {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(0deg, #0e1116 0 6px, transparent 6px 10px),
    repeating-linear-gradient(90deg, #0e1116 0 6px, transparent 6px 10px);
  background-size: 10px 10px;
  border-radius: 4px;
}
.ph-qr__corner {
  position: absolute;
  width: 26px; height: 26px;
  background: #fff;
  border: 4px solid #0e1116;
  border-radius: 4px;
}
.ph-qr__art--sm .ph-qr__corner { width: 18px; height: 18px; border-width: 3px; }
.ph-qr__corner--tl { top: 8px; left: 8px; }
.ph-qr__corner--tr { top: 8px; right: 8px; }
.ph-qr__corner--bl { bottom: 8px; left: 8px; }
.ph-qr__center {
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  background: #fff;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0e1116;
  font-size: 14px;
}
.ph-qr__art--sm .ph-qr__center {
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  font-size: 11px;
  border-radius: 4px;
}
.ph-link-card__cta {
  text-align: center;
  font-size: 13px;
  color: var(--hilight-light);
  font-weight: 600;
}

/* ============== PROP: INVOICE ============== */
.ph-invoice {
  width: 100%;
  max-width: 420px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge), 0 40px 100px -30px rgba(0,0,0,0.55);
  border-radius: 14px;
  padding: 24px 26px;
  font-size: 13px;
  color: var(--text);
}
.ph-invoice__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.ph-invoice__logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--text);
  color: var(--ink-0);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 6px;
}
.ph-invoice__from {
  font-weight: 600;
  font-size: 13px;
}
.ph-invoice__num { text-align: right; }
.ph-invoice__num small { color: var(--text-2); font-size: 10px; letter-spacing: 0.08em; }
.ph-invoice__num strong { display: block; font-weight: 600; font-size: 14px; }
.ph-invoice__to {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 14px;
}
.ph-invoice__to small { color: var(--text-2); font-size: 10px; letter-spacing: 0.08em; }
.ph-invoice__to p { margin-top: 4px; line-height: 1.45; color: var(--text); font-size: 12px; }
.ph-invoice__lines {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}
.ph-invoice__lines td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
}
.ph-invoice__lines td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 500;
}
.ph-invoice__totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 14px;
}
.ph-invoice__totals > div {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
}
.ph-invoice__totals > div span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.ph-invoice__grand {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
  font-weight: 600;
}
.ph-invoice__grand span { color: var(--text) !important; }
.ph-invoice__pay { margin-top: 8px; }
.ph-invoice__progress {
  height: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.ph-invoice__progress span {
  display: block;
  height: 100%;
  background: var(--grad-blue);
  border-radius: 99px;
}
.ph-invoice__paid {
  font-size: 11px;
  color: var(--text-2);
  text-align: right;
}

/* ============== PROP: CODE SHOW ============== */
.ph-codeshow {
  width: 100%;
  max-width: 460px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge), 0 40px 100px -30px rgba(0,0,0,0.55);
  border-radius: 14px;
  overflow: hidden;
}
.ph-codeshow__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ph-codeshow__head--alt { border-top: 1px solid var(--line); }
.ph-codeshow__file { color: var(--text); font-weight: 600; }
.ph-codeshow__lang {
  color: var(--text-2);
  background: var(--ink-0);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10px;
}
.ph-codeshow__code {
  margin: 0;
  padding: 16px 18px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
}
.ph-codeshow__code .t-tag  { color: #ff7b72; }
.ph-codeshow__code .t-attr { color: #d2a8ff; }
.ph-codeshow__code .t-str  { color: #a5d6ff; }
.ph-codeshow__code .t-key  { color: #79c0ff; }
.ph-codeshow__code .t-num  { color: #ffa657; }
[data-theme="light"] .ph-codeshow__code .t-tag  { color: #cf222e; }
[data-theme="light"] .ph-codeshow__code .t-attr { color: #8250df; }
[data-theme="light"] .ph-codeshow__code .t-str  { color: #0a3069; }
[data-theme="light"] .ph-codeshow__code .t-key  { color: #0550ae; }
[data-theme="light"] .ph-codeshow__code .t-num  { color: #953800; }
.ph-codeshow__preview {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: var(--glass-bg);
}
.ph-codeshow__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.ph-paybtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--grad-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--glow-sm);
}
.ph-paybtn small {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 500;
}

/* ============== PROP: TABLET POS ============== */
.ph-tablet {
  width: 320px;
  aspect-ratio: 4 / 5;
  background: #0a0d14;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
  position: relative;
}
.ph-tablet__screen {
  width: 100%; height: 100%;
  background: var(--ink-0);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
}
[data-theme="light"] .ph-tablet__screen { background: #ffffff; }
.ph-pos { display: flex; flex-direction: column; height: 100%; gap: 12px; }
.ph-pos__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.ph-pos__head strong { font-weight: 600; }
.ph-pos__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--positive);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ph-pos__live span {
  width: 6px; height: 6px;
  background: var(--positive);
  border-radius: 50%;
  animation: phPulse 1.4s ease-in-out infinite;
}
@keyframes phPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.ph-pos__amt {
  font-weight: 320;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding: 12px 0;
}
.ph-pos__cur { font-size: 22px; color: var(--text-2); }
.ph-pos__num { font-size: 48px; letter-spacing: -0.02em; line-height: 1; }
.ph-pos__keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}
.ph-pos__keys button {
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.ph-pos__keys button:hover { background: var(--glass-bg-2); }
.ph-pos__del { font-size: 13px !important; color: var(--text-2) !important; }
.ph-pos__charge {
  background: var(--grad-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: var(--glow-sm);
}

/* ============== PROP: PHONE APP ============== */
.ph-phone {
  width: 240px;
  aspect-ratio: 9 / 19;
  background: #0a0d14;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  padding: 8px;
  position: relative;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
}
.ph-phone__notch {
  position: absolute;
  top: 18px; left: 50%;
  width: 60px; height: 18px;
  background: #0a0d14;
  border-radius: 99px;
  transform: translateX(-50%);
  z-index: 2;
}
.ph-phone__screen {
  width: 100%; height: 100%;
  background: var(--ink-0);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  color: var(--text);
}
[data-theme="light"] .ph-phone__screen { background: #ffffff; }
.ph-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 44px 18px 18px;
  gap: 14px;
}
.ph-app__top { display: flex; flex-direction: column; gap: 4px; }
.ph-app__top small { color: var(--text-2); font-size: 11px; }
.ph-app__top strong {
  font-weight: 320;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.ph-app__delta {
  font-size: 11px;
  color: var(--positive);
  font-weight: 500;
}
.ph-app__chart { width: 100%; height: 70px; }
.ph-app__feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.ph-app__row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
}
.ph-app__dot {
  width: 6px; height: 6px;
  background: var(--hilight-light);
  border-radius: 50%;
}
.ph-app__lbl { flex: 1; color: var(--text-2); }
.ph-app__amt { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }

/* ============== PROP: TERMINAL ============== */
.ph-terminal {
  width: 240px;
  background: #0a0d14;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
  position: relative;
}
.ph-terminal__top {
  height: 6px;
  background: var(--ink-0);
  border-radius: 99px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.ph-terminal__screen {
  background: var(--ink-0);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text);
}
[data-theme="light"] .ph-terminal__top,
[data-theme="light"] .ph-terminal__screen { background: #ffffff; }
.ph-terminal__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ph-terminal__row small {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-2);
}
.ph-terminal__row strong {
  font-weight: 400;
  font-size: 18px;
  color: var(--text);
}
.ph-terminal__qr {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.ph-terminal__hint {
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.ph-terminal__keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.ph-terminal__keys span {
  height: 22px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}
.ph-terminal__slot {
  height: 4px;
  background: var(--ink-0);
  border-radius: 99px;
  opacity: 0.4;
}

/* ============== HOW IT FITS ============== */
.ph-fit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.ph-fit__card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge);
  border-radius: 20px;
  padding: 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.ph-fit__card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.ph-fit__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(10,180,250,0.15);
  border: 1px solid rgba(10,180,250,0.35);
  color: var(--hilight-light);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ph-fit__icon svg { width: 22px; height: 22px; }
.ph-fit__card h4 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--text);
}
.ph-fit__card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

/* ============== USE CASES ============== */
.ph-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.ph-case {
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.ph-case:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.ph-case__art {
  height: 220px;
  background: var(--ink-1);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ph-case__art--ecom {
  background: linear-gradient(135deg, #1a3a5a, #102538);
}
[data-theme="light"] .ph-case__art--ecom {
  background: linear-gradient(135deg, #d8e6f5, #b9d0e6);
}
.ph-case__art--free {
  background: linear-gradient(135deg, #2a1a3a, #18102a);
}
[data-theme="light"] .ph-case__art--free {
  background: linear-gradient(135deg, #e8def5, #cfbde6);
}
.ph-case__art--retail {
  background: linear-gradient(135deg, #1a3a2a, #102818);
}
[data-theme="light"] .ph-case__art--retail {
  background: linear-gradient(135deg, #d8f0e0, #b8e0c8);
}

/* ecom card art */
.ph-case__art-card {
  width: 160px;
  background: var(--ink-0);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4);
}
[data-theme="light"] .ph-case__art-card { background: #ffffff; }
.ph-case__art-img {
  height: 90px;
  background: linear-gradient(135deg, #6b4a2a, #3a2510);
  border-radius: 8px;
  margin-bottom: 8px;
}
.ph-case__art-card small {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 2px;
}
.ph-case__art-card strong {
  display: block;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}
.ph-case__art-btn {
  width: 100%;
  background: var(--text);
  color: var(--ink-0);
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

/* freelance letter art */
.ph-case__art-letter {
  width: 170px;
  aspect-ratio: 3 / 4;
  background: var(--ink-0);
  border-radius: 8px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4);
}
[data-theme="light"] .ph-case__art-letter { background: #ffffff; }
.ph-case__art-line {
  height: 6px;
  background: var(--glass-bg-2);
  border: 1px solid var(--line);
  border-radius: 99px;
}
.ph-case__art-line--short { width: 60%; }
.ph-case__art-amt {
  margin-top: auto;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--hilight-light);
}

/* retail counter art */
.ph-case__art-counter {
  width: 180px;
  aspect-ratio: 3 / 2;
  background: #0a0d14;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4);
}
.ph-case__art-tablet {
  width: 100%; height: 100%;
  background: var(--ink-0);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="light"] .ph-case__art-tablet { background: #ffffff; }
.ph-case__art-tablet .ph-case__art-amt {
  font-size: 24px;
  margin: 0;
  color: var(--text);
}
.ph-case__art-row {
  height: 5px;
  background: var(--glass-bg-2);
  border: 1px solid var(--line);
  border-radius: 99px;
}
.ph-case__art-row--short { width: 50%; }

.ph-case__copy {
  padding: 22px 24px 26px;
}
.ph-case__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}
.ph-case__copy h4 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}
.ph-case__copy p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .ph-shell {
    grid-template-columns: 1fr;
  }
  .ph-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .ph-tab { min-width: 200px; }
  .ph-stage { min-height: 600px; }
  .ph-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }
}
@media (max-width: 800px) {
  .ph-hero { padding: 110px 0 50px; }
  .ph-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .ph-hero__visual { max-width: 360px; margin: 0 auto; }
  .ph-fit__grid, .ph-cases__grid { grid-template-columns: 1fr; }
  .ph-stage { min-height: auto; }
  .ph-panel {
    position: relative;
    inset: auto;
    padding: 22px;
  }
  .ph-panel:not(.is-active) { display: none; }
}
