/* PetsForFriends LP — brand tokens from app (tokens.ts) */
:root {
  --brand: #1f9fd6;
  --brand-dark: #167cab;
  --orange: #e08a3c;
  --teal: #16b39e;
  --pink: #e0518a;
  --purple: #7c6cf0;
  --canvas: #eaf5fc;
  --surface: #ffffff;
  --ink: #1f2c38;
  --ink-soft: #5d7384;
  --line: rgba(30, 60, 90, 0.09);
  --chip: #e2eef5;
  --grad: linear-gradient(120deg, #1f9fd6 0%, #4db5e6 45%, #7c6cf0 110%);
  --shadow: 0 6px 24px rgba(31, 159, 214, 0.14), 0 2px 6px rgba(30, 60, 90, 0.06);
  --shadow-lift: 0 18px 46px rgba(31, 159, 214, 0.25), 0 4px 12px rgba(30, 60, 90, 0.08);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6; color: var(--ink);
  background:
    radial-gradient(1100px 520px at 85% -8%, rgba(124, 108, 240, 0.13), transparent 60%),
    radial-gradient(900px 460px at 8% 12%, rgba(31, 159, 214, 0.16), transparent 55%),
    linear-gradient(180deg, #e6f4fc 0%, #eef6fb 55%, #fdf4ea 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }
.i { width: 20px; height: 20px; }
.i.flip { transform: scaleX(-1); }
.i-paw { width: 16px; height: 16px; color: var(--brand); vertical-align: -2px; }

/* ---------- sky decor ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; animation: drift 20s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #aedcf5; top: -140px; left: -140px; }
.b2 { width: 420px; height: 420px; background: #ffe0ba; bottom: 5%; right: -120px; animation-delay: -7s; }
.b3 { width: 340px; height: 340px; background: #cdeee8; top: 42%; left: 6%; animation-delay: -13s; }
@keyframes drift { to { transform: translate(46px, -34px) scale(1.1); } }
.cloud {
  position: absolute; height: 26px; width: 88px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 22px -12px 0 -2px rgba(255,255,255,0.85), 44px -4px 0 0 rgba(255,255,255,0.85);
  animation: sail linear infinite;
}
.c1 { top: 12%; left: -140px; animation-duration: 52s; }
.c2 { top: 26%; left: -140px; animation-duration: 74s; animation-delay: -30s; transform: scale(0.7); }
.c3 { top: 7%; left: -140px; animation-duration: 64s; animation-delay: -52s; transform: scale(1.25); opacity: 0.7; }
@keyframes sail { to { translate: calc(100vw + 300px) 0; } }
.paw-trail { position: absolute; width: 46px; height: 46px; color: rgba(31, 159, 214, 0.12); bottom: 14%; right: 10%; transform: rotate(-20deg); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 246, 251, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); text-decoration: none;
}
.logo em { color: var(--brand); font-style: normal; }
.logo img { border-radius: 12px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.logo:hover img { transform: rotate(-8deg) scale(1.1); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  color: #fff; background: var(--grad); background-size: 150% 150%;
  border: none; border-radius: 999px; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 18px rgba(31, 159, 214, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.4s ease;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); background-position: 90% 50%; box-shadow: 0 10px 26px rgba(31, 159, 214, 0.5), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn:active { transform: translateY(0) scale(0.96); }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { left: -80%; } 100% { left: 160%; } }
.btn:focus-visible, .btn-ghost:focus-visible, .chip:focus-visible, .skip:focus-visible,
.seg button:focus-visible, .photo-drop:focus-visible, .add-pet:focus-visible,
input:focus-visible, select:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn-small { font-size: 0.95rem; padding: 10px 20px; min-height: 44px; }
.btn-big { font-size: 1.12rem; padding: 17px 32px; min-height: 54px; }
.btn-full { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--brand); background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--brand); border-radius: 999px;
  padding: 12px 22px; min-height: 44px; cursor: pointer; text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn-ghost:hover { background: rgba(31, 159, 214, 0.12); transform: translateY(-1px); }
.btn-ghost .i { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 20px 110px; }
.hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.hero-logo {
  border-radius: 34px; margin-bottom: 18px;
  filter: drop-shadow(0 18px 32px rgba(31, 159, 214, 0.38));
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat { 50% { transform: translateY(-10px) rotate(-2deg); } }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  border-radius: 999px; padding: 8px 18px;
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--brand);
  box-shadow: var(--shadow);
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 7.5vw, 5.2rem); line-height: 1.05;
  margin: 22px 0 18px; letter-spacing: -0.01em;
}
.grad-word {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; position: relative;
}
.grad-word::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 0.04em; height: 0.14em;
  background: linear-gradient(120deg, rgba(31,159,214,0.25), rgba(124,108,240,0.25));
  border-radius: 999px; z-index: -1;
}
.sub { max-width: 580px; margin: 0 auto; font-size: 1.18rem; color: var(--ink-soft); }
.hero-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.counter { display: flex; align-items: center; gap: 12px; }
.counter p { font-size: 0.95rem; color: var(--ink-soft); }
.counter strong { color: var(--ink); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.avatars { display: flex; }
.av {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.05rem;
  background: var(--g); border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(30, 60, 90, 0.16);
  margin-left: -10px;
}
.av:first-child { margin-left: 0; }

/* floating pet cards */
.pet-cards { margin-top: 56px; display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; perspective: 900px; }
.pet-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9); border-radius: 24px;
  padding: 22px 30px; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  rotate: var(--rz, 0deg);
  transition: box-shadow 0.25s ease;
  will-change: transform;
}
.pet-card:hover { box-shadow: var(--shadow-lift); }
.pet-emoji { font-size: 2.8rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(30, 60, 90, 0.18)); }
.pet-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.pet-tag { font-size: 0.78rem; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); border-radius: 999px; padding: 3px 12px; }
.sticker {
  position: absolute; top: -10px; right: -10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.9rem; color: #fff;
  background: var(--sc, var(--brand));
  box-shadow: 0 4px 10px rgba(30, 60, 90, 0.25);
  rotate: 12deg;
}
.float-1 { animation: floaty 5s ease-in-out infinite; }
.float-2 { animation: floaty 6s ease-in-out -1.5s infinite; }
.float-3 { animation: floaty 5.5s ease-in-out -3s infinite; }
@keyframes floaty { 50% { transform: translateY(-13px); } }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }

/* ---------- marquee ---------- */
.marquee { background: #fff; overflow: hidden; padding: 14px 0; border-bottom: 1px solid var(--line); }
.marquee-track {
  display: flex; gap: 38px; width: max-content;
  animation: scroll 30s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 9px; }
.marquee-track .i-paw { color: var(--mc, var(--brand)); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.features { padding: 80px 20px; max-width: 1100px; margin: 0 auto; text-align: center; }
.kicker {
  font-weight: 900; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.features h2, .join-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 44px;
}
.feature-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); text-align: left; }
.feature {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: 26px;
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--ac), var(--ac2));
}
.feature::after {
  content: ""; position: absolute; right: -36px; bottom: -36px; width: 110px; height: 110px;
  border-radius: 50%; background: color-mix(in srgb, var(--ac) 8%, transparent);
  transition: transform 0.3s ease;
}
.feature:hover { transform: translateY(-7px) rotate(-0.4deg); box-shadow: var(--shadow-lift); }
.feature:hover::after { transform: scale(1.6); }
.f-icon {
  width: 54px; height: 54px; border-radius: 17px;
  display: grid; place-items: center; margin-bottom: 16px;
  color: #fff; background: linear-gradient(135deg, var(--ac), var(--ac2));
  box-shadow: 0 8px 16px color-mix(in srgb, var(--ac) 38%, transparent);
}
.f-icon svg { width: 28px; height: 28px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- join / form ---------- */
.join { padding: 30px 20px 100px; }
.join-card {
  position: relative;
  max-width: 560px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.93); border-radius: 32px;
  padding: 54px 36px 40px;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.join-logo {
  position: absolute; top: -32px; left: 50%; translate: -50% 0;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(31, 159, 214, 0.4);
}
.join-head { text-align: center; }
.join-head h2 { margin-bottom: 8px; }
.join-head p { color: var(--ink-soft); margin-bottom: 26px; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin-bottom: 34px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 86px; }
.step-item .step-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--chip); color: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.step-item .step-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.0); transition: background 0.3s ease; }
.step-item.active .step-dot { background: var(--brand); transform: scale(1.12); box-shadow: 0 4px 12px rgba(31,159,214,0.4); }
.step-item.active .step-dot::after { background: #fff; }
.step-item.done .step-dot { background: var(--teal); }
.step-item.done .step-dot::after { content: "\2713"; width: auto; height: auto; background: none; color: #fff; font-weight: 900; font-size: 0.8rem; }
.step-label { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.3s ease; }
.step-item.active .step-label { color: var(--brand-dark); }
.step-item.done .step-label { color: var(--teal); }
.step-line { flex: 0 1 56px; height: 4px; margin-top: 11px; border-radius: 2px; background: var(--chip); overflow: hidden; }
.step-fill { display: block; width: 0; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--teal)); transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

.form-step { display: none; border: none; }
.form-step.active { display: block; animation: stepIn 0.35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 18px; flex: 1; }
.field-row { display: flex; gap: 14px; }
.field label, .photo-side label { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 6px; }
.req { color: var(--pink); }
.hint-inline { font-weight: 700; color: var(--ink-soft); font-size: 0.8rem; }
input[type="text"], input[type="email"], select {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 13px 15px; min-height: 50px;
  border: 2px solid var(--line); border-radius: 14px;
  background: #fbfdfe; color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d7384' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 159, 214, 0.15); outline: none; }
input.invalid { border-color: var(--pink); }
.hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }

/* city autocomplete */
.city-field { position: relative; }
.city-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 14px);
  list-style: none; background: #fff;
  border: 2px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.city-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer; font-size: 0.95rem;
}
.city-list li[aria-selected="true"], .city-list li:hover { background: rgba(31, 159, 214, 0.1); }
.city-list .cl-flag { font-size: 1.1rem; }
.city-list .cl-country { color: var(--ink-soft); font-size: 0.82rem; margin-left: auto; white-space: nowrap; }
.city-ok { color: var(--teal) !important; }
.err { font-size: 0.85rem; font-weight: 700; color: #d23369; margin-top: 6px; }

/* pet editor */
.pet-editor { background: #f4fafd; border: 1.5px dashed rgba(31, 159, 214, 0.35); border-radius: 22px; padding: 20px; }
.photo-row { display: flex; gap: 16px; margin-bottom: 18px; }
.photo-drop {
  flex: 0 0 116px; width: 116px; height: 116px; border-radius: 26px;
  border: 2.5px dashed rgba(31, 159, 214, 0.5);
  background: #fff; cursor: pointer; overflow: hidden;
  display: grid; place-items: center; position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.photo-drop:hover, .photo-drop.dragover { border-color: var(--brand); transform: scale(1.03); box-shadow: 0 8px 18px rgba(31, 159, 214, 0.25); }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 0.8rem; color: var(--brand); }
.i-cam { width: 26px; height: 26px; color: var(--brand); }
.photo-side { flex: 1; }
.photo-side .mt { margin-top: 12px; }

.species { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-weight: 800; font-size: 0.93rem;
  color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 999px;
  padding: 9px 16px; min-height: 44px; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: scale(0.93); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--brand) 15%, #fff);
  border-color: var(--brand); color: var(--brand-dark);
}
.chip span { font-size: 1.2rem; }
.chip-sm { min-height: 38px; padding: 7px 14px; font-size: 0.86rem; }

.seg { display: flex; background: #fff; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 50px; }
.seg button {
  flex: 1; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.seg button + button { border-left: 2px solid var(--line); }
.seg button[aria-checked="true"] { background: var(--brand); color: #fff; }

.add-pet {
  width: 100%; margin-top: 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  color: var(--brand); padding: 10px; border-radius: 12px;
  transition: background 0.15s ease;
}
.add-pet:hover { background: rgba(31, 159, 214, 0.08); }

/* saved pets */
.pet-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pet-list:empty { display: none; }
.saved-pet {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px;
  padding: 10px 14px; animation: stepIn 0.3s ease both;
}
.saved-pet .sp-photo {
  width: 46px; height: 46px; border-radius: 14px; object-fit: cover;
  background: var(--chip); display: grid; place-items: center; font-size: 1.4rem; flex: none;
}
.saved-pet .sp-info { flex: 1; min-width: 0; }
.saved-pet .sp-name { font-weight: 900; font-size: 0.98rem; }
.saved-pet .sp-meta { font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-pet .sp-remove {
  border: none; background: none; cursor: pointer; color: var(--ink-soft);
  font-size: 1.2rem; line-height: 1; padding: 8px; border-radius: 8px;
}
.saved-pet .sp-remove:hover { color: var(--pink); background: rgba(224, 81, 138, 0.1); }

.step-actions { display: flex; gap: 12px; margin-top: 20px; }
.step-actions .btn { flex: 1; }
.skip {
  display: block; margin: 14px auto 0;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  color: var(--ink-soft); text-decoration: underline; padding: 6px;
}
.skip:hover { color: var(--brand); }

/* ---------- airline ticket (step 3 + success) ---------- */
.ticket {
  position: relative;
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  box-shadow: 0 10px 30px rgba(31, 159, 214, 0.16);
  overflow: hidden;
}
.t-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 20px;
  background: var(--grad); color: #fff;
}
.ticket.og .t-head { background: linear-gradient(120deg, #d99a2b 0%, #f2b94e 45%, #e0518a 130%); }
.t-airline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.06em; }
.t-airline .i-paw { color: #fff; width: 18px; height: 18px; }
.t-type { font-weight: 900; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
.t-route { display: flex; align-items: center; gap: 14px; padding: 18px 20px 6px; }
.t-port { display: flex; flex-direction: column; }
.t-port b { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; letter-spacing: 0.04em; }
.t-port span { font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.t-port.right { text-align: right; }
.t-path { flex: 1; position: relative; height: 2px; border-top: 2.5px dashed rgba(31, 159, 214, 0.4); }
.t-plane { position: absolute; top: -13px; left: 50%; translate: -50% 0; width: 24px; height: 24px; color: var(--brand); rotate: 90deg; background: #fff; }
.t-pass { padding: 10px 20px 4px; }
.t-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.t-row + .t-row { border-top: 1.5px dashed rgba(30, 60, 90, 0.13); }
.t-photo { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; background: var(--canvas); display: grid; place-items: center; font-size: 1.5rem; flex: none; box-shadow: 0 3px 8px rgba(30,60,90,0.12); }
.t-info { flex: 1; min-width: 0; }
.t-name { font-weight: 900; }
.t-name .og-chip { display: inline-block; margin-left: 6px; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; color: #9a6b10; background: linear-gradient(120deg, #ffe9b8, #ffd884); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.t-meta { font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-seat { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 0.88rem; text-align: right; }
.t-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 20px 18px; }
.t-facts div { display: flex; flex-direction: column; }
.t-facts em { font-style: normal; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.t-facts b { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.ticket.og .t-facts .t-class b { color: #c98a14; }
/* perforation + stub */
.t-perf { position: relative; border-top: 2.5px dashed rgba(30, 60, 90, 0.22); }
.t-perf::before, .t-perf::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: #eef6fb; border: 1.5px solid var(--line);
}
.t-perf::before { left: -13px; }
.t-perf::after { right: -13px; }
.t-stub { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: linear-gradient(135deg, #f2fafe, #f3f1fe); }
.ticket.og .t-stub { background: linear-gradient(135deg, #fef8ea, #fdeff5); }
.barcode {
  flex: 1; height: 44px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 9px, transparent 9px 11px, var(--ink) 11px 12px, transparent 12px 16px);
  opacity: 0.82;
}
.t-stub-info { text-align: right; }
.t-stub-info b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 1.05rem; }
.ticket.og .t-stub-info b { color: #c98a14; }
.t-stub-info span { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; color: var(--ink-soft); }
/* approval stamp */
.t-stamp {
  position: absolute; right: 18px; top: 44%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.12em;
  color: var(--teal); border: 3.5px solid var(--teal); border-radius: 12px;
  padding: 6px 14px; rotate: -14deg;
  mix-blend-mode: multiply; opacity: 0; pointer-events: none;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.6'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.85 0'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-size: 120px 60px;
}
.ticket.stamped .t-stamp { animation: stampSlam 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both; }
@keyframes stampSlam { from { opacity: 0; transform: scale(2.4); } 60% { opacity: 0.95; transform: scale(0.92); } to { opacity: 0.88; transform: scale(1); } }

/* spinner / success */
.spinner { display: none; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { pointer-events: none; opacity: 0.85; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.7; }

.success-step { text-align: center; }
.success-bounce { font-size: 3.6rem; animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes bounceIn { from { opacity: 0; transform: scale(0.3); } 60% { transform: scale(1.15); } to { opacity: 1; transform: scale(1); } }
.success-step h3 { font-family: var(--font-display); font-size: 1.9rem; margin: 10px 0 8px; }
.success-step p { color: var(--ink-soft); }
.success-step strong { color: var(--brand); }
.share-label { margin-top: 22px; font-weight: 800; font-size: 0.9rem; color: var(--ink); }
.share-row { display: flex; justify-content: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 34px 20px;
  color: var(--ink-soft); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer img { border-radius: 10px; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 8px 14px; }
  .logo { font-size: 1.05rem; gap: 7px; }
  .logo img { width: 34px; height: 34px; }
  .btn-small { font-size: 0.85rem; padding: 9px 14px; white-space: nowrap; }
  .hero { padding: 40px 16px 90px; }
  .hero-logo { width: 110px; height: 110px; }
  .join-card { padding: 48px 20px 32px; }
  .field-row { flex-direction: column; gap: 0; }
  .photo-row { flex-direction: column; align-items: center; }
  .photo-side { width: 100%; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .btn-ghost { justify-content: center; }
  .pet-cards { gap: 16px; }
  .pet-card { padding: 18px 22px; }
}


/* ================= v2 relaunch additions ================= */
.v2-pill {
  font-family: var(--font-display); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.08em;
  color: #fff; background: var(--grad); border-radius: 999px; padding: 3px 9px;
  translate: 0 -7px; rotate: 6deg; box-shadow: 0 3px 8px rgba(31,159,214,0.35);
}
.again-sticker {
  display: inline-block; position: relative;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.34em; line-height: 1;
  color: #fff; background: var(--pink);
  padding: 0.45em 0.8em; border-radius: 999px;
  rotate: -8deg; translate: -0.2em -1.2em;
  box-shadow: 0 6px 16px rgba(224, 81, 138, 0.45), inset 0 1px 0 rgba(255,255,255,0.35);
  animation: stickerPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}
@keyframes stickerPop { from { opacity: 0; transform: scale(0) rotate(40deg); } to { opacity: 1; transform: none; } }
.sub strong { color: var(--brand-dark); }
.stat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stat-chip {
  font-weight: 800; font-size: 0.82rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px;
  box-shadow: 0 2px 8px rgba(30, 60, 90, 0.07);
  backdrop-filter: blur(6px);
}
.og-stamp {
  position: absolute; top: 10px; left: -12px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.1em;
  color: #9a6b10; background: linear-gradient(120deg, #ffe9b8, #ffd884);
  border: 1.5px solid rgba(154, 107, 16, 0.35);
  padding: 3px 9px; border-radius: 999px; rotate: -12deg;
  box-shadow: 0 3px 8px rgba(154, 107, 16, 0.2);
}
.og-stamp.new { color: #0e7c6b; background: linear-gradient(120deg, #c9f3ec, #8fe6d8); border-color: rgba(14, 124, 107, 0.3); box-shadow: 0 3px 8px rgba(14, 124, 107, 0.18); }

/* features */
.features-sub { max-width: 560px; margin: -32px auto 44px; color: var(--ink-soft); font-size: 1.05rem; }
.feature { padding-top: 36px; }
.f-flag {
  position: absolute; top: 16px; right: 16px;
  font-weight: 900; font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--ink-soft); background: var(--chip);
  border-radius: 999px; padding: 4px 10px;
}
.f-flag.new { color: #fff; background: linear-gradient(120deg, var(--teal), #52d6c4); box-shadow: 0 3px 8px rgba(22, 179, 158, 0.35); }

/* marquee pause */
.marquee:hover .marquee-track { animation-play-state: paused; }

/* OG member toggle */
.og-toggle {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, #fff8ea, #fdf1f6);
  border: 1.5px solid rgba(217, 154, 43, 0.3); border-radius: 18px;
  padding: 14px 16px; margin-bottom: 20px; cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.og-toggle:hover { border-color: rgba(217, 154, 43, 0.55); }
.og-toggle:has(input:checked) { border-color: #d99a2b; box-shadow: 0 6px 18px rgba(217, 154, 43, 0.22); }
.og-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.og-track {
  flex: none; width: 56px; height: 32px; border-radius: 999px;
  background: var(--chip); position: relative;
  transition: background 0.25s ease;
}
.og-toggle:has(input:checked) .og-track { background: linear-gradient(120deg, #d99a2b, #f2b94e); }
.og-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(30, 60, 90, 0.25);
  transition: translate 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.og-toggle:has(input:checked) .og-thumb { translate: 24px 0; }
.og-toggle input:focus-visible ~ .og-track { outline: 3px solid var(--brand); outline-offset: 2px; }
.og-text strong { display: block; font-size: 0.95rem; }
.og-text em { font-style: normal; font-size: 0.8rem; color: var(--ink-soft); }
.og-text b { color: #c98a14; }

/* success */
.success-step h3 { font-family: var(--font-display); font-size: 1.9rem; margin: 4px 0 6px; animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
#successTicket { margin-top: 20px; text-align: left; animation: ticketPrint 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
@keyframes ticketPrint { from { opacity: 0; transform: translateY(-26px) scale(0.96); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-20% 0 0 0); } }
.share-block { margin-top: 4px; }

@media (max-width: 600px) {
  .v2-pill { display: none; }
  .again-sticker { font-size: 0.4em; translate: -0.1em -0.9em; }
  .stat-chip { font-size: 0.74rem; padding: 6px 12px; }
  .steps { gap: 4px; }
  .step-item { width: 72px; }
  .step-line { flex-basis: 30px; }
  .t-facts { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .t-stamp { right: 8px; font-size: 0.95rem; }
  .features-sub { margin-top: -28px; }
}
