/* /css/pages.css — kiểu riêng cho từng trang: trang chủ, câu chuyện, hoạt động, đồng hành */

/* =========================================================
   TRANG CHỦ — câu chuyện cuộn
   ========================================================= */
.story {
  position: relative;
  height: 1680vh;
}

.story-steps {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  z-index: 6;
  display: grid;
  pointer-events: none;
  padding: calc(var(--header-h) + 16px) var(--gutter) max(9vh, 48px);
}

.story-step {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  width: min(100%, 36rem);
  text-align: center;
  opacity: 0;
  will-change: opacity, transform;
}

.story-step.is-active { pointer-events: auto; }

/* Khung đặt cạnh bên để không che bờ vai em (mobile: lên trên) */
.story-step[data-pos="side"] { align-self: start; }

@media (min-width: 900px), (min-aspect-ratio: 5/4) and (max-height: 639px) {
  .story-step[data-pos="side"] {
    align-self: center;
    justify-self: start;
    width: min(100%, 26rem);
  }
}

/* Màn hình ngang và thấp: khung cuối nằm bên trái, nhường chỗ cho bạn nhỏ bên phải */
@media (min-aspect-ratio: 5/4) and (max-height: 639px) {
  .story-step--final {
    align-self: center;
    justify-self: start;
    width: min(56%, 34rem);
    margin-top: 0;
    text-align: left;
  }
  .story-step--final .title-wave { font-size: clamp(2.2rem, 13vh, 4.4rem); }
  .story-step--final .btn-row { justify-content: flex-start; }
  .story-step--final .final-flowers::before { display: none; }
}

.story-card {
  display: grid;
  gap: .5em;
  padding: 20px 24px;
  border-radius: 30px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Nền tối (hoàng hôn): chữ kem */
.story-step[data-tone="light"] .story-card {
  background: rgba(46, 34, 74, .32);
  color: var(--cream);
}

/* Nền sáng (nắng, đồi): chữ mực */
.story-step[data-tone="dark"] .story-card {
  background: rgba(255, 246, 218, .66);
  color: var(--ink);
  box-shadow: 0 18px 40px -26px rgba(58, 47, 85, .6);
}

.story-step[data-tone="dark"] .info-caps {
  color: var(--violet-soft);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.story-line {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.3vw, 1.75rem);
  line-height: 1.42;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-info);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: var(--shadow-text);
}

.scroll-hint { gap: 2px; }

/* Cuộn len nhỏ nhún xuống */
.scroll-hint__ball {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 6px rgba(40, 30, 70, .35));
  animation: hint-ball 1.8s var(--ease-soft) infinite;
}

/* Ba mũi tên chữ V sáng lần lượt từ trên xuống */
.scroll-hint__arrows {
  display: grid;
  justify-items: center;
  margin: 2px 0 6px;
}
.scroll-hint__arrows i {
  width: 14px;
  height: 14px;
  margin-top: -6px;
  border-right: 3px solid var(--cream);
  border-bottom: 3px solid var(--cream);
  border-radius: 2px;
  transform: rotate(45deg);
  opacity: .15;
  filter: drop-shadow(0 2px 3px rgba(40, 30, 70, .4));
  animation: hint-arrow 1.8s ease-in-out infinite;
}
.scroll-hint__arrows i:nth-child(2) { animation-delay: .2s; }
.scroll-hint__arrows i:nth-child(3) { animation-delay: .4s; border-color: var(--sun); }

@keyframes hint-ball {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(7px) rotate(25deg); }
}
@keyframes hint-arrow {
  0%, 100% { opacity: .15; }
  30% { opacity: 1; }
}

/* Chuột thì "Cuộn xuống", màn hình cảm ứng thì "Vuốt xuống" */
.scroll-hint__text--touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .scroll-hint__text--mouse { display: none; }
  .scroll-hint__text--touch { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint__ball, .scroll-hint__arrows i { animation: none; opacity: 1; }
}

.skip-story {
  display: inline-block;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--cream);
  text-underline-offset: 4px;
}

/* Khung cuối: tiêu đề + nút */
.story-step--final {
  align-self: start;
  margin-top: clamp(4px, 4vh, 48px);
  width: min(100%, 52rem);
}

.story-step--final .info-caps { margin-bottom: .2em; }
.story-step--final .script { margin: .1em 0 1em; }

.final-flowers {
  position: relative;
  display: inline-block;
}

.final-flowers::before,
.final-flowers::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(40px, 8vw, 84px);
  aspect-ratio: 3 / 4;
  background: url("../assets/flowers.svg") no-repeat center / contain;
  pointer-events: none;
}

.final-flowers::before { left: 0; transform: translate(-105%, -60%) rotate(-18deg); }
.final-flowers::after { right: 0; transform: translate(105%, -40%) scaleX(-1) rotate(-14deg); }

/* Giảm chuyển động: các khung hiện thành đoạn văn tĩnh xếp dọc */
.reduced-motion .story { height: auto; }

.reduced-motion .story-steps {
  position: relative;
  height: auto;
  display: block;
  padding-bottom: 0;
}

.reduced-motion .story-step {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 70vh;
  margin: 0 auto;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
}

/* Phần sau câu chuyện */
.home-after { position: relative; z-index: 6; }

.pillars {
  display: grid;
  gap: 22px;
}

@media (min-width: 820px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  --tone: var(--pink);
  --tone-deep: var(--pink-deep);
  --tone-soft: #FFE1EC;
  --cta: linear-gradient(180deg, #FF86B3, #E24F8A);
  --cta-edge: #C23C74;
  --cta-ink: #fff;
  display: flex;
  flex-direction: column;
  gap: .6em;
  overflow: hidden;
  padding-top: clamp(34px, 5vw, 46px);
  text-decoration: none;
  color: var(--ink);
  transition: transform .5s var(--ease-bounce), box-shadow .4s;
}
.pillar[data-tone="sun"] {
  --tone: #FFD45E;
  --tone-deep: #D99413;
  --tone-soft: #FFF1C2;
  --cta: linear-gradient(180deg, #FFD966, #F5A922);
  --cta-edge: #C9861A;
  --cta-ink: #5A3400;
}
.pillar[data-tone="sky"] {
  --tone: #8ED6EA;
  --tone-deep: #3561CC;
  --tone-soft: #DDF3FA;
  --cta: linear-gradient(180deg, #6FC3EC, #3A7FD4);
  --cta-edge: #2D5DB0;
}

/* Dải len đan chữ V viền trên thẻ */
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 16px;
  background:
    linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, .55) 50% 62%, transparent 62%) 0 0 / 14px 16px,
    linear-gradient(225deg, transparent 50%, rgba(255, 255, 255, .55) 50% 62%, transparent 62%) 0 0 / 14px 16px,
    var(--tone);
  border-bottom: 3px dashed rgba(255, 255, 255, .8);
}


.pillar__badge {
  position: absolute;
  top: 28px;
  right: 20px;
  padding: .25em .8em;
  border-radius: var(--radius-pill);
  font-family: var(--font-info);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tone-deep);
  background: var(--tone-soft);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tone-deep) 35%, transparent);
}

.pillar__art {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 20%, var(--tone-soft) 70%);
  box-shadow: inset 0 0 0 3px #fff, 0 10px 18px -10px color-mix(in srgb, var(--tone-deep) 70%, transparent);
  transition: transform .6s var(--ease-bounce);
}
.pillar:has(.pillar__cta:hover, .pillar__cta:focus-visible) .pillar__art { transform: translateY(-4px) rotate(-8deg) scale(1.06); }

.pillar h3 { color: var(--violet-soft); }
.pillar__icon { width: 58px; height: 58px; }
.pillar p { color: var(--ink-soft); }

/* Nút "Xem chi tiết": viên kẹo màu theo sợi len, đường khâu chỉ bên trong, mũi tên chạy */
.pillar__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 10px 10px 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--cta);
  color: var(--cta-ink);
  text-decoration: none;
  box-shadow: 0 5px 0 var(--cta-edge), 0 14px 24px -12px var(--cta-edge);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-bounce), box-shadow .3s;
}
.pillar__cta::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px dashed rgba(255, 255, 255, .65);
  border-radius: inherit;
  pointer-events: none;
}
/* Vệt sáng lướt qua khi rê chuột */
.pillar__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-soft);
}
.pillar__cta:hover::after,
.pillar__cta:focus-visible::after { transform: translateX(120%); }
.pillar__cta:hover,
.pillar__cta:focus-visible { transform: translateY(-3px); }
.pillar__cta:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 4px; }
.pillar__cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cta-edge), 0 6px 12px -8px var(--cta-edge); }

.pillar__label {
  display: grid;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.15;
}
.pillar__label small {
  font-family: var(--font-info);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
}

.pillar__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--cta-edge);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
  transition: transform .45s var(--ease-bounce);
}
.pillar__go svg { width: 22px; height: 22px; }
.pillar__cta:hover .pillar__go,
.story-next__cta:hover .pillar__go { transform: translateX(4px) rotate(-8deg); }
.pillar__cta:hover .pillar__go svg,
.story-next__cta:hover .pillar__go svg { animation: go-nudge 1s var(--ease-soft) infinite; }

@keyframes go-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ---------- Tiếp câu chuyện: một trang sách mở ---------- */
.story-next {
  position: relative;
  display: grid;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--ink);
  background:
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(201, 168, 227, .22) 34px 36px),
    linear-gradient(135deg, #FFFDF4, #FFF1F6 60%, #F5EBFF);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgba(201, 168, 227, .55), var(--shadow-soft);
  overflow: hidden;
  transition: transform .5s var(--ease-bounce), box-shadow .4s;
}

@media (min-width: 760px) {
  .story-next { grid-template-columns: minmax(200px, .8fr) 1.2fr; }
}

/* Dải ruy băng đánh dấu trang */
.story-next__ribbon {
  position: absolute;
  top: -4px;
  right: clamp(22px, 6vw, 64px);
  width: 30px;
  height: 74px;
  background: linear-gradient(180deg, #F873A6, #E24F8A);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .15);
  transition: height .45s var(--ease-bounce);
}
.story-next:has(.story-next__cta:hover, .story-next__cta:focus-visible) .story-next__ribbon { height: 92px; }

.story-next__art svg {
  display: block;
  width: min(100%, 300px);
  margin-inline: auto;
  overflow: visible;
}
.story-next__kite { transform-origin: 160px 98px; animation: kite-sway 4s ease-in-out infinite; }
.story-next__ball { transform-origin: 196px 150px; transition: transform .8s var(--ease-bounce); }
.story-next:has(.story-next__cta:hover, .story-next__cta:focus-visible) .story-next__ball { transform: translateX(-10px) rotate(-200deg); }
.story-next__thread { stroke-dasharray: 220; stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease-soft); }
.story-next:has(.story-next__cta:hover, .story-next__cta:focus-visible) .story-next__thread { stroke-dashoffset: 24; }

@keyframes kite-sway {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-6px); }
}

.story-next__body { display: grid; gap: .55em; justify-items: start; }
.story-next__body .info-caps { display: block; }
.story-next__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.2;
  color: var(--violet-soft);
}
.story-next__text {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--ink-soft);
}
.story-next__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: .4em;
  padding: 8px 8px 8px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: var(--btn-grad);
  box-shadow: 0 5px 0 #C23C74, 0 14px 24px -12px rgba(226, 79, 138, .7);
  text-shadow: 0 1px 0 rgba(150, 30, 80, .35);
  text-decoration: none;
  transition: transform .4s var(--ease-bounce), box-shadow .3s;
}
.story-next__cta:hover,
.story-next__cta:focus-visible { transform: translateY(-3px) scale(1.02); }
.story-next__cta:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 4px; }
.story-next__cta:active { transform: translateY(4px); box-shadow: 0 1px 0 #C23C74, 0 6px 12px -8px rgba(226, 79, 138, .7); }
.story-next__cta .pillar__go { color: var(--pink-deep); text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .story-next__kite, .pillar__cta:hover .pillar__go svg, .story-next__cta:hover .pillar__go svg { animation: none; }
}

.goal-note {
  margin-top: 28px;
  padding: 16px 24px;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* =========================================================
   VÉ RĂNG CƯA (dùng ở Hoạt động & Đồng hành)
   ========================================================= */
.ticket-card {
  --tone: var(--sun);
  --tone-deep: #E7B934;
  filter: drop-shadow(0 18px 24px rgba(84, 52, 120, .2));
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease-soft);
}

.ticket-card[data-tone="pink"] { --tone: var(--pink); --tone-deep: #E46E9A; }
.ticket-card[data-tone="sky"] { --tone: var(--sky); --tone-deep: #5BB5CF; }
.ticket-card[data-tone="leaf"] { --tone: var(--leaf); --tone-deep: #7DBA3E; }

/* Viền răng cưa như tem thư bằng CSS mask radial-gradient */
.ticket {
  --r: 11px;
  position: relative;
  height: 100%;
  padding: calc(2 * var(--r));
  background: var(--tone);
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  transition: transform .6s var(--ease-bounce);
}

/* Hover: nảy nhẹ */
.ticket-card:hover .ticket,
.ticket-card:focus-within .ticket {
  transform: translateY(-10px) rotate(-.8deg);
}

.ticket__inner {
  position: relative;
  display: grid;
  height: 100%;
  border-radius: 16px;
  background: var(--cream);
  overflow: hidden;
}

.ticket__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  opacity: .16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.ticket__stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 3px dashed var(--tone-deep);
  background: color-mix(in srgb, var(--tone) 22%, var(--cream));
}

.ticket__stub .info-caps { color: var(--ink-soft); text-shadow: none; font-size: .78rem; }

.ticket__no {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  padding-top: .15em;
  color: var(--tone-deep);
}

.ticket__body {
  display: grid;
  align-content: start;
  gap: .8em;
  padding: 22px 24px 26px;
}

.ticket__body h3 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  color: var(--violet-soft);
  line-height: 1.15;
}

.ticket__body .script { font-size: 1.2rem; }

.ticket__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45em;
}

.ticket__list li {
  position: relative;
  padding-left: 1.6em;
}

.ticket__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .8em;
  height: .8em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--tone) 22% 100%);
  box-shadow: inset 0 0 0 2px var(--tone-deep);
}

.ticket__meta {
  margin-top: .4em;
  padding: .7em 1em;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 26%, transparent);
}

.ticket__meta .info-caps { color: var(--ink); text-shadow: none; font-size: .76rem; letter-spacing: .16em; }

.ticket__body .btn { justify-self: start; margin-top: .4em; }

/* =========================================================
   TRANG HOẠT ĐỘNG
   ========================================================= */
.tickets {
  display: grid;
  gap: 34px;
}

@media (min-width: 900px) {
  .tickets { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .tickets .ticket-card:nth-child(2) { margin-top: 40px; }
}

.steps-row {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps-row { grid-template-columns: repeat(3, 1fr); }
}

.step-card { text-align: center; }

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: #fff;
  background: var(--btn-grad);
  box-shadow: 0 5px 0 #C23C74;
}

.step-card h3 { color: var(--violet-soft); margin-bottom: .3em; }

.hero-plane { position: relative; }
.hero-plane .paper-plane { right: 6%; top: -10px; }

/* =========================================================
   TRANG CÂU CHUYỆN
   ========================================================= */
.prose {
  max-width: 44rem;
  margin-inline: auto;
}

.prose p + p { margin-top: 1em; }

.prose .pull {
  margin: 1.4em 0;
  padding: .2em 0 .2em 1em;
  border-left: 5px solid var(--pink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--violet-soft);
}

.names {
  display: grid;
  gap: 22px;
}

@media (min-width: 820px) {
  .names { grid-template-columns: repeat(3, 1fr); }
}

.name-card { text-align: center; }

.name-card__word {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 4.4rem);
  line-height: 1.25;
  padding-top: .12em;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.name-card .script { font-size: 1.15rem; margin: .1em 0 .6em; }

/* Timeline: sợi len chạy dọc, mỗi mốc là một nút len */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 24px;
  width: 6px;
  border-radius: 6px;
  background: repeating-linear-gradient(165deg, var(--pink) 0 8px, var(--pink-deep) 8px 11px);
  box-shadow: 0 0 0 3px rgba(255, 246, 218, .7);
}

.timeline__item {
  position: relative;
  padding-left: 68px;
}

.timeline__item + .timeline__item { margin-top: 26px; }

.timeline__knot {
  position: absolute;
  left: 8px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(35deg, transparent 0 5px, rgba(226, 79, 138, .55) 5px 7px),
    repeating-linear-gradient(-40deg, transparent 0 6px, rgba(255, 255, 255, .45) 6px 8px),
    radial-gradient(circle at 35% 30%, #FFC2D8, var(--pink) 60%, var(--pink-deep));
  box-shadow: 0 6px 12px -4px rgba(194, 60, 116, .6), 0 0 0 4px var(--cream);
}

.timeline__item .info-caps { font-size: .78rem; }
.timeline__item h3 { color: var(--violet-soft); margin: .15em 0 .35em; }

@media (min-width: 860px) {
  .timeline::before { left: 50%; margin-left: -3px; }

  .timeline__item {
    width: 50%;
    padding-left: 0;
    padding-right: 60px;
  }

  .timeline__item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 60px;
  }

  .timeline__knot { left: auto; right: -19px; }
  .timeline__item:nth-child(even) .timeline__knot { right: auto; left: -19px; }
}

.values {
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .values { grid-template-columns: repeat(3, 1fr); }
}

.value h3 { color: var(--leaf-deep); margin-bottom: .3em; }

.cta-band {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.cta-band h2 { color: var(--violet-soft); }

/* =========================================================
   TRANG ĐỒNG HÀNH
   ========================================================= */
.ways {
  display: grid;
  gap: 18px;
}

@media (min-width: 820px) {
  .ways { grid-template-columns: repeat(3, 1fr); }
}

.way h3 { color: var(--violet-soft); margin: .2em 0 .3em; }
.way__icon { width: 56px; height: 56px; }

.join-grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

@media (min-width: 960px) {
  .join-grid { grid-template-columns: 1.25fr 1fr; }
}

.join-form h2,
.bank h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--violet-soft); }

.form-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 600px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
}

.field .hint {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: .75em 1.1em;
  border: 2px solid var(--blush);
  border-radius: 18px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 4px rgba(154, 104, 201, .22);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--pink-deep);
}

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip { position: relative; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5em 1.1em;
  border-radius: var(--radius-pill);
  border: 2px solid var(--blush);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .35s var(--ease-bounce);
}

.chip span:hover { transform: translateY(-2px); }

.chip input:checked + span {
  background: var(--blush);
  border-color: var(--pink-deep);
  color: #9B2A5C;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .95rem;
}

.check input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--pink-deep);
  flex: none;
}

.form-status {
  min-height: 1.5em;
  font-weight: 700;
  color: var(--leaf-deep);
}

.form-status.is-error { color: var(--pink-deep); }

.bank-rows {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.bank-row {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
}

.bank-row dt {
  font-family: var(--font-info);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bank-row dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-weight: 800;
  word-break: break-word;
}

.copy-btn {
  flex: none;
  min-height: 36px;
  padding: .3em .9em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--blush);
  color: #9B2A5C;
  font-weight: 800;
  font-size: .85rem;
  transition: transform .3s var(--ease-bounce);
}

.copy-btn:hover { transform: scale(1.06); }

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  margin: 8px auto 0;
  border-radius: 18px;
  border: 3px dashed var(--tone-deep);
  font-size: .8rem;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .6);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.contact-list strong { font-family: var(--font-heading); color: var(--violet-soft); }

.placeholder-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 .55em;
  border-radius: 8px;
  background: rgba(255, 226, 122, .7);
  font-size: .72rem;
  font-weight: 800;
  vertical-align: middle;
}

/* Hoa ôm tiêu đề, không bị đẩy ra ngoài mép màn hình. */
.final-flowers { padding-inline: clamp(34px, 7vw, 78px); }
.final-flowers::before { left: 0; transform: translateY(-50%) rotate(-12deg); }
.final-flowers::after { right: 0; transform: translateY(-50%) scaleX(-1) rotate(-12deg); }
@media (max-width: 480px) {
  .final-flowers { padding-inline: 28px; }
  .final-flowers::before, .final-flowers::after { width: 32px; }
}
