/* Net Universe Portal — Figma 88:3029. Shared pieces (hero, eyebrow, h2, sub, buttons, story
   sections and grid, contact, footer) come from styles.css; only what they cannot express lives here. */

.pt-h2 {
  line-height: 1.15;
}

/* Some eyebrows here are long enough to wrap: keep the dot beside the first line. */
.pt-page .eyebrow {
  align-items: flex-start;
}

.pt-page .eyebrow::before {
  flex: 0 0 auto;
  margin-top: 4px;
}

.dark .pt-h2.is-snow {
  color: #f1f2f2;
}

/* ---------- Hero (88:3031) ---------- */

.pt-hero {
  padding: 96px 0 120px;
}

/* The photo stops 22px short of the content edge, as in the design. */
.pt-hero-grid {
  grid-template-columns: minmax(0, 622fr) minmax(0, 560fr);
  gap: 44px;
  min-height: 0;
  padding-right: calc(var(--gutter) + 22px);
}

/* Block-level so the badge takes its own 15px line, as in the design. */
.pt-hero .eyebrow {
  display: flex;
}

.pt-hero-title {
  /* 59px at 1440 as in the design, shrinking with the text column so the title keeps its three lines. */
  font-size: clamp(36px, calc(4.6vw - 7px), 59px);
  letter-spacing: 0;
}

/* Keeps a coloured closing phrase on one line instead of leaving its last word alone. */
.pt-nowrap {
  white-space: nowrap;
}

.pt-lead-next {
  margin-top: 16px;
}

/* Shared portal mock-up (1400x788): the crop keeps the whole laptop screen in the taller slot. */
.pt-hero-img {
  height: auto;
  aspect-ratio: 560 / 460;
  object-position: 44% center;
}

/* ---------- Features (88:3053) ---------- */

.pt-features-grid {
  display: grid;
  grid-template-columns: minmax(0, 558fr) minmax(0, 638fr);
  gap: 54px;
}

.story-body.pt-features-body {
  margin-top: 32px;
}

.pt-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 30px;
}

.pt-features li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid #dde2ea;
}

.pt-features li:last-child {
  border-bottom: 0;
}

.pt-features h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  color: var(--navy-deep);
}

.pt-features p {
  font-size: 14px;
  line-height: 22px;
  color: var(--gray);
}

/* The photo takes the height of the text column. */
.pt-features-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.pt-features-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- How it works (88:3093) ---------- */

.pt-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.pt-head .eyebrow {
  margin: 0;
}

.pt-head .h2 {
  text-wrap: balance;
}

.pt-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 280px));
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
}

.pt-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 115px;
  height: 1px;
  background: linear-gradient(90deg, rgba(84, 170, 71, 0) 0%, #54aa47 8%, #3294c9 92%, rgba(50, 148, 201, 0) 100%);
}

.pt-timeline li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 8px;
}

.pt-step-num {
  font-family: var(--font-head);
  font-size: 80px;
  font-weight: 800;
  line-height: 84px;
  color: var(--line);
}

.pt-step-node {
  position: relative;
  width: 23px;
  height: 23px;
  margin: 20px 0 28px;
}

.pt-timeline h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.pt-timeline p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
}

.pt-closing {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 64px;
}

.pt-closing::before {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(153, 165, 189, 0), #99a5bd 50%, rgba(153, 165, 189, 0));
}

.pt-closing p {
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
  color: #f1f2f2;
}

.pt-closing span {
  color: var(--text-muted);
}

/* ---------- Teams (88:3144) ---------- */

.story-grid.pt-team-grid {
  grid-template-columns: minmax(0, 577fr) minmax(0, 606fr);
  align-items: center;
  gap: 67px;
}

/* The laptop sits in the lower part of this photo: crop from the top. */
.pt-team-img {
  height: auto;
  aspect-ratio: 606 / 440;
  object-position: 50% 75%;
}

/* Equal text widths: each column is its padding plus an equal share of what is left. */
.pt-teams {
  display: flex;
  margin-top: 72px;
  border-top: 1px solid #e2e8f0;
}

.pt-teams li {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px 40px 0;
  border-left: 1px solid #e2e8f0;
}

.pt-teams li:first-child {
  padding-left: 0;
  border-left: 0;
}

.pt-teams h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-deep);
}

.pt-teams p {
  font-size: 14px;
  line-height: 1.6;
  /* --gray is 4.2:1 on the pale background; this shade reaches AA (4.8:1). */
  color: #646d81;
}

/* ---------- Customer API (no Figma frame: the features grid and list, without a photo) ---------- */

/* Heading top left, items on the right, closing line and button under the heading. */
.pt-api-grid {
  display: grid;
  grid-template-columns: minmax(0, 558fr) minmax(0, 638fr);
  grid-template-rows: auto 1fr;
  column-gap: 54px;
}

.pt-features.pt-api-list {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
}

.pt-api-close {
  grid-column: 1;
  grid-row: 2;
  margin-top: 40px;
}

.pt-api-close .actions {
  margin-top: 24px;
}

.pt-api-close p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy-deep);
}

/* ---------- Final CTA (88:3177) ---------- */

.story.section.pt-final {
  padding: 150px 0;
}

.story-grid.pt-final-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 566px);
  align-items: center;
  gap: 64px;
}

.pt-final-img {
  height: auto;
  aspect-ratio: 620 / 420;
}

.story-text .sub.pt-final-sub {
  line-height: 1.6;
}

.pt-final-actions {
  margin-top: 56px;
}

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

@media (max-width: 1100px) {
  .pt-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-right: var(--gutter);
  }

  .pt-hero-title {
    text-wrap: balance;
  }

  .pt-hero-img {
    max-width: 640px;
    margin: 0 auto;
  }

  .pt-features-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .pt-features-media {
    aspect-ratio: 16 / 10;
  }

  .pt-api-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .pt-features.pt-api-list,
  .pt-api-close {
    grid-column: auto;
    grid-row: auto;
  }

  .pt-features.pt-api-list {
    margin-top: 30px;
  }

  .pt-features-media img {
    object-position: 50% 62%;
  }

  .pt-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  /* The single line no longer fits the wrapped grid: each step draws its own stretch through its node. */
  .pt-timeline::before {
    content: none;
  }

  .pt-timeline li {
    position: relative;
  }

  .pt-timeline li::before {
    content: "";
    position: absolute;
    left: 11px;
    right: -24px;
    top: 115px;
    height: 1px;
    background: linear-gradient(90deg, #54aa47, #439f88);
  }

  .pt-timeline li:nth-child(even)::before {
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #439f88, #3294c9 70%, rgba(50, 148, 201, 0));
  }

  .story-grid.pt-team-grid,
  .story-grid.pt-final-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .pt-team-img,
  .pt-final-img {
    aspect-ratio: 16 / 10;
  }

  .pt-teams {
    margin-top: 56px;
  }

  .pt-teams li {
    padding: 32px 24px 0;
  }

  .story.section.pt-final {
    padding: 80px 0;
  }
}

/* Just above the phone layout the capped hero photo would sit a few pixels short of the text column. */
@media (max-width: 860px) {
  .pt-hero-img {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .pt-teams {
    flex-direction: column;
    margin-top: 40px;
  }

  .pt-teams li,
  .pt-teams li:first-child {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .pt-teams li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .pt-hero {
    padding: 40px 0 64px;
  }

  .story.section,
  .story.section.pt-final {
    padding: 64px 0;
  }

  .pt-step-num {
    font-size: 56px;
    line-height: 1;
  }

  .pt-step-node {
    margin: 16px 0 20px;
  }

  .pt-timeline li::before {
    top: 83px;
  }

  /* Long eyebrows wrap on a phone: tighten the tracking so most fit on one line. */
  .pt-page .eyebrow {
    letter-spacing: 3px;
  }

  .pt-final-actions {
    margin-top: 40px;
  }
}

@media (max-width: 560px) {
  .pt-features-media {
    aspect-ratio: 4 / 3;
  }

  .pt-timeline {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .pt-timeline li::before,
  .pt-timeline li:nth-child(even)::before {
    left: 11px;
    right: 0;
    background: linear-gradient(90deg, #54aa47, #3294c9 70%, rgba(50, 148, 201, 0));
  }

  .pt-closing p {
    font-size: 18px;
  }
}
