/* =====================================================================
   TapKit - public pages (/products/tapkit, /products/tapkit/{vertical},
   /products/tapkit/pricing).                                2026-10-03

   Theme A (Luxury Light). Every colour is a --th-* token from
   /css/ais_theme.css - no literals, per the two-theme standard.

   Reveal animation is FAIL-SAFE: content is visible by default. Only when
   tapkit JS has run (html.tk-js) does .tk-reveal start hidden, and a timer
   reveals everything regardless of IntersectionObserver.
   ===================================================================== */

.tk-page { color: var(--th-ink); background: var(--th-bg); overflow-x: hidden; }
.tk-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.tk-section { padding: 88px 0; position: relative; }
.tk-section-alt { background: var(--th-surface-2); border-top: 1px solid var(--th-line); border-bottom: 1px solid var(--th-line); }

.tk-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--th-primary); background: var(--th-primary-soft);
    border: 1px solid var(--th-line); padding: 6px 14px; border-radius: 999px;
}
.tk-h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; font-weight: 900; letter-spacing: -.035em; margin: 22px 0 18px; }
.tk-h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; font-weight: 900; letter-spacing: -.03em; margin: 16px 0 14px; }
.tk-h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; }
.tk-lead { font-size: 18px; line-height: 1.65; color: var(--th-muted); max-width: 640px; }
.tk-muted { color: var(--th-muted); }
.tk-grad-text { background: var(--th-grad-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-center { text-align: center; }
.tk-center .tk-lead { margin-left: auto; margin-right: auto; }
.tk-mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; }

/* ---------- buttons ---------- */
.tk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 14px; font-weight: 800; font-size: 15px;
    border: 0; cursor: pointer; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.tk-btn-primary { background: var(--th-grad-1); color: var(--th-on-primary); box-shadow: var(--th-shadow-2); }
.tk-btn-primary:hover { transform: scale(1.02); box-shadow: var(--th-shadow-3); }
.tk-btn-ghost { background: var(--th-surface); color: var(--th-ink); border: 1px solid var(--th-line); }
.tk-btn-ghost:hover { transform: scale(1.02); border-color: var(--th-primary); color: var(--th-primary); }
.tk-btn:focus-visible { outline: 3px solid var(--th-primary); outline-offset: 3px; }

/* ---------- hero ---------- */
.tk-hero { padding: 132px 0 80px; position: relative; overflow: hidden; }
.tk-hero::before {
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
    background: radial-gradient(closest-side, var(--th-primary-soft), transparent 70%);
    pointer-events: none;
}
.tk-hero::after {
    content: ""; position: absolute; inset: auto auto -30% -15%; width: 620px; height: 620px;
    background: radial-gradient(closest-side, var(--th-accent-soft), transparent 70%);
    pointer-events: none;
}
.tk-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.tk-hero-sub { font-size: 19px; line-height: 1.6; color: var(--th-muted); max-width: 560px; }
.tk-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tk-hero-note { margin-top: 18px; font-size: 13px; color: var(--th-muted); display: flex; align-items: center; gap: 8px; }
.tk-hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; width: 100%; }
.tk-hero-art svg { width: 100%; height: 100%; display: block; }

/* the tap animation in the hero illustration */
.tk-art-card { transform-origin: 50% 50%; animation: tkCardTap 4.8s ease-in-out infinite; }
.tk-art-ring { transform-origin: 300px 210px; opacity: 0; animation: tkRing 4.8s ease-out infinite; }
.tk-art-ring.r2 { animation-delay: .25s; }
.tk-art-ring.r3 { animation-delay: .5s; }
.tk-art-log { opacity: 0; animation: tkLog 4.8s ease-out infinite; }
.tk-art-log.l2 { animation-delay: .35s; }
@keyframes tkCardTap { 0%, 18% { transform: translate(-60px, 70px) rotate(-14deg); } 34%, 70% { transform: translate(0, 0) rotate(-6deg); } 100% { transform: translate(-60px, 70px) rotate(-14deg); } }
@keyframes tkRing { 0%, 32% { opacity: 0; transform: scale(.4); } 40% { opacity: .9; } 62% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }
@keyframes tkLog { 0%, 40% { opacity: 0; transform: translateY(8px); } 48%, 82% { opacity: 1; transform: translateY(0); } 92%, 100% { opacity: 0; } }

/* ---------- glass cards ---------- */
.tk-card {
    background: var(--th-glass); border: 1px solid var(--th-glass-bd);
    -webkit-backdrop-filter: var(--th-blur); backdrop-filter: var(--th-blur);
    border-radius: 20px; box-shadow: var(--th-shadow-1); padding: 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tk-card:hover { transform: translateY(-3px); box-shadow: var(--th-shadow-2); }
.tk-card-solid { background: var(--th-surface); border: 1px solid var(--th-line); border-radius: 20px; padding: 26px; box-shadow: var(--th-shadow-1); }

.tk-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tk-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tk-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

/* ---------- the problem (quotes) ---------- */
.tk-quote { position: relative; padding-top: 44px; }
.tk-quote::before {
    content: "\201C"; position: absolute; top: 4px; left: 22px;
    font-size: 64px; line-height: 1; font-weight: 900; color: var(--th-accent);
}
.tk-quote p { font-size: 18px; font-weight: 700; line-height: 1.45; margin: 0 0 14px; }
.tk-quote span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-muted); }

/* ---------- how it works ---------- */
.tk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: tkstep; position: relative; }
.tk-step { position: relative; }
.tk-step-num {
    width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--th-grad-1); color: var(--th-on-primary); font-weight: 900; font-size: 18px; margin-bottom: 16px;
    box-shadow: var(--th-shadow-2);
}
.tk-step-num.pulse { animation: tkPulse 2.6s ease-out infinite; }
@keyframes tkPulse { 0% { box-shadow: 0 0 0 0 var(--th-primary-soft); } 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tk-step p { color: var(--th-muted); line-height: 1.6; margin: 0; }

/* ---------- the two modes ---------- */
.tk-modes { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--th-surface); border: 1px solid var(--th-line); border-radius: 22px; overflow: hidden; box-shadow: var(--th-shadow-2); }
.tk-modes th, .tk-modes td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--th-line); font-size: 15px; line-height: 1.5; }
.tk-modes thead th { background: var(--th-surface-2); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; }
.tk-modes thead th.tk-col-uid { color: var(--th-primary); }
.tk-modes thead th.tk-col-ndef { color: var(--th-accent-600); }
.tk-modes tbody th { font-weight: 800; width: 24%; color: var(--th-ink-2); }
.tk-modes tbody tr:last-child th, .tk-modes tbody tr:last-child td { border-bottom: 0; }
.tk-modes tbody tr:hover td, .tk-modes tbody tr:hover th { background: var(--th-surface-hover); }
.tk-modes .tk-yes { color: var(--th-success); font-weight: 800; }
.tk-modes .tk-no { color: var(--th-muted); }
.tk-modes-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 22px; }
.tk-callout {
    margin-top: 22px; padding: 18px 22px; border-radius: 16px;
    background: var(--th-primary-soft); border: 1px solid var(--th-line);
    font-size: 16px; line-height: 1.6; font-weight: 600;
}

/* ---------- industries ---------- */
.tk-ind {
    display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--th-ink);
    padding: 20px; border-radius: 18px; background: var(--th-surface); border: 1px solid var(--th-line);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tk-ind:hover { transform: translateY(-3px) scale(1.02); border-color: var(--th-primary); box-shadow: var(--th-shadow-2); }
.tk-ind i { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--th-primary-soft); color: var(--th-primary); font-size: 16px; }
.tk-ind strong { font-size: 15px; font-weight: 800; }
.tk-ind span { font-size: 13px; color: var(--th-muted); line-height: 1.45; }
.tk-ind em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--th-primary); margin-top: auto; }

/* ---------- what is in the box ---------- */
.tk-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--th-surface); border: 1px solid var(--th-line); flex-wrap: wrap; }
.tk-tab { border: 0; background: transparent; padding: 10px 18px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--th-muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.tk-tab[aria-selected="true"] { background: var(--th-grad-1); color: var(--th-on-primary); box-shadow: var(--th-shadow-1); }
.tk-tab b { font-weight: 900; opacity: .75; margin-left: 4px; }
.tk-filter { width: 100%; max-width: 320px; padding: 12px 16px 12px 40px; border-radius: 14px; border: 1px solid var(--th-line); background: var(--th-surface); color: var(--th-ink); font-size: 14px; }
.tk-filter:focus { outline: none; border-color: var(--th-primary); box-shadow: 0 0 0 4px var(--th-primary-soft); }
.tk-filter-wrap { position: relative; }
.tk-filter-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--th-muted); font-size: 13px; }
.tk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 22px; }
.tk-chip {
    text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
    background: var(--th-surface); border: 1px solid var(--th-line); cursor: pointer; color: var(--th-ink);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tk-chip:hover { border-color: var(--th-primary); transform: translateY(-2px); }
.tk-chip[aria-expanded="true"] { border-color: var(--th-primary); box-shadow: 0 0 0 4px var(--th-primary-soft); }
.tk-chip i { color: var(--th-primary); margin-top: 3px; width: 16px; text-align: center; flex-shrink: 0; }
.tk-chip strong { display: block; font-size: 14px; font-weight: 800; }
.tk-chip small { display: none; font-size: 13px; color: var(--th-muted); line-height: 1.5; margin-top: 6px; }
.tk-chip[aria-expanded="true"] small { display: block; }
.tk-chip .tk-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--th-accent-600); margin-left: 6px; }
.tk-empty { display: none; padding: 26px; text-align: center; color: var(--th-muted); }

/* ---------- proof ---------- */
.tk-code {
    font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.7;
    background: var(--th-ink); color: var(--th-surface); border-radius: 14px; padding: 16px 18px;
    overflow-x: auto; white-space: pre; margin: 14px 0 0;
}
.tk-code .c { color: var(--th-faint); }
.tk-code .h { color: var(--th-accent); font-weight: 700; }
.tk-mini { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.tk-mini th, .tk-mini td { padding: 8px 10px; border-bottom: 1px solid var(--th-line); text-align: left; }
.tk-mini th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--th-muted); }
.tk-mini td.y { color: var(--th-success); font-weight: 800; }
.tk-mini td.n { color: var(--th-muted); }

/* ---------- pricing teaser + tiers ---------- */
.tk-tier { display: flex; flex-direction: column; gap: 14px; }
.tk-tier.featured { border: 2px solid var(--th-primary); box-shadow: var(--th-shadow-3); }
.tk-tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tk-tier li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.tk-tier li i { color: var(--th-success); margin-top: 3px; }
.tk-price { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.tk-price small { font-size: 13px; font-weight: 700; color: var(--th-muted); }
.tk-badge { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--th-primary-soft); color: var(--th-primary); }
.tk-proposal {
    display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 16px; margin-bottom: 26px;
    background: var(--th-warning-soft); border: 1px dashed var(--th-warning); color: var(--th-ink); font-size: 14px; line-height: 1.55;
}
.tk-proposal i { color: var(--th-warning); margin-top: 3px; }

/* ---------- faq ---------- */
.tk-faq details { background: var(--th-surface); border: 1px solid var(--th-line); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; transition: border-color .2s ease; }
.tk-faq details[open] { border-color: var(--th-primary); }
.tk-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: "+"; font-size: 22px; font-weight: 700; color: var(--th-primary); transition: transform .2s ease; }
.tk-faq details[open] summary::after { transform: rotate(45deg); }
.tk-faq details p { margin: 0 0 18px; color: var(--th-muted); line-height: 1.65; }

/* ---------- closing band ---------- */
.tk-band { border-radius: 28px; padding: 54px 40px; background: var(--th-grad-1); color: var(--th-on-primary); text-align: center; box-shadow: var(--th-shadow-3); position: relative; overflow: hidden; }
.tk-band h2 { color: var(--th-on-primary); }
.tk-band p { opacity: .92; font-size: 17px; max-width: 600px; margin: 0 auto 26px; line-height: 1.6; }
.tk-band .tk-btn-ghost { background: var(--th-surface); color: var(--th-primary); border: 0; }

/* ---------- industry page: the scenario timeline ---------- */
.tk-crumbs { font-size: 13px; color: var(--th-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tk-crumbs a { color: var(--th-muted); text-decoration: none; }
.tk-crumbs a:hover { color: var(--th-primary); }
.tk-timeline { position: relative; padding-left: 34px; }
.tk-timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--th-line-2); }
.tk-tl { position: relative; padding: 0 0 26px; }
.tk-tl:last-child { padding-bottom: 0; }
.tk-tl::before {
    content: ""; position: absolute; left: -29px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--th-surface); border: 3px solid var(--th-primary);
}
.tk-tl.hl::before { background: var(--th-primary); animation: tkPulse 2.6s ease-out infinite; }
.tk-tl time { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 700; color: var(--th-primary); letter-spacing: .04em; }
.tk-tl p { margin: 4px 0 0; line-height: 1.6; }
.tk-cards-list { display: flex; flex-direction: column; gap: 12px; }
.tk-cardrow { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--th-surface); border: 1px solid var(--th-line); }
.tk-cardrow i { width: 34px; height: 34px; border-radius: 10px; background: var(--th-primary-soft); color: var(--th-primary); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tk-cardrow strong { display: block; font-size: 14px; font-weight: 800; }
.tk-cardrow span { font-size: 13px; color: var(--th-muted); line-height: 1.5; }
.tk-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.tk-pill.uid { background: var(--th-primary-soft); color: var(--th-primary); }
.tk-pill.ndef { background: var(--th-accent-soft); color: var(--th-accent-600); }
.tk-limit { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--th-info-soft); border: 1px solid var(--th-line); font-size: 14px; line-height: 1.55; }
.tk-limit i { color: var(--th-info); margin-top: 3px; }
.tk-other { display: flex; flex-wrap: wrap; gap: 10px; }
.tk-other a { text-decoration: none; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--th-line); background: var(--th-surface); color: var(--th-ink); font-size: 13px; font-weight: 700; transition: border-color .2s ease, color .2s ease; }
.tk-other a:hover, .tk-other a.on { border-color: var(--th-primary); color: var(--th-primary); }

/* ---------- reveal (fail-safe) ---------- */
html.tk-js .tk-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.tk-js .tk-reveal.in { opacity: 1; transform: none; }

/* ---------- lead modal ---------- */
.tk-modal-bg {
    position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px;
    background: color-mix(in srgb, var(--th-ink) 45%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tk-modal-bg.open { display: flex; animation: tkFade .25s ease-out; }
.tk-modal {
    width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--th-surface); border: 1px solid var(--th-line); border-radius: 24px; box-shadow: var(--th-shadow-3);
    padding: 30px 28px 26px; position: relative; animation: tkRise .3s ease-out;
}
.tk-modal h3 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; margin: 12px 0 8px; line-height: 1.25; }
.tk-modal p.sub { color: var(--th-muted); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.tk-modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--th-line); background: var(--th-surface); color: var(--th-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tk-modal-x:hover { color: var(--th-error); border-color: var(--th-error); }
.tk-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tk-field label { font-size: 12px; font-weight: 800; color: var(--th-ink-2); }
.tk-field input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--th-line); background: var(--th-surface); color: var(--th-ink); font-size: 15px; }
.tk-field input:focus { outline: none; border-color: var(--th-primary); box-shadow: 0 0 0 4px var(--th-primary-soft); }
.tk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tk-msg { display: none; margin-top: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.tk-msg.err { display: block; background: var(--th-error-soft); color: var(--th-error); }
.tk-done { display: none; text-align: center; padding: 14px 0 4px; }
.tk-done i { font-size: 42px; color: var(--th-success); }
.tk-fine { font-size: 12px; color: var(--th-muted); margin-top: 12px; line-height: 1.5; }
@keyframes tkFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tkRise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .tk-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .tk-section { padding: 64px 0; }
    .tk-hero { padding: 108px 0 56px; }
    .tk-hero-grid, .tk-grid-2 { grid-template-columns: 1fr; }
    .tk-hero-art { max-width: 340px; }
    .tk-grid-3, .tk-steps { grid-template-columns: 1fr; }
    .tk-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tk-band { padding: 40px 22px; }
    .tk-modes th, .tk-modes td { padding: 14px 14px; font-size: 14px; }
}
@media (max-width: 480px) {
    .tk-grid-5 { grid-template-columns: 1fr; }
    .tk-row2 { grid-template-columns: 1fr; }
    .tk-hero-cta .tk-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .tk-art-card, .tk-art-ring, .tk-art-log, .tk-step-num.pulse, .tk-tl.hl::before { animation: none !important; }
    .tk-art-ring { opacity: 0; }
    .tk-art-log { opacity: 1; }
    html.tk-js .tk-reveal { opacity: 1; transform: none; transition: none; }
}
