/* ==========================================================
   WearPRO landing page
   Desktop-first. Mobile layout kicks in at <= 767px.
   ========================================================== */

@font-face {
  font-family: "bold";
  src: url("../public/font/Montserrat-Bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "extrabold";
  src: url("../public/font/Montserrat-ExtraBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "light";
  src: url("../public/font/Montserrat-Light.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "medium";
  src: url("../public/font/Montserrat-Medium.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "regular";
  src: url("../public/font/Montserrat-Regular.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --red: #e8232c;
  --black: #000000;
  --card: #342a25;
  --muted: #cfc7c1;
  --beige: #f1ece7;
  --container: 1280px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: #fff;
  background: #000;
  line-height: 1.5;
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-red {
  color: var(--red);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Placeholders (images) ---------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--ar, 1 / 1);
  padding: 8px;
  overflow: hidden;
  border-radius: 12px;
  border: 1.5px dashed rgba(150, 150, 150, 0.65);
  background: rgba(128, 128, 128, 0.16);
  color: rgba(150, 150, 150, 0.95);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}
.ph::after {
  content: attr(data-ph);
  position: relative;
  z-index: 0;
}
@media (max-width: 767px) {
  .ph[data-ph-m]::after {
    content: attr(data-ph-m);
  }
}
.ph picture {
  display: contents;
}
.ph img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ph img.is-missing {
  display: none;
}
.ph:has(img:not(.is-missing)) {
  border-color: transparent;
  background: none;
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Shared headings ---------- */
.section-title {
  font-family: extrabold;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto 64px;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  background: radial-gradient(ellipse at 50% 55%, #1c1308 0%, #000 62%);
  padding: 28px 0 56px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
}
.brand .ph {
  width: 150px;
  border-radius: 6px;
}
.brand__divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.65);
}

.hero__title {
  font-family: extrabold;
  max-width: 840px;
  margin: 0 auto 24px;
  text-transform: uppercase;
  line-height: 1.05;
}
.hero__kicker {
  display: block;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero__accent {
  display: block;
  font-size: 86px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.01em;
}

.hero__banner {
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
}
.hero__banner .ph {
  --ar: 1440 / 620;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.hero__copy {
  font-family: medium;
  max-width: 760px;
  margin: 0 auto;
  font-size: 21px;
  line-height: 1.45;
}
.hero__copy strong {
  font-weight: 700;
  font-family: bold;
}

/* ==========================================================
   HOW IT WORKS
   ========================================================== */
.how {
  background: #fff;
  color: #111;
  padding: 72px 0 84px;
}

.how__title {
  font-family: regular;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 48px;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.how__title::before,
.how__title::after {
  content: "";
  flex: 1;
  max-width: 240px;
  height: 1px;
  background: #111;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* gap: 24px; */
}

.how__card .ph {
  --ar: 29 / 30;
  border-radius: 16px;
}

/* ==========================================================
   TRAINED & REFINED (videos inside phones)
   ========================================================== */
.tryon {
  background: #000;
  padding: 84px 0 100px;
}

.tryon__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 60px;
  max-width: 860px;
  margin: 0 auto;
}

/* The phone sits in front and overlaps the top half of the card.
   --pw is the phone width as % of the item; 9:16 phone => half its height = pw * 0.889 */
.tryon__item {
  --pw: 72%;
  display: flex;
  flex-direction: column;
}

/* Short laptop screens: shrink the phone a little more so a whole card fits on screen */
@media (min-width: 768px) and (max-height: 800px) {
  .tryon__item {
    --pw: 60%;
  }
}

.tryon__phone {
  position: relative;
  z-index: 2;
  width: var(--pw);
  margin-inline: auto;
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 5px solid #1b1b1b;
  border-radius: 8% / 4.5%;
  isolation: isolate; /* new */
  transform: translateZ(0); /* new */
  outline: 1px solid #555;
  background: #111;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.6);
}
.phone__label {
  border-radius: inherit; /* new */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: repeating-linear-gradient(
    135deg,
    #161616 0 14px,
    #1d1d1d 14px 28px
  );
  color: #8d8d8d;
  font-size: 13px;
  text-align: center;
}
.phone__video {
  clip-path: inset(0 round 8% / 4.5%);
  border-radius: inherit; /* new */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.phone__video.is-ready {
  opacity: 1;
}

.tryon__card {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: calc(var(--pw) * -0.889);
  padding: calc(var(--pw) * 0.889 + 28px) 28px 32px;
  border-radius: 22px;
  background: var(--card);
}
.tryon__card h3 {
  font-family: bold;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}
.tryon__card p {
  font-family: regular;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

/* ==========================================================
   BENEFITS (red)
   ========================================================== */
.features {
  background: var(--red);
  padding: 76px 0 92px;
}
.features .section-title {
  margin-bottom: 56px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
}

.feature {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid; /* icon, h3 and p share rows with the neighbouring cards */
  align-content: start;
  margin-bottom: 24px;
  padding: 32px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
}
.feature:nth-last-child(-n + 3) {
  margin-bottom: 0;
}
.feature .ph {
  width: 56px;
  margin-bottom: 18px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10px;
  padding: 2px;
}
.feature h3 {
  font-family: bold;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.feature p {
  font-family: regular;
  font-size: 17px;
  line-height: 1.5;
}

/* ==========================================================
   TRIAL ROOM IN THEIR POCKET
   ========================================================== */
.pocket {
  background: #000;
  overflow: hidden;
}
.pocket__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  min-height: 640px;
  padding-block: 56px;
}
.pocket__title {
  font-family: extrabold;
  max-width: 580px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
}
.pocket__media {
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.pocket__media img {
  object-fit: cover;
}
#pocket-ph {
  --ar: 3 / 4;
}

/* ==========================================================
   CONTACT FORM (red)
   ========================================================== */
.contact {
  background: var(--red);
  padding: 88px 0;
}
.contact__inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: start;
}
.contact__title {
  font-family: extrabold;
  max-width: 440px;
  margin-bottom: 24px;
  font-size: 60px;
  font-weight: 800;
  line-height: 1.12;
}
.contact__copy {
  font-family: medium;
  max-width: 460px;
  font-size: 22px;
  line-height: 1.5;
}

.field {
  margin-bottom: 18px;
  font-family: regular;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  height: 56px;
  padding: 16px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
}
.field textarea {
  height: 150px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #767676;
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Status area: sits between the last field and the Submit button */
.form__status {
  font-family: regular;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 20px;
  padding: 12px 16px;
  border-left: 2px solid #111;
  border-radius: 8px;
  background: #fff;
  color: #a00810;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  animation: status-in 0.25s ease;
}
.form__status[hidden] {
  display: none;
}
.form__status.is-success {
  color: #0b6b32;
  border-left-color: #0b6b32;
}
.form__status svg {
  flex: none;
  margin-top: 2px;
}
.form__status ul {
  display: grid;
  gap: 3px;
}

@keyframes status-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  font-family: extrabold;
  display: block;
  min-width: 200px;
  margin: 6px auto 0;
  padding: 14px 56px;
  border: 0;
  border-radius: 6px;
  background: #000;
  color: #fff;
  /* font: 700 20px var(--font); */
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.2s;
  text-transform: capitalize;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.br-desktop {
  display: inline;
}

/* ==========================================================
   TABLET
   ========================================================== */
@media (max-width: 1024px) {
  .hero__kicker {
    font-size: 30px;
  }
  .hero__accent {
    font-size: 64px;
  }
  .hero__copy {
    font-size: 18px;
  }
  .how__title {
    font-size: 26px;
  }
  .section-title {
    font-size: 30px;
  }
  .tryon__grid {
    gap: 48px 32px;
  }
  .tryon__card p {
    font-size: 16px;
  }
  .feature {
    padding: 26px 22px;
  }
  .feature h3 {
    font-size: 19px;
  }
  .feature p {
    font-size: 15px;
  }
  .pocket__title {
    font-size: 48px;
  }
  .contact__inner {
    gap: 40px;
  }
  .contact__title {
    font-size: 44px;
  }
  .contact__copy {
    font-size: 18px;
  }
}

.hero__title,
.hero__copy {
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  .hero {
    padding-bottom: 0;
  }
  .hero__body {
    display: grid;
    grid-template-columns: 46% 54%;
    grid-template-areas: "title image" "copy image";
    grid-template-rows: auto auto;
  }
  .hero__title {
    grid-area: title;
    align-self: end;
    max-width: none;
    margin: 0;
    padding: 0 24px 18px max(24px, 5.7vw);
    text-align: left;
  }
  .hero__copy {
    grid-area: copy;
    align-self: start;
    max-width: none;
    margin: 0;
    padding: 0 6vw 40px max(24px, 5.7vw);
    text-align: left;
    font-size: clamp(15px, 1.5vw, 22px);
    line-height: 1.4;
  }
  .hero__banner {
    grid-area: image;
    grid-row: 1 / span 2;
    margin: 0;
  }
  .hero__banner .ph {
    --ar: 4 / 3;
  }
  .hero__kicker {
    font-size: clamp(18px, 1.95vw, 28px);
    margin-bottom: 6px;
  }
  .hero__accent {
    font-size: clamp(34px, 4.4vw, 64px);
  }
}
/* ==========================================================
   MOBILE
   ========================================================== */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  .br-desktop {
    display: none;
  }

  .section-title {
    margin-bottom: 36px;
    font-size: 20px;
  }

  /* hero */
  .hero {
    padding: 20px 0 36px;
  }
  .brand {
    gap: 12px;
    margin-bottom: 24px;
  }
  .brand .ph {
    width: 110px;
  }
  .brand__divider {
    height: 30px;
  }
  .hero__title {
    margin-bottom: 16px;
  }
  .hero__kicker {
    font-size: clamp(14px, 4.2vw, 18px);
    margin-bottom: 4px;
  }
  .hero__accent {
    font-size: clamp(20px, 6vw, 28px);
  }
  .hero__banner {
    margin-bottom: 20px;
  }
  .hero__copy {
    font-size: 14px;
  }

  /* how it works */
  .how {
    padding: 40px 0 48px;
  }
  .how__title {
    gap: 14px;
    margin-bottom: 26px;
    font-size: 18px;
  }
  .how__title::before,
  .how__title::after {
    max-width: none;
  }
  .how__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .how__card .ph {
    --ar: 14 / 15;
    border-radius: 12px;
  }

  /* trained & refined: single column, phone overlaps card */
  .tryon {
    padding: 44px 0 56px;
  }
  .tryon__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tryon__item {
    --pw: 58%;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }
  .tryon__card {
    padding-inline: 20px;
    padding-bottom: 24px;
    border-radius: 18px;
  }
  .tryon__card h3 {
    font-size: 15px;
  }
  .tryon__card p {
    font-size: 13.5px;
  }

  /* benefits: 2 columns x 3 rows */
  .features {
    padding: 44px 0 52px;
  }
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 12px;
  }
  .feature {
    margin-bottom: 12px;
    padding: 16px 14px 20px;
    border-radius: 12px;
  }
  .feature:nth-last-child(-n + 3) {
    margin-bottom: 12px;
  }
  .feature:nth-last-child(-n + 2) {
    margin-bottom: 0;
  }
  .feature .ph {
    width: 36px;
    margin-bottom: 10px;
  }
  .feature h3 {
    font-size: 15px;
  }
  .feature p {
    font-size: 12.5px;
  }

  /* pocket */
  .pocket__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding-block: 44px;
    text-align: center;
  }
  .pocket__title {
    font-family: extrabold;
    max-width: none;
    font-size: clamp(22px, 6.4vw, 28px);
  }
  .pocket__media {
    justify-self: center;
    max-width: 320px;
  }
  #pocket-ph {
    --ar: 1 / 1;
  }

  /* contact */
  .contact {
    padding: 44px 0 52px;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact__title {
    max-width: none;
    margin-bottom: 12px;
    font-size: 28px;
  }
  .contact__copy {
    font-size: 15px;
  }
  .field {
    margin-bottom: 14px;
  }
  .field textarea {
    height: 130px;
  }
  .form__status {
    font-size: 14px;
  }
  .btn {
    font-size: 18px;
    padding: 12px 48px;
  }
}
