/* Landing page only, modelled on anam.ai: two-tone headings, pill buttons,
   a card marquee, a pinned statement over the 3D mark, a mock-up with tabs,
   a tabbed card, a green band and a closing call to action. Green line art
   stands in for Anam's photos and orange diagrams. */

.home { --tile: #e8e9e3; --wrap: 1240px; }
.home .wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.home section { position: relative; }
.two.xl { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.04em; line-height: 1.06; }

/* Line art used in every card and tile */
.home svg .s { fill: none; stroke: var(--st); stroke-width: 1.6; }
.home svg .d { stroke-dasharray: 3 5; }
.home svg .f { fill: var(--fi); }
.home svg .g { fill: var(--gr); }
.home svg .faint { stroke: var(--fa); }
.c-ink { background: var(--ink); --st: var(--green); --fi: var(--green); --gr: rgba(255, 255, 255, .2); --fa: rgba(255, 255, 255, .2); }
.c-paper { background: var(--tile); --st: var(--green); --fi: var(--green); --gr: #c5c6bf; --fa: rgba(10, 10, 10, .14); }
.c-white { background: var(--white); --st: var(--green); --fi: var(--green); --gr: #d3d4cd; --fa: rgba(10, 10, 10, .12); }
.c-green { background: var(--green); --st: var(--ink); --fi: var(--ink); --gr: rgba(10, 10, 10, .25); --fa: rgba(10, 10, 10, .28); }
.home svg .draw { stroke-dasharray: 950; animation: draw 7s ease-in-out infinite alternate; }
.home svg .draw.d2 { animation-delay: -2s; }
@keyframes draw { from { stroke-dashoffset: 950; } to { stroke-dashoffset: 0; } }

/* Hero */
.h-hero { padding-top: calc(var(--nav) + clamp(40px, 9vh, 96px)); }
.marquee { margin-top: clamp(44px, 7vh, 72px); overflow: hidden; }
.mq-track { display: flex; gap: 16px; width: max-content; animation: marquee 64s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.mq-card {
  flex: none; width: clamp(210px, 21vw, 300px); aspect-ratio: 300 / 380; border-radius: 26px;
  display: grid; place-items: center; overflow: hidden;
}
.mq-card svg { width: 100%; height: 100%; }
.mq-card canvas.wave { width: 72%; height: 30%; }

/* Pinned statement over the 3D mark */
.h-pin { height: 340vh; margin-top: clamp(96px, 14vh, 160px); }
.h-pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #e7e8e2; }
.mark-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.gl-on .mark-gl { opacity: 1; }
.h-pin-copy {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: min(46vw, 600px);
  display: grid; gap: .55em;
}
.pl {
  font-size: clamp(22px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.14;
  color: rgba(10, 10, 10, .13); transition: color .6s ease;
}
.pl.past { color: #9a9b94; }
.pl.now { color: var(--ink); }

/* Approach: heading, tabs, and a workspace mock-up the tabs point into */
.h-approach, .h-ways {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px);
  align-items: start; margin-top: clamp(120px, 18vh, 200px);
}
.h-side { display: grid; justify-items: start; gap: 22px; }
.tabs { display: grid; gap: 4px; width: 100%; margin-top: clamp(28px, 7vh, 88px); }
.tab { position: relative; border-left: 2px solid var(--rule); padding: 10px 0 10px 18px; }
/* The open tab's line fills green as you scroll through it */
.tab::before {
  content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%;
  background: var(--green); transform: scaleY(0); transform-origin: top;
}
.tab.on::before { transform: scaleY(var(--sp, 1)); }
html:not(.pin-ok) .tab::before { display: none; }
.tab b { display: block; font-size: 17px; color: #9a9b94; letter-spacing: -0.01em; transition: color .3s; }
.tab span {
  display: block; font-size: 15px; color: var(--ink-2); max-width: 380px;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .45s ease, margin .45s ease;
}
.tab.on b { color: var(--ink); }
.tab.on span { max-height: 4.5em; opacity: 1; margin-top: 4px; }

.mock-card { background: var(--tile); border-radius: 26px; padding: clamp(18px, 3vw, 40px); }
.mock { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; }
.mk { position: relative; background: var(--white); border-radius: 16px; padding: 18px; transition: opacity .5s ease, outline-color .4s ease; outline: 1.5px dashed transparent; outline-offset: 6px; }
.mk-prospects { grid-row: 1 / span 2; overflow: hidden; }
.mock[data-focus="0"] .mk:not(.mk-prospects),
.mock[data-focus="1"] .mk:not(.mk-training),
.mock[data-focus="2"] .mk:not(.mk-work) { opacity: .36; }
.mock[data-focus="0"] .mk-prospects, .mock[data-focus="1"] .mk-training, .mock[data-focus="2"] .mk-work { outline-color: var(--green); }
.hud {
  position: absolute; left: 10px; top: -8px; transform: translateY(-100%); z-index: 1;
  font-size: 12px; font-weight: 700; color: #00a556; opacity: 0; transition: opacity .4s ease; white-space: nowrap;
}
.mock[data-focus="0"] .mk-prospects .hud, .mock[data-focus="1"] .mk-training .hud, .mock[data-focus="2"] .mk-work .hud { opacity: 1; }
.mk .bar { display: block; height: 8px; border-radius: 99px; background: #e2e3dd; }
.mk .bar.soft { height: 6px; background: #eeeee9; }
.w30 { width: 30%; } .w36 { width: 36%; } .w40 { width: 40%; } .w44 { width: 44%; } .w45 { width: 45%; } .w46 { width: 46%; }
.w48 { width: 48%; } .w50 { width: 50%; } .w52 { width: 52%; } .w55 { width: 55%; } .w58 { width: 58%; } .w60 { width: 60%; }
.w62 { width: 62%; } .w66 { width: 66%; } .w70 { width: 70%; } .w80 { width: 80%; }
.mk-head { margin-bottom: 14px; }
.mk .av { display: block; width: 26px; height: 26px; border-radius: 50%; background: #e2e3dd; flex: none; }
.mk-lines { display: grid; gap: 8px; }

.mk-prospects .row {
  display: grid; grid-template-columns: 26px 1fr 10px; grid-template-rows: auto auto;
  column-gap: 10px; row-gap: 6px; align-items: center; padding: 11px 0; border-top: 1px solid #f0f0eb;
}
.mk-prospects .row .av { grid-row: 1 / span 2; }
.mk-prospects .row .bar { grid-column: 2; }
.mk-prospects .hit { grid-column: 3; grid-row: 1 / span 2; width: 9px; height: 9px; border-radius: 50%; background: #e2e3dd; }
.mk-prospects .match .hit { background: var(--green); animation: hit 3s ease-in-out infinite; }
.mk-prospects .match:nth-of-type(4) .hit { animation-delay: .5s; }
.mk-prospects .match:nth-of-type(5) .hit { animation-delay: 1s; }
.mk-prospects .match:nth-of-type(7) .hit { animation-delay: 1.5s; }
@keyframes hit { 50% { transform: scale(1.45); } }
.mk-prospects::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--green); opacity: .7;
  animation: scan 4.5s ease-in-out infinite;
}
@keyframes scan { 0% { top: 12%; opacity: 0; } 10% { opacity: .7; } 90% { opacity: .7; } 100% { top: 96%; opacity: 0; } }

.steps { position: relative; display: flex; justify-content: space-between; margin: 6px 2px 18px; }
.steps .track { position: absolute; left: 7px; right: 7px; top: 50%; height: 2px; margin-top: -1px; background: #e2e3dd; overflow: hidden; }
.steps .fill { position: absolute; inset: 0; background: var(--green); transform-origin: left; animation: train 6s ease-in-out infinite; }
.steps .st { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid #dcddd6; animation: 6s linear infinite; }
/* .track is the first <i> in .steps, so the four dots are <i> 2 to 5 */
.steps .st:nth-of-type(2) { animation-name: st0; }
.steps .st:nth-of-type(3) { animation-name: st1; }
.steps .st:nth-of-type(4) { animation-name: st2; }
.steps .st:nth-of-type(5) { animation-name: st3; }
@keyframes train { 0% { transform: scaleX(0); } 60%, 90% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes st0 { 0%, 90% { background: var(--green); border-color: var(--green); } 100% { background: var(--white); border-color: #dcddd6; } }
@keyframes st1 { 0%, 19% { background: var(--white); border-color: #dcddd6; } 20%, 90% { background: var(--green); border-color: var(--green); } 100% { background: var(--white); border-color: #dcddd6; } }
@keyframes st2 { 0%, 39% { background: var(--white); border-color: #dcddd6; } 40%, 90% { background: var(--green); border-color: var(--green); } 100% { background: var(--white); border-color: #dcddd6; } }
@keyframes st3 { 0%, 59% { background: var(--white); border-color: #dcddd6; } 60%, 90% { background: var(--green); border-color: var(--green); } 100% { background: var(--white); border-color: #dcddd6; } }

.call { display: flex; align-items: center; gap: 10px; }
.call canvas.wave { flex: 1; min-width: 0; height: 26px; }
.av.live { background: var(--green); animation: ringout 1.8s ease-out infinite; }
@keyframes ringout { from { box-shadow: 0 0 0 0 rgba(0, 191, 99, .5); } to { box-shadow: 0 0 0 9px rgba(0, 191, 99, 0); } }
.timer { font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.flow { display: flex; align-items: center; margin: 18px 0 16px; }
.flow .node { display: block; width: 22px; height: 22px; border-radius: 7px; border: 1.6px solid #d6d7d0; flex: none; animation: 4.5s linear infinite; }
.flow .link { display: block; flex: 1; border-top: 2px dashed #d6d7d0; margin: 0 6px; }
.flow .n1 { animation-name: fl1; } .flow .n2 { animation-name: fl2; } .flow .n3 { animation-name: fl3; }
@keyframes fl1 { 0%, 88% { background: var(--green); border-color: var(--green); } 100% { background: transparent; border-color: #d6d7d0; } }
@keyframes fl2 { 0%, 29% { background: transparent; border-color: #d6d7d0; } 30%, 88% { background: var(--green); border-color: var(--green); } 100% { background: transparent; border-color: #d6d7d0; } }
@keyframes fl3 { 0%, 59% { background: transparent; border-color: #d6d7d0; } 60%, 88% { background: var(--green); border-color: var(--green); } 100% { background: transparent; border-color: #d6d7d0; } }

/* Two ways: segmented switch between businesses and reps */
.ways-card { background: var(--tile); border-radius: 26px; padding: clamp(18px, 3vw, 36px); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #dcddd6; }
.seg button {
  position: relative; z-index: 1; background: none; border: 0; border-radius: 999px; padding: 11px 0; cursor: pointer;
  font: 700 14px "Inter", sans-serif; color: var(--ink-2); transition: color .25s;
}
.seg button[aria-selected="true"] { color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: var(--white); box-shadow: 0 2px 10px -4px rgba(10, 10, 10, .25); transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.seg[data-on="rep"] .seg-thumb { transform: translateX(100%); }
.ways-panel {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "list art" "btn art";
  gap: 28px 24px; margin-top: 18px; padding: clamp(22px, 3vw, 32px); background: var(--white); border-radius: 18px;
  animation: panel .45s cubic-bezier(.2, .7, .2, 1);
}
@keyframes panel { from { opacity: 0; transform: translateY(8px); } }
.checks { grid-area: list; list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2l2.6 2.4L9 1.2' fill='none' stroke='%230a0a0a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.ways-panel > a { grid-area: btn; justify-self: start; align-self: end; }
.ways-art {
  grid-area: art; width: clamp(120px, 13vw, 176px); aspect-ratio: 5 / 6; border-radius: 16px; align-self: stretch;
  display: grid; place-items: center; background: var(--tile); --st: var(--green); --fi: var(--green);
}
.ways-art.ink { background: var(--ink); }
.ways-art svg { width: 84%; }
.ways-art canvas.wave { width: 78%; height: 34%; }

/* Big questions: always open, ruled, plain text (also what search engines read) */
.h-faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(120px, 18vh, 200px); }
.h-faq .h-side { position: sticky; top: calc(var(--nav) + 40px); }
.qa-list { border-bottom: 1px solid var(--rule); }
.qa { padding: 22px 0; border-top: 1px solid var(--rule); }
.qa h3 { font-size: clamp(17px, 1.4vw, 19px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.qa p { margin-top: 8px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.qa a { color: var(--ink); text-decoration-color: var(--green); text-underline-offset: 3px; }

/* Green band with the logo drawn in dots */
.h-band { margin-top: clamp(120px, 18vh, 200px); }
.band {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; min-height: 480px;
  padding: clamp(32px, 5vw, 72px); border-radius: 30px; background: var(--green); overflow: hidden;
}
.band .two span + span { color: rgba(10, 10, 10, .55); }
.band-copy { display: grid; justify-items: start; gap: 26px; max-width: 540px; }
.dotmark { width: clamp(200px, 24vw, 320px); aspect-ratio: 400 / 597; height: auto; display: block; }

/* Closing call to action with tiles drifting around it */
.h-final { min-height: 92vh; display: grid; place-items: center; margin-top: clamp(80px, 12vh, 140px); overflow: hidden; }
.h-final-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; text-align: center; padding: 0 var(--gutter); }
.floaters { position: absolute; inset: 0; }
.ft {
  position: absolute; left: var(--x); top: var(--y); width: clamp(92px, 10vw, 150px); aspect-ratio: 5 / 6;
  border-radius: 22px; display: grid; place-items: center; will-change: transform;
}
.ft.sm { width: clamp(72px, 7.5vw, 116px); }
.ft svg { width: 78%; }
.ft canvas.wave { width: 76%; height: 36%; }

/* Footer */
.h-foot { margin-top: 40px; padding-top: 48px; padding-bottom: 36px; border-top: 1px solid var(--rule); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-top img { width: 84px; }
.foot-cols { display: flex; gap: clamp(48px, 8vw, 120px); }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-cols p { font-size: 13px; color: var(--ink-3); }
.foot-cols a, .foot-cols span { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }
.foot-copy { margin-top: 48px; font-size: 13px; color: var(--ink-3); }

/* Fade-ins */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .h-pin-copy { top: auto; bottom: clamp(32px, 7vh, 64px); transform: none; left: var(--gutter); right: var(--gutter); width: auto; }
  .h-approach, .h-ways { grid-template-columns: 1fr; }
  .tabs { margin-top: 12px; }
  .band { grid-template-columns: 1fr; justify-items: start; }
  .h-faq { grid-template-columns: 1fr; gap: 20px; }
  .h-faq .h-side { position: static; }
  .dotmark { justify-self: center; }
}
@media (max-width: 560px) {
  .mock { grid-template-columns: 1fr; }
  .mk-prospects { grid-row: auto; }
  .mk-prospects .row:nth-of-type(n+6) { display: none; }
  .ways-panel { grid-template-columns: 1fr; grid-template-areas: "list" "btn"; }
  .ways-art { display: none; }
  .ft:nth-child(2), .ft:nth-child(5) { display: none; }
  .ft { width: 84px; }
  .ft.sm { width: 66px; }
  .h-final { min-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
  .marquee { overflow-x: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .pl { color: var(--ink); transition: none; }
  .h-pin { height: auto; }
  .h-pin-stage { position: relative; height: auto; min-height: 100vh; }
  .mk-prospects::after, .mk-prospects .match .hit, .steps .fill, .steps .st, .flow .node, .av.live, .home svg .draw { animation: none; }
}
