/* Phishly landing — port of the Relay template.
   The compiled template stylesheet supplies the design system; this file only
   defines the font variables, the scroll/motion states and the few custom
   components the original built in React. */

/* Utilities the reference stylesheet does not ship (it used size-* instead). */
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-0 { width: 0; }
.max-w-\[44ch\] { max-width: 44ch; }
.text-\[0\.55rem\] { font-size: .55rem; }
.text-white\/30 { color: rgb(255 255 255 / .3); }
.text-violet { color: var(--color-edge-violet, #8052ff); }

html {
  --ff-sans: "Schibsted Grotesk", "Schibsted Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;
  scroll-behavior: smooth;
  background: #0c0c10;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body { overflow-x: hidden; }
::selection { background: #2340ff; color: #fff; }

/* ---------------------------------------------------------------- loader */
.ph-loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #0c0c10; color: #fff;
  transition: opacity .35s cubic-bezier(.22,1,.36,1), visibility .35s;
}
.ph-loader.is-done { opacity: 0; visibility: hidden; }
.ph-loader-inner { width: min(18rem, 60vw); }
.ph-loader-word {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.045em;
}
.ph-loader-word svg { width: 1.75rem; color: #8052ff; }
.ph-loader-bar { margin-top: 1.1rem; height: 1px; background: rgb(255 255 255 / .14); overflow: hidden; }
.ph-loader-bar span { display: block; height: 100%; width: 100%; background: #2340ff; transform: scaleX(0); transform-origin: left; animation: ph-load .45s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes ph-load { to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- header */
#site-header { color: #fff; transition: background-color .5s cubic-bezier(.22,1,.36,1), box-shadow .5s, color .5s, transform .5s cubic-bezier(.22,1,.36,1), backdrop-filter .5s; }
#site-header.is-scrolled {
  background: rgb(12 12 16 / .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgb(255 255 255 / .08);
}
#site-header.is-hidden { transform: translateY(-100%); }
#site-header .ph-nav-link { position: relative; }
#site-header .ph-nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 1px; background: currentColor; transform: scaleX(0);
  transform-origin: right; transition: transform .45s cubic-bezier(.22,1,.36,1);
}
#site-header .ph-nav-link:hover::after,
#site-header .ph-nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* mobile menu */
.ph-mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: #0c0c10; color: #fff;
  display: grid; align-content: start;
  padding: 6.5rem 1.25rem 2rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s, visibility .35s, transform .5s cubic-bezier(.22,1,.36,1);
}
.ph-mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.ph-mobile-menu a { display: block; padding: .9rem 0; font-size: 1.9rem; letter-spacing: -.04em; border-bottom: 1px solid rgb(255 255 255 / .09); }
body.menu-open { overflow: hidden; }
#menu-button span span:first-child { transition: transform .3s; }
#menu-button[aria-expanded="true"] span span:first-child { transform: translateY(4.5px) rotate(45deg); }
#menu-button[aria-expanded="true"] span span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero-glow {
  background:
    radial-gradient(58% 60% at 72% 26%, rgb(35 64 255 / .16), transparent 70%),
    radial-gradient(42% 48% at 18% 78%, rgb(128 82 255 / .10), transparent 72%);
}
.hero-grain {
  opacity: .16; mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- split text */
.ph-line { display: block; }
.ph-w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .12em; margin-bottom: -.12em;
}
.ph-wi {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .9s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
  will-change: transform;
}
.is-in .ph-wi, .ph-ready .ph-hero .ph-wi { transform: translateY(0); }

[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: translateY(24px) scale(.985); }
[data-reveal="scale"].is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph-wi, [data-reveal] { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* ---------------------------------------------------------------- story (460svh) */
.ph-story-line { opacity: 0; transition: opacity .5s cubic-bezier(.22,1,.36,1); }
.ph-story-line.is-on { opacity: 1; }
.ph-story-line .ph-wi { transform: translateY(105%); transition: transform .75s cubic-bezier(.22,1,.36,1); }
.ph-story-line.is-on .ph-wi { transform: translateY(0); }
.ph-story-panel {
  position: absolute; inset: 0; background: #eeedf5; color: #0f1730;
  transform: translateY(100%) scale(.42); transform-origin: top center;
  will-change: transform; overflow: hidden;
}
.ph-story-panel .ph-letter { opacity: 0; transition: opacity .3s linear; }
.ph-story-panel .ph-story-stats { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s cubic-bezier(.22,1,.36,1); }
.ph-story-panel.is-done .ph-story-stats { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- steps */
.ph-step-title { color: rgb(15 23 48 / .18); transition: color .6s cubic-bezier(.22,1,.36,1); }
.ph-step-icon { transition: background-color .6s, color .6s, transform .6s; }
.ph-step[data-active="true"] .ph-step-title { color: #0f1730; }
.ph-step[data-active="true"] .ph-step-icon { background: #0f1730; color: #fff; transform: scale(1); }
.ph-step[data-active="false"] .ph-step-icon { background: #eeedf5; color: #0f1730; box-shadow: inset 0 0 0 1px rgb(15 23 48 / .25); transform: scale(.86); }
.ph-step-desc { grid-area: 1 / 1; transition: opacity .5s, transform .5s; }
.ph-step-desc[data-active="false"] { opacity: 0; transform: translateY(10px); pointer-events: none; }
.ph-step-mock { grid-area: 1 / 1; transition: opacity .55s, transform .55s cubic-bezier(.22,1,.36,1); }
.ph-step-mock[data-active="false"] { opacity: 0; transform: translateY(18px) scale(.985); pointer-events: none; }

/* ---------------------------------------------------------------- agent panels */
#checks > div[aria-hidden="true"] { clip-path: inset(0 0 0) !important; }
@media (max-width: 1199px) {
  #checks > div[aria-hidden="true"] { clip-path: inset(0 0 0) !important; }
}
.ph-agents { display: flex; height: 36rem; }
.ph-agent { flex: 1 1 0; min-width: 0; transition: flex-grow .7s cubic-bezier(.22,1,.36,1); }
.ph-agent.is-open { flex-grow: 6; }
.ph-agent .ph-agent-body { opacity: 0; pointer-events: none; transition: opacity .3s; }
.ph-agent.is-open .ph-agent-body { opacity: 1; pointer-events: auto; transition-delay: .18s; }
.ph-agent .ph-agent-rail { opacity: 1; transition: opacity .3s; }
.ph-agent.is-open .ph-agent-rail { opacity: 0; }
.ph-agent:focus-visible { outline: 1px solid #2340ff; outline-offset: -1px; }
@media (max-width: 1199px) {
  .ph-agents { display: block; height: auto; }
  .ph-agent { border-bottom: 1px solid rgb(255 255 255 / .12); }
  .ph-agent .ph-agent-body { opacity: 1; pointer-events: auto; }
  .ph-agent .ph-agent-rail { display: none; }
}

/* ---------------------------------------------------------------- tile cloud */
.ph-cloud { position: absolute; inset: 0; overflow: hidden; }
.ph-tile {
  position: absolute; top: 0; left: 0;
  display: flex; align-items: center; gap: .55rem;
  background: #fff; padding: .55rem 1rem .55rem .7rem;
  font-size: clamp(.875rem, 1.25vw, 1.2rem); letter-spacing: -.02em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgb(15 23 48 / .12);
  transform: translate(0, 0) rotate(0deg); opacity: 0;
  transition: opacity .6s ease, box-shadow .3s, filter .3s;
  will-change: transform;
}
.ph-tile.is-in { opacity: 1; }
.ph-tile:hover { box-shadow: inset 0 0 0 1px rgb(35 64 255 / .45), 0 10px 24px rgb(15 23 48 / .08); }
.ph-tile-mark {
  display: grid; place-items: center; width: 1.35em; height: 1.35em;
  color: #fff; font-family: var(--ff-mono); font-size: .62em; font-weight: 600;
}
@media (max-width: 809px) {
  .ph-cloud { display: none; }
}

/* ---------------------------------------------------------------- range slider */
.ph-range {
  -webkit-appearance: none; appearance: none;
  height: 2px; width: 100%; cursor: pointer;
  background: linear-gradient(90deg, #2340ff var(--fill, 50%), rgb(15 23 48 / .12) var(--fill, 50%));
}
.ph-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border: 0; background: #0f1730;
  box-shadow: 0 0 0 5px rgb(35 64 255 / .18);
}
.ph-range::-moz-range-thumb {
  width: 20px; height: 20px; border: 0; border-radius: 0; background: #0f1730;
  box-shadow: 0 0 0 5px rgb(35 64 255 / .18);
}

/* ---------------------------------------------------------------- pricing dots */
.ph-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-price-in { transform: translateY(100%); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.is-in .ph-price-in { transform: none; }

/* ---------------------------------------------------------------- FAQ */
.ph-faq-panel[hidden] { display: none; }
.ph-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.22,1,.36,1); }
.ph-faq-a > div { overflow: hidden; }
.ph-faq-item.is-open .ph-faq-a { grid-template-rows: 1fr; }
.ph-faq-item.is-open .ph-faq-icon span:last-child { transform: scaleY(0); }
.ph-faq-icon { transition: transform .4s cubic-bezier(.22,1,.36,1); }
.ph-faq-icon span:last-child { transition: transform .4s cubic-bezier(.22,1,.36,1); }

/* ---------------------------------------------------------------- case carousel */
.ph-case { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s cubic-bezier(.22,1,.36,1), visibility .7s; }
.ph-case.is-on { opacity: 1; visibility: visible; }
.ph-panel { container-type: inline-size; }
.ph-shot {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 6cqw 6cqw 34cqw;
  background:
    linear-gradient(rgb(255 255 255 / .028) 1px, transparent 1px) 0 0 / 100% 3.5rem,
    linear-gradient(90deg, rgb(255 255 255 / .028) 1px, transparent 1px) 0 0 / 3.5rem 100%,
    radial-gradient(120% 85% at 50% 0%, #1b1c26 0%, #101118 52%, #0b0b0f 100%);
}
.ph-shot-win {
  position: relative; width: 100%; max-width: 84cqw; background: #14151c;
  box-shadow: 0 30px 60px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .08);
}
.ph-shot-bar { display: flex; align-items: center; gap: 1.6cqw; padding: 1.7cqw 2cqw; border-bottom: 1px solid rgb(255 255 255 / .07); }
.ph-shot-dots { display: flex; gap: .8cqw; }
.ph-shot-dots span { display: block; width: 1cqw; height: 1cqw; background: rgb(255 255 255 / .22); }
.ph-shot-url {
  flex: 1; min-width: 0; padding: .8cqw 1.6cqw; background: rgb(255 255 255 / .06);
  font-family: var(--ff-mono); font-size: 1.8cqw; line-height: 1.4; letter-spacing: .01em;
  color: rgb(255 255 255 / .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-shot-page { padding: 4.6cqw 4.2cqw 4.8cqw; }
.ph-shot-brand { display: flex; align-items: center; gap: 1.4cqw; font-size: 2.5cqw; letter-spacing: -.02em; color: rgb(255 255 255 / .9); }
.ph-shot-logo { display: grid; place-items: center; width: 3.8cqw; height: 3.8cqw; background: #2340ff; color: #fff; font-family: var(--ff-mono); font-size: 1.6cqw; font-weight: 600; }
.ph-shot-title { margin-top: 4cqw; font-size: 3.3cqw; line-height: 1.2; letter-spacing: -.03em; color: #fff; }
.ph-shot-field {
  position: relative; display: flex; align-items: center; height: 6.4cqw; margin-top: 1.7cqw;
  padding: 0 2cqw; background: rgb(255 255 255 / .04);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
  font-size: 1.95cqw; color: rgb(255 255 255 / .38);
}
.ph-shot-field.is-marked { box-shadow: inset 0 0 0 1px rgb(128 82 255 / .85); color: rgb(255 255 255 / .62); }
.ph-shot-field.is-marked::before { content: ""; position: absolute; left: -1.4cqw; top: -1.4cqw; width: 1.6cqw; height: 1.6cqw; border-left: 1px solid #8052ff; border-top: 1px solid #8052ff; }
.ph-shot-field.is-marked::after { content: ""; position: absolute; right: -1.4cqw; bottom: -1.4cqw; width: 1.6cqw; height: 1.6cqw; border-right: 1px solid #8052ff; border-bottom: 1px solid #8052ff; }
.ph-shot-btn {
  display: grid; place-items: center; height: 6.4cqw; margin-top: 2.9cqw; background: #2340ff; color: #fff;
  font-family: var(--ff-mono); font-size: 1.8cqw; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.ph-shot-foot { margin-top: 3.2cqw; font-family: var(--ff-mono); font-size: 1.55cqw; letter-spacing: .06em; color: rgb(255 255 255 / .26); text-transform: uppercase; }
.ph-shot-tag {
  position: absolute; top: -2.4cqw; right: -2.4cqw; z-index: 30;
  padding: 1.1cqw 1.7cqw; background: #0b0b0f;
  box-shadow: inset 0 0 0 1px rgb(128 82 255 / .55);
  font-family: var(--ff-mono); font-size: 1.5cqw; font-weight: 500; letter-spacing: .09em;
  color: rgb(214 199 255); text-transform: uppercase; white-space: nowrap;
}
.ph-case-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(transparent, rgb(11 11 15 / .88) 58%, rgb(11 11 15 / .97)); }
.ph-case-stat { font-size: clamp(3rem, 4.6vw, 4.5rem); line-height: 1; font-weight: 300; letter-spacing: -.06em; }
.ph-case-quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), visibility .55s; }
.ph-case-quote.is-on { opacity: 1; visibility: visible; transform: none; }
.ph-seg-fill { transform: scaleX(0); background: linear-gradient(90deg, var(--color-edge-violet), var(--color-edge-pink), var(--color-edge-cyan)); }
[data-case-seg][aria-selected="true"] .ph-seg-fill { animation: ph-seg 7s linear forwards; }
#ph-cases.is-paused .ph-seg-fill { animation-play-state: paused; }
@keyframes ph-seg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .ph-case, .ph-case-quote { transition: none !important; }
  [data-case-seg][aria-selected="true"] .ph-seg-fill { animation: none; transform: scaleX(1); }
}

/* back to top */
[data-to-top] span[aria-hidden] { transition: background-color .3s; }
[data-to-top]:hover span[aria-hidden] { background: rgb(255 255 255 / .1); }

/* ---------------------------------------------------------------- footer watermark */
.ph-watermark { display: flex; justify-content: center; overflow: hidden; padding-top: .1em; padding-bottom: .2em; line-height: .8; letter-spacing: -.06em; }
.ph-watermark span {
  display: inline-block; padding: .1em .12em .2em; margin: -.1em -.12em -.2em;
  background: repeating-linear-gradient(180deg, transparent 0 10px, rgb(255 255 255 / .025) 10px 11px);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-color: rgb(255 255 255 / .09);
  transform: translateY(85%);
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}
.ph-watermark.is-in span { transform: translateY(0); }

/* chart bars */
.ph-bar { transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
.ph-chart.is-in .ph-bar { transform: scaleY(1); }

/* counters */
.ph-count { font-variant-numeric: tabular-nums; }

/* small utility */
.ph-no-scroll { overflow: hidden; }
.ph-answer { max-width: 58ch; }
.ph-email:hover { background-size: 0% 1px; }
.ph-story-narrow { max-width: 24ch; }
.ph-cta-pad { padding-block: 5rem; }
@media (min-width: 810px) { .ph-cta-pad { padding-block: 7rem; } }
.ph-quote { font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.25; }
.ph-dot-ok { background: #10b981; }
.ph-calc-bar { transition: width .5s cubic-bezier(.22,1,.36,1); }
.ph-grid-bg {
  opacity: .35;
  background-image:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 64px 64px;
}
#skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; z-index: 120;
  width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; white-space: normal;
  padding: .5rem 1rem; background: #fff; color: #0f1730;
}
