/* ================================================================
   isoplate.css — IsoPlate product page styles
   Depends on: tokens.css, global.css, home.css
   ================================================================ */

/* Active nav link */
.primary-nav a[aria-current="page"] {
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — cyan-forward palette to differentiate from security pages
═══════════════════════════════════════════════════════════════ */

.iso-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-24);
  text-align: center;
}

/* Dual glow: cyan top-right + indigo bottom-left */
.iso-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 70% -5%,  rgb(34 211 238 / 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 20% 110%,  rgb(99 102 241 / 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Faint grid — slightly tighter pitch for the cyan feel */
.iso-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(34 211 238 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(34 211 238 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: iso-grid-breathe 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes iso-grid-breathe {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

/* Hero content stack */
.iso-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

/* Cyan tint badge override */
.iso-badge {
  border-color: rgb(34 211 238 / 0.4);
  background-color: rgb(34 211 238 / 0.08);
  color: var(--color-cyan);
}

/* Product wordmark above h1 */
.iso-wordmark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.iso-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 16ch;
}

.iso-hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-muted);
  max-width: 54ch;
  text-align: center;
}

/* Cyan primary button */
.btn-cyan {
  background-color: var(--color-cyan);
  color: #0c1a2b;
  font-weight: 600;
  box-shadow: 0 0 24px rgb(34 211 238 / 0.25);
}
.btn-cyan:hover {
  background-color: #06b6d4;
  color: #0c1a2b;
  box-shadow: 0 0 32px rgb(34 211 238 / 0.35);
}

@media (max-width: 767px) {
  .iso-br { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   PROBLEM / SOLUTION
═══════════════════════════════════════════════════════════════ */

.ps-section {
  padding-block: var(--space-24);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.ps-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8);
  background-color: var(--color-surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius-lg);
  border-top-width: 3px;
}

.ps-card--problem {
  border-top-color: rgb(248 113 113 / 0.6);
}

.ps-card--solution {
  border-top-color: var(--color-cyan);
}

.ps-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.ps-card--problem .ps-card-icon {
  background-color: rgb(248 113 113 / 0.1);
}

.ps-card--solution .ps-card-icon {
  background-color: rgb(34 211 238 / 0.08);
}

/* Override global h2 size for problem/solution headings */
.ps-heading {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

.ps-card p {
  max-width: none;
  font-size: var(--text-base);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .ps-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════════ */

.features-section {
  padding-block: var(--space-24);
  background-color: var(--color-surface);
  border-top: 1px solid rgb(255 255 255 / 0.06);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  /* Anchor target offset so sticky nav doesn't hide content */
  scroll-margin-top: 80px;
}

/* Override .section-header h2 for this section */
.features-section .section-header h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  letter-spacing: -0.025em;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--color-bg);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.feature-card:hover {
  border-color: rgb(34 211 238 / 0.3);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(34 211 238 / 0.08);
  transform: translateY(-2px);
}

/* Accent card gets a subtle cyan tint */
.feature-card--accent {
  border-color: rgb(34 211 238 / 0.2);
  background-color: rgb(34 211 238 / 0.03);
}

.feature-card--accent:hover {
  border-color: rgb(34 211 238 / 0.45);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(34 211 238 / 0.08);
  border: 1px solid rgb(34 211 238 / 0.2);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* Override global h3 */
.feature-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.75;
  max-width: none;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   APP STORE
═══════════════════════════════════════════════════════════════ */

.appstore-section {
  padding-block: var(--space-24);
}

.appstore-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  text-align: center;
}

.appstore-inner h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  letter-spacing: -0.025em;
}

/* Badge row */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  min-width: 180px;
  background-color: var(--color-surface);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.store-badge:hover {
  background-color: rgb(255 255 255 / 0.06);
  border-color: rgb(34 211 238 / 0.4);
  box-shadow: 0 0 16px rgb(34 211 238 / 0.1);
  color: var(--color-text);
}

.store-badge-icon {
  flex-shrink: 0;
  color: var(--color-text);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.store-small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-large {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}

.appstore-note {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: none;
  text-align: center;
}

.appstore-note a {
  color: var(--color-cyan);
  font-weight: 500;
}
.appstore-note a:hover {
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════════
   LINK BANNER — cyan gradient override
═══════════════════════════════════════════════════════════════ */

/* home.css has .cta-banner with an indigo gradient.
   We layer a cyan-shifted override for the IsoPlate page. */
.iso-cta-banner {
  background: linear-gradient(130deg, #164e63 0%, #0e7490 35%, #0891b2 65%, #22d3ee 100%);
}

.iso-cta-banner h2 {
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.25);
}
