/*
 * « Testez une de vos fiches » (ADR-0162): the page, and the pill at the top of
 * the landing. Octopia's colours and type; nothing here touches another page.
 */

.try-main {
  min-height: calc(100vh - 62px);
  padding: clamp(36px, 8vh, 88px) 16px clamp(48px, 8vh, 96px);
  background: linear-gradient(180deg, var(--blue-050) 0, var(--surface) 560px);
}

.try-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.try-icon { flex: none; }

.try-enter { animation: try-rise .34s ease-out both; }
@keyframes try-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- the first screen */
.try-entry { max-width: 720px; margin: 0 auto; text-align: center; }
.try-entry h1 { margin: 0 0 18px; font-size: clamp(40px, 8vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 650; color: var(--blue-900); text-wrap: balance; }
.try-entry-lede { margin: 0 auto 34px; max-width: 600px; font-size: clamp(17px, 2.4vw, 20px); line-height: 1.45; color: var(--ink-700); text-wrap: balance; }

.try-pill { position: relative; display: flex; align-items: center; gap: 10px; height: 68px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 6px rgba(28, 95, 161, .07), 0 14px 34px rgba(12, 49, 89, .10); transition: box-shadow .16s, border-color .16s; }
.try-pill:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 6px rgba(28, 95, 161, .16), 0 14px 34px rgba(12, 49, 89, .12); }
.try-pill-mark { flex: none; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--blue-050); color: var(--blue-700); }
.try-pill input[type="text"], .try-pill input[type="text"]:focus { flex: 1 1 0; width: 0; min-width: 0; height: 100%; padding: 0 4px; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; font: inherit; font-size: 17px; color: var(--ink-900); text-overflow: ellipsis; }
.try-pill input::placeholder { color: var(--ink-400); opacity: 1; }
.try-pill button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
@media (max-width: 620px) {
  .try-pill { height: 60px; padding: 6px; gap: 6px; }
  .try-pill-mark { width: 40px; height: 40px; }
  .try-pill input[type="text"], .try-pill input[type="text"]:focus { font-size: 16px; }
  .try-pill button { height: 46px; padding: 0 16px; font-size: 15px; }
}
@media (max-width: 360px) {
  .try-pill-mark { display: none; }
  .try-pill input[type="text"], .try-pill input[type="text"]:focus { padding-left: 12px; }
}

.try-under { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 4px 30px; margin: 16px 0 0; }
.try-cheer { display: inline-flex; align-items: flex-end; gap: 8px; margin: 0; color: var(--blue-700); font-size: 18px; font-weight: 600; }
.try-cheer svg { margin-bottom: 2px; }
.try-time { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 0; font-size: 14px; color: var(--ink-500); }

/* What one gets, under the field: the landing's own example, fading out. */
.try-sample { max-width: 960px; margin: clamp(44px, 9vh, 84px) auto 0; text-align: center; }
.try-sample p { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--blue-700); }
.try-sample div { overflow: hidden; max-height: 420px; border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 18px 50px rgba(12, 49, 89, .08); -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
.try-sample img { display: block; width: 100%; height: auto; }

/* ----------------------------------------------------------- the narrow card */
.try-card { position: relative; max-width: 520px; margin: 44px auto 0; padding: 62px clamp(22px, 5vw, 44px) 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 22px 60px rgba(12, 49, 89, .09); text-align: center; }
.try-card h1 { margin: 0 0 8px; font-size: clamp(27px, 5vw, 34px); line-height: 1.15; letter-spacing: -.025em; color: var(--ink-900); }
.try-card-wide { max-width: 640px; margin-top: 0; padding-top: clamp(26px, 5vw, 38px); text-align: left; }

.try-badge { position: absolute; top: -36px; left: 50%; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-left: -36px; border-radius: 50%; background: var(--surface); color: var(--blue-700); box-shadow: 0 0 0 10px var(--blue-100), 0 8px 20px rgba(12, 49, 89, .10); }
.try-badge-alert { color: #b3412f; box-shadow: 0 0 0 10px #fbe9e5, 0 8px 20px rgba(12, 49, 89, .10); }

.try-lede { margin: 0 0 16px; font-size: 17px; line-height: 1.5; color: var(--ink-700); overflow-wrap: anywhere; }
.try-lede strong { color: var(--ink-900); }
.try-offer { margin: 0 0 14px; font-size: 15.5px; line-height: 1.5; color: var(--ink-700); }

.try-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 13px; border-radius: 999px; background: var(--blue-050); color: var(--blue-700); font-size: 14px; font-weight: 500; }
.try-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.try-input { display: flex; align-items: center; gap: 10px; height: 58px; margin: 22px 0 14px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface-sunken); color: var(--ink-500); transition: border-color .14s, box-shadow .14s, background .14s; }
.try-input:focus-within { border-color: var(--blue-500); background: var(--surface); box-shadow: 0 0 0 4px var(--blue-100); }
.try-input input[type="email"], .try-input input[type="password"], .try-input input:focus { flex: 1 1 auto; width: auto; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; font: inherit; font-size: 16px; color: var(--ink-900); }
.try-input input::placeholder { color: var(--ink-400); opacity: 1; }

.try-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 24px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.try-btn:hover { color: #fff; }

.try-note { display: flex; justify-content: center; gap: 7px; margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-500); overflow-wrap: anywhere; text-align: left; }
.try-note .try-icon { margin-top: 2px; }
.try-note a { color: var(--ink-700); }
.try-note-center { display: block; text-align: center; }
.try-card .try-note:not(:has(.try-icon)) { display: block; text-align: center; }
.try-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 14px 0 0; }
.try-link { padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink-500); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.try-link:hover { color: var(--ink-900); }

.try-error { margin: 12px 0 14px; padding: 10px 14px; border-radius: 14px; background: #fdecec; color: #a32020; font-size: 14.5px; line-height: 1.45; text-align: left; }
.try-error-top { max-width: 520px; margin: 0 auto 16px; }
.try-entry .try-error { margin: 18px 0 0; text-align: center; }
.try-sent { margin: 10px 0 14px; font-size: 14px; color: var(--ink-500); }

.try-facts { margin: 20px 0 0; padding: 4px 16px; border: 1px solid var(--line); border-radius: 16px; text-align: left; }
.try-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.try-facts div + div { border-top: 1px solid var(--line); }
.try-facts dt { font-size: 14px; color: var(--ink-500); }
.try-facts dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-900); overflow-wrap: anywhere; text-align: right; }

/* ---------------------------------------------------- the code: six boxes */
.try-otp { position: relative; max-width: 420px; margin: 22px auto; }
.try-code { display: block; width: 100%; height: 76px; padding: 0 14px; font-size: 30px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink-900); }
.try-otp.is-boxed .try-code { position: absolute; inset: 0; height: 100%; z-index: 1; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; opacity: 0; outline: 0; }
.try-otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 2vw, 10px); }
.try-otp-boxes span { display: flex; align-items: center; justify-content: center; height: clamp(58px, 16vw, 76px); border: 2px solid var(--line); border-radius: 18px; background: var(--surface-sunken); color: var(--ink-900); font-size: clamp(26px, 7.5vw, 34px); font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .12s, box-shadow .12s; }
.try-otp-boxes span.is-current { border-color: var(--blue-600); background: var(--surface); box-shadow: 0 0 0 4px var(--blue-100); }

/* ------------------------------------------------------------- the wait */
.try-wait-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 10px; }
.try-wait-head h1 { margin: 0; }
.try-count { flex: none; margin: 0; font-size: 16px; font-weight: 600; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.try-bar { height: 8px; margin: 20px 0 22px; border-radius: 999px; background: var(--blue-100); overflow: hidden; }
.try-bar span { display: block; height: 100%; border-radius: 999px; background: var(--blue-600); transition: width .7s ease; }

.try-film { position: relative; width: min(100%, 248px); aspect-ratio: 416 / 463; margin: 0 auto 18px; border-radius: 20px; overflow: hidden; background: var(--blue-050); }
.try-film video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.try-film video.is-on { opacity: 1; }
.try-film-idle { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); animation: try-turn 1s linear infinite; }
@keyframes try-turn { to { transform: rotate(360deg); } }

.try-steps { list-style: none; margin: 0; padding: 0; }
.try-steps li { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 15.5px; color: var(--ink-700); transition: opacity .3s; }
.try-face { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-050); color: var(--blue-700); }
.try-face img { display: block; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.try-face-done { position: absolute; right: -3px; bottom: -3px; display: none; align-items: center; justify-content: center; width: 19px; height: 19px; border: 2px solid var(--surface); border-radius: 50%; background: var(--blue-600); color: #fff; }
.try-step-label { flex: 1 1 auto; min-width: 0; }
.try-spinner { display: none; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--blue-100); border-top-color: var(--blue-600); animation: try-turn .9s linear infinite; }

.try-steps li.is-done .try-face-done { display: flex; }
.try-steps li.is-current { color: var(--ink-900); font-weight: 600; }
.try-steps li.is-current .try-face { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--blue-500); }
.try-steps li.is-current .try-spinner { display: block; }
.try-steps li.is-next { color: var(--ink-400); }
.try-steps li.is-next .try-face { opacity: .45; filter: grayscale(1); }

@media (max-width: 620px) {
  .try-card { margin-top: 40px; }
  .try-card-wide { margin-top: 0; }
  .try-wait-head { flex-direction: column; gap: 2px; }
  .try-film { width: min(100%, 200px); }
}

@media (prefers-reduced-motion: reduce) {
  .try-enter, .try-film-idle, .try-spinner { animation: none; }
  .try-bar span, .try-pill, .try-input, .try-film video { transition: none; }
}

/* ------------------------------------- the pill at the top of the landing */
/* A grid item sizes to its content by default: the field must not widen the
   hero's column past the screen. */
.v2-hero-grid > div { min-width: 0; }
.try-hero { margin: 26px 0 0; max-width: 620px; }
.try-hero .try-pill { box-shadow: 0 0 0 6px rgba(255, 255, 255, .10), 0 14px 34px rgba(0, 0, 0, .28); border-color: transparent; }
.try-hero-under { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0 8px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.try-hero-under span { display: inline-flex; align-items: center; gap: 6px; }
.try-hero-under a { color: #fff; text-decoration: underline; text-underline-offset: .18em; }
