/* ============================================================
   Brand Demo — shared layout styles
   Depends on ../tokens.css being loaded before this file.
   V1 and V2 override custom properties via body.v1 / body.v2.
   ============================================================ */

/* ---- Reset + base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--neutral-700);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Direction: V1 Friendly / Playful ---- */
body.v1 {
  --dir-bg:          var(--neutral-50);          /* off-white with pink tint */
  --dir-nav-bg:      var(--brand-navy);
  --dir-nav-text:    #ffffff;
  --dir-heading:     var(--brand-navy);
  --dir-accent:      var(--brand-pink);           /* pink forward */
  --dir-accent-cta:  var(--brand-red);
  --dir-card-bg:     #fff7fa;
  --dir-card-border: #f5ccd9;
  --dir-hero-bg:     #fff0f4;                     /* warm blush */
  --dir-hero-grad:   linear-gradient(135deg, #fff0f4 0%, #ffe4ef 60%, #ffd6e7 100%);
  --dir-panel-bg:    #fce8f0;
  --dir-panel-text:  var(--brand-navy);
  --dir-section-sep: var(--brand-pink);
  --dir-badge-bg:    var(--brand-pink);
  --dir-badge-text:  #ffffff;
  --dir-cert-bg:     #fff7fa;
  --dir-cert-border: var(--brand-pink);
  --dir-cert-accent: var(--brand-red);
  --dir-sign-bg:     var(--brand-pink);
  --dir-sign-text:   #ffffff;
  --dir-sign-stripe: var(--brand-navy);
  --dir-post-bg:     var(--brand-navy);
  --dir-post-text:   #ffffff;
  --dir-post-accent: var(--brand-pink);
  --dir-shirt-bg:    var(--brand-navy);
  --dir-shirt-accent: var(--brand-pink);
  --dir-cta-bg:      var(--brand-red);
  --dir-cta-text:    #ffffff;
  --dir-tag-bg:      rgba(236, 111, 138, 0.15);
  --dir-tag-text:    #82294a;
}

/* ---- Direction: V2 Trusted / Academic ---- */
body.v2 {
  --dir-bg:          #f4f7fc;                     /* cool navy tint */
  --dir-nav-bg:      var(--brand-navy);
  --dir-nav-text:    #ffffff;
  --dir-heading:     var(--brand-navy);
  --dir-accent:      var(--c-primary-light);      /* mid-navy */
  --dir-accent-cta:  var(--brand-red);
  --dir-card-bg:     var(--c-primary-tint);       /* navy tint card */
  --dir-card-border: #b8ccec;
  --dir-hero-bg:     var(--brand-navy);
  --dir-hero-grad:   linear-gradient(135deg, #082861 0%, #0f3d8c 60%, #082861 100%);
  --dir-panel-bg:    var(--c-primary-tint);
  --dir-panel-text:  var(--brand-navy);
  --dir-section-sep: var(--c-primary-light);
  --dir-badge-bg:    var(--brand-navy);
  --dir-badge-text:  #ffffff;
  --dir-cert-bg:     #ffffff;
  --dir-cert-border: var(--brand-navy);
  --dir-cert-accent: var(--brand-navy);
  --dir-sign-bg:     var(--brand-navy);
  --dir-sign-text:   #ffffff;
  --dir-sign-stripe: var(--brand-red);
  --dir-post-bg:     #ffffff;
  --dir-post-text:   var(--brand-navy);
  --dir-post-accent: var(--brand-red);
  --dir-shirt-bg:    var(--brand-navy);
  --dir-shirt-accent: #ffffff;
  --dir-cta-bg:      var(--brand-red);
  --dir-cta-text:    #ffffff;
  --dir-tag-bg:      rgba(8, 40, 97, 0.1);
  --dir-tag-text:    var(--brand-navy);
}

/* ============================================================
   Demo page chrome
   ============================================================ */

.demo-header {
  background: var(--dir-nav-bg);
  color: var(--dir-nav-text);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.demo-header__logo {
  height: 36px;
  width: auto;
}

.demo-header__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.demo-back {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dir-nav-text);
  opacity: 0.7;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  transition: opacity 0.15s;
}
.demo-back:hover { opacity: 1; }

.demo-body {
  background: var(--dir-bg);
}

/* Direction badge strip */
.demo-direction-badge {
  background: var(--dir-accent-cta);
  color: #ffffff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Section separator */
.demo-section-label {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dir-section-sep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.demo-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dir-section-sep);
  opacity: 0.3;
}

/* ============================================================
   TOUCHPOINT 1: Website Hero
   ============================================================ */

.tp-hero {
  background: var(--dir-hero-grad);
  padding: 3.5rem 1.5rem 3rem;
}

.tp-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.tp-hero__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dir-accent-cta);
  margin-bottom: 0.75rem;
}

.tp-hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--dir-heading);
  margin-bottom: 1rem;
}

.tp-hero__sub {
  font-size: var(--fs-md);
  line-height: var(--lh-lead);
  color: var(--neutral-700);
  margin-bottom: 1.5rem;
}

/* V1: headline on light bg */
body.v1 .tp-hero__headline { color: var(--brand-navy); }
body.v1 .tp-hero__sub { color: var(--neutral-700); }
/* V2: headline on dark bg */
body.v2 .tp-hero__headline { color: #ffffff; }
body.v2 .tp-hero__sub { color: rgba(255,255,255,0.82); }
body.v2 .tp-hero__eyebrow { color: var(--brand-pink); }

.tp-hero__cta {
  display: inline-block;
  background: var(--dir-cta-bg);
  color: var(--dir-cta-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.tp-hero__stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.tp-hero__stat { text-align: left; }

.tp-hero__stat-num {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--dir-accent-cta);
  line-height: 1;
}

.tp-hero__stat-label {
  font-size: var(--fs-sm);
  color: var(--neutral-400);
  line-height: var(--lh-body);
  margin-top: 0.15rem;
}

body.v2 .tp-hero__stat-label { color: rgba(255,255,255,0.6); }

.tp-hero__illus {
  display: flex;
  justify-content: center;
  position: relative;
}

.tp-hero__illus img {
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  object-fit: cover;
}

/* V1: floating blob behind illustration */
body.v1 .tp-hero__illus::before {
  content: '';
  position: absolute;
  inset: -12px -16px;
  background: rgba(236, 111, 138, 0.18);
  border-radius: 40% 60% 50% 50% / 40% 40% 60% 60%;
  z-index: 0;
}
body.v1 .tp-hero__illus img { position: relative; z-index: 1; }

/* V2: structured navy frame */
body.v2 .tp-hero__illus::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  background: rgba(15, 61, 140, 0.35);
  border-radius: 20px;
  z-index: 0;
}
body.v2 .tp-hero__illus img { position: relative; z-index: 1; }

/* ============================================================
   TOUCHPOINT 2: Facebook Post 1080x1080
   ============================================================ */

.tp-social {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.tp-social__frame {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  background: var(--dir-post-bg);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 40px rgba(8,40,97,0.18);
}

body.v1 .tp-social__frame {
  background: linear-gradient(145deg, var(--brand-navy) 0%, #0d3578 100%);
}

body.v2 .tp-social__frame {
  background: #ffffff;
  border: 2px solid var(--brand-navy);
}

.tp-social__top {
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tp-social__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--dir-post-accent);
  flex-shrink: 0;
}

body.v2 .tp-social__avatar { border-color: var(--brand-navy); }

.tp-social__avatar img { width: 100%; height: 100%; object-fit: cover; }

.tp-social__handle {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

body.v2 .tp-social__handle { color: var(--brand-navy); }

.tp-social__handle span {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  opacity: 0.7;
}

.tp-social__illus {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tp-social__illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* V1: pink overlay strip at bottom of image */
body.v1 .tp-social__illus::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(8,40,97,0.85) 0%, transparent 100%);
}

body.v2 .tp-social__illus::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(8,40,97,0.9) 0%, transparent 100%);
}

.tp-social__caption {
  padding: 0.85rem 1.25rem 1.1rem;
  position: relative;
}

/* V1: caption inside the navy area (absolute over image) */
body.v1 .tp-social__frame { flex-direction: column; }

.tp-social__tag {
  display: inline-block;
  background: var(--dir-post-accent);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

body.v2 .tp-social__tag { background: var(--brand-navy); }

.tp-social__title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

body.v2 .tp-social__title { color: #ffffff; }

.tp-social__body {
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}

body.v1 .tp-social__caption { background: rgba(8,40,97,0.0); }
body.v2 .tp-social__caption { background: rgba(8,40,97,0.0); }

/* ============================================================
   TOUCHPOINT 3: Storefront Sign (Bien hieu)
   ============================================================ */

.tp-sign {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.tp-sign__outer {
  width: 100%;
  max-width: 540px;
}

.tp-sign__frame {
  background: var(--dir-sign-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(8,40,97,0.22), 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.tp-sign__stripe {
  height: 8px;
  background: var(--dir-sign-stripe);
}

.tp-sign__inner {
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.tp-sign__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-sign__logo {
  height: 64px;
  width: auto;
}

.tp-sign__text {}

.tp-sign__name {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--dir-sign-text);
  line-height: 1.15;
  letter-spacing: var(--ls-heading);
}

/* V1: pink gradient on "Ms Hong" */
body.v1 .tp-sign__name-sub {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand-pink) 0%, #ffb3c9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* V2: red underline accent */
body.v2 .tp-sign__name-sub {
  color: var(--brand-pink);
}

.tp-sign__descriptor {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
}

.tp-sign__tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-top: 0.5rem;
  font-style: italic;
}

.tp-sign__bottom {
  background: rgba(0,0,0,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* V1 sign: add pink decorative band */
body.v1 .tp-sign__frame::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--brand-pink);
}

/* V2 sign: add left red accent bar */
body.v2 .tp-sign__frame::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--brand-red);
}

/* ============================================================
   TOUCHPOINT 4: Certificate Mock
   ============================================================ */

.tp-cert {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.tp-cert__frame {
  width: 100%;
  max-width: 540px;
  background: var(--dir-cert-bg);
  border: 2px solid var(--dir-cert-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 24px rgba(8,40,97,0.1);
}

/* V1: warm corner accent */
body.v1 .tp-cert__frame::before,
body.v1 .tp-cert__frame::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(236, 111, 138, 0.2);
}
body.v1 .tp-cert__frame::before { top: -20px; left: -20px; }
body.v1 .tp-cert__frame::after  { bottom: -20px; right: -20px; }

/* V2: double-rule top and bottom */
body.v2 .tp-cert__frame::before,
body.v2 .tp-cert__frame::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
}
body.v2 .tp-cert__frame::before { top: 12px; background: linear-gradient(90deg, var(--brand-navy), var(--c-primary-light)); border-radius: 2px; }
body.v2 .tp-cert__frame::after  { bottom: 12px; background: linear-gradient(90deg, var(--brand-navy), var(--c-primary-light)); border-radius: 2px; }

.tp-cert__seal {
  width: 56px;
  height: 56px;
  background: var(--dir-cert-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 12px rgba(8,40,97,0.2);
}

body.v1 .tp-cert__seal {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
}

.tp-cert__seal-icon {
  font-size: 1.5rem;
  color: #ffffff;
}

.tp-cert__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dir-cert-accent);
  margin-bottom: 0.5rem;
}

.tp-cert__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--dir-cert-accent);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.tp-cert__body {
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--neutral-700);
  margin-bottom: 1.25rem;
}

.tp-cert__name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dir-cert-accent);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--dir-cert-border);
}

body.v1 .tp-cert__name {
  background: linear-gradient(90deg, var(--brand-red), var(--brand-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tp-cert__detail {
  font-size: var(--fs-sm);
  color: var(--neutral-400);
  margin-top: 0.75rem;
}

.tp-cert__sigs {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  gap: 1rem;
}

.tp-cert__sig {
  text-align: center;
}

.tp-cert__sig-line {
  height: 1.5px;
  width: 100px;
  background: var(--dir-cert-border);
  margin: 0 auto 0.35rem;
}

.tp-cert__sig-label {
  font-size: var(--fs-xs);
  color: var(--neutral-400);
  letter-spacing: 0.04em;
}

/* ============================================================
   TOUCHPOINT 5: Apparel / T-shirt Mock
   ============================================================ */

.tp-shirt {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.tp-shirt__scene {
  width: 100%;
  max-width: 440px;
  background: var(--neutral-100);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: 0 2px 16px rgba(8,40,97,0.08);
}

.tp-shirt__label-row {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-400);
  margin-bottom: 1.25rem;
}

/* CSS shirt shape */
.tp-shirt__shape {
  width: 220px;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(8,40,97,0.25));
}

.tp-shirt__body {
  width: 100%;
  aspect-ratio: 5 / 6;
  background: var(--dir-shirt-bg);
  border-radius: 0 0 20px 20px;
  position: relative;
}

/* Collar cutout */
.tp-shirt__body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 18%;
  background: var(--neutral-100);
  border-radius: 0 0 50% 50%;
  border: 3px solid var(--neutral-200);
}

/* Left sleeve */
.tp-shirt__sleeve-l {
  position: absolute;
  top: 0;
  left: -28%;
  width: 34%;
  height: 48%;
  background: var(--dir-shirt-bg);
  border-radius: 12px 4px 0 12px;
  transform: rotate(-8deg);
  transform-origin: right top;
}

/* Right sleeve */
.tp-shirt__sleeve-r {
  position: absolute;
  top: 0;
  right: -28%;
  width: 34%;
  height: 48%;
  background: var(--dir-shirt-bg);
  border-radius: 4px 12px 12px 0;
  transform: rotate(8deg);
  transform-origin: left top;
}

/* V1: pink trim stripe on sleeves */
body.v1 .tp-shirt__sleeve-l::after,
body.v1 .tp-shirt__sleeve-r::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--dir-shirt-accent);
  border-radius: 0 0 8px 8px;
}

/* V2: white trim stripe */
body.v2 .tp-shirt__sleeve-l::after,
body.v2 .tp-shirt__sleeve-r::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--dir-shirt-accent);
  opacity: 0.4;
  border-radius: 0 0 8px 8px;
}

.tp-shirt__chest {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  text-align: center;
}

.tp-shirt__chest-logo {
  width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  /* For white logo on dark shirt */
  filter: brightness(0) invert(1);
}

.tp-shirt__chest-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.35rem;
}

/* V1: add pink patch background under chest */
body.v1 .tp-shirt__chest::before {
  content: '';
  position: absolute;
  inset: -0.4rem -0.6rem;
  background: rgba(236, 111, 138, 0.2);
  border-radius: 8px;
  z-index: -1;
}

.tp-shirt__note {
  font-size: var(--fs-xs);
  color: var(--neutral-400);
  text-align: center;
  margin-top: 1.5rem;
  line-height: var(--lh-body);
}

/* ============================================================
   Demo footer
   ============================================================ */

.demo-footer {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.75rem;
  margin-top: 3.5rem;
}

/* ============================================================
   Comparison page
   ============================================================ */

body.compare {
  --dir-bg: #f4f5f7;
  background: #f4f5f7;
}

.compare-header {
  background: var(--brand-navy);
  color: #ffffff;
  text-align: center;
  padding: 2rem 1.5rem;
}

.compare-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-pink);
  margin-bottom: 0.5rem;
}

.compare-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: var(--lh-heading);
  margin-bottom: 0.75rem;
}

.compare-header__sub {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  opacity: 0.8;
  max-width: 560px;
  margin: 0 auto;
}

.compare-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.compare-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.compare-intro p {
  font-size: var(--fs-base);
  color: var(--neutral-700);
  line-height: var(--lh-body);
}

/* Two column grid */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.compare-col {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(8,40,97,0.1);
}

.compare-col__header {
  padding: 1.5rem;
  text-align: center;
}

.compare-col--v1 .compare-col__header {
  background: linear-gradient(135deg, #fff0f4, #ffe4ef);
  border-bottom: 3px solid var(--brand-pink);
}

.compare-col--v2 .compare-col__header {
  background: var(--brand-navy);
  border-bottom: 3px solid var(--brand-red);
}

.compare-col__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.compare-col--v1 .compare-col__tag {
  background: var(--brand-pink);
  color: #ffffff;
}

.compare-col--v2 .compare-col__tag {
  background: var(--brand-red);
  color: #ffffff;
}

.compare-col__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.compare-col--v1 .compare-col__name { color: var(--brand-navy); }
.compare-col--v2 .compare-col__name { color: #ffffff; }

.compare-col__desc {
  font-size: 0.85rem;
  line-height: 1.55;
}

.compare-col--v1 .compare-col__desc { color: var(--neutral-700); }
.compare-col--v2 .compare-col__desc { color: rgba(255,255,255,0.75); }

.compare-col__target {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  margin-top: 0.6rem;
}

.compare-col--v1 .compare-col__target {
  background: rgba(236,111,138,0.15);
  color: #82294a;
}

.compare-col--v2 .compare-col__target {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.compare-col__link {
  display: block;
  padding: 1rem 1.5rem;
  text-align: center;
}

.compare-col__link a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  width: 100%;
  text-align: center;
}

.compare-col--v1 .compare-col__link a {
  background: var(--brand-navy);
  color: #ffffff;
}

.compare-col--v2 .compare-col__link a {
  background: var(--brand-red);
  color: #ffffff;
}

/* Color swatches in compare */
.compare-col__swatches {
  display: flex;
  gap: 0.35rem;
  padding: 0.85rem 1.5rem;
  justify-content: center;
  border-bottom: 1px solid var(--neutral-200);
}

.compare-col--v2 .compare-col__swatches {
  border-bottom-color: rgba(255,255,255,0.1);
}

.compare-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Trait list */
.compare-col__traits {
  list-style: none;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--neutral-200);
}

.compare-col__trait {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--neutral-700);
  line-height: 1.45;
}

.compare-col__trait-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.compare-col--v1 .compare-col__trait-dot { background: var(--brand-pink); }
.compare-col--v2 .compare-col__trait-dot { background: var(--brand-navy); }

/* Thumbnail previews in compare col */
.compare-col__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
}

.compare-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.compare-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-thumb__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.2rem;
  background: rgba(8,40,97,0.7);
  color: rgba(255,255,255,0.9);
}

/* Compare table at bottom */
.compare-table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(8,40,97,0.07);
}

.compare-table th {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.compare-table th:first-child {
  width: 28%;
}

.compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: top;
  line-height: 1.5;
  color: var(--neutral-700);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:nth-child(even) td {
  background: var(--neutral-50);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--neutral-900);
}

.compare-table td.v1-cell {
  border-left: 3px solid var(--brand-pink);
}

.compare-table td.v2-cell {
  border-left: 3px solid var(--brand-navy);
}

.compare-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding: 0 1.5rem;
}

.compare-footer__note {
  font-size: 0.82rem;
  color: var(--neutral-400);
  line-height: var(--lh-body);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 680px) {
  .tp-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tp-hero__illus {
    order: -1;
  }

  .tp-sign__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .tp-sign__logo-wrap {
    justify-content: center;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-col--v2 .compare-col__traits,
  .compare-col--v2 .compare-col__trait {
    color: var(--neutral-700);
  }

  .tp-cert__sigs {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .demo-header { padding: 1rem 1rem; }
  .tp-social__frame { max-width: 100%; }
  .tp-shirt__shape { width: 160px; }
}
