/* ==========================================================================
   howitworks.css — How It Works page
   Reuses how-it-works/hiw-step and faq (sections.css) + shared chrome (shop.css).
   ========================================================================== */

/* Plain background variant of the reused four-step section */
.how-it-works.hiw-plain {
  background: var(--off-white);
}

/* --- Build time --- */
.buildtime {
  padding-block: var(--section-space-m);
  padding-inline: var(--space-gutter);
  background: var(--pebble);
}

.bt-layout {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.bt-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: flex-start;
}

.bt-intro h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.05;
  max-width: 16ch;
}

.bt-intro h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.bt-highlight {
  margin-top: var(--space-xs);
  background: var(--deep-ocean);
  color: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
  width: 100%;
}

.bt-highlight .big {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: var(--off-white);
  margin-bottom: var(--space-2xs);
}

.bt-highlight .sub {
  font-size: var(--text-small);
  color: var(--coastal-blue);
  line-height: 1.5;
}

.bt-list {
  display: flex;
  flex-direction: column;
}

.bt-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-m);
  padding: var(--space-s) 0;
  border-bottom: 1px solid var(--hairline);
}

.bt-row:first-child {
  border-top: 1px solid var(--hairline);
}

.bt-row .t {
  flex-shrink: 0;
  width: 8.5ch;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-h4);
  color: var(--terracotta);
}

.bt-row .k {
  color: var(--charcoal);
  line-height: 1.4;
}

/* --- What's in the box --- */
.inbox {
  padding-block: var(--section-space-m);
  padding-inline: var(--space-gutter);
}

.inbox-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.inbox-grid h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.05;
  margin-block: var(--space-s) var(--space-l);
  max-width: 16ch;
}

.inbox-grid h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.inbox-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-s);
  align-items: start;
}

.inbox-item .material-symbols-outlined {
  color: var(--eucalypt);
  font-size: 24px;
  margin-top: 2px;
}

.inbox-item strong {
  display: block;
  color: var(--deep-ocean);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h4);
  margin-bottom: 2px;
}

.inbox-item span {
  color: var(--graphite);
  font-size: var(--text-small);
  line-height: 1.55;
}

.inbox-visual {
  aspect-ratio: 4 / 3;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* --- Build video --- */
.buildvideo {
  padding-block: var(--section-space-m);
  padding-inline: var(--space-gutter);
  background: var(--pebble);
}

.buildvideo-inner {
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
}

.buildvideo .section-title-group {
  align-items: center;
  text-align: center;
}

.buildvideo .section-title-group .eyebrow {
  justify-content: center;
}

.buildvideo h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.05;
}

.buildvideo h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 50, 0.28);
}

.video-play {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-pill);
  background: var(--terracotta);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-out), background var(--duration-fast);
}

.video-play:hover {
  transform: scale(1.08);
  background: var(--terracotta-hover);
}

.video-play .material-symbols-outlined {
  font-size: 40px;
}

.video-cap {
  position: absolute;
  left: var(--space-s);
  bottom: var(--space-s);
  font-size: var(--text-small);
  font-weight: 600;
  color: #fff;
  background: rgba(20, 40, 50, 0.55);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* --- CTA --- */
.hiw-cta {
  padding-block: var(--section-space-m);
  padding-inline: var(--space-gutter);
  background: var(--deep-ocean);
}

.hiw-cta-inner {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
}

.hiw-cta-inner .eyebrow {
  justify-content: center;
  color: var(--coastal-blue);
}

.hiw-cta-inner h2 {
  color: var(--off-white);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.05;
}

.hiw-cta-inner h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--coastal-blue);
}

.hiw-cta-inner p {
  color: var(--coastal-blue);
  max-width: 46ch;
  line-height: 1.6;
}

.hiw-cta-inner .btn-row {
  justify-content: center;
}

/* The outline button sits on a dark background here — flip to light */
.hiw-cta-inner .btn-outline {
  color: var(--off-white);
  border-color: rgba(250, 250, 247, 0.5);
}

.hiw-cta-inner .btn-outline:hover {
  background: var(--off-white);
  color: var(--deep-ocean);
  border-color: var(--off-white);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .bt-layout,
  .inbox-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .inbox-visual {
    order: -1;
  }
}
