/* From Components/Pages/Home.razor.css (plain CSS since 2026-10-23: the homepage loads only its own
   sheets, see Components/MarketingPage.cs). Every class is tq- prefixed; .tq :not(.tqd, .tqd *) keeps the
   reduced-motion reset off the demo, which the scope attribute used to do. */
/* ============================================================
   TickIQ landing page. Dark, clean, a little cheeky.
   Tokens live on .tq so nothing leaks into the app shell.
   ============================================================ */

.tq {
    --tq-bg: #06080c;
    --tq-panel: rgba(255, 255, 255, 0.035);
    --tq-panel-strong: rgba(13, 18, 28, 0.88);
    --tq-border: rgba(255, 255, 255, 0.08);
    --tq-text: #e8edf3;
    --tq-muted: #8b97a8;
    --tq-dim: #5b6676;
    --tq-accent: #13dfff;
    --tq-accent-2: #38bdf8;
    --tq-violet: #a78bfa;
    --tq-up: #22c55e;
    --tq-down: #ef4444;
    --tq-grad: linear-gradient(95deg, #13dfff 0%, #1a9bff 55%, #4a7dff 100%);
    --tq-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --tq-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tq-mono: 'JetBrains Mono', ui-monospace, monospace;

    position: relative;
    min-height: 100vh;
    /* clip (not hidden): stops the glows/callouts causing sideways scroll without breaking the sticky header */
    overflow-x: clip;
    background: var(--tq-bg);
    color: var(--tq-text);
    font-family: var(--tq-sans);
    -webkit-font-smoothing: antialiased;
}

.tq a {
    text-decoration: none;
}

/* ---------- Backdrop ---------- */

.tq-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.tq-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.55;
}

.tq-glow-1 {
    width: 620px;
    height: 620px;
    top: -220px;
    right: -120px;
    background: radial-gradient(circle, rgba(19, 223, 255, 0.45), transparent 70%);
}

.tq-glow-2 {
    width: 520px;
    height: 520px;
    top: 520px;
    left: -220px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.32), transparent 70%);
}

.tq-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Header ---------- */

.tq-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tq-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--tq-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tq-nav {
    display: flex;
    gap: 28px;
    margin-left: 12px;
}

.tq-nav a,
.tq-link {
    color: var(--tq-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}

.tq-nav a:hover,
.tq-link:hover {
    color: #fff;
}

.tq-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* ---------- Buttons ---------- */

.tq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #13dfff, #22d3ee);
    color: #04121a;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 28px rgba(19, 223, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.tq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(19, 223, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tq-btn-sm {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
}

.tq-btn-lg {
    padding: 16px 28px;
    font-size: 1.02rem;
}

.tq-btn-block {
    width: 100%;
}

.tq-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--tq-text);
    border: 1px solid var(--tq-border);
    box-shadow: none;
}

.tq-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.tq-grad {
    background: var(--tq-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tq-micro {
    margin: 14px 0 0;
    color: var(--tq-dim);
    font-size: 0.85rem;
}

/* ---------- Hero ---------- */

.tq-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    align-items: center;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 64px;
}

.tq-hero-copy {
    animation: tq-fade-up 0.8s ease-out both;
}

.tq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid rgba(19, 223, 255, 0.25);
    border-radius: 999px;
    background: rgba(19, 223, 255, 0.07);
    color: #b7eff8;
    font-size: 0.82rem;
    font-weight: 600;
}

.tq-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tq-accent);
    box-shadow: 0 0 0 0 rgba(19, 223, 255, 0.6);
    animation: tq-ping 2s infinite;
}

.tq h1 {
    margin: 22px 0 20px;
    font-family: var(--tq-display);
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #fff;
}

.tq h1 .tq-grad {
    display: block;
    margin-top: 6px;
}

.tq-lede {
    max-width: 540px;
    margin: 0 0 30px;
    color: var(--tq-muted);
    font-size: 1.13rem;
    line-height: 1.65;
}

.tq-lede strong {
    color: #fff;
}

.tq-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Product mockup */

.tq-hero-visual {
    position: relative;
    animation: tq-fade-up 0.9s ease-out 0.15s both;
}

.tq-window {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: var(--tq-panel-strong);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(19, 223, 255, 0.06),
        0 0 80px -20px rgba(19, 223, 255, 0.25);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    transition: transform 0.6s ease;
}

.tq-hero-visual:hover .tq-window {
    transform: perspective(1400px) rotateY(0) rotateX(0);
}

.tq-window-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--tq-border);
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--tq-mono);
    font-size: 0.75rem;
}

.tq-lights {
    display: flex;
    gap: 6px;
}

.tq-lights i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2a313c;
}

.tq-lights i:first-child { background: #ff5f57; }
.tq-lights i:nth-child(2) { background: #febc2e; }
.tq-lights i:nth-child(3) { background: #28c840; }

.tq-ticker {
    color: #fff;
    font-weight: 700;
}

.tq-ticker em {
    margin-left: 4px;
    color: var(--tq-accent);
    font-style: normal;
}

.tq-tfs {
    display: flex;
    gap: 4px;
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
}

.tq-tfs span {
    padding: 3px 7px;
    border-radius: 6px;
    color: var(--tq-dim);
}

.tq-tfs span.on {
    background: rgba(19, 223, 255, 0.14);
    color: var(--tq-accent);
}

.tq-chart {
    display: block;
    width: 100%;
    height: auto;
    padding: 10px 6px 4px;
}

.tq-gridline {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.tq-vol.up { fill: rgba(34, 197, 94, 0.22); }
.tq-vol.down { fill: rgba(239, 68, 68, 0.22); }

.tq-candle {
    animation: tq-candle-in 0.5s ease-out both;
}

.tq-candle line { stroke-width: 1.2; }
.tq-candle.up line { stroke: var(--tq-up); }
.tq-candle.up rect { fill: var(--tq-up); }
.tq-candle.down line { stroke: var(--tq-down); }
.tq-candle.down rect { fill: var(--tq-down); }

.tq-ma {
    fill: none;
    stroke: var(--tq-accent-2);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: tq-draw 1.8s ease-out 0.9s forwards;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.tq-marker-line {
    stroke: rgba(19, 223, 255, 0.3);
    stroke-dasharray: 3 4;
}

.tq-marker-line.div {
    stroke: rgba(167, 139, 250, 0.35);
}

.tq-marker circle {
    fill: rgba(19, 223, 255, 0.16);
    stroke: var(--tq-accent);
}

.tq-marker text {
    fill: var(--tq-accent);
    font-family: var(--tq-mono);
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
}

.tq-marker.div circle {
    fill: rgba(167, 139, 250, 0.16);
    stroke: var(--tq-violet);
}

.tq-marker.div text {
    fill: var(--tq-violet);
}

.tq-reversal {
    transform-box: fill-box;
    transform-origin: center;
    animation: tq-pop 0.5s ease-out 1.4s both;
}

.tq-reversal circle {
    fill: rgba(19, 223, 255, 0.18);
    stroke: var(--tq-accent);
    stroke-width: 1.5;
}

.tq-reversal path {
    fill: none;
    stroke: var(--tq-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Floating callouts */

.tq-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(15, 21, 32, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
    font-size: 0.8rem;
    white-space: nowrap;
    animation: tq-bob 6s ease-in-out infinite;
}

.tq-float strong {
    display: block;
    color: #fff;
    font-size: 0.86rem;
}

.tq-float span {
    color: var(--tq-muted);
}

.tq-float-icon {
    font-size: 1.3rem;
}

.tq-float-1 {
    top: 64px;
    left: -44px;
}

.tq-float-2 {
    right: -30px;
    bottom: 34px;
    animation-delay: -2s;
}

.tq-float-3 {
    left: 40px;
    bottom: -20px;
    gap: 10px;
    color: #c8fff7;
    font-weight: 600;
    animation-delay: -4s;
}

.tq-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tq-accent);
    animation: tq-ping 2s infinite;
}

/* ---------- Facts strip ---------- */

.tq-facts {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1152px;
    margin: 24px auto 0;
    border: 1px solid var(--tq-border);
    border-radius: 18px;
    background: var(--tq-panel);
}

.tq-facts > div {
    padding: 26px 24px;
    border-right: 1px solid var(--tq-border);
}

.tq-facts > div:last-child {
    border-right: none;
}

.tq-facts strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--tq-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--tq-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tq-facts span {
    color: var(--tq-muted);
    font-size: 0.88rem;
}

/* ---------- Sections ---------- */

.tq-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 24px 0;
}

.tq-section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.tq-kicker {
    color: var(--tq-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tq h2 {
    margin: 12px 0 14px;
    font-family: var(--tq-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
}

.tq-section-head p {
    margin: 0;
    color: var(--tq-muted);
    font-size: 1.08rem;
}

/* Bento */

.tq-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tq-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--tq-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    transition: transform 0.25s, border-color 0.25s;
}

.tq-card:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 223, 255, 0.3);
}

.tq-card-wide {
    grid-column: span 2;
}

.tq-card-accent {
    border-color: rgba(19, 223, 255, 0.35);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(19, 223, 255, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.tq-tag {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(19, 223, 255, 0.1);
    color: var(--tq-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tq-card h3 {
    margin: 0 0 10px;
    font-family: var(--tq-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.tq-card p {
    margin: 0;
    color: var(--tq-muted);
    line-height: 1.6;
}

.tq-card-small h3 {
    font-size: 1.12rem;
}

.tq-card-small .tq-card-sub {
    margin-top: 22px;
}

/* Grid children may shrink below their content's width, so wide bits (like the chart toolbar)
   can't push the page wider than a phone screen */
.tq-hero > *,
.tq-bento > *,
.tq-facts > *,
.tq-price-card > * {
    min-width: 0;
}

.tq-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 120px;
    margin-top: auto;
    padding-top: 26px;
}

.tq-mini-chart span {
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.9), rgba(34, 197, 94, 0.15));
}

.tq-mini-chart span.down {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.85), rgba(239, 68, 68, 0.12));
}

.tq-reactions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    margin-top: auto;
    padding-top: 24px;
}

.tq-reactions::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 12px);
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.tq-reactions span {
    width: 14px;
    border-radius: 3px;
    background: var(--tq-up);
    transform: translateY(-50%);
}

.tq-reactions span.down {
    background: var(--tq-down);
    transform: translateY(50%);
}

.tq-timeline {
    display: flex;
    justify-content: space-between;
    margin: auto 0 0;
    padding: 34px 0 0;
    list-style: none;
    position: relative;
}

.tq-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 41px;
    height: 2px;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.2), rgba(167, 139, 250, 0.6), rgba(167, 139, 250, 0.2));
}

.tq-timeline li {
    position: relative;
    padding-top: 24px;
    color: var(--tq-dim);
    font-size: 0.78rem;
    font-weight: 600;
}

.tq-timeline li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    border: 2px solid rgba(167, 139, 250, 0.6);
    background: var(--tq-bg);
}

.tq-timeline li.on {
    color: var(--tq-violet);
}

.tq-timeline li.on::before {
    background: var(--tq-violet);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.7);
}

/* Us vs them */

.tq-vs {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--tq-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--tq-panel);
}

.tq-vs-head,
.tq-vs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tq-vs-head span {
    padding: 16px 24px;
    color: var(--tq-dim);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tq-vs-head .tq-vs-us,
.tq-us {
    background: rgba(19, 223, 255, 0.06);
}

.tq-vs-head .tq-vs-us {
    color: var(--tq-accent);
}

.tq-vs-row span {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid var(--tq-border);
    line-height: 1.45;
}

.tq-vs-row i {
    flex-shrink: 0;
    font-style: normal;
    font-weight: 700;
}

.tq-them {
    color: var(--tq-muted);
}

.tq-them i {
    color: var(--tq-down);
}

.tq-us {
    color: #fff;
    font-weight: 600;
}

.tq-us i {
    color: var(--tq-accent);
}

/* Pricing */

.tq-price-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
    padding: 44px;
    border: 1px solid rgba(19, 223, 255, 0.3);
    border-radius: 24px;
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(19, 223, 255, 0.14), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    box-shadow: 0 30px 80px -30px rgba(19, 223, 255, 0.3);
}

.tq-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 6px 0 4px;
}

.tq-amount {
    font-family: var(--tq-display);
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
}

.tq-period {
    color: var(--tq-muted);
    font-size: 1.05rem;
}

.tq-annual {
    margin: 0 0 26px;
    color: var(--tq-muted);
}

.tq-price-list {
    margin: 0;
    padding: 0;
    list-style: none;
    align-self: center;
}

.tq-price-list li {
    position: relative;
    padding: 11px 0 11px 32px;
    border-bottom: 1px solid var(--tq-border);
    color: var(--tq-text);
    line-height: 1.45;
}

.tq-price-list li:last-child {
    border-bottom: none;
}

.tq-price-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(19, 223, 255, 0.14);
    color: var(--tq-accent);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.tq-price-list li.tq-hl {
    color: var(--tq-accent);
    font-weight: 700;
}

/* Steps */

.tq-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 960px;
    margin: 56px auto 0;
    padding: 0 24px;
}

.tq-steps > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 22px;
    border: 1px solid var(--tq-border);
    border-radius: 16px;
    background: var(--tq-panel);
}

.tq-steps b {
    margin-bottom: 6px;
    color: var(--tq-accent);
    font-family: var(--tq-mono);
    font-size: 0.8rem;
}

.tq-steps strong {
    color: #fff;
}

.tq-steps span {
    color: var(--tq-muted);
    font-size: 0.9rem;
}

/* Final CTA */

.tq-final {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 120px auto 0;
    padding: 0 24px;
    text-align: center;
}

.tq-final::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 560px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(19, 223, 255, 0.22), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.tq-final p {
    max-width: 560px;
    margin: 0 auto 30px;
    color: var(--tq-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

/* Footer */

.tq-footer {
    position: relative;
    z-index: 1;
    margin-top: 120px;
    border-top: 1px solid var(--tq-border);
    background: rgba(0, 0, 0, 0.3);
}

.tq-footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 32px;
}

.tq-footer-brand p {
    margin: 14px 0 0;
    color: var(--tq-dim);
    font-size: 0.9rem;
}

.tq-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tq-footer-links h4 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tq-footer-links a {
    display: block;
    margin-bottom: 10px;
    color: var(--tq-muted);
    font-size: 0.9rem;
}

.tq-footer-links a:hover {
    color: var(--tq-accent);
}

.tq-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 32px;
    border-top: 1px solid var(--tq-border);
    color: var(--tq-dim);
    font-size: 0.78rem;
}

/* ---------- Animations ---------- */

@keyframes tq-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tq-candle-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tq-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes tq-pop {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes tq-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes tq-ping {
    0% { box-shadow: 0 0 0 0 rgba(19, 223, 255, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(19, 223, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(19, 223, 255, 0); }
}

/* Reveal sections as they scroll in, where the browser supports scroll-driven animations */
@supports (animation-timeline: view()) {
    .tq-card,
    .tq-vs,
    .tq-price-card,
    .tq-steps > div {
        animation: tq-fade-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tq :not(.tqd, .tqd *),
    .tq :not(.tqd, .tqd *)::before {
        animation: none !important;
        transition: none !important;
    }

    .tq-ma {
        stroke-dashoffset: 0;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .tq-float-1 { left: -12px; }
    .tq-float-2 { right: -8px; }
}

@media (max-width: 960px) {
    .tq-hero {
        grid-template-columns: 1fr;
        gap: 56px;
        padding-top: 48px;
    }

    .tq-hero-copy {
        text-align: center;
    }

    .tq-lede {
        margin-left: auto;
        margin-right: auto;
    }

    .tq-cta-row {
        justify-content: center;
    }

    .tq-window {
        transform: none;
    }

    .tq-facts {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 24px;
        margin-right: 24px;
    }

    .tq-facts > div:nth-child(2) {
        border-right: none;
    }

    .tq-facts > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--tq-border);
    }

    .tq-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .tq-price-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .tq-footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tq-header {
        gap: 12px;
        padding: 14px 16px;
    }

    .tq-nav,
    .tq-header-actions .tq-link {
        display: none;
    }

    .tq-hero,
    .tq-section,
    .tq-steps,
    .tq-final {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tq-hero {
        padding-top: 32px;
    }

    .tq-lede {
        font-size: 1.02rem;
    }

    .tq-cta-row .tq-btn {
        width: 100%;
    }

    .tq-tfs span:nth-child(-n + 2) {
        display: none;
    }

    /* Callouts sit under the chart instead of floating off-screen */
    .tq-hero-visual {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .tq-float {
        position: static;
        white-space: normal;
        animation: none;
    }

    .tq-facts {
        margin-left: 16px;
        margin-right: 16px;
    }

    .tq-facts > div {
        padding: 18px 16px;
    }

    .tq-facts strong {
        font-size: 1.6rem;
    }

    .tq-section {
        padding-top: 80px;
    }

    .tq-bento,
    .tq-steps {
        grid-template-columns: 1fr;
    }

    .tq-card-wide {
        grid-column: auto;
    }

    .tq-card {
        padding: 22px;
    }

    .tq-vs-head,
    .tq-vs-row {
        grid-template-columns: 1fr;
    }

    .tq-vs-head span:first-child {
        display: none;
    }

    .tq-vs-row .tq-them {
        border-top: 1px solid var(--tq-border);
        padding-bottom: 6px;
    }

    .tq-vs-row .tq-us {
        border-top: none;
        padding-top: 6px;
    }

    .tq-price-card {
        padding: 24px 20px;
    }

    .tq-amount {
        font-size: 3.4rem;
    }

    .tq-footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .tq-footer-inner,
    .tq-footer-bottom {
        padding-left: 16px;
        padding-right: 16px;
    }
}
