/* Certified Pet Parent — public marketing site (website/ only) */

:root {
  --navy: #10223a;
  --navy-deep: #0c1828;
  --ivory: #f5f7f8;
  --ivory-card: #ffffff;
  --teal: #4db6ac;
  --teal-deep: #2f8f86;
  --gold: #d4af37;
  --gold-soft: rgba(196, 168, 110, 0.7);
  --ink: #10223a;
  --muted: #5b6b7c;
  --line: rgba(16, 34, 58, 0.1);
  --shadow: 0 10px 30px rgba(16, 34, 58, 0.08);
  --radius: 18px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ui: Inter, "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 24, 40, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.65rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #f7f6f2;
  min-width: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand__tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  text-decoration: none;
  color: rgba(247, 246, 242, 0.86);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--ivory);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--navy {
  background: var(--navy);
  color: #f7f6f2;
}

.btn--ghost {
  background: transparent;
  color: #f7f6f2;
  border-color: rgba(247, 246, 242, 0.35);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: rgba(16, 34, 58, 0.22);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 246, 242, 0.25);
  border-radius: 12px;
  background: transparent;
  color: #f7f6f2;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav__panel {
  display: none;
  padding: 0 0 1rem;
}

.site-nav.is-open .site-nav__panel,
.site-nav.is-open .site-nav__panel[hidden] {
  display: block;
}

.site-nav__panel .site-nav__links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding-bottom: 0.75rem;
}

.site-nav__panel .site-nav__links a {
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav__panel .btn {
  width: 100%;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .site-nav__links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .site-nav__panel {
    display: none !important;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: #f7f6f2;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 3rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero__line {
  display: block;
}

.hero__lede {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: 1.08rem;
  color: rgba(247, 246, 242, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero__note {
  margin: 1rem 0 0;
  color: rgba(247, 246, 242, 0.62);
  font-size: 0.92rem;
}

.hero__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.35);
  aspect-ratio: 4 / 3;
  background: #16304f;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    padding: 3.5rem 0 4.25rem;
  }
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: #eef2f4;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section__kicker {
  margin: 0 0 0.55rem;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  gap: 1rem;
}

.step {
  background: var(--ivory-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow);
}

.step__num {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .step {
    padding: 1.2rem 1.05rem;
  }

  .step h3 {
    font-size: 1.12rem;
  }
}

/* Results */
.results-layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.results-media {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  background: #fff;
  box-shadow: var(--shadow);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--tall {
  aspect-ratio: 4 / 5;
}

.frame--wide {
  aspect-ratio: 16 / 10;
}

.frame--lifestyle {
  aspect-ratio: 3 / 2;
}

.frame--lifestyle img {
  object-position: 50% 42%;
}

.frame--results {
  aspect-ratio: 3 / 2;
}

.frame--results img.phone-scene__photo {
  object-position: center center;
}

.frame--results-secondary {
  aspect-ratio: 3 / 2;
}

.frame--results-secondary img {
  object-position: 48% 42%;
}

/* —— Primary phone: licensed stock photo + CSS glass overlay (no raster composite) —— */
.phone-scene {
  position: relative;
  isolation: isolate;
}

.phone-scene__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.phone-scene__screen {
  /*
   * Tunable glass corners (percent of the photo box).
   * phone-screen.js maps .phone-scene__plane → this quad via matrix3d.
   * Edit these vars only — do not regenerate images.
   */
  --ui-object-position: center top;
  --ui-radius: 11% / 5.5%;
  --ui-scale: 1;
  --ui-shift-x: 4px;
  --ui-origin-x: 50%;
  --ui-origin-y: 35%;

  --glass-tl-x: 66.35%;
  --glass-tl-y: 41.45%;
  --glass-tr-x: 77.05%;
  --glass-tr-y: 40.95%;
  --glass-br-x: 77.35%;
  --glass-br-y: 74.55%;
  --glass-bl-x: 66.35%;
  --glass-bl-y: 74.85%;

  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.phone-scene__plane {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  border-radius: var(--ui-radius);
  will-change: transform;
  /* Soft screen glow so the overlay reads as glass, not a sticker */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-scene__ui {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover; /* crop — never stretch the homepage UI */
  object-position: var(--ui-object-position);
  transform: translateX(var(--ui-shift-x)) scale(var(--ui-scale));
  transform-origin: var(--ui-origin-x) var(--ui-origin-y);
}

.result-cards {
  display: grid;
  gap: 0.75rem;
}

.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.result-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .results-layout {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 2rem;
    align-items: start;
  }

  .frame--results {
    aspect-ratio: 3 / 2;
  }
}

/* Certificate */
.cert-layout {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.cert-sample {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}

.cert-preview {
  position: relative;
  transform: rotate(1.5deg);
}

.cert-preview__photo {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 34, 58, 0.14);
  border: 1px solid var(--gold-soft);
  display: block;
}

/* —— Certificate classification: text only over baked decorative frame —— */
.cert-enabler {
  /* Tune to center text inside the existing gold classification cartouche */
  --enabler-top: 72.8%;
  --enabler-left: 12%;
  --enabler-width: 76%;
  --enabler-title-size: clamp(0.86rem, 2.83vw, 1.08rem);
  --enabler-desc-size: clamp(0.46rem, 1.51vw, 0.56rem);
  --enabler-gap: 0.4em;
  --enabler-desc-nudge: -4px;
  --enabler-navy: #1a2744;
  --enabler-gold: #c4a35a;
  --enabler-rule: 0.32em;

  position: absolute;
  z-index: 1;
  top: var(--enabler-top);
  left: var(--enabler-left);
  width: var(--enabler-width);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--enabler-gap);
}

.cert-enabler__title {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--enabler-title-size);
  font-weight: 700;
  color: var(--enabler-navy);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: 0;
  box-shadow: none;
}

.cert-enabler__title::after {
  content: "";
  display: none;
  width: 5.5em;
  height: 1.35px;
  margin: var(--enabler-rule) auto 0;
  background: var(--enabler-gold);
}

.cert-enabler__desc {
  margin: var(--enabler-desc-nudge) 0 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--enabler-desc-size);
  font-style: italic;
  font-weight: 400;
  color: var(--enabler-navy);
  line-height: 1.15;
  max-width: 95%;
  background: none;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.cert-enabler__line {
  display: block;
  white-space: nowrap;
}

.sample-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  background: var(--navy);
  color: #f7f6f2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
}

/* —— Photo / no-photo clarity (does not affect locked cert preview) —— */
.cert-clarity {
  margin: 1rem auto 0;
  max-width: 22rem;
  text-align: center;
}

.cert-clarity__example {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.35;
}

.cert-clarity__choice {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.cert-nophoto {
  margin: 1.15rem auto 0;
  width: min(38%, 9.75rem);
  text-align: center;
}

.cert-nophoto__label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cert-nophoto__stage {
  position: relative;
  container-type: inline-size;
}

.cert-nophoto__thumb {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow);
  display: block;
}

/* Classification overlay — no-photo thumbnail only (independent of locked main cert) */
.cert-nophoto-enabler {
  --np-enabler-top: 72.8%;
  --np-enabler-left: 12%;
  --np-enabler-width: 76%;
  --np-enabler-gap: 0.35em;
  --np-enabler-desc-nudge: -6px;
  --np-enabler-navy: #1a2744;

  position: absolute;
  z-index: 1;
  top: var(--np-enabler-top);
  left: var(--np-enabler-left);
  width: var(--np-enabler-width);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--np-enabler-gap);
}

.cert-nophoto-enabler__title {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 4.05cqi;
  font-weight: 700;
  color: var(--np-enabler-navy);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: 0;
  box-shadow: none;
}

.cert-nophoto-enabler__desc {
  margin: var(--np-enabler-desc-nudge) 0 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15cqi;
  font-style: italic;
  font-weight: 400;
  color: var(--np-enabler-navy);
  line-height: 1.15;
  max-width: 95%;
  background: none;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08em;
}

.cert-nophoto-enabler__line {
  display: block;
  white-space: nowrap;
}

.cert-nophoto__note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.price {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
}

.price span {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.benefits {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.benefits li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ink);
}

.benefits li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
}

@media (min-width: 900px) {
  .cert-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }

  .cert-sample {
    margin-inline: 0;
  }
}

/* Humor */
.humor {
  display: grid;
  gap: 1.25rem;
}

.humor-card {
  background: var(--navy);
  color: #f7f6f2;
  border-radius: 22px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.humor-card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.humor-card p {
  margin: 0;
  color: rgba(247, 246, 242, 0.82);
  max-width: 40rem;
}

.humor-card .punch {
  margin-top: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

@media (min-width: 900px) {
  .humor {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    grid-template-areas:
      "copy cat"
      "wall wall";
    gap: 1.35rem;
    align-items: stretch;
  }

  .humor-card {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.75rem;
  }

  .frame--lifestyle {
    grid-area: cat;
  }

  .humor__wall {
    grid-area: wall;
  }
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 4.25rem 0 4.5rem;
  background:
    radial-gradient(ellipse at top, rgba(77, 182, 172, 0.12), transparent 55%),
    var(--ivory);
}

.final-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.final-cta p {
  margin: 0.85rem auto 0;
  max-width: 32rem;
  color: var(--muted);
}

.final-cta .btn {
  margin-top: 1.4rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 246, 242, 0.78);
  padding: 2.5rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer a {
  color: #f7f6f2;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__meta {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer__copy {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(247, 246, 242, 0.55);
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* Legal / support pages */
.page-hero {
  background: var(--navy);
  color: #f7f6f2;
  padding: 2.4rem 0 2.2rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.page-hero p {
  margin: 0.65rem 0 0;
  color: rgba(247, 246, 242, 0.72);
}

.prose {
  padding: 2.5rem 0 4rem;
}

.prose-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  color: var(--teal-deep);
}

.faq {
  display: grid;
  gap: 0.85rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

.faq p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.support-contact {
  margin-top: 2rem;
  padding: 1.25rem 1.2rem;
  border-radius: 16px;
  background: var(--navy);
  color: #f7f6f2;
}

.support-contact a {
  color: var(--teal);
}

@media (min-width: 720px) {
  .prose-card {
    padding: 2rem 2.25rem;
  }
}
