:root {
  --bg: #f4f7fb;
  --ink: #0f172a;
  --muted: #475569;
  --accent: #0f766e;
  --accent-soft: #d1fae5;
  --card: #ffffff;
  --line: #d7e2ee;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, #ecfdf5, transparent 40%), var(--bg);
  display: flex;
  flex-direction: column;
}
main {
  width: min(960px, 92vw);
  margin: 2rem auto 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 2rem;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.08);
  flex: 1;
}
.brand-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand-anchor:hover { background: #eef2f7; }
.brand-anchor img { width: 18px; height: 18px; border-radius: 4px; display: block; }
h1 { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.35; }
.vibe { margin-top: 0.65rem; color: #0b5d56; font-weight: 700; letter-spacing: 0.01em; font-size: 0.96rem; }
.grid { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.tile {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #f8fafc, #f1f5f9);
  min-height: 220px;
  overflow: hidden;
}
.tile-headline {
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  font-size: 0.86rem;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-inner {
  padding: 1rem;
  min-height: 220px;
  display: grid;
  place-items: center;
}
.notice {
  position: static;
  justify-self: start;
  margin: -0.2rem 0 0 0.15rem;
  font-weight: 600;
  color: #111827;
  background: var(--accent-soft);
  border: 1px solid #99f6e4;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.notice:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 118, 110, 0.18); }
.small {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 3.8rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 260ms ease, opacity 220ms ease;
}
.tile.is-expanded { min-height: 300px; }
.tile.is-expanded .tile-inner { min-height: 300px; padding-bottom: 6.6rem; }
.tile.is-expanded .small { max-height: 130px; opacity: 1; }
.tile.is-verified { min-height: 300px; }
.tile.is-verified .tile-inner { min-height: 240px; padding-bottom: 5.5rem; }
.small a { color: var(--accent); }
.redirect-cta-wrap {
  position: absolute;
  left: 50%;
  bottom: 0.95rem;
  z-index: 5;
  transform: translateX(-50%);
  width: min(320px, calc(100% - 2rem));
  display: flex;
  justify-content: center;
}
.redirect-cta-wrap[hidden] { display: none !important; }
.redirect-now-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #ffffff;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.redirect-now-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #0b5d56;
  border-color: #0b5d56;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.34);
}
.redirect-now-btn:disabled {
  opacity: 0.88;
  cursor: wait;
}
.steps { width: min(540px, 92%); display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.step { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 0.5rem; color: #334155; font-size: 0.88rem; }
.step-mark {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-icon {
  width: 14px;
  height: 14px;
  display: block;
}
.step-ring {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  transition: stroke 180ms ease;
}
.step-tick {
  fill: none;
  stroke: #0f766e;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 8;
  stroke-dashoffset: 8;
  opacity: 0;
}
.step.done .step-ring {
  stroke: #0f766e;
}
.step.done .step-tick {
  opacity: 1;
  animation: tick-draw 260ms ease forwards;
}
.step.current .step-copy { color: #0b3b35; font-weight: 600; }
.step.current .step-copy::after { content: "|"; margin-left: 2px; color: #0f766e; animation: blink 0.9s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes tick-draw { from { stroke-dashoffset: 8; } to { stroke-dashoffset: 0; } }
.ad {
  margin: 1rem auto 2rem;
  width: min(960px, 92vw);
  border: 1px dashed #9ca3af;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #374151;
  font-size: 0.9rem;
  text-align: center;
}
