/* =============================================================================
   Landing page (/) — hero card with the animated ITT-pack stage, sectors row,
   How it works, Scoring, features, CTA. Shell, tokens and buttons are in
   site.css. Every animation is decorative; under prefers-reduced-motion
   site.css switches them all off and the rules here leave the final state.
   ============================================================================= */

@keyframes tc-mesh   { 0% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } 100% { background-position: 0% 40%; } }
@keyframes tc-float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes tc-scan   { 0% { top: 6%; opacity: 0; } 3% { opacity: 1; } 20% { top: 90%; opacity: 1; } 24%, 100% { top: 90%; opacity: 0; } }
@keyframes tc-sheet  { 0%, 20% { transform: rotate(4deg) translate(10px, 2px); } 26%, 90% { transform: rotate(4deg) translate(16px, 2px); } 100% { transform: rotate(4deg) translate(10px, 2px); } }
@keyframes tc-card   { 0%, 18% { opacity: 0; transform: translateY(18px) scale(.97); } 26%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes tc-line   { 0%, 28% { width: 0; } 50%, 100% { width: var(--w); } }
@keyframes tc-chip   { 0%, 52% { opacity: 0; transform: scale(.85); } 58%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes tc-score  { 0%, 64% { opacity: 0; transform: translateY(6px); } 70%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes tc-ready  { 0%, 66% { width: 6%; } 88%, 100% { width: 100%; } }
@keyframes tc-flow   { to { background-position: 28px 0; } }
@keyframes tc-travel { 0% { left: 0%; } 100% { left: 100%; } }
@keyframes tc-step   { 0%, 30%, 100% { background: #FFFFFF; color: #1B1640; } 6%, 24% { background: #1B1640; color: #FFFFFF; } }
@keyframes tc-checking { 0%, 6% { opacity: 0; } 10%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes tc-result { 0%, 40% { opacity: 0; transform: translateY(4px); } 46%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.mesh {
    background: linear-gradient(120deg, #E9E4FF, #C9F4F7 28%, #F1DAFF 52%, #DCD6FF 76%, #CFF6F2);
    background-size: 300% 300%;
    animation: tc-mesh 18s ease-in-out infinite;
}

/* HERO CARD */
.hero-card { overflow: hidden; }

.hero-glow {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 1100px;
    height: 700px;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side, rgba(123, 108, 255, 0.18), transparent),
        radial-gradient(closest-side at 70% 40%, rgba(111, 227, 240, 0.22), transparent);
    filter: blur(30px);
    pointer-events: none;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    padding: clamp(56px, 9vw, 104px) 0 clamp(36px, 5vw, 56px);
}

.hero h1 {
    max-width: 900px;
    font-weight: 500;
    font-size: clamp(40px, 7vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-sub {
    max-width: 520px;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.6;
    color: var(--muted);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ANIMATED STAGE — ITT pack in, scored answers out */
.stage {
    position: relative;
    border-radius: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px) 0 0;
    padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 56px);
}

/* Above the phone breakpoint the "Submission-ready" card sits in its own band
   under the question cards: stage-row's 40px bottom padding + this 88px leaves
   128px, against 28px offset + ~63px card + 10px float lift = ~101px, so it
   clears card 3 at every width. */
@media (min-width: 761px) {
    .stage { padding-bottom: 88px; }
}

.stage-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(27, 22, 64, 0.08);
    text-align: left;
}

.stage-float-label { font-size: 12px; color: var(--muted); }

.stage-found {
    left: 28px;
    top: 28px;
    gap: 4px;
    min-width: 150px;
    animation: tc-float 6s ease-in-out infinite;
}

.stage-found-count {
    font-weight: 500;
    font-size: 30px;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.stage-ready {
    right: 28px;
    bottom: 28px;
    gap: 8px;
    width: 210px;
    animation: tc-float 7s ease-in-out infinite 1s;
}

.stage-ready-track {
    height: 6px;
    border-radius: 999px;
    background: var(--lilac);
    overflow: hidden;
}

.stage-ready-bar {
    height: 6px;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    animation: tc-ready 12s ease-in-out infinite;
}

.stage-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 40px);
    max-width: 940px;
    margin: 0 auto;
    padding: 40px 0;
}

/* the pack */
.pack {
    position: relative;
    width: 210px;
    height: 270px;
    flex: 0 0 auto;
}

.pack-sheet {
    position: absolute;
    inset: 0;
    border-radius: 16px;
}

.pack-sheet-back {
    transform: rotate(-7deg) translate(-14px, 6px);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.pack-sheet-mid {
    transform: rotate(4deg) translate(10px, 2px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.95);
    animation: tc-sheet 12s ease-in-out infinite;
}

.pack-front {
    background: var(--white);
    box-shadow: 0 24px 50px rgba(27, 22, 64, 0.14);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    text-align: left;
}

.pack-title { font-size: 12px; font-weight: 600; }
.pack-meta { font-size: 11px; color: var(--muted); }

.pack-lines {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 6px;
}

.pack-lines span {
    height: 6px;
    border-radius: 3px;
    background: var(--lilac);
}

.pack-lines span:nth-child(1) { width: 92%; }
.pack-lines span:nth-child(2) { width: 80%; }
.pack-lines span:nth-child(3) { width: 88%; }
.pack-lines span:nth-child(4) { width: 64%; }
.pack-lines span:nth-child(5) { width: 90%; }
.pack-lines span:nth-child(6) { width: 72%; }
.pack-lines span:nth-child(7) { width: 84%; }
.pack-lines span:nth-child(8) { width: 58%; }
.pack-lines span:nth-child(9) { width: 76%; }

.pack-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 90%;
    opacity: 0;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(111, 227, 240, 0.55), transparent);
    border-bottom: 2px solid var(--cyan);
    animation: tc-scan 12s ease-in-out infinite;
}

/* flow connector */
.stage-connector {
    flex: 1 1 60px;
    max-width: 120px;
    height: 2px;
    background-image: linear-gradient(90deg, var(--violet) 50%, transparent 50%);
    background-size: 14px 2px;
    animation: tc-flow 0.8s linear infinite;
    opacity: 0.7;
}

/* question cards */
.stage-cards {
    flex: 1 1 360px;
    max-width: 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.stage-card {
    --delay: 0s;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--white);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 14px 34px rgba(27, 22, 64, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: tc-card 12s ease-out infinite var(--delay);
}

.stage-card:nth-child(2) { --delay: 0.5s; }
.stage-card:nth-child(3) { --delay: 1s; }

.stage-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.stage-card-title { font-size: 14px; font-weight: 600; }

.stage-score {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    background: var(--ink);
    color: var(--white);
    border-radius: 999px;
    padding: 4px 10px;
    animation: tc-score 12s ease-out infinite var(--delay);
}

.stage-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stage-lines span {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--violet), #A99CFF);
    width: var(--w);
    animation: tc-line 12s ease-out infinite var(--delay);
}

.stage-lines span:nth-child(1) { --w: 94%; }
.stage-lines span:nth-child(2) { --w: 78%; }
.stage-lines span:nth-child(3) { --w: 52%; }

.stage-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink);
    background: var(--lilac);
    border-radius: 999px;
    padding: 4px 10px;
    animation: tc-chip 12s ease-out infinite var(--delay);
}

/* SECTORS */
.sectors {
    list-style: none;
    margin: 0;
    padding: 28px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
}

.sectors-label { color: var(--ink); }

/* SECTIONS */
.section {
    padding: clamp(56px, 9vw, 112px) var(--gutter);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* HOW IT WORKS */
.how-inner {
    display: flex;
    flex-direction: column;
    gap: clamp(36px, 5vw, 56px);
}

.how-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.how-head h2 { max-width: 620px; }

.how-track {
    position: relative;
    height: 2px;
    background: var(--lilac);
    border-radius: 2px;
}

.how-dot {
    position: absolute;
    top: -5px;
    left: 100%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 0 6px rgba(123, 108, 255, 0.18), 0 0 24px var(--cyan);
    animation: tc-travel 6s linear infinite;
}

.how .step-num { animation: tc-step 6s linear infinite var(--delay, 0s); }
.how .step:nth-child(2) .step-num { --delay: 1.5s; }
.how .step:nth-child(3) .step-num { --delay: 3s; }
.how .step:nth-child(4) .step-num { --delay: 4.5s; }

/* SCORING */
.split {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.split-text {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checks {
    flex: 1 1 420px;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check {
    --delay: 0s;
    background: var(--white);
    border-radius: 18px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 14px;
    align-items: center;
}

.check:nth-child(2) { --delay: 0.6s; }
.check:nth-child(3) { --delay: 1.2s; }

.check-claim { font-size: 15px; line-height: 1.4; }

.check-status { position: relative; height: 30px; }

.check-checking {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 13px;
    color: var(--muted);
    opacity: 0;
    animation: tc-checking 8s ease-in-out infinite var(--delay);
}

.check-result {
    position: absolute;
    right: 0;
    top: 0;
    height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    animation: tc-result 8s ease-in-out infinite var(--delay);
}

.result-verified { background: var(--ink); color: var(--white); }
.result-partial  { background: var(--lilac); color: var(--ink); }
.result-gap      { background: var(--pearl); color: var(--link); }

/* FEATURES */
.features-section { padding-top: 0; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature {
    background: var(--white);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-orb {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.feature:nth-child(1) .feature-orb { background: linear-gradient(135deg, var(--violet), #C9C3FF); }
.feature:nth-child(2) .feature-orb { background: linear-gradient(135deg, var(--cyan), #C9F4F7); }
.feature:nth-child(3) .feature-orb { background: linear-gradient(135deg, var(--violet), var(--cyan)); }

.feature h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* CTA */
.cta {
    border-radius: var(--radius-card);
    padding: clamp(64px, 10vw, 120px) var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.cta h2 {
    max-width: 760px;
    font-weight: 500;
    font-size: clamp(34px, 5.6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

/* PHONE */
@media (max-width: 760px) {
    .stage-float,
    .stage-connector { display: none; }
    .stage-row { flex-direction: column; align-items: stretch; padding: 16px 0; }
    .pack { margin: 0 auto; }
    .stage-cards { flex: none; max-width: none; }
}

/* REDUCED MOTION — site.css stops every animation; show the end state:
   no scan line, no "Checking", every card, score, chip and result visible. */
@media (prefers-reduced-motion: reduce) {
    .pack-scan,
    .check-checking { display: none; }
}
