/* Public homepage — dedicated layout for welcome.html */
:root {
  --ph-gray-600: #5F6570;
  --ph-gray-700: #3D424C;
  --ph-max: 1120px;
  --ph-header-h: 72px;
}

body.public-home {
  background: #FFFBF7;
  color: var(--gray-900);
}

.ph-skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: #fff;
  color: var(--gray-900);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.ph-skip:focus {
  top: 12px;
}

/* Header */
.ph-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(10px);
}

.ph-header__inner {
  position: relative;
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 12px 20px;
  min-height: var(--ph-header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.ph-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.ph-brand img,
.ph-brand__logo {
  height: 36px;
  width: auto;
  display: block;
}

.ph-brand__name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.ph-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ph-nav a {
  text-decoration: none;
  color: var(--ph-gray-700);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}

.ph-nav a:hover {
  color: var(--orange-600);
  background: #FFF7ED;
}

.ph-nav__cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 16px !important;
}

.ph-nav__cta:hover {
  opacity: 0.95;
  color: #fff !important;
}

.ph-nav__toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.ph-hero {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.ph-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEF3C7;
  color: #C2410C;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.ph-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ph-lead {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--ph-gray-600);
  max-width: 36rem;
  line-height: 1.65;
}

.ph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 15px;
}

.ph-btn--primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
}

.ph-btn--primary:hover {
  opacity: 0.95;
}

.ph-btn--ghost {
  background: #fff;
  color: var(--gray-900);
  border: 1.5px solid var(--gray-200);
}

.ph-btn--ghost:hover {
  border-color: var(--orange-500);
}

.ph-note {
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
}

.ph-portrait {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.ph-portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: contain;
}

/* Sections */
.ph-section {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 56px 20px;
}

.ph-section--alt {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  max-width: none;
}

.ph-section--alt > .ph-section__inner {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 56px 20px;
}

.ph-section h2 {
  margin: 0 0 10px;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.ph-section__intro {
  margin: 0 0 32px;
  color: var(--ph-gray-600);
  max-width: 42rem;
  font-size: 1.05rem;
}

/* Product grid */
.ph-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.ph-card {
  background: linear-gradient(160deg, #fff 0%, #fff9f0 100%);
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ph-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange-500);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}

.ph-card__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
}

.ph-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.ph-card p {
  margin: 0;
  color: var(--ph-gray-600);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

/* Steps */
.ph-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ph-step {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
}

.ph-step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.ph-step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.ph-step p {
  margin: 0;
  color: var(--ph-gray-600);
  font-size: 14px;
  line-height: 1.5;
}

/* Meet ISA */
.ph-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ph-prose h2 {
  margin: 0 0 16px;
}

.ph-prose p {
  margin: 0 0 14px;
  color: var(--ph-gray-700);
  line-height: 1.65;
}

.ph-prose ul {
  margin: 16px 0 0;
  padding-left: 1.2em;
  color: var(--ph-gray-700);
}

.ph-prose li {
  margin-bottom: 8px;
}

.ph-isa-figure {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  margin: 0 auto;
}

.ph-isa-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* CTA band */
.ph-cta-band {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  text-align: center;
  max-width: none;
}

.ph-cta-band > .ph-section__inner {
  max-width: var(--ph-max);
  margin: 0 auto;
  padding: 56px 20px;
}

.ph-cta-band h2,
.ph-cta-band p {
  color: #fff;
}

.ph-cta-band .ph-section__intro {
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.ph-cta-band .ph-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ph-cta-band .ph-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.ph-cta-band .ph-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer */
.ph-footer {
  background: var(--gray-900);
  color: #E4E5E8;
  padding: 40px 20px 28px;
}

.ph-footer__inner {
  max-width: var(--ph-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.ph-footer__brand h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 15px;
}

.ph-footer__brand p {
  margin: 0;
  font-size: 14px;
  color: #8E939E;
}

.ph-footer__tagline {
  margin-top: 8px !important;
  max-width: 16rem;
}

.ph-footer__nav-title {
  margin: 0 0 12px;
  color: #8E939E;
  font-size: 13px;
  font-weight: 600;
}

.ph-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ph-footer__nav li {
  margin-bottom: 8px;
}

.ph-footer__meta p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #8E939E;
}

.ph-footer h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 15px;
}

.ph-footer p {
  margin: 0;
  font-size: 14px;
  color: #8E939E;
}

.ph-footer a {
  color: #E4E5E8;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.ph-footer a:hover {
  color: #fff;
}

.ph-footer__copy {
  max-width: var(--ph-max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid #3D424C;
  font-size: 13px;
  color: #8E939E;
}

/* Responsive */
@media (max-width: 900px) {
  .ph-hero,
  .ph-grid,
  .ph-steps,
  .ph-split,
  .ph-footer__inner {
    grid-template-columns: 1fr;
  }

  .ph-nav__toggle {
    display: inline-flex;
  }

  .ph-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    margin-left: 0;
  }

  .ph-nav.is-open {
    display: flex;
  }

  .ph-isa-figure {
    max-width: 280px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .ph-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ph-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .ph-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
