/* Home page, round 48. Loaded last so it wins over the older rules. */

/* ---------- hero: text on the left, a tilted dashboard on the right, dolphin sea behind ---------- */
.h-hero { position: relative; isolation: isolate; text-align: left; color: #fff; padding: clamp(44px, 5.5vw, 80px) 0 clamp(72px, 8vw, 124px); background: #00008B url(/img/home/sea.svg) center / cover no-repeat; border-radius: 0 0 clamp(26px, 3.4vw, 56px) clamp(26px, 3.4vw, 56px); overflow: hidden; }
.hh { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.h-hero h1 { font-size: clamp(30px, 3.5vw, 52px); line-height: 1.07; letter-spacing: -.04em; font-weight: 800; max-width: 11.5em; margin: 0; color: #fff; text-wrap: balance; }
.h-hero h1 em { font-style: normal; background: linear-gradient(90deg, #8fd0ff, #d9b8ff 70%, #ffc4f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero .h-support { display: block; margin: 14px 0 0; padding: 0; color: #cfe0ff; font: 650 clamp(15px, 1.35vw, 18px)/1.3 var(--font); letter-spacing: .01em; }
.h-hero .lede { margin: 12px 0 0; max-width: 29em; font-size: clamp(14px, 1.2vw, 16.5px); line-height: 1.55; color: rgba(255, 255, 255, .8); }
.h-hero .urlbox { margin: 26px 0 0; max-width: 480px; background: rgba(255, 255, 255, .97); border-color: transparent; box-shadow: 0 18px 46px -18px rgba(0, 0, 60, .7); }
.h-hero .urlbox input { color: var(--ink); }
.hh-r { position: relative; display: flex; justify-content: center; padding: 10px 0 34px; }
.hh-tilt { position: relative; width: 84%; transition: opacity .4s ease, transform .4s ease; }
.hh-tilt.gone { opacity: 0; transform: scale(.97); }
.hh-win { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 70px -30px rgba(10, 0, 60, .6), 0 0 0 1px rgba(255, 255, 255, .22); }
.hh-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #f1f3f9; transition: background .6s; }
.hh-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dcea; }
.hh-bar span { margin: 0 auto; transform: translateX(-20px); font-size: 11px; color: #6b7a99; background: #fff; border-radius: 7px; padding: 2px 24px; transition: background .6s, color .6s; }
.hh-r.is-dark .hh-bar { background: #151a2b; } .hh-r.is-dark .hh-bar span { background: #0c1020; color: #98a6c8; }
.hh-view { position: relative; aspect-ratio: 1440 / 900; background: #0c1020; }
.hh-s { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hh-s.on { opacity: 1; }
.hh-chip { position: absolute; left: 5%; bottom: -14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: #0b1b3a; font: 700 12.5px var(--font); box-shadow: 0 12px 26px -12px rgba(10, 0, 60, .55); transition: background .4s, color .4s; }
.hh-chip i { width: 11px; height: 11px; border-radius: 50%; background: #f5b83d; box-shadow: 0 0 0 3px rgba(245, 184, 61, .3); }
.hh-chip.dk { background: rgba(14, 18, 38, .94); color: #fff; } .hh-chip.dk i { background: #8fa0ff; box-shadow: 0 0 0 3px rgba(143, 160, 255, .3); }
@media (max-width: 920px) { .hh { grid-template-columns: 1fr; } .hh-tilt { width: 100%; } .hh-r { padding-top: 8px; } }
@media (prefers-reduced-motion: reduce) { .hh-tilt { transition: none; } }

/* ---------- the big scrolling dashboard ---------- */
.bs-sec { padding-top: clamp(56px, 7vw, 100px); }
.bs-h { text-align: center; max-width: 36em; margin: 0 auto clamp(26px, 3.4vw, 46px); }
.bs-h h2 { max-width: none; width: 100%; font-size: clamp(26px, 3.5vw, 46px); line-height: 1.1; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.bs-win .win-view { background: #eef1f8; }
.bs-win .win-bar { position: relative; }
.bs-mode { display: inline-flex; align-items: center; gap: 6px; font: 650 11.5px var(--font); color: #5a6a8a; padding: 3px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); transition: background .6s, color .6s; }
.bs-mode i { width: 8px; height: 8px; border-radius: 50%; background: #f5b83d; } .bs-mode.dk { background: #11162a; color: #cfd8f5; border-color: #11162a; } .bs-mode.dk i { background: #8fa0ff; }
.bs-win .slide { transition: opacity 1s ease; }
.bs-cap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.bs-cap b { font: 700 15px var(--font); color: var(--ink-2); }
.bs-dots { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; } .bs-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8ea; cursor: pointer; transition: transform .3s, background .3s; } .bs-dots i.dk { background: #8d99b8; } .bs-dots i.on { background: var(--brand); transform: scale(1.35); }
@media (max-width: 720px) { .bs-win .win-view { aspect-ratio: 4 / 3; } }

/* ---------- TapFix: MacBook and iPhone, in the middle of the page, no coloured box ---------- */
.tfx-sec { position: relative; padding: clamp(64px, 8vw, 120px) 0 clamp(36px, 5vw, 70px); overflow: hidden; background: radial-gradient(900px 440px at 50% 64%, rgba(106, 76, 255, .10), transparent 70%), radial-gradient(600px 320px at 12% 18%, rgba(31, 107, 255, .08), transparent 70%), radial-gradient(600px 320px at 90% 30%, rgba(208, 75, 255, .07), transparent 70%); }
.tfx-h { text-align: center; max-width: 46em; margin: 0 auto; }
.tfx-k { display: inline-flex; align-items: center; gap: 9px; font: 700 12.5px var(--font); letter-spacing: .18em; text-transform: uppercase; color: #5b3fd0; }
.tfx-k i { width: 9px; height: 9px; border-radius: 50%; background: #7a4dff; animation: tfxPing 2.2s infinite; }
@keyframes tfxPing { 0% { box-shadow: 0 0 0 0 rgba(122, 77, 255, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(122, 77, 255, 0); } }
.tfx-h h2 { font-size: clamp(32px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.05em; font-weight: 800; margin: 16px 0 0; text-wrap: balance; }
.tfx-h h2 em { font-style: normal; background: linear-gradient(90deg, #1f6bff, #7a4dff 55%, #d04bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tfx-p { margin: 20px auto 0; max-width: 33em; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); }
.tfx-tap { margin: 18px 0 0; } .tfx-tap b { display: inline-block; padding: 11px 22px; border-radius: 99px; background: linear-gradient(135deg, #0b1b3a, #2a2fa0); color: #fff; font: 700 clamp(14px, 1.3vw, 16.5px) var(--font); box-shadow: 0 16px 32px -16px rgba(42, 47, 160, .7); }
.tfs.tfs-prem { position: relative; width: min(100%, 1200px); height: clamp(420px, 56vw, 680px); margin: clamp(6px, 2vw, 22px) auto 0; background: none; border-radius: 0; box-shadow: none; overflow: visible; }
.tfs-prem::before { content: ''; position: absolute; left: 14%; right: 14%; bottom: clamp(30px, 6vw, 70px); height: 36px; background: radial-gradient(ellipse at center, rgba(20, 30, 90, .28), transparent 70%); filter: blur(10px); }
.tfs-prem .tfs-tag { display: none; }
.tfs-prem .tfs-chap { padding: 4px 12px 8px; }
.tfs-prem .tfs-chap li { color: var(--ink-2); opacity: .55; } .tfs-prem .tfs-chap li.on { opacity: 1; color: var(--ink); } .tfs-prem .tfs-chap li.done { opacity: .85; }
.tfs-prem .tfs-chap li b { background: rgba(11, 27, 58, .1); color: var(--ink); } .tfs-prem .tfs-chap li.on b { background: #4a5cff; color: #fff; } .tfs-prem .tfs-chap li.done b { background: #0fbf8a; color: #fff; }
.tfx-more { text-align: center; margin: 6px 0 0; }
@media (max-width: 620px) { .tfs.tfs-prem { height: 560px; } }

/* ---------- more colours for the stacked and sliding boxes: purple and soft gold join blue and green ---------- */
.stk.b { --sc-bg: linear-gradient(135deg, #f6f9ff 0%, #cfe0ff 52%, #8db4ff 100%); }
.stk.p { --sc-bg: linear-gradient(135deg, #faf5ff 0%, #dccbff 52%, #b08cff 100%); --sc-ink: #2f1572; box-shadow: 0 34px 70px -42px rgba(60, 20, 130, .6), 0 1px 0 rgba(255, 255, 255, .8) inset; }
.stk.y { --sc-bg: linear-gradient(135deg, #fffaf0 0%, #fbe7b4 52%, #f1c36a 100%); --sc-ink: #4a3208; box-shadow: 0 34px 70px -42px rgba(120, 80, 10, .55), 0 1px 0 rgba(255, 255, 255, .8) inset; }
.stk.p .fr-t .more, .stk.y .fr-t .more { color: var(--sc-ink); }

/* ---------- chart section: no kicker, no shadow, crisp, no tilt ---------- */
.pl-stage::before { display: none; }
.pl-stage .win { box-shadow: none; transform: none; border: 1px solid var(--line); }
.pl-stage .df-cam { will-change: auto; }
.pl-txt h2 { margin-top: 0; }

/* ---------- Every business need, covered: twelve opaque tiles of different size ---------- */
.ps-sec { background: linear-gradient(180deg, #fff, #f6f8fd 45%, #fff); }
.ps-h { text-align: center; max-width: 44em; margin: 0 auto clamp(24px, 3vw, 40px); }
.ps-h h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.04em; line-height: 1.08; margin: 0 0 10px; }
.ps-h p { color: var(--muted); font-size: 17px; margin: 0; }
.ps-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, 150px); gap: 12px; max-width: 1100px; margin: 0 auto; }
.pq { --a: #800080; --b: #5c005c; --fg: #fff; --ic2: var(--a); grid-column: var(--c) / span var(--w); grid-row: var(--r) / span var(--h); position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 16px 18px; border-radius: 22px; background: linear-gradient(145deg, var(--a), var(--b)); color: var(--fg); text-decoration: none; overflow: hidden; animation: pqIn .6s calc(var(--i) * 55ms) backwards cubic-bezier(.2, .8, .2, 1), pqFloat calc(5s + var(--i) * .45s) calc(var(--i) * -.7s) ease-in-out infinite; transition: scale .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s; }
.pq-ic { position: absolute; left: 16px; top: 14px; width: 40px; height: 40px; display: block; } .pq-ic svg { width: 100%; height: 100%; display: block; }
.pq.wd .pq-ic { width: 46px; height: 46px; } .pq.xl .pq-ic { width: 76px; height: 76px; left: 20px; top: 20px; }
.pq b { font: 750 15px/1.15 var(--font); letter-spacing: -.015em; } .pq.wd b { font-size: 17px; } .pq.xl b { font-size: 26px; letter-spacing: -.03em; }
.pq em { font: 500 12.5px/1.3 var(--font); font-style: normal; opacity: .82; display: none; } .pq.wd em, .pq.xl em { display: block; } .pq.xl em { font-size: 14.5px; }
.pq .pq-n { position: static; font: 800 38px/1 var(--font); letter-spacing: -.04em; }
.pq.pop, .pq:hover { scale: 1.1; z-index: 3; box-shadow: 0 22px 40px -18px rgba(20, 10, 60, .55); }
.ps-board.out .pq { animation: pqOut .55s calc(var(--i) * 35ms) both ease-in; }
@keyframes pqIn { from { opacity: 0; scale: .88; } to { opacity: 1; scale: 1; } }
@keyframes pqOut { to { opacity: 0; scale: .9; } }
@keyframes pqFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.ps-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; } .ps-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8ea; cursor: pointer; transition: transform .3s, background .3s; } .ps-dots i.on { background: #800080; transform: scale(1.35); }
.ps-more { text-align: center; margin: 22px 0 0; }
@media (max-width: 800px) { .ps-board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 118px; grid-auto-flow: dense; } .pq { grid-column: span min(var(--w), 2); grid-row: span var(--h); } .pq.xl { grid-column: span 2; } .pq.xl .pq-ic { width: 56px; height: 56px; } .pq.xl b { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .pq { animation: none; transition: none; } }

/* ---------- footer: dark green, coffee brown and gold, in halftone dots ---------- */
.mfoot { position: relative; isolation: isolate; color: #f4ead2; background: #06261c url(/img/home/footer-halftone.webp) center top / cover no-repeat; }
.mfoot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 28, 20, .50) 0%, rgba(4, 28, 20, .80) 55%, rgba(3, 22, 16, .94) 100%); }
.mfoot .ftop { border-bottom-color: rgba(244, 234, 210, .22); } .mfoot .ftop p { color: #eadfc2; }
.mfoot .brand, .mfoot .brand .wm, .mfoot .brand .wm .ai::after { color: #fff !important; } .mfoot .logo, .mfoot .logo-tm .logo { --la: #8fb4ff; --lb: #3f73e6; } .mfoot .logo-tm::after { color: #8fb4ff; }
.mfoot h6 { color: #f3d27a; } .mfoot a, .mfoot .linkbtn { color: #f4ead2; font-weight: 500; } .mfoot a:hover, .mfoot .linkbtn:hover { color: #ffd978; text-decoration: underline; }
.mfoot .btn.fghost, .mfoot .fghost, .mfoot .fghost:hover { background: rgba(243, 210, 122, .14) !important; color: #fff !important; border: 1px solid rgba(243, 210, 122, .5) !important; }
.mfoot .fbar { border-top-color: rgba(244, 234, 210, .22); color: #d9cba8; } .mfoot .fbar a, .mfoot .fbar-r a { color: #f3d27a; }

/* ---------- story box: tight logo lockup ---------- */
.sl-brand { gap: 7px; }
.sl-brand .sl-tm { align-self: flex-start; margin: 4px 0 0 1px; font: 700 10px/1 Inter, sans-serif; color: #fff; opacity: .9; }
.sl-il .logo-tm { padding-right: .5em; } .sl-il .logo-tm::after { font-size: 17px; top: 2px; color: #fff; }

/* ---------- TapFix headline ---------- */
.tfx-h h2 { margin: 0; display: grid; gap: 6px; justify-items: center; }
.tfx-name { font-size: clamp(46px, 7.4vw, 96px); font-weight: 800; letter-spacing: -.055em; line-height: 1; background: linear-gradient(90deg, #1f6bff, #7a4dff, #d04bff, #1f6bff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tfxFlow 6s linear infinite; }
@keyframes tfxFlow { to { background-position: -300% 0; } }
.tfx-l2 { font-size: clamp(24px, 3.4vw, 44px); font-weight: 750; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }
.tfx-l3 { font-size: clamp(16px, 1.9vw, 24px); font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); line-height: 1.3; }
.tfs.tfs-prem { height: clamp(380px, 48vw, 590px); margin-top: 0; }
.tfs-prem .tfs-chap { margin-top: -44px; position: relative; z-index: 2; }
.tfx-more { margin: 0; }
@media (prefers-reduced-motion: reduce) { .tfx-name { animation: none; } }
@media (max-width: 620px) { .tfs.tfs-prem { height: 520px; } .tfs-prem .tfs-chap { margin-top: -10px; } }

/* ---------- section 8 heading ---------- */
.tour-h { max-width: none; } .tour-h h2 { white-space: nowrap; font-size: clamp(22px, 3.9vw, 44px); }
@media (max-width: 560px) { .tour-h h2 { white-space: normal; } }
.sl-il .logo-tm { padding-right: 0; } .sl-il .logo-tm::after { right: 4px; }

/* ---- round 50 ---- */
/* hero: bigger picture, a gentle shimmer on "AI revolution", two-line lede, thin outline on the button */
.hh-tilt { width: 92%; }
.h-hero h1 em { background-size: 220% 100%; animation: aiShimmer 7s ease-in-out infinite alternate; }
@keyframes aiShimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.h-hero .lede { max-width: 38em; font-size: clamp(14px, 1.12vw, 16px); text-wrap: balance; }
.h-hero .urlbox .btn.primary { border: 1px solid #000; }
@media (prefers-reduced-motion: reduce) { .h-hero h1 em { animation: none; } }

/* one size for section headings and for the line under them, across the home page */
.bs-h h2, .tfx-h h2, .ps-h h2, .reach-h h2, .tour-h h2, .pl-txt h2, #ent h2, #rows h2, #finder h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.bs-h p, .tfx-h p, .ps-h p, .reach-h p, .tour-h p { margin: 12px auto 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; color: var(--ink-2); font-weight: 500; letter-spacing: 0; }
.tfx-h { margin: 0 auto; }
.tfx-h p { text-align: center; max-width: 36em; }
.tfx-name { font-size: inherit; letter-spacing: inherit; line-height: inherit; }
/* tiles: a clearly visible gradient in each tile's own colour */
.pq { background: linear-gradient(145deg, color-mix(in srgb, var(--a) 62%, #fff) 0%, var(--a) 38%, var(--b) 100%); }

/* Round 53c: the dashboard tour shows the pictures on their own, with no coloured box behind them */
#tourrows .fr-v.gbox, #tourrows .fr-v.gbox.gb-b { background: none !important; padding: 0; border-radius: 0; box-shadow: none; overflow: visible; }
#tourrows .fr-v.gbox::before, #tourrows .fr-v.gbox::after { display: none !important; }
/* Round 53c: tour panels carry no background box */
#tourrows .stk, #tourrows .stk.b, #tourrows .stk.hzc { --sc-bg: none; --sc-ink: var(--ink, #0f172a); background: none !important; box-shadow: none !important; border: 0; border-radius: 0; }
#tourrows .stk::before, #tourrows .stk::after { display: none; }
#tourrows .stk .fr-k { background: rgba(15,23,42,.06); }
#tourrows .stk .fr-t .more { background: rgba(15,23,42,.07); }

/* typed headline: letters are in place from the start (no layout shift), and appear one by one */
.h-hero h1 .tw { display: inline-block; white-space: nowrap; }
.h-hero h1 .tc { visibility: hidden; } .h-hero h1 .tc.on { visibility: visible; }
.h-hero h1 .tcaret { display: inline-block; width: .06em; height: .86em; margin-left: .03em; vertical-align: -.06em; background: #8fd0ff; border-radius: 2px; animation: tcBlink .8s steps(1) infinite; }
@keyframes tcBlink { 50% { opacity: 0; } }

/* "Outrank your competition": a soft blue-violet window bar that matches the hero */
.bs-win .win-bar { background: linear-gradient(90deg, #e6edff, #efe8ff 60%, #e9f6ee); border-bottom-color: #dbe2f7; }
.bs-win .win-bar i { background: #b9c6ec; } .bs-win .win-bar .url { background: rgba(255, 255, 255, .82); border-color: #d3dcf3; }
