/* ==========================================================================
   TORI – The Photo Community (index.html)
   Page-specific styles. Loaded after style.css; everything is scoped to
   .cm-page or prefixed cm- / tori- so the template stylesheet stays untouched.
   ========================================================================== */

/* ---------- Tokens (design-system tokens.css) ---------- */
.cm-page {
  --cm-magenta: #eb5de6;
  --cm-yellow: #f9d86d;
  --cm-green: #15be8c;
  --cm-peach: #f19875;
  --cm-ink: #040415;
  --cm-muted: #777e90;
  --cm-plum: #3a0a5e;
  --cm-glass: rgba(40, 0, 70, 0.32);
  --cm-hairline: rgba(255, 255, 255, 0.2);
  --cm-app-font: -apple-system, BlinkMacSystemFont, "SF Pro", "Golos Text", sans-serif;
  --shadow-collection-card: 0 8px 16px rgba(0, 0, 0, 0.1);

  background: #9b2bf0;
  color: #fff;
}

.cm-page .tori-bg-filled,
.cm-page .tori-bg-rotated-filled {
  background-color: #b12eea;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.cm-main {
  overflow-x: hidden;
}

.cm-page .container.cm-container {
  max-width: 100%;
}

@media (min-width: 1300px) {
  .cm-page .container.cm-container {
    width: 1270px;
  }
}

@media (min-width: 992px) {
  .cm-row {
    display: flex;
    align-items: center;
  }
  .cm-row::before,
  .cm-row::after {
    display: none;
  }
  .cm-row--stretch {
    align-items: stretch;
    flex-wrap: wrap;
  }
}

/* ---------- Header: GET THE APP ---------- */
#nav.header-1 #main-menu .navbar .nav > li.cm-nav-cta > a {
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 2px;
}

#nav.header-1 #main-menu .navbar .nav > li.cm-nav-cta > a:hover,
#nav.header-1 #main-menu .navbar .nav > li.cm-nav-cta > a:focus {
  background: #fff;
  color: #1a1a1a;
}

@media (min-width: 1025px) {
  #main-menu .navbar .nav > li.cm-nav-cta {
    position: absolute;
    top: 29px;
    right: 30px;
  }
  .affix #main-menu .navbar .nav > li.cm-nav-cta {
    top: 11px;
  }
}

@media (max-width: 1024px) {
  #main-menu .navbar .nav > li.cm-nav-cta {
    padding: 14px 0 24px 17px;
  }
  /* style.css forces mobile menu links to padding/color/border with !important */
  #nav.header-1 #main-menu .navbar .nav > li.cm-nav-cta > a {
    display: inline-block !important;
    width: auto !important;
    padding: 10px 18px !important;
    border: 2px solid #fff !important;
    color: #fff !important;
  }
  #nav.header-1 #main-menu .navbar .nav > li.cm-nav-cta > a:hover,
  #nav.header-1 #main-menu .navbar .nav > li.cm-nav-cta > a:focus {
    color: #1a1a1a !important;
  }
}

/* ---------- Shared pieces ---------- */
.cm-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: var(--cm-glass);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 2px;
}

.cm-pill--lg {
  padding: 8px 16px;
  border-color: rgba(255, 255, 255, 0.28);
  font-size: 13px;
  letter-spacing: 0.28em;
}

.cm-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cm-yellow);
  color: #3a2a00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.5px;
}

.cm-badge--live {
  background: var(--cm-green);
  color: #04241a;
}

.cm-divider {
  width: 100px;
  height: 3px;
  background: #fff;
}

.cm-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cm-page .button.cm-btn {
  display: inline-block;
  padding: 16px 28px !important;
  border: 2px solid #fff;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 2px;
}

.cm-page .button.cm-btn--md {
  padding: 14px 24px !important;
}

.cm-page .button.cm-btn--sm {
  padding: 12px 22px !important;
}

.cm-page .button.thin.white.cm-btn {
  background-color: transparent;
  color: #fff;
}

.cm-page .button.thin.white.cm-btn:hover,
.cm-page .button.thin.white.cm-btn:focus {
  background: #fff;
  border-color: #fff;
  color: #1a1a1a;
}

.cm-page .button.cm-btn--solid {
  background: #fff;
  color: var(--cm-plum);
  font-weight: 700;
}

.cm-page .button.cm-btn--solid:hover,
.cm-page .button.cm-btn--solid:focus {
  background: var(--cm-yellow);
  border-color: var(--cm-yellow);
  color: var(--cm-plum);
}

.cm-glass-card {
  border: 1px solid var(--cm-hairline);
  border-radius: 16px;
  background: var(--cm-glass);
}

/* ---------- Hero ---------- */
.cm-hero {
  padding: 156px 0 96px;
}

.cm-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cm-hero__title {
  margin: 0;
  font-size: clamp(52px, 7.2vw, 104px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(60, 0, 120, 0.3);
}

.cm-gradient-text {
  background: linear-gradient(90deg, #fff 0%, var(--cm-yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.cm-hero__lead {
  max-width: 600px;
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.3;
}

.cm-hero__body {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.6;
}

.cm-hero .cm-btn-row {
  margin-top: 4px;
}

.cm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 620px;
  margin-top: 16px;
}

.cm-stat {
  padding: 14px 16px;
}

.cm-stat__value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.cm-stat__label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.4;
}

/* Collage of rotated collection cards */
.cm-collage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.05;
}

.cm-collage__card {
  position: absolute;
  width: 33%;
  aspect-ratio: 510 / 720;
  border: 4px solid #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(50, 0, 90, 0.4);
  object-fit: cover;
}

.cm-collage__card--dust { left: 0; top: 14%; transform: rotate(-9deg); }
.cm-collage__card--cyber { left: 63%; top: 6%; transform: rotate(8deg); }
.cm-collage__card--flames { left: 8%; top: 58%; width: 30%; transform: rotate(6deg); }
.cm-collage__card--frames { left: 62%; top: 56%; width: 30%; transform: rotate(-7deg); }

.cm-collage__card--hero {
  left: 27%;
  top: 0;
  width: 42%;
  aspect-ratio: 3 / 4;
  border-width: 5px;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(50, 0, 90, 0.45);
  transform: rotate(-2deg);
}

.cm-collage__star {
  position: absolute;
  left: 33%;
  top: 50%;
  width: 34%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(60, 0, 100, 0.45));
}

.cm-label {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(50, 0, 90, 0.3);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.cm-label--inspire { left: 50%; top: 89%; z-index: 2; background: #fff; color: var(--cm-plum); transform: translateX(-50%); }
.cm-label--places { left: 4%; top: 3%; z-index: 2; background: var(--cm-green); color: #04241a; }
.cm-label--together { left: -2%; top: 46%; background: var(--cm-magenta); color: #fff; }
.cm-label--edit { left: 70%; top: 44%; background: var(--cm-yellow); color: #3a2a00; }

/* ---------- Sections ---------- */
.cm-section {
  padding: 110px 0 120px;
}

.cm-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.cm-intro__title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
}

.cm-intro__title strong {
  font-weight: 800;
}

.cm-intro__text {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.cm-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.cm-page a.cm-chip {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.cm-page a.cm-chip:hover,
.cm-page a.cm-chip:focus {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Feature rows 01–04 */
.cm-feature {
  padding-top: 140px;
}

.cm-feature--first {
  padding-top: 100px;
}

.cm-feature__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cm-feature__num-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cm-feature__num {
  color: rgba(255, 255, 255, 0.28);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.cm-feature__eyebrow {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.cm-feature__title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

.cm-feature__title strong {
  font-weight: 800;
}

.cm-feature__body {
  max-width: 520px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.cm-feature__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.cm-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.cm-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.cm-checks__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.cm-taste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cm-taste span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.cm-taste .cm-taste__hot {
  border-color: #fff;
  background: #fff;
  color: var(--cm-plum);
  font-weight: 700;
}

.cm-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: 18px;
}

.cm-callout img {
  flex-shrink: 0;
  width: 52px;
  height: auto;
}

.cm-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.cm-sticker {
  position: absolute;
  top: -30px;
  right: 2%;
  z-index: 2;
  width: 120px;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(60, 0, 100, 0.4));
  transform: rotate(12deg);
}

/* Portrait (04) */
.cm-portrait {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(50, 0, 90, 0.35);
  aspect-ratio: 2 / 3;
}

.cm-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-portrait figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(20, 0, 40, 0.55);
}

.cm-portrait__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.cm-portrait__sub {
  color: #5bd5b1;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1px;
}

/* Safety */
.cm-intro__title--safety {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.12;
}

.cm-intro__title--safety strong {
  font-weight: 700;
}

.cm-intro__text--sm {
  max-width: 680px;
  font-size: 16px;
}

.cm-safety-cards {
  margin-top: 64px;
}

.cm-safety-cards > [class*="col-"] {
  display: flex;
  margin-bottom: 24px;
}

.cm-safety-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(40, 0, 70, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cm-safety-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cm-safety-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cm-peach) 0%, var(--cm-yellow) 100%);
}

.cm-safety-card__tag {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.5px;
}

.cm-safety-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.cm-safety-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.cm-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  text-align: center;
}

.cm-closing p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Phone frame ---------- */
.cm-phone-slot {
  width: 330px;
  height: 712px;
}

.cm-phone {
  position: relative;
  width: 330px;
  height: 712px;
  padding: 6px;
  border-radius: 48px;
  background: #0b0b0f;
  box-shadow: 0 40px 80px rgba(40, 0, 80, 0.45);
}

.cm-phone__screen {
  position: relative;
  width: 318px;
  height: 700px;
  overflow: hidden;
  border-radius: 42px;
  background: #fff;
}

.cm-phone__screen--soft { background: #f5f9fc; }
.cm-phone__screen--map { background: #eef2f6; }

/* 402×874 iPhone canvas, scaled into the 318 px screen */
.cm-screen {
  position: relative;
  width: 402px;
  height: 874px;
  color: var(--cm-ink);
  font-family: var(--cm-app-font);
  transform: scale(0.791);
  transform-origin: top left;
}

/* ---------- Tori.CollectionGrid (static port of the design-system component) ---------- */
.tori-grid, .tori-csection, .tori-ccard, .tori-greet, .tori-tabbar {
  box-sizing: border-box;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.tori-grid *, .tori-csection *, .tori-ccard *, .tori-greet *, .tori-tabbar * { box-sizing: border-box; }
.tori-glyph { display: block; flex: none; }

.tori-grid { position: relative; overflow: hidden; width: 402px; height: 874px; background: #fff; }
.tori-grid__scroll { position: absolute; top: 62px; right: 0; left: 0; }
.tori-grid__bar { position: relative; display: flex; align-items: flex-start; justify-content: flex-end; height: 54px; padding-right: 16px; }
.tori-grid__title { height: 41px; padding-left: 14.5px; color: #000; font: 700 34px/41px "SF Pro", -apple-system, sans-serif; letter-spacing: 0.4px; }
.tori-grid__greet { padding: 15.5px 16px 0; }
.tori-grid__greet + .tori-csection { padding-top: 24px; }

.tori-greet { position: relative; display: flex; flex-direction: column; gap: 9px; width: 370px; height: 156px; padding: 23px 24px 24px; border-radius: 24px; color: #fff; background: linear-gradient(180deg, #ea5ee5 0%, #ee89b5 50%, #f3aa7b 100%); }
.tori-greet__hi { position: relative; z-index: 2; max-width: min(212px, calc(100% - 123px)); font: 700 24px/29px "SF Pro", -apple-system, sans-serif; letter-spacing: 0.07px; text-wrap: pretty; }
.tori-greet__msg { position: relative; z-index: 2; max-width: min(180px, calc(100% - 123px)); font: 590 17px/21px "SF Pro", -apple-system, sans-serif; letter-spacing: -0.43px; text-wrap: pretty; }
.tori-greet__star { position: absolute; top: -32px; right: 0; z-index: 1; width: 147px; height: auto; pointer-events: none; }

.tori-csection { position: relative; width: 402px; padding-top: 27px; }
.tori-csection__head { display: flex; align-items: center; gap: 15px; height: 29px; margin-bottom: 12px; padding: 0 16px; }
.tori-csection__title { margin: 0; color: #000; font: 700 24px/29px "SF Pro", -apple-system, sans-serif; letter-spacing: 0.07px; white-space: nowrap; }
.tori-csection__chev { flex: none; margin-top: 1px; color: #ea445a; }
.tori-csection__row { display: flex; gap: 16px; padding: 0 16px; }

/* CARD_SIZES: large 170×240 r24, small 110×180 r16 */
.tori-ccard { position: relative; flex: none; overflow: hidden; isolation: isolate; width: 170px; height: 240px; border-radius: 24px; background: #f9d86d; box-shadow: var(--shadow-collection-card, 0 8px 16px rgba(0, 0, 0, 0.1)); }
.tori-ccard--small { width: 110px; height: 180px; border-radius: 16px; }
.tori-ccard__art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.tori-tabbar { position: absolute; bottom: 0; left: 0; width: 402px; height: 104px; }
.tori-tabbar__tabs { position: absolute; bottom: 22px; left: 21px; display: flex; width: 187px; height: 61px; padding: 4px; }
.tori-tabbar__glass { position: absolute; top: 0; left: 0; width: 187px; height: 61px; border-radius: 1000px; background: rgba(214, 214, 214, 0.44); -webkit-backdrop-filter: blur(6px) saturate(1.5); backdrop-filter: blur(6px) saturate(1.5); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.02), 0 0 0 0.5px rgba(0, 0, 0, 0.08), -1.25px 0 0 -0.75px rgba(0, 0, 0, 0.18), 1.25px 0 0 -0.75px rgba(0, 0, 0, 0.18), inset 0 6px 10px -6px rgba(255, 255, 255, 0.16), inset 0 -6px 10px -6px rgba(255, 255, 255, 0.16), inset 0 10px 30px -10px rgba(0, 0, 0, 0.05); }
.tori-tab { position: relative; display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 95px; height: 53px; padding: 5px 8px 6px; border-radius: 100px; color: #000; }
.tori-tab + .tori-tab { margin-left: -11px; }
.tori-tab.is-on { color: #a63aa8; }
.tori-tab.is-on::before { content: ""; position: absolute; inset: 0; border-radius: 100px; background: rgba(120, 120, 128, 0.16); }
.tori-tab > * { position: relative; }
.tori-tab__icon { display: grid; place-items: center; height: 28px; }
.tori-tab__label { font: 590 12px/14px "SF Pro", -apple-system, sans-serif; letter-spacing: -0.1px; }
.tori-tab.is-on .tori-tab__label { letter-spacing: -0.01px; }
.tori-fab { position: absolute; right: 21px; bottom: 21px; display: block; width: 62px; height: 62px; border-radius: 50%; }
.tori-fab::before { content: ""; position: absolute; top: -3px; left: -3px; width: 68px; height: 68px; background: url("../images/community/fab-plus.png") center / 68px 68px no-repeat; }

/* ---------- 02: Photo buddies screen ---------- */
.cm-buddies {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 62px 16px 24px;
}

.cm-buddies__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cm-buddies__title { font-size: 34px; font-weight: 700; line-height: 41px; }
.cm-buddies__sub { color: var(--cm-muted); font-size: 15px; line-height: 20px; }

.cm-buddies__filter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: rgba(118, 118, 128, 0.12);
}

.cm-buddies__pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.cm-profile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(4, 4, 21, 0.08);
}

.cm-profile__photo {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
}

.cm-profile__photo--sofia { object-position: center 25%; }

.cm-profile__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 14px;
}

.cm-profile__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.cm-profile__meta { color: var(--cm-muted); font-size: 12px; line-height: 16px; }

.cm-profile__tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cm-tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f5f0ff;
  color: var(--cm-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.cm-tag--hot {
  background: linear-gradient(90deg, var(--cm-magenta) 0%, var(--cm-peach) 100%);
  color: #fff;
  font-weight: 700;
}

.cm-tag--lg { padding: 6px 12px; font-size: 13px; }

.cm-spark {
  position: absolute;
  top: 118px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
}

.cm-spark img {
  width: 104px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(235, 93, 230, 0.45));
}

.cm-spark__heart { position: absolute; }
.cm-spark__heart--a { top: 4px; left: -10px; transform: rotate(-18deg); }
.cm-spark__heart--b { top: -6px; right: -8px; transform: rotate(16deg); }
.cm-spark__heart--c { right: -4px; bottom: 6px; transform: rotate(-8deg); }

.cm-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(4, 4, 21, 0.08);
  text-align: center;
}

.cm-match__title { color: var(--cm-magenta); font-size: 28px; font-weight: 800; line-height: 34px; }
.cm-match__text { font-size: 15px; line-height: 20px; }
.cm-match__text b { font-weight: 700; }
.cm-match__tags { display: flex; gap: 8px; margin-top: 4px; }

.cm-buddies__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.cm-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 27px;
  background: var(--cm-magenta);
  box-shadow: 0 8px 24px rgba(190, 137, 237, 0.45);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.cm-app-btn--ghost {
  height: 50px;
  border-radius: 25px;
  background: rgba(118, 118, 128, 0.12);
  box-shadow: none;
  color: var(--cm-ink);
  font-size: 16px;
  font-weight: 600;
}

.cm-app-btn--sheet { height: 52px; border-radius: 26px; }

/* ---------- 03: Safe places map screen ---------- */
.cm-map {
  overflow: hidden;
  background: #e9eef3;
}

.cm-map__layer { position: absolute; inset: 0; }
.cm-map__shape { position: absolute; }
.cm-map__water { top: 250px; left: -40px; width: 520px; height: 70px; background: #bfe3f2; transform: rotate(-14deg); }
.cm-map__park--a { top: 150px; left: 30px; width: 240px; height: 150px; border-radius: 40px; background: #d6edd2; }
.cm-map__park--b { top: 420px; left: 250px; width: 170px; height: 120px; border-radius: 36px; background: #d6edd2; }
.cm-map__road { background: #fff; }
.cm-map__road--a { top: 380px; left: -20px; width: 460px; height: 14px; transform: rotate(8deg); }
.cm-map__road--b { top: 90px; left: 180px; width: 14px; height: 520px; transform: rotate(18deg); }
.cm-map__road--c { top: 120px; left: -20px; width: 460px; height: 10px; transform: rotate(-4deg); }
.cm-map__road--d { top: 300px; left: 60px; width: 10px; height: 300px; transform: rotate(-24deg); }
.cm-map__zone { border-radius: 50%; }
.cm-map__zone--safe { top: 150px; left: 196px; width: 150px; height: 150px; border: 2px solid rgba(21, 190, 140, 0.5); background: rgba(21, 190, 140, 0.14); }
.cm-map__zone--alert { top: 230px; left: 40px; width: 120px; height: 120px; border: 2px dashed rgba(255, 104, 104, 0.6); background: rgba(255, 104, 104, 0.14); }

.cm-map__search {
  position: absolute;
  top: 58px;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(4, 4, 21, 0.1);
  color: var(--cm-muted);
  font-size: 15px;
}

.cm-pin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cm-pin--camera { top: 200px; left: 248px; width: 48px; height: 48px; border: 4px solid #fff; background: var(--cm-magenta); box-shadow: 0 8px 20px rgba(235, 93, 230, 0.5); }
.cm-pin--alert { top: 270px; left: 82px; width: 40px; height: 40px; border: 3px solid #fff; background: #ff6868; box-shadow: 0 6px 16px rgba(255, 104, 104, 0.5); color: #fff; font-size: 20px; font-weight: 800; }
.cm-pin--spot { width: 30px; height: 30px; border: 3px solid var(--cm-magenta); background: #fff; }
.cm-pin--spot-a { top: 330px; left: 340px; }
.cm-pin--spot-b { top: 150px; left: 130px; }

.cm-sheet {
  position: absolute;
  right: 12px;
  bottom: 16px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 -6px 30px rgba(4, 4, 21, 0.12);
}

.cm-sheet__grabber { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #e6e6e8; }

.cm-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cm-sheet__title { font-size: 20px; font-weight: 700; line-height: 25px; }
.cm-sheet__sub { color: var(--cm-muted); font-size: 13px; line-height: 17px; }

.cm-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(21, 190, 140, 0.12);
  color: #0e8a65;
}

.cm-score__value { font-size: 20px; font-weight: 800; line-height: 24px; }
.cm-score__label { font-size: 11px; font-weight: 600; line-height: 14px; }

.cm-alert {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ffd0d0;
  border-radius: 16px;
  background: #fff1f1;
}

.cm-alert svg { flex-shrink: 0; }
.cm-alert--warn { border-color: #f7e2a8; background: #fff8e6; }

.cm-alert__body { display: flex; flex-direction: column; gap: 3px; }
.cm-alert__title { color: #b42323; font-size: 14px; font-weight: 700; line-height: 18px; }
.cm-alert--warn .cm-alert__title { color: #8a5e00; }
.cm-alert__text { color: #4a4f60; font-size: 13px; line-height: 1.35; }
.cm-alert__ok { color: #0e8a65; font-size: 13px; font-weight: 700; line-height: 17px; }

.cm-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cm-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 14px;
  background: #f5f9fc;
}

.cm-tile__label { color: var(--cm-muted); font-size: 11px; line-height: 14px; }
.cm-tile__value { font-size: 15px; font-weight: 700; line-height: 19px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cm-hero {
    padding-top: 116px;
  }
}

@media (max-width: 991px) {
  .cm-hero {
    padding-bottom: 72px;
  }
  .cm-hero__visual {
    margin-top: 56px;
  }
  .cm-section {
    padding: 80px 0 88px;
  }
  .cm-feature,
  .cm-feature--first {
    padding-top: 96px;
  }
  .cm-feature__media {
    margin-top: 56px;
  }
  .cm-safety-cards {
    margin-top: 48px;
  }
}

@media (max-width: 600px) {
  .cm-label {
    padding: 8px 12px;
    font-size: 12px;
  }
  .cm-label--together { left: -1%; }
  .cm-label--edit { right: -1%; left: auto; }
  .cm-sticker {
    top: -24px;
    right: 0;
    width: 88px;
  }
}

@media (max-width: 400px) {
  .cm-phone-slot {
    width: 280px;
    height: 604px;
  }
  .cm-phone-slot .cm-phone {
    transform: scale(0.8485);
    transform-origin: top left;
  }
}
