/* ===== Voltage Stabilizers and Power Line Conditioners =====
   Heading, two product boxes (a Features button on each photo reveals the
   list inside the box), then a dark panel: explainer tabs + range links. */
.ps {
  --ps-blue: #01579b;
  --ps-blue-dark: #013f70;
  --ps-cyan: #01c4fc;
  --ps-navy: #16163f;
  --ps-text: #3a4052;
  --ps-soft: #f3f6fa;
  --ps-rule: rgba(255,255,255,.18);
  --ps-wrap: 1350px; /* same as the page content container */
  --ps-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
  background: var(--ps-soft); color: var(--ps-text);
  font-family: Montserrat, system-ui, sans-serif;
}
.ps *, .ps *::before, .ps *::after { box-sizing: border-box; }
.ps h2, .ps h3, .ps p, .ps ul { margin: 0; padding: 0; }
.ps ul { list-style: none; }
.ps a svg, .ps button svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ps a:focus-visible, .ps button:focus-visible { outline: 2px solid var(--ps-cyan); outline-offset: 3px; }
.ps-wrap { max-width: var(--ps-wrap); margin-inline: auto; padding: 72px 10px 80px; }

/* Heading with an unstable-in, stable-out wave under it */
.ps-head { text-align: center; }
.ps .ps-title { font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(28px, 2.9vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ps-navy); text-wrap: balance; }
.ps-wave { display: block; width: 132px; height: 16px; margin: 20px auto 0; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ps-wave-in { stroke: #a9b4c4; }
.ps-wave rect { fill: var(--ps-blue); stroke: none; }
.ps-wave-out { stroke: var(--ps-cyan); }

/* The two boxes */
.ps-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.ps-card { display: flex; flex-direction: column; background: #fff; box-shadow: 0 30px 60px -34px rgba(22,22,63,.5); }
.ps-top { position: relative; flex: 1; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.ps-media { padding-top: 22px; background: #e9e9e9; }
/* the photos carry their own logo along the top: crop it off and fade the cut edge */
.ps-media img { display: block; width: 100%; height: auto; aspect-ratio: 580 / 378; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px); mask-image: linear-gradient(to bottom, transparent, #000 36px); }

.ps-body { padding: 26px 36px 30px; border-top: 4px solid var(--ps-blue); }
.ps .ps-range { font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--ps-blue); }
.ps .ps-card h3 { margin-top: 10px; font-family: "Open Sans", system-ui, sans-serif; font-size: clamp(21px, 1.7vw, 27px); font-weight: 700; line-height: 1.25; color: var(--ps-navy); text-wrap: balance; }

/* Features button, sitting on the corner of the photo */
.ps .ps-toggle { position: absolute; z-index: 3; top: 20px; left: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 60px; padding: 10px 24px 10px 28px; border: 0; border-radius: 0; background: var(--ps-navy); color: #fff; font: 700 18px/1.3 Montserrat, system-ui, sans-serif; cursor: pointer; box-shadow: 0 16px 28px -12px rgba(22,22,63,.65); transition: background .25s, color .25s; }
.ps .ps-toggle:hover, .ps .ps-toggle:focus-visible { background: var(--ps-blue); color: #fff; }
.ps .ps-toggle[aria-expanded="true"] { background: var(--ps-navy); color: #fff; box-shadow: none; }
.ps .ps-toggle svg { font-size: 22px; stroke-width: 2.5; transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.ps .ps-toggle[aria-expanded="true"] svg { transform: rotate(135deg); }

/* The reveal: the list grows out of the button and fills the box */
.ps-reveal { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 104px 52px 36px; background: linear-gradient(150deg, var(--ps-blue) 0%, var(--ps-navy) 100%); color: #fff; clip-path: circle(0 at var(--ps-cx, 15%) var(--ps-cy, 45px)); visibility: hidden; transition: clip-path .6s cubic-bezier(.4, 0, .2, 1), visibility 0s .6s; }
.ps-card.is-open .ps-reveal { clip-path: circle(150% at var(--ps-cx, 15%) var(--ps-cy, 45px)); visibility: visible; transition: clip-path .6s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.ps .ps-reveal-title { font-family: "Open Sans", system-ui, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.2; color: #fff; }
.ps .ps-reveal-title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 14px; background: var(--ps-cyan); }
.ps-reveal > *, .ps-reveal li { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.ps-reveal ul ul, .ps-reveal ul ul li { opacity: 1; transform: none; }
.ps-card.is-open .ps-reveal > *, .ps-card.is-open .ps-reveal li { opacity: 1; transform: none; transition: opacity .45s .25s, transform .45s .25s; }

.ps-features { margin-top: 26px !important; }
.ps-features > li { position: relative; padding-left: 34px; font-size: 18px; line-height: 1.5; }
.ps-features > li + li { margin-top: 12px; }
.ps-features > li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; background: var(--ps-cyan); -webkit-mask: var(--ps-tick) center / contain no-repeat; mask: var(--ps-tick) center / contain no-repeat; }
.ps-features ul { margin-top: 8px; }
.ps-features ul li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.88); }
.ps-features ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 9px; height: 2px; background: var(--ps-cyan); }

/* View link, flush with the bottom of the box */
.ps .ps-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 10px 36px; background: var(--ps-blue); color: #fff; font-size: 17px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .2s; }
.ps .ps-btn:hover, .ps .ps-btn:focus-visible { background: var(--ps-blue-dark); color: #fff; }
.ps .ps-btn svg { font-size: 22px; transition: transform .2s; }
.ps .ps-btn:hover svg { transform: translateX(5px); }

/* Dark panel: tabs across the top, the chosen text or list below, range links on the right */
.ps-about { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); margin-top: 40px; background: linear-gradient(120deg, var(--ps-navy) 0%, #1b2b63 100%); color: #fff; scroll-margin-top: calc(var(--sh-offset, 90px) + 16px); }
.ps-tabs { grid-column: 1 / -1; display: flex; gap: 0 44px; padding: 0 48px; border-bottom: 1px solid var(--ps-rule); }
.ps .ps-tab { margin: 0 0 -1px; padding: 28px 0 22px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: rgba(255,255,255,.62); font: 700 19px/1.25 "Open Sans", system-ui, sans-serif; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s; }
.ps .ps-tab:hover, .ps .ps-tab:focus { background: none; color: #fff; }
.ps .ps-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--ps-cyan); }

.ps-tabpanels { display: grid; align-items: center; padding: 32px 56px 38px 48px; }
.ps-tabpanel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.ps-tabpanel.is-active { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.ps-tabpanel p { font-size: 18px; line-height: 1.75; color: rgba(255,255,255,.9); text-wrap: pretty; }

.ps-links { display: flex; flex-direction: column; justify-content: center; padding: 20px 48px !important; border-left: 1px solid var(--ps-rule); }
.ps-links li + li { border-top: 1px solid var(--ps-rule); }
.ps .ps-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: color .2s; }
.ps .ps-links a:hover, .ps .ps-links a:focus-visible { color: var(--ps-cyan); }
.ps .ps-links svg { font-size: 22px; color: var(--ps-cyan); transition: transform .2s; }
.ps .ps-links a:hover svg { transform: translateX(5px); }

@media (max-width: 1240px) {
  .ps-wrap { padding-block: 60px 64px; }
  .ps-cards { gap: 24px; margin-top: 40px; }
  .ps-body { padding: 22px 26px 26px; }
  .ps .ps-range { font-size: 17px; }
  .ps .ps-btn { padding-inline: 26px; font-size: 16px; }
  .ps .ps-toggle { top: 16px; left: 16px; }
  .ps-reveal { padding: 94px 34px 28px; }
  .ps .ps-reveal-title { font-size: 22px; }
  .ps-features { margin-top: 18px !important; }
  .ps-features > li { font-size: 16px; }
  .ps-features > li + li { margin-top: 8px; }
  .ps-features ul li { font-size: 15px; }
  .ps-about { margin-top: 24px; }
  .ps-tabs { gap: 0 30px; padding-inline: 32px; }
  .ps .ps-tab { font-size: 17px; padding: 24px 0 18px; }
  .ps-tabpanels { padding: 30px 36px 34px 32px; }
  .ps-tabpanel p { font-size: 17px; }
  .ps-links { padding: 16px 32px !important; }
  .ps .ps-links a { font-size: 16px; padding: 18px 0; }
}

/* Narrower boxes: the list can be taller than the box, so the open list sets the height */
@media (max-width: 1100px) {
  .ps-cards { align-items: start; }
  .ps-card.is-open .ps-reveal { position: relative; inset: auto; grid-area: 1 / 1 / 3 / 2; }
  .ps-card.is-open .ps-media { grid-area: 1 / 1; }
  .ps-card.is-open .ps-body { grid-area: 2 / 1; }
}

@media (max-width: 1000px) {
  .ps-about { grid-template-columns: 1fr; }
  .ps-links { border-left: 0; border-top: 1px solid var(--ps-rule); padding-block: 8px !important; }
}

@media (max-width: 767px) {
  .ps-wrap { padding-block: 48px 52px; }
  .ps-cards { grid-template-columns: 1fr; margin-top: 32px; }
  .ps-body { padding: 20px 20px 22px; }
  .ps .ps-btn { padding-inline: 20px; font-size: 15px; }
  .ps .ps-toggle { top: 12px; left: 12px; min-height: 52px; padding: 8px 18px 8px 20px; font-size: 16px; }
  .ps-reveal { padding: 84px 22px 28px; justify-content: flex-start; }
  .ps .ps-reveal-title { font-size: 20px; }
  .ps-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 0 20px; align-items: end; }
  .ps .ps-tab { font-size: 16px; padding: 20px 0 12px; white-space: normal; text-align: left; }
  .ps-tabpanels { padding: 24px 20px 28px; align-items: start; }
  .ps-tabpanel p { font-size: 16px; }
  .ps-links { padding-inline: 20px !important; }
}

/* Phones: a little more room at the screen edges */
@media (max-width: 767px) {
  .ps-wrap { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ps * { transition: none !important; animation: none !important; }
}
