/* Pulse Point product pages.
   Loaded after styles.css: the site shell (topbar, footer, type) stays as it is,
   and everything below belongs to the product. The palette is the app's own,
   taken from app/lib/app/theme.dart, so the screenshots sit in their own colours
   rather than being pasted onto the studio's. */

:root {
  --pp-bg: #0e1116;
  --pp-surface: #161b22;
  --pp-raised: #1e2530;
  --pp-border: #30394a;
  --pp-text: #e7ebf2;
  --pp-muted: #a7b2c3;
  --pp-accent: #6cb0ff;
  --pp-mint: #2fd79a;
  --pp-cyan: #22c3dd;
}

/* The product pages run wider than the studio's text pages. */

.pp-main {
  flex: 1;
  width: 100%;
  padding: 0 0 24px;
}

.pp-section {
  padding: 92px 0;
  border-top: 1px solid var(--hairline);
}

.pp-section:first-child {
  border-top: 0;
}

/* ---------- Hero ---------- */

.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 56px 64px;
  align-items: center;
  padding: 80px 0 96px;
}

.pp-hero-copy {
  max-width: 540px;
}

.pp-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
}

.pp-lockup img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: block;
  flex: none;
  border: 1px solid var(--pp-border);
}

.pp-lockup-name {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.pp-lockup-kind {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pp-accent);
}

.pp-hero h1 {
  font-size: clamp(2.2rem, 3.6vw + 1rem, 3.35rem);
}

.pp-lede {
  margin: 24px 0 0;
  max-width: 480px;
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

.pp-lede strong {
  font-weight: 400;
  color: var(--text);
}

/* ---------- Status / call to action ---------- */

.pp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: 34px 0 0;
}

.pp-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  background: var(--pp-surface);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--pp-text);
}

.pp-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--pp-mint);
  box-shadow: 0 0 0 3px rgba(47, 215, 154, 0.16);
}

.pp-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pp-accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.pp-textlink::after {
  content: "\2192";
  transition: transform 160ms ease;
}

.pp-textlink:hover::after,
.pp-textlink:focus-visible::after {
  transform: translateX(3px);
}

.pp-textlink:hover,
.pp-textlink:focus-visible {
  color: var(--pp-text);
}

.pp-textlink:focus-visible {
  outline: 1px solid var(--pp-accent);
  outline-offset: 4px;
}

/* ---------- The phone ---------- */

.pp-phone {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  padding: 9px;
  border: 1px solid var(--pp-border);
  border-radius: 40px;
  background: var(--pp-bg);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.pp-phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  border-radius: 999px;
  background: #05070a;
  z-index: 1;
}

.pp-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  padding-top: 42px;
  background: var(--pp-bg);
}

.pp-hero .pp-phone {
  max-width: 320px;
}

/* ---------- The principle ---------- */

.pp-principle {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.pp-principle blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.3vw + 1rem, 2.4rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.005em;
}

.pp-principle p {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

.pp-rule {
  display: block;
  width: 180px;
  height: 26px;
  margin: 0 auto 34px;
}

/* ---------- Feature rows ---------- */

.pp-features {
  display: flex;
  flex-direction: column;
  gap: 104px;
  padding: 100px 0;
  border-top: 1px solid var(--hairline);
}

.pp-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 72px;
  align-items: center;
}

.pp-feature:nth-child(even) .pp-feature-shot {
  order: -1;
}

.pp-feature-copy {
  max-width: 440px;
}

.pp-feature-index {
  display: block;
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pp-accent);
}

.pp-feature h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 1.9vw + 1rem, 2.1rem);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.005em;
}

.pp-feature p {
  margin: 18px 0 0;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--muted);
}

.pp-detail-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pp-detail-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
}

.pp-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--pp-accent);
}

/* ---------- The refusals ---------- */

.pp-refusals h2,
.pp-spec h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 500;
  line-height: 1.26;
}

.pp-section-intro {
  margin: 0;
  max-width: 560px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

.pp-refusal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.pp-refusal {
  padding: 26px 24px 28px;
  background: var(--bg);
}

.pp-refusal h3 {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.pp-refusal h3::before {
  content: "";
  margin-top: 0.62em;
  width: 10px;
  height: 1px;
  flex: none;
  background: var(--muted);
}

.pp-refusal p {
  margin: 10px 0 0 20px;
  font-size: 0.89rem;
  font-weight: 300;
  line-height: 1.68;
  color: var(--muted);
}

/* ---------- Specifications ---------- */

.pp-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px 40px;
  margin: 44px 0 0;
}

.pp-spec-item dt {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pp-accent);
}

.pp-spec-item dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Closing note ---------- */

.pp-note {
  max-width: 720px;
  padding: 26px 28px;
  margin: 0;
  border-left: 1px solid var(--pp-border);
  background: var(--pp-surface);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--muted);
}

.pp-note + .pp-note {
  margin-top: 18px;
}

.pp-note strong {
  font-weight: 500;
  color: var(--pp-text);
}

.pp-back {
  margin: 0 0 56px;
}

/* ---------- Legal pages ---------- */

.pp-legal {
  flex: 1;
  max-width: 740px;
  padding: 0 0 72px;
}

.pp-legal-hero {
  max-width: 740px;
  padding: 72px 0 36px;
}

.pp-legal-hero h1 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.6rem);
}

.pp-legal-meta {
  margin: 20px 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

.pp-summary {
  margin: 36px 0 0;
  padding: 28px 30px;
  border: 1px solid var(--pp-border);
  background: var(--pp-surface);
}

.pp-summary h2 {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pp-accent);
  font-family: "Inter", "Segoe UI", sans-serif;
}

.pp-summary p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--pp-text);
}

.pp-legal h2 {
  margin: 56px 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 1.6vw + 1rem, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  /* Cormorant defaults to oldstyle figures; the section numbers need lining. */
  font-variant-numeric: lining-nums;
}

.pp-legal h3 {
  margin: 34px 0 12px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
}

.pp-legal p {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.82;
  color: var(--muted);
}

.pp-legal p strong {
  font-weight: 400;
  color: var(--text);
}

.pp-legal a:not(.back-link) {
  color: var(--pp-accent);
}

.pp-legal ul {
  margin: 0 0 20px;
  padding: 0 0 0 20px;
  list-style: none;
}

.pp-legal ul li {
  position: relative;
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--muted);
}

.pp-legal ul li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0.68em;
  width: 8px;
  height: 1px;
  background: var(--pp-accent);
}

.pp-legal ul li strong {
  font-weight: 400;
  color: var(--text);
}

.pp-legal-contact {
  margin: 44px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--hairline);
}

.pp-legal-contact p {
  margin: 0;
}

.pp-legal-contact p + p {
  margin-top: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .pp-refusal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pp-hero,
  .pp-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .pp-hero {
    padding: 56px 0 72px;
  }

  .pp-feature:nth-child(even) .pp-feature-shot {
    order: 0;
  }

  .pp-features {
    gap: 76px;
    padding: 76px 0;
  }

  .pp-section {
    padding: 72px 0;
  }

  .pp-hero-copy,
  .pp-feature-copy {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .pp-phone,
  .pp-hero .pp-phone {
    max-width: 248px;
  }

  .pp-refusal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-legal-hero {
    padding: 52px 0 28px;
  }

  .pp-summary,
  .pp-note {
    padding: 22px 20px;
  }

  .pp-legal-contact {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-textlink::after {
    transition: none;
  }
}

.pp-legal-back {
  margin: 44px 0 0;
}
