/* ==========================================================================
   AIS Dashboard Pro landing page: page-specific components.
   Loads after promo.css (shared tokens, header, footer, cards, FAQ, etc.).
   Orange (#D47600) is reserved for Pro, as on tsop.tech.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn--light { --b: var(--white); background: transparent; box-shadow: none; }
.btn--light:hover { background: var(--white); color: var(--indigo); }
.btn--lg { padding: 1rem 1.7rem; font-size: .95rem; }
.btn svg { stroke-width: 2.4; }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 1rem; }
.badges .depth-tag, .badges .product-badge { margin: 0; }
.product-badge { display: inline-block; margin: 0 0 1rem; padding: .3rem .75rem; border-radius: var(--radius); background: rgba(212, 118, 0, .14); border: 1px solid rgba(212, 118, 0, .5); color: var(--orange-soft); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.page-ais .hero { min-height: 0; padding: calc(var(--header-h) + 40px) 0 230px; }
.page-ais .hero__inner { grid-template-columns: 1fr 1.08fr; }
.page-ais .hero__eyebrow { letter-spacing: .3em; margin-bottom: .8rem; }
.hero__title--ais { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; margin-bottom: .45em; }
.hero__title--ais span { display: inline; font-size: inherit; font-weight: inherit; margin: 0; line-height: inherit; }
.page-ais .rotator { color: var(--orange-hi); text-shadow: none; box-shadow: none; }
.page-ais .hero__lead strong { color: var(--white); }
.page-ais .hero__facts strong { font-size: 1.5rem; }
@media (max-width: 960px) { .page-ais .hero { padding-bottom: 180px; } .page-ais .hero__inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .page-ais .hero__actions .btn { width: 100%; } }

/* ---------- Browser frame additions ---------- */
.browser--pro { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .3), 0 0 90px -20px rgba(212, 118, 0, .35); }
.browser__bar .sample { margin-left: auto; background: none; padding: 0; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(171, 171, 199, .75); }
.browser__bar .pro-tag { margin-left: 8px; padding: 3px 8px; border-radius: var(--radius); background: var(--orange); color: var(--white); font-size: .66rem; font-weight: 700; letter-spacing: .12em; }

/* ---------- Map illustrations ---------- */
.map-stage { position: relative; }
.ais-map { width: 100%; height: auto; }
.ais-map .ships use { animation: drift 12s ease-in-out infinite alternate; transform-box: fill-box; }
.ais-map .ships use:nth-child(3n) { animation-duration: 16s; }
.ais-map .ships use:nth-child(3n+1) { animation-duration: 9s; animation-delay: -3s; }
@keyframes drift { to { translate: 6px -4px; } }
.quake__ring { animation: quake 2.2s ease-out infinite; transform-origin: 126px 214px; }
@keyframes quake { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.storm { animation: storm 6s linear infinite; transform-origin: 500px 150px; transform-box: view-box; }
@keyframes storm { from { rotate: 0deg; } to { rotate: -360deg; } }
.route-live { stroke-dasharray: 420; stroke-dashoffset: 420; animation: route 4.5s var(--ease) .6s forwards; }
@keyframes route { to { stroke-dashoffset: 0; } }
.ping { animation: ping 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.hi-ring { animation: hiring 3s ease-in-out infinite; }
@keyframes hiring { 50% { opacity: .35; } }

.ais-ui { position: absolute; font-size: .72rem; color: var(--white); background: rgba(10, 18, 50, .88); border: 1px solid var(--line-strong); border-radius: 8px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ais-ui--search { top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; color: var(--text); width: 46%; white-space: nowrap; overflow: hidden; }
.ais-ui--search svg { width: 14px; height: 14px; fill: none; stroke: var(--text); stroke-width: 2; flex: none; }
.ais-ui--feeds { top: 12px; right: 12px; display: flex; padding: 3px; gap: 2px; }
.ais-ui--feeds span { padding: 4px 8px; border-radius: 5px; color: var(--text); }
.ais-ui--feeds span.on { background: var(--primary); color: var(--white); }
.ais-ui--layers { top: 12px; left: 12px; display: flex; padding: 3px; gap: 2px; }
.ais-ui--layers span { padding: 4px 9px; border-radius: 5px; color: var(--text); }
.ais-ui--layers span.on { background: var(--orange); color: var(--white); }
.ais-ui--insights { right: 12px; top: 56px; width: 150px; padding: 10px 12px; }
.ais-ui--insights strong { display: block; font-size: .72rem; margin-bottom: 6px; letter-spacing: .06em; text-transform: uppercase; }
.ais-ui--insights .bar { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.ais-ui--insights .bar span { height: 5px; width: var(--w); max-width: 70px; flex: none; background: var(--c); border-radius: 3px; }
.ais-ui--insights .bar em { font-style: normal; color: var(--text); font-size: .66rem; }
.ais-ui--ticker { left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; }
.ais-ui--ticker b { background: var(--orange); padding: 1px 6px; border-radius: 3px; font-size: .62rem; letter-spacing: .08em; }
.ais-ui--ticker .skeleton { flex: 1; }
.ais-ui--ticker .skeleton--s { flex: .5; }
.ais-ui--audit { top: 12px; right: 12px; width: 176px; padding: 10px 12px; border-color: rgba(212, 118, 0, .55); }
.ais-ui--audit header { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ais-ui--audit header strong { white-space: nowrap; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.ais-ui--audit header em { font-style: normal; font-size: .62rem; color: var(--orange-soft); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kv { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px dashed var(--line); }
.kv span:first-child { color: var(--text); }
.kv span:last-child { font-weight: 700; }
.kv--co2 span:last-child { color: var(--green); }
.ais-ui--replay { left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 7px 12px; }
.ais-ui--replay .play { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex: none; }
.ais-ui--replay .play svg { width: 9px; height: 9px; fill: #fff; }
.ais-ui--replay .track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(171, 171, 199, .25); }
.ais-ui--replay .track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--primary), var(--purple)); }
.ais-ui--replay .track::after { content: ""; position: absolute; left: 62%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ais-ui--replay em { font-style: normal; color: var(--text); }
@media (max-width: 560px) {
  .ais-ui--insights { display: none; }
  .ais-ui--search { width: 36%; font-size: .64rem; }
  .ais-ui--feeds { font-size: .6rem; }
  .ais-ui--audit { width: 148px; font-size: .62rem; padding: 8px 9px; }
  .ais-ui--audit header em { display: none; }
  .ais-ui--layers { font-size: .62rem; }
  .ais-ui--replay { font-size: .64rem; }
}

/* ---------- Sources strip ---------- */
.sources { position: relative; z-index: 2; margin-top: 100px; }
@media (max-width: 960px) { .sources { margin-top: 70px; } }
.sources__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 34px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sources p { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--cyan); }
.sources ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.sources li { font-weight: 700; color: var(--white); font-size: .95rem; opacity: .9; }
.src-pro { margin-left: 4px; padding: 1px 6px; border-radius: var(--radius); background: var(--orange); color: var(--white); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }

/* ---------- Pro ticks & card chip ---------- */
.ticks--pro li::before { background-color: rgba(212, 118, 0, .22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB45A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.card__chip { align-self: flex-start; margin-bottom: 12px; padding: .15rem .55rem; border-radius: var(--radius); background: rgba(212, 118, 0, .14); border: 1px solid rgba(212, 118, 0, .5); color: var(--orange-soft); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.features-sec { overflow: hidden; }
@media (max-width: 760px) { .features-sec .reef-fish { display: none; } }

/* ---------- Cost & CO2 panel ---------- */
.panel { padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-card); border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(36, 155, 229, .08), rgba(255, 255, 255, .03) 50%); box-shadow: var(--shadow-lg), 0 0 80px -30px rgba(36, 155, 229, .45); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.panel__head h3 { font-size: 1.05rem; margin: 0; }
.panel__head span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: rgba(171, 171, 199, .75); }
.price-now { font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.price-now small { font-size: 1rem; color: var(--text); font-weight: 600; }
.delta { display: inline-block; margin-left: 8px; font-size: .82rem; font-weight: 700; color: var(--green); }
.spark { margin: 14px 0 20px; }
.spark svg { width: 100%; height: 110px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(10, 2, 30, .45); }
.stat .l { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stat .v { font-size: 1.35rem; font-weight: 700; color: var(--white); margin-top: 2px; }
.stat .v small { font-size: .8rem; color: var(--text); font-weight: 600; }
.flag { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; background: rgba(212, 118, 0, .12); border: 1px solid rgba(212, 118, 0, .5); color: #F5C58A; font-size: .9rem; font-weight: 600; }
.flag svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--orange-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel__foot { margin: 14px 0 0; font-size: .78rem; color: rgba(171, 171, 199, .8); }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Audiences ---------- */
.page-ais .audiences { margin-top: 0; }

/* ---------- Plans (Free vs Pro) ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; }
.tier { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow); }
.tier h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.tier__price { color: var(--white); font-size: 2.4rem; font-weight: 700; line-height: 1.1; margin: .6rem 0 1.4rem; }
.tier__price small { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-top: 6px; }
.tier .ticks { margin-bottom: 1.6rem; }
.tier .ticks li { font-size: .95rem; }
.tier--pro { border-color: rgba(212, 118, 0, .55); background: linear-gradient(160deg, rgba(212, 118, 0, .1), rgba(255, 255, 255, .03) 45%); box-shadow: var(--shadow), 0 0 60px -20px rgba(212, 118, 0, .45); }
.tier__flag { position: absolute; top: -12px; right: 24px; padding: .2rem .8rem; border-radius: var(--radius); background: var(--orange); color: var(--white); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.tier__quote { font-style: italic; color: #D9D9EA; margin-bottom: 1rem; }
.billing { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(0, 0, 0, .2); }
.billing__opt { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 5px; font-weight: 700; font-size: .85rem; color: var(--text); cursor: pointer; transition: background .25s, color .25s; }
.billing__opt em { font-style: normal; font-size: .7rem; color: var(--orange-soft); margin-left: 4px; }
.billing__opt.is-on { background: var(--orange); color: var(--white); }
.billing__opt.is-on em { color: var(--white); opacity: .9; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 1.6rem; font-size: .82rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 11px solid var(--c); }
.fine { margin: 14px 0 0; font-size: .82rem; text-align: center; color: rgba(171, 171, 199, .85); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .tier { padding: 26px 22px; } }

/* ---------- Three-step getting started ---------- */
.steps--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps--3 .step strong { color: var(--white); }
@media (max-width: 820px) { .steps--3 { grid-template-columns: 1fr; gap: 32px; } .steps--3::before { display: none; } }

/* ---------- FAQ angler ---------- */
.page-ais .faq .angler-wrap--contact { margin-top: 40px; }
@media (max-width: 860px) { .page-ais .faq .angler-wrap { display: none; } }

/* ---------- Final CTA ---------- */
.final { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-card); background: linear-gradient(120deg, var(--navy), rgba(2, 119, 189, .55)); border: 1px solid rgba(36, 155, 229, .35); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.final::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 0 0 30px rgba(255, 255, 255, .03), 0 0 0 60px rgba(255, 255, 255, .02); pointer-events: none; }
.final h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .3rem; }
.final p { margin: 0; color: #D6DCF5; font-size: 1.05rem; }
.final .actions { margin-top: 0; position: relative; z-index: 1; }
@media (max-width: 560px) { .final .actions .btn { width: 100%; } }

/* ---------- Footer disclaimer ---------- */
.disclaimer { margin: 48px auto 0; max-width: 820px; text-align: center; font-size: .8rem; color: rgba(171, 171, 199, .8); }
.disclaimer strong { color: var(--text); }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(17, 3, 69, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(212, 118, 0, .45);
  align-items: center; gap: 12px; transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .txt { flex: 1; font-size: .8rem; line-height: 1.3; }
.sticky-cta .txt strong { display: block; color: var(--white); font-size: .95rem; }
@media (max-width: 760px) { .sticky-cta { display: flex; } .page-ais { padding-bottom: 78px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .route-live { stroke-dashoffset: 0; }
  .ping { display: none; }
}
