/* The ambassador programme (pages/ambasadori.html, T1026-47): full-width bands in turn, navy hero with three phones and
   real book art, big coloured tiles, a pink strip of post ideas, the steps, the form on yellow, the FAQ, a navy close.
   The page's bands touch: the main's gap and its hairlines are off here. Motion is a slow float, off when the reader
   asks for less motion; Mio never moves. */
.main:has(.amb-hero) { gap: 0; padding-bottom: 0; }
.main:has(.amb-hero) > section + section::before { content: none; }
.amb-band { padding-block: clamp(56px, 7vw, 104px); }
.amb-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.amb-h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: var(--navy); text-wrap: balance; }
.amb-sub { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 36em; }
.amb-hl { color: var(--yellow); }

/* ---------- hero ---------- */
.amb-hero { position: relative; overflow: hidden; padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); background: var(--navy); color: #fff; }
.amb-hero::after { content: ""; position: absolute; right: -12vw; top: -20vw; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 194, 251, 0.22), rgba(255, 194, 251, 0)); pointer-events: none; }
.amb-hero .crumbs, .amb-hero .crumbs a { color: rgba(255, 255, 255, 0.7); }
.amb-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.amb-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.amb-kicker { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--pink); color: var(--navy); font-size: 14px; font-weight: 700; }
.amb-hero__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.8vw, 84px); line-height: 0.98; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.amb-hero__lead { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, 0.86); max-width: 32em; }
.amb-hero__actions { margin-top: 4px; }
.amb-hero__note { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.7); max-width: 30em; }

.amb-hero__art { position: relative; min-height: clamp(420px, 44vw, 600px); }
.amb-prop { position: absolute; filter: drop-shadow(0 18px 30px rgba(10, 18, 45, 0.45)); }
.amb-prop--book { width: 36%; height: auto; left: -2%; top: 4%; rotate: -12deg; }
.amb-prop--stickers { width: 34%; height: auto; right: -3%; bottom: 0; rotate: 9deg; }
.amb-prop--mio { width: 22%; left: 2%; bottom: 2%; rotate: -6deg; }
.amb-prop--mio .face { width: 100%; height: auto; display: block; }
.amb-phones { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0; }
.amb-phone { position: relative; margin: 0; width: 31%; aspect-ratio: 9 / 16; padding: 7px; border-radius: 28px; background: #0d1530; box-shadow: 0 30px 60px rgba(5, 10, 30, 0.5), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.amb-phone--1 { rotate: -8deg; translate: 8% 6%; z-index: 1; }
.amb-phone--2 { width: 35%; z-index: 3; }
.amb-phone--3 { rotate: 8deg; translate: -5% 6%; z-index: 2; }
.amb-phone--3 .amb-phone__chip { left: auto; right: 10px; }
.amb-phone--1 .amb-phone__chip { bottom: 22px; }
.amb-phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; background: #f3ead8; }
.amb-phone__media { display: block; width: 100%; height: 100%; object-fit: cover; }
.amb-phone--2 .amb-phone__media { object-position: 70% 50%; }
.amb-phone__bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.amb-phone__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); }
.amb-phone__bars i:first-child { background: #fff; }
/* the clip's phone (T1026-53): each bar fills as its third of the slowed clip plays (assets/js/ambasadori.js) */
.amb-phone__bars i { overflow: hidden; }
.amb-phone__bars b { display: block; width: 0; height: 100%; background: #fff; }
.amb-phone__bars--live i:first-child { background: rgba(255, 255, 255, 0.55); }
.amb-phone__bars--live i:first-child b { width: 100%; }
.amb-phone__chip { position: absolute; left: 10px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--navy); font-size: 13px; font-weight: 800; line-height: 1.2; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
@media (prefers-reduced-motion: no-preference) {
  .amb-phone--1 { animation: amb-float 11s ease-in-out infinite; }
  .amb-phone--2 { animation: amb-float 12s ease-in-out -3s infinite; }
  .amb-phone--3 { animation: amb-float 11.5s ease-in-out -6s infinite; }
  .amb-prop--book, .amb-prop--stickers { animation: amb-float 13s ease-in-out -4s infinite; }
}
@keyframes amb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- what you get: big tiles ---------- */
.amb-gets { background: var(--bg); }
.amb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.amb-tile { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 0.9fr; align-items: center; gap: 20px; min-height: 300px; padding: clamp(24px, 3vw, 40px); border-radius: 32px; }
.amb-tile--yellow { background: var(--yellow); }
.amb-tile--navy { background: var(--navy); color: #fff; }
.amb-tile--pink { background: var(--pink); }
.amb-tile--mist { background: var(--mist); }
.amb-tile__text { display: flex; flex-direction: column; gap: 12px; }
.amb-tile__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
.amb-tile__body { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--navy); opacity: 0.85; }
.amb-tile--navy .amb-tile__title, .amb-tile--navy .amb-tile__body { color: #fff; }
.amb-tile__art { width: 100%; height: auto; rotate: 4deg; filter: drop-shadow(0 14px 22px rgba(20, 30, 60, 0.22)); }
.amb-tile--navy .amb-tile__art { rotate: -5deg; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.4)); }

.amb-ticket { position: relative; justify-self: center; display: grid; gap: 6px; justify-items: center; width: min(100%, 240px); padding: 26px 18px; border-radius: 18px; background: #fff; color: var(--navy); rotate: -6deg; box-shadow: 0 18px 30px rgba(20, 30, 60, 0.2); }
.amb-ticket::before, .amb-ticket::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--yellow); }
.amb-ticket::before { left: -13px; }
.amb-ticket::after { right: -13px; }
.amb-ticket__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.amb-ticket__code { padding: 6px 16px; border: 2px dashed var(--navy); border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); letter-spacing: 0.04em; }
.amb-ticket__line { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* ---------- what you post: pink strip of cards ---------- */
.amb-posts { background: var(--pink); }
.amb-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.amb-card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 12px 22px; border-radius: 26px; background: #fff; box-shadow: 0 14px 30px rgba(36, 59, 121, 0.12); }
.amb-card:nth-child(odd) { rotate: -1.5deg; }
.amb-card:nth-child(even) { rotate: 1.5deg; translate: 0 18px; }
.amb-card__pic { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 18px; background: var(--mist); }
.amb-card__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amb-card:nth-child(4) .amb-card__pic img { object-fit: contain; padding: 10px; }
.amb-card__title { margin: 6px 8px 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--navy); }
.amb-card__text { margin: 0 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* ---------- how ---------- */
.amb-how { background: var(--bg); }

/* ---------- the form, on yellow ---------- */
.amb-apply { background: var(--yellow); scroll-margin-top: 70px; }
.amb-apply__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.amb-apply__art { position: relative; min-height: 420px; }
.amb-apply__mio { position: absolute; width: 46%; left: 0; top: 0; rotate: -8deg; }
.amb-apply__mio .face { width: 100%; height: auto; display: block; }
.amb-apply__book { position: absolute; width: 58%; height: auto; right: 4%; top: 22%; border-radius: 6px 14px 14px 6px; rotate: 7deg; box-shadow: -6px 0 0 #1d3166 inset, 0 24px 40px rgba(36, 59, 121, 0.3); }
.amb-apply__book--2 { width: 50%; left: 6%; right: auto; top: 54%; rotate: -9deg; }

.amb { padding: clamp(22px, 3.5vw, 44px); border-radius: 32px; background: var(--surface); box-shadow: 0 30px 60px rgba(36, 59, 121, 0.16); }
.amb-form-head { display: grid; gap: 10px; margin-bottom: 22px; }
.amb-form { display: grid; gap: 16px; }
.amb-field { display: grid; gap: 7px; min-width: 0; }
.amb-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.amb-input { width: 100%; height: 56px; padding: 0 18px; border: 1.5px solid var(--border-2); border-radius: 16px; background: #fff; color: var(--text); font: inherit; font-size: 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.amb-input--area { height: auto; min-height: 140px; padding: 14px 18px; line-height: 1.5; resize: vertical; }
.amb-input::placeholder { color: var(--text-3); opacity: 1; }
.amb-input:hover { border-color: var(--text-3); }
.amb-input:focus { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
.is-bad > .amb-input, .amb-field.is-bad .amb-input, .amb-net.is-bad .amb-input { border-color: #c4321f; }
.is-bad > .amb-label { color: #8c1d18; }

.amb-nets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border-radius: 22px; background: var(--mist); }
.amb-net { display: grid; gap: 7px; min-width: 0; }
.amb-net__name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy); }
.amb-hint { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--text-2); }
.amb-nets.is-bad { box-shadow: inset 0 0 0 1.5px #c4321f; }
.amb-nets.is-bad .amb-hint { color: #8c1d18; font-weight: 600; }

.amb-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.amb-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.amb-check a { color: var(--navy); text-decoration: underline; }
.amb-check.is-bad span { color: #8c1d18; }
.amb-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.amb-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.amb-btn[disabled] { opacity: 0.6; cursor: progress; }
.amb-send__note { margin: 0; font-size: 14px; color: var(--text-2); max-width: 24em; }
.amb-error { margin: 0; padding: 14px 18px; border-radius: 16px; background: #fdecea; color: #8c1d18; font-size: 15px; font-weight: 600; line-height: 1.5; }
.amb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.amb-done { display: grid; gap: 12px; justify-items: start; padding: 8px 0; }
.amb-done[hidden], .amb-form-head[hidden], .amb-form[hidden], .amb-error[hidden] { display: none; }

/* ---------- FAQ and the close ---------- */
.amb-faq { background: var(--bg); }
.amb-close { background: var(--navy); color: #fff; }
.amb-close__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.amb-close__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.amb-close__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.amb-close__lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, 0.9); max-width: 32em; }
.amb-close__sub { margin: 0; font-size: 16px; color: rgba(255, 255, 255, 0.72); }
.amb-close__art { margin: 0; }
.amb-close__art img { width: 100%; height: auto; border-radius: 28px; rotate: 2deg; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }

/* ---------- tablet and phone ---------- */
@media (max-width: 1080px) {
  .amb-cards { grid-template-columns: repeat(2, 1fr); }
  .amb-card:nth-child(even) { translate: none; }
}
@media (max-width: 900px) {
  .amb-hero__grid, .amb-close__grid, .amb-apply__grid { grid-template-columns: 1fr; }
  .amb-hero__art { min-height: 0; aspect-ratio: 1 / 1.02; margin-top: 8px; }
  .amb-tiles { grid-template-columns: 1fr; }
  .amb-apply__art { display: none; }
}
@media (max-width: 600px) {
  .amb-band { padding-block: 52px; }
  .amb-hero { padding-top: 16px; }
  .amb-hero__title { font-size: 46px; }
  .amb-hero .btn--lg { width: 100%; justify-content: space-between; }
  .amb-phone { padding: 5px; border-radius: 20px; }
  .amb-phone__screen { border-radius: 16px; }
  .amb-phone__chip { font-size: 11px; padding: 4px 9px; left: 7px; bottom: 8px; }
  .amb-phone--3 .amb-phone__chip { left: auto; right: 7px; }
  .amb-tile { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
  .amb-tile__art { width: 78%; justify-self: center; }
  .amb-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .amb-card, .amb-card:nth-child(n) { rotate: none; translate: none; padding: 8px 8px 16px; border-radius: 20px; }
  .amb-card__title { font-size: 17px; margin: 4px 4px 0; }
  .amb-card__text { font-size: 13.5px; margin: 0 4px; }
  /* the form as an app screen: edge to edge on the yellow, one column, a full-width button */
  .amb-apply { padding-block: 28px 40px; }
  .amb-apply .wrap { padding-inline: 10px; }
  .amb { border-radius: 26px; padding: 22px 18px; }
  .amb-nets { grid-template-columns: 1fr; padding: 12px; }
  .amb-btn { width: 100%; justify-content: space-between; }
  .amb-close__art { order: -1; }
}
