:root {
  --portal-red: #b9281e;
  --portal-dark-red: #8f1511;
  --portal-ink: #0d0d0d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--portal-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: #000;
  background: #fff;
}

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

.portal-sony-strip {
  height: 42px;
  padding: 5px 17px 0;
  color: #fff;
  background: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: right;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(370px, 2fr);
  align-items: stretch;
  min-height: 720px;
  background: #f4f4f4;
}

.portal-hero__visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 42px 0 0 24px;
}

.portal-logo {
  width: min(600px, 85%);
}

.portal-tagline {
  width: min(610px, 86%);
  margin-top: 15px;
}

.portal-hero-device {
  align-self: center;
  width: min(860px, 98%);
  margin-top: auto;
}

.portal-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 60px 30px;
  text-align: center;
}

.portal-hero__actions p {
  margin: 0;
  font-size: 18px;
}

.portal-hero__actions > a:not(.portal-primary) {
  color: var(--portal-red);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.portal-primary {
  display: inline-block;
  padding: 15px 24px;
  border: 0;
  color: #fff;
  background: var(--portal-red);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.portal-mobile-label {
  margin-top: 6px !important;
}

.portal-store-row,
.portal-qr-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.portal-store {
  min-width: 142px;
  padding: 5px 10px;
  border-radius: 7px;
  color: #fff;
  background: #050505;
  font-size: 10px;
  line-height: 1.05;
  text-align: left;
}

.portal-store strong {
  font-size: 17px;
}

.portal-qr-row img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.portal-register-link {
  margin-top: 8px;
  color: var(--portal-red);
  font-weight: 400 !important;
}

.portal-section {
  position: relative;
  overflow: hidden;
  padding: 72px max(6vw, 28px);
}

.portal-section h1,
.portal-section h2 {
  margin: 0 auto 40px;
  font-size: clamp(39px, 4.1vw, 65px);
  line-height: 1.04;
  text-align: center;
}

.portal-section h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 16px auto 0;
  background: currentColor;
}

.portal-section h1 span,
.portal-section--advances h2,
.portal-section--started h2 {
  color: var(--portal-red);
}

.portal-section--earnings {
  min-height: 990px;
  padding-bottom: 0;
  text-align: center;
}

.portal-section--earnings > p {
  width: min(100%, 1160px);
  margin: 0 auto 23px;
}

.portal-intro {
  margin-bottom: 58px !important;
}

.portal-phones {
  width: min(950px, 92%);
  margin: 60px auto -35px;
}

.portal-section--cashout {
  min-height: 900px;
  padding-top: 90px;
  color: #fff;
  background: var(--portal-red);
  text-align: center;
}

.portal-section--cashout > p {
  width: min(100%, 940px);
  margin: 0 auto 18px;
}

.portal-section--cashout h2 {
  margin-top: 58px;
  font-size: clamp(32px, 3vw, 46px);
}

.portal-data-device {
  width: min(1020px, 90%);
  margin: 38px auto -160px;
  padding: 35px;
  background: linear-gradient(90deg, #cfd1d4, #7b7d80);
}

.portal-section--analytics {
  min-height: 720px;
  padding-top: 130px;
  background: #fff;
}

.portal-section--analytics h2 {
  font-size: clamp(39px, 4vw, 60px);
}

.portal-section--analytics h2::after,
.portal-section--advances h2::after {
  background: var(--portal-red);
}

.portal-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  width: min(100%, 1160px);
  margin: 0 auto;
  text-align: center;
}

.portal-analytics-grid img {
  width: min(100%, 330px);
  margin: 0 auto;
}

.portal-analytics-grid h3 {
  margin: 14px 0 10px;
  text-transform: uppercase;
}

.portal-analytics-grid p {
  margin: 0;
}

.portal-section--trends {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  min-height: 770px;
  padding: 0 4vw 0 0;
  color: #fff;
  background: var(--portal-red);
}

.portal-trends-desktop {
  align-self: end;
  width: 100%;
}

.portal-trends-copy {
  padding: 65px 2vw;
  text-align: center;
}

.portal-trends-copy h2 {
  color: #fff;
  text-align: center;
}

.portal-trends-copy p {
  margin: 0 auto 22px;
  max-width: 510px;
}

.portal-section--advances {
  display: grid;
  grid-template-columns: 250px minmax(360px, 1fr) 250px;
  align-items: end;
  gap: 32px;
  min-height: 700px;
  padding: 62px 4vw 0;
  background: #f2f2f2;
  text-align: center;
}

.portal-section--advances > img {
  max-height: 610px;
  object-fit: contain;
  object-position: bottom;
}

.portal-section--advances > img:first-child {
  transform: translateX(-12%);
}

.portal-section--advances > img:last-child {
  transform: translateX(12%);
}

.portal-section--advances > div {
  align-self: center;
  padding-bottom: 60px;
}

.portal-section--advances h2 {
  font-size: clamp(39px, 4vw, 59px);
}

.portal-section--advances p {
  margin: 0 auto 18px;
  max-width: 680px;
}

.portal-section--advances .portal-primary {
  margin-top: 20px;
}

.portal-section--started {
  min-height: 590px;
  color: #fff;
  background: var(--portal-red);
  text-align: center;
}

.portal-section--started h2 {
  color: #fff;
}

.portal-section--started h2::after {
  background: #fff;
}

.portal-section--started > p {
  width: min(100%, 1100px);
  margin: 0 auto 48px;
}

.portal-tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(100%, 1300px);
  margin: 0 auto;
}

.portal-tutorial-grid article {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.portal-tutorial-grid article > p {
  margin: 0;
}

.portal-tutorial-grid span {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  min-height: 170px;
  margin-bottom: 18px;
  padding: 16px;
  background: linear-gradient(135deg, #5e0707, #a91510);
  text-align: left;
  text-transform: none;
}

.portal-tutorial-grid span strong {
  font-size: 23px;
  line-height: 1.05;
}

.portal-tutorial-grid span img {
  width: 100%;
}

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 145px;
  padding: 42px max(5vw, 24px);
  color: #111;
  background: #fff;
  font-size: 12px;
}

.portal-footer img {
  width: 230px;
}

.portal-footer p {
  margin: 0;
  text-align: right;
}

.portal-footer a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 900px) {
  .portal-hero {
    grid-template-columns: 1fr;
  }

  .portal-hero__visual {
    padding: 35px 20px 0;
  }

  .portal-logo,
  .portal-tagline {
    align-self: center;
    max-width: calc(100vw - 40px);
  }

  .portal-hero__actions {
    padding: 50px 24px;
  }

  .portal-section--earnings {
    min-height: 0;
  }

  .portal-data-device {
    margin-bottom: -80px;
  }

  .portal-section--analytics {
    padding-top: 90px;
  }

  .portal-section--trends {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .portal-trends-copy {
    grid-row: 1;
    padding: 60px 28px 20px;
  }

  .portal-section--advances {
    grid-template-columns: 1fr minmax(280px, 2fr) 1fr;
  }

  .portal-tutorial-grid span {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 15px;
  }

  .portal-sony-strip {
    height: 35px;
    font-size: 16px;
  }

  .portal-hero__actions p br {
    display: none;
  }

  .portal-hero__actions,
  .portal-section,
  .portal-footer {
    overflow-wrap: anywhere;
  }

  .portal-store {
    min-width: 120px;
  }

  .portal-section {
    padding: 48px 22px;
  }

  .portal-section h1,
  .portal-section h2 {
    font-size: 34px;
  }

  .portal-section--earnings {
    padding-bottom: 0;
  }

  .portal-phones {
    width: 118%;
    max-width: none;
    margin-left: -9%;
  }

  .portal-section--cashout {
    min-height: 0;
  }

  .portal-data-device {
    width: 115%;
    max-width: none;
    margin: 35px -7.5% -70px;
    padding: 15px;
  }

  .portal-analytics-grid,
  .portal-tutorial-grid {
    grid-template-columns: 1fr;
  }

  .portal-analytics-grid {
    gap: 50px;
  }

  .portal-section--trends {
    padding: 0;
  }

  .portal-section--advances {
    grid-template-columns: 1fr;
    padding: 48px 22px 0;
  }

  .portal-section--advances > div {
    grid-row: 1;
    padding-bottom: 20px;
  }

  .portal-section--advances > img {
    width: 46%;
    max-height: 440px;
  }

  .portal-section--advances > img:first-child {
    grid-row: 2;
    justify-self: start;
  }

  .portal-section--advances > img:last-child {
    grid-row: 2;
    justify-self: end;
    margin-top: -100%;
  }

  .portal-footer {
    flex-direction: column;
    gap: 28px;
  }

  .portal-footer p {
    text-align: center;
  }
}

/* Contained phone layout: every visual stays inside the viewport. */
@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .portal-sony-strip {
    height: 38px;
    padding: 8px 14px 0;
    font-size: 16px;
  }

  .portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .portal-hero__visual {
    min-width: 0;
    padding: 26px 16px 0;
  }

  .portal-logo,
  .portal-tagline,
  .portal-hero-device {
    width: 100%;
    max-width: 100%;
  }

  .portal-logo {
    width: min(100%, 380px);
  }

  .portal-tagline {
    width: min(100%, 390px);
    margin-top: 10px;
  }

  .portal-hero-device {
    margin-top: 24px;
  }

  .portal-hero__actions {
    gap: 14px;
    padding: 34px 16px 40px;
  }

  .portal-hero__actions p,
  .portal-hero__actions > a:not(.portal-primary) {
    font-size: 15px;
  }

  .portal-primary {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .portal-store-row,
  .portal-qr-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .portal-store {
    min-width: 0;
    width: min(46%, 150px);
  }

  .portal-qr-row img {
    width: 78px;
    height: 78px;
  }

  .portal-section {
    min-height: 0;
    padding: 42px 16px;
  }

  .portal-section h1,
  .portal-section h2,
  .portal-section--analytics h2,
  .portal-section--advances h2 {
    margin-bottom: 28px;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .portal-section p {
    font-size: 15px;
    line-height: 1.45;
  }

  .portal-section--earnings,
  .portal-section--cashout,
  .portal-section--analytics,
  .portal-section--started {
    min-height: 0;
  }

  .portal-intro {
    margin-bottom: 32px !important;
  }

  .portal-phones,
  .portal-data-device {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .portal-phones {
    margin-top: 32px;
    margin-bottom: -12px;
  }

  .portal-data-device {
    margin-top: 30px;
    margin-bottom: -28px;
    padding: 10px;
  }

  .portal-section--analytics {
    padding-top: 66px;
  }

  .portal-analytics-grid,
  .portal-tutorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .portal-analytics-grid img {
    max-width: 220px;
  }

  .portal-section--trends {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
  }

  .portal-trends-copy {
    grid-row: 1;
    padding: 42px 16px 20px;
  }

  .portal-trends-desktop {
    width: 100%;
    max-width: 100%;
  }

  .portal-section--advances {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
    padding: 42px 16px 0;
  }

  .portal-section--advances > div {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 16px;
  }

  .portal-section--advances > img,
  .portal-section--advances > img:first-child,
  .portal-section--advances > img:last-child {
    grid-row: 2;
    align-self: end;
    width: 100%;
    max-width: 100%;
    max-height: 330px;
    margin: 0;
    transform: none;
  }

  .portal-section--advances > img:first-child {
    grid-column: 1;
  }

  .portal-section--advances > img:last-child {
    grid-column: 2;
  }

  .portal-tutorial-grid span {
    min-height: 132px;
  }

  .portal-footer {
    min-height: 0;
    padding: 30px 16px;
  }

  .portal-footer img {
    width: min(190px, 70vw);
  }

  .portal-footer p {
    font-size: 11px;
    line-height: 1.35;
  }
}
