/* ============================================================
   BROTHER — Crafting (MOBILE, 430px)
   Standalone stylesheet for crafting-mobile.html
   ============================================================ */
:root {
  --blue-nav: #0d2ea0;
  --blue: #1a65e2;
  --magenta: #d71a71;
  --orange: #eb7200;
  --ink: #1d1d1d;
  --cream: #fff4db;
  --meta-blue: #e5ecf7;
  --optin-bg: #edf3fb;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Catamaran', Arial, sans-serif;
  color: var(--ink);
  background: #000000;              /* dark gutters to simulate a phone frame */
  -webkit-font-smoothing: antialiased;
}
img { display: block; border: 0; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* Fixed 430px mobile canvas, centered */
.m-page {
  width: 430px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  min-height: 100vh;
}

/* ===================== HEADER (image) ===================== */
.m-header { display: block; }
.m-header img { width: 100%; height: auto; display: block; }

/* ===================== HERO ===================== */
.m-hero { position: relative; padding: 0 16px 20px; }
.m-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}
.m-hero__headline {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top: 26px;
  font-weight: 800;
  font-size: 47px;
  line-height: 1.0;
  color: var(--blue);
}
.m-hero__headline span { display: block; }
.m-hero__button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 18px;
  background: var(--magenta);
  color: #fff;
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
}
.m-hero__photo {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}
.m-hero__photo img { width: 100%; height: auto; }

/* ===================== CREATIVITY (carousel) ===================== */
.m-creativity { padding: 34px 16px 30px; }
.m-creativity__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.m-creativity__title {
  margin: 0;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.08;
  color: var(--blue);
}
.m-creativity__viewall {
  flex: 0 0 auto;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: #333;
  white-space: nowrap;
}
.m-creativity__subtitle {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.35;
  color: #020920;
}
.m-creativity__carousel {
  position: relative;
  margin-top: 20px;
  display: flex;
  align-items: center;           /* centre arrows on the full card (image + meta) — matches Figma items-center */
  justify-content: center;
  gap: 15px;
}
.m-creativity__arrow {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid #cdd7ee;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.m-creativity__arrow img { width: 12px; height: 20px; }
.m-creativity__arrow--right img { transform: scaleX(-1); }
.m-creativity__track {
  flex: 0 0 262px;
  width: 262px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.m-creativity__track::-webkit-scrollbar { display: none; }
.m-creativity__card {
  flex: 0 0 262px;
  width: 262px;
  scroll-snap-align: center;
}
.m-creativity__thumb {
  position: relative;
  width: 262px;
  height: 262px;
  overflow: hidden;
}
.m-creativity__thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-creativity__thumb .fpo-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 55px;
  height: 41px;
  object-fit: contain;
}
.m-creativity__meta {
  background: var(--meta-blue);
  padding: 16px 14px;
}
.m-creativity__cat { margin: 0; font-size: 18px; font-weight: 400; color: #777; line-height: 1; }
.m-creativity__name { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: var(--blue); line-height: 1.05; }

/* ===================== CATEGORIES ===================== */
.m-cats { padding: 30px 15px 34px; position: relative; }
.m-cats__title { margin: 0; font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--blue); }
.m-cats__desc { margin: 12px 0 0; font-size: 16px; line-height: 1.35; color: #000; }
/* Two decorative stars — absolutely placed per Figma (small 312,156 / large 366,163), overlap the gap */
.m-cats__deco { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.m-cats__deco img { position: absolute; }
.m-cats__deco img:nth-child(1) { left: 312px; top: 156px; width: 24.5px; height: 29.6px; }
.m-cats__deco img:nth-child(2) { left: 366px; top: 163px; width: 43px; height: 52px; }

.m-cat { margin-top: 30px; }
.m-cat__title { margin: 0 0 12px; font-weight: 700; font-size: 24px; color: var(--blue); }
.m-cat__row { display: flex; gap: 18px; align-items: flex-start; }
.m-cat__img {
  position: relative;
  flex: 0 0 170px;
  width: 170px;
  height: 210px;
  overflow: hidden;
}
.m-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.m-cat__img .fpo-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 55px;
  height: 41px;
  object-fit: contain;
}
.m-cat__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.m-cat__body { margin: 0; font-size: 18px; line-height: 1.3; color: #1d1d1d; }
.m-cat__link { margin-top: 22px; font-weight: 500; font-size: 19px; color: #333; }
.m-cat__link--bold { margin-top: 6px; font-weight: 700; line-height: 1.15; }
.m-cat__shop {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 15px;
  background: var(--orange);
  color: #fff;
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
}

/* ===================== OPTIN ===================== */
.m-optin { background: #f1f7ff; padding: 30px 15px 34px; }
.m-optin__title { margin: 0 0 20px; font-weight: 700; font-size: 26px; line-height: 0.98; color: var(--blue); }
.m-optin__media { position: relative; margin-bottom: 26px; }
.m-optin__photo { width: 100%; height: 241px; overflow: hidden; }
.m-optin__photo img { width: 100%; height: 100%; object-fit: cover; }
.m-optin__tape { position: absolute; z-index: 2; }
.m-optin__tape--yellow { top: -8px; left: 0; width: 115px; height: 36px; transform: rotate(0.39deg); }
.m-optin__tape--blue { bottom: -10px; right: 2px; width: 101px; height: 41px; transform: rotate(2.68deg); }

.m-optin__field { margin-bottom: 16px; }
.m-optin__label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; color: #1f1f1f; }
.m-optin__input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfcfcf;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: #1f1f1f;
}
.m-optin__divider { border: 0; border-top: 1px solid #cbd6e6; margin: 22px 0; }
.m-optin__brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.m-optin__bc { flex: 0 0 auto; width: 44px; height: 44px; display: block; }
.m-optin__brandtext { margin: 0; font-size: 19px; font-weight: 700; color: #1d1d1d; line-height: 1.15; }
.m-optin__consent { display: flex; gap: 10px; font-size: 14px; line-height: 1.35; color: #1d1d1d; font-weight: 700; }
.m-optin__consent a { color: var(--blue); }
.m-optin__consent input, .m-optin__cat-row input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; }
.m-optin__cats { margin-top: 22px; }
.m-optin__cats-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #1f1f1f; }
.m-optin__cats-title span { font-weight: 400; color: #595959; }
.m-optin__cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 16px; }
.m-optin__submit {
  width: 100%;
  height: 56px;
  margin-top: 20px;
  padding: 0 16px;
  border: 0;
  background: var(--magenta);
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.m-optin__fineprint { margin: 18px 0 0; font-size: 12px; line-height: 1.4; color: #6b6b6b; }

/* ===================== PERSONALIZE / BTAG =====================
   Full-section background image (430x542); title/body/button overlaid
   at the exact Figma coordinates. */
.m-btag {
  position: relative;
  width: 100%;
  height: 542px;
  background: url('assets/Btag-bg-mobile.png') no-repeat top center;
  background-size: 100% auto;
}
.m-btag__title { position: absolute; left: 15px; top: 30px; margin: 0; font-weight: 700; font-size: 26px; line-height: 1; color: var(--blue); }
.m-btag__fpo { position: absolute; top: 285px; right: 24px; width: 55px; height: 41px; object-fit: contain; z-index: 1; }
.m-btag__body { position: absolute; left: 15px; top: 352px; width: 400px; margin: 0; font-size: 16px; line-height: 1.35; color: #3f3f3f; }
.m-btag__button {
  position: absolute;
  left: 15px;
  top: 456px;
  width: 400px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--magenta);
  color: #fff;
  font-weight: 500;
  font-size: 19px;
}

/* ===================== ARTSPIRA ===================== */
.m-artspira { position: relative; background: var(--cream); padding: 30px 16px 40px; overflow: hidden; }
.m-artspira__eyebrow { position: relative; z-index: 1; width: 128px; height: auto; }
/* Blue swoosh — thin decorative line at the logo level (loop near "Artspira", runs off the right edge) */
.m-artspira__blueline {
  position: absolute;
  left: 0;
  top: 0;
  width: 430px;
  height: 240px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-image: url('assets/m-artspira-blue-line.png');
  background-repeat: no-repeat;
  background-size: 740px 500px;
  background-position: -15px -292px;
  transform: rotate(9deg);
  transform-origin: 180px 52px;
}
.m-artspira__heading { position: relative; z-index: 1; margin: 8px 0 0; font-weight: 700; font-size: 40px; color: var(--ink); }
.m-artspira__phone, .m-artspira__body, .m-artspira__button, .m-artspira__badges, .m-artspira__fineprint { position: relative; z-index: 1; }
/* Phone — exact Figma crop (250x330 box, image 177.66% wide, shifted per Figma) */
.m-artspira__phone { position: relative; margin: 20px auto 0; width: 250px; height: 330px; overflow: hidden; }
.m-artspira__phone img { position: absolute; left: -45.79%; top: -1.88%; width: 177.66%; height: 101.9%; max-width: none; display: block; }
.m-artspira__body { margin: 22px 0 0; font-size: 17px; line-height: 1.4; color: #1d1d1d; }
.m-artspira__button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 22px;
  padding: 0 16px;
  background: var(--magenta);
  color: #fff;
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
}
.m-artspira__badges { display: flex; gap: 14px; margin-top: 18px; }
.m-artspira__badge img { height: 44px; width: auto; }
.m-artspira__fineprint { margin: 18px 0 0; font-size: 12px; line-height: 1.4; color: #7a6f5c; }

/* ===================== FOOTER (image) ===================== */
.m-footer { width: 100%; height: auto; display: block; }

/* ===================== VERTICAL VIDEO MODAL ===================== */
.m-vmodal { position: fixed; inset: 0; z-index: 1000; display: none; }
.m-vmodal.is-open { display: block; }
.m-vmodal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.m-vmodal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.25);
}
.m-vmodal__x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.m-vmodal__x img { width: 100%; height: 100%; display: block; }
.m-vmodal__head { display: flex; flex-direction: column; gap: 8px; }
.m-vmodal__cat { margin: 0; font-size: 16px; font-weight: 400; color: #666; line-height: 1; }
.m-vmodal__title { margin: 0; font-size: 22px; font-weight: 700; color: var(--blue); line-height: 1.05; }
.m-vmodal__video {
  position: relative;
  width: 100%;
  aspect-ratio: 280 / 523;
  overflow: hidden;
  background: #6d6d6d;
}
.m-vmodal__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-vmodal__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  z-index: 1;
  pointer-events: none;
}
