@import url('https://fonts.googleapis.com/css2?family=Shrikhand&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===========================================================================
   Authsy landing — light, editorial, craft-minimal one-pager. Warm paper
   background, near-black type, oversized statements, generous whitespace,
   product showcase blocks with pricing folded in. GSAP drives the motion.
   The Authsy wordmark stays in Griaste (self-hosted; falls back to Shrikhand).
   =========================================================================== */

@font-face {
    font-family: 'Griaste';
    src: local('Griaste');
    font-display: optional;
}

:root {
    /* dark editorial: near-black page, light "ink", Spring Green accent.
       (Token names kept from the light pass — values are inverted.) */
    --paper: #0a0d0b;      /* page background */
    --paper-2: #10140f;    /* raised panel */
    --card: #121613;
    --ink: #eef3ee;        /* primary text (light) */
    --ink-2: #c6ccc4;
    --muted: #99a39b;
    --faint: #646e64;
    --line: rgba(238, 243, 238, 0.12);
    --line-2: rgba(238, 243, 238, 0.22);
    --accent: #5ee88a;     /* Spring Green */
    --accent-bright: #5ee88a;
    --accent-ink: #06230f;
    --display: 'Griaste', 'Shrikhand', cursive;
    --body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: ui-monospace, 'SF Mono', Menlo, monospace;
    --ease: cubic-bezier(.19, 1, .22, 1);
    --pad: clamp(20px, 6vw, 108px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.preloading { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-bright); color: var(--accent-ink); }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: .02em; }

/* ---------------------------------------------------------------------------
   Preloader — a quiet light wipe
--------------------------------------------------------------------------- */
.preload {
    position: fixed; inset: 0; z-index: 200;
    background: var(--paper);
    display: grid; place-items: center;
}
.preload-mark { font-family: var(--display); font-size: clamp(48px, 10vw, 120px); line-height: 1; color: var(--ink); }
.preload-count { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------------------------------------------------------------------------
   Nav
--------------------------------------------------------------------------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 120;
    display: flex; align-items: center; gap: 24px;
    padding: 20px var(--pad);
    transition: background .4s ease, border-color .4s ease, padding .4s ease;
    border-bottom: 1px solid transparent;
    mix-blend-mode: normal;
}
.nav.scrolled {
    background: rgba(10, 13, 11, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding-top: 14px; padding-bottom: 14px;
}
.nav-logo { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--ink); display: inline-flex; }
/* the wordmark collapses to its initial as you scroll down */
.nav-logo .logo-rest {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    transition: max-width .55s var(--ease), opacity .35s ease;
}
.nav.scrolled .logo-rest { max-width: 0; opacity: 0; }
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a {
    font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--ink-2);
    position: relative; transition: color .2s ease;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px;
    background: var(--accent); transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 9px 20px; border-radius: 100px;
    background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px;
    will-change: transform;
    transition: color .3s ease;
}
.nav-cta:hover { color: var(--accent-ink); }
/* the generic nav-link underline ::after must not override the fill circle */
.nav-links a.nav-cta::after {
    content: '';
    position: absolute; z-index: -1;
    left: var(--bx, 50%); top: var(--by, 50%); bottom: auto;
    width: 0; height: 0; border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    transition: width .55s var(--ease), height .55s var(--ease);
}
.nav-links a.nav-cta:hover::after { width: 260%; height: 900%; }

/* ---------------------------------------------------------------------------
   Shared type
--------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 26px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.display {
    font-family: var(--body); font-weight: 500;
    font-size: clamp(44px, 8.5vw, 132px);
    line-height: 0.98; letter-spacing: -.03em;
}
.display .line { display: block; overflow: hidden; }
.display .line > span { display: block; }
.display em { font-style: italic; font-family: 'Shrikhand', cursive; font-weight: 400; color: var(--accent); }
.h2 { font-family: var(--body); font-weight: 500; font-size: clamp(30px, 5vw, 64px); line-height: 1.02; letter-spacing: -.025em; }
.lead { font-size: clamp(18px, 2vw, 23px); color: var(--muted); line-height: 1.45; max-width: 620px; }

/* buttons — magnetic (JS) with a cursor-origin green fill sweep */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--body); font-weight: 600; font-size: 16px;
    padding: 15px 30px; border-radius: 100px; border: 1px solid transparent;
    cursor: pointer; will-change: transform;
    transition: color .35s ease, border-color .35s ease;
}
.btn::after, .nav-cta::after {
    content: '';
    position: absolute; z-index: -1;
    left: var(--bx, 50%); top: var(--by, 50%);
    width: 0; height: 0; border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    transition: width .55s var(--ease), height .55s var(--ease);
}
.btn:hover::after, .nav-cta:hover::after { width: 260%; height: 650%; }
.btn:hover { color: var(--accent-ink); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: transparent; }
.btn-lg { font-size: 18px; padding: 18px 38px; }
.btn-huge { font-size: 22px; padding: 24px 54px; }

.section { position: relative; padding: clamp(90px, 13vh, 168px) var(--pad); }

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 150px var(--pad) 80px; position: relative; }
.hero .eyebrow { margin-bottom: 30px; }
.hero-display { max-width: 15ch; }
.hero-sub { margin-top: 34px; display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap; }
.hero-sub .lead { flex: 1; min-width: 280px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-marker {
    position: absolute; right: var(--pad); top: 46%;
    font-family: var(--mono); font-size: 12px; color: var(--faint); text-align: right; line-height: 1.8;
    display: none;
}
@media (min-width: 1100px) { .hero-marker { display: block; } }
.scroll-cue {
    position: absolute; left: var(--pad); bottom: 30px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--faint);
    display: flex; align-items: center; gap: 10px;
}
.scroll-cue::after { content: ''; width: 34px; height: 1px; background: var(--faint); animation: cue 2s var(--ease) infinite; transform-origin: left; }
@keyframes cue { 0%, 100% { transform: scaleX(.4); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }

/* running marquee strip under hero */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.strip-track { display: flex; white-space: nowrap; width: max-content; padding: 20px 0; will-change: transform; }
.strip-track span { font-family: var(--display); font-size: clamp(24px, 3.4vw, 40px); color: var(--ink); padding: 0 30px; }
.strip-track b { color: var(--accent); font-weight: 400; }

/* ---------------------------------------------------------------------------
   Intro / statement
--------------------------------------------------------------------------- */
.statement { max-width: 1100px; }
.statement .h2 { max-width: 20ch; }
.statement .h2 .dim { color: var(--faint); }

/* ---------------------------------------------------------------------------
   Products showcase (case-study style) with pricing folded in
--------------------------------------------------------------------------- */
.products-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 60px; }
.products-head .count { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.product {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px);
    padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line);
    align-items: center;
}
.product:last-child { border-bottom: 1px solid var(--line); }
.product-index { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.product h3 { font-family: var(--body); font-weight: 500; font-size: clamp(34px, 4.5vw, 60px); line-height: 1; letter-spacing: -.02em; margin: 14px 0 20px; }
.product p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.product-tags span { font-family: var(--mono); font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 13px; }
/* the visual side = pricing card */
.price-panel {
    background: var(--card); border: 1px solid var(--line); border-radius: 22px;
    padding: 34px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.4);
}
.price-panel .pp-label { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.price-rows { list-style: none; margin-top: 20px; display: flex; flex-direction: column; }
.price-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-rows li:last-child { border-bottom: 0; }
.price-rows .pr-name { font-weight: 600; font-size: 16px; }
.price-rows .pr-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.price-rows .pr-amt { font-family: 'Shrikhand', cursive; font-weight: 400; font-size: 30px; white-space: nowrap; }
.price-rows .pr-amt span { font-family: var(--body); font-size: 14px; color: var(--faint); }
.price-rows li.hot { background: linear-gradient(90deg, rgba(94, 232, 138, 0.14), transparent); margin: 0 -14px; padding-left: 14px; padding-right: 14px; border-radius: 12px; border-bottom-color: transparent; }
.price-rows li.hot .pr-amt { color: var(--accent); }
.price-foot { margin-top: 22px; font-size: 14px; color: var(--faint); }
.price-foot a { color: var(--accent); font-weight: 600; }
/* alternate the grid so image/price side swaps */
.product.flip { direction: rtl; }
.product.flip > * { direction: ltr; }

/* ---------------------------------------------------------------------------
   Capabilities (two-column list)
--------------------------------------------------------------------------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); margin-top: 50px; }
@media (max-width: 900px) {
    .caps { grid-template-columns: 1fr; }
}
.caps h4 { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.caps ul { list-style: none; }
.caps li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -.01em; }
.caps li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); transform: translateY(-3px); }
.caps li em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 15px; margin-left: auto; text-align: right; }

/* ---------------------------------------------------------------------------
   Pay-as-you-go band
--------------------------------------------------------------------------- */
.band { background: var(--accent); color: var(--accent-ink); border-radius: 28px; margin: 0 var(--pad); padding: clamp(50px, 7vw, 90px); }
.band .eyebrow { color: rgba(6, 35, 15, 0.72); }
.band .eyebrow::before { background: var(--accent-ink); }
.band .h2 { color: var(--accent-ink); max-width: 18ch; }
.band .lead { color: rgba(6, 35, 15, 0.72); margin-top: 24px; }
.band-figures { display: flex; gap: clamp(30px, 6vw, 80px); margin-top: 50px; flex-wrap: wrap; }
.band-fig b { display: block; font-family: 'Shrikhand', cursive; font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1; color: var(--accent-ink); }
.band-fig span { display: block; color: rgba(6, 35, 15, 0.65); font-size: 15px; margin-top: 12px; max-width: 22ch; }

/* ---------------------------------------------------------------------------
   Final CTA + footer
--------------------------------------------------------------------------- */
.final { text-align: center; padding: clamp(110px, 18vh, 220px) var(--pad); }
.final .display { max-width: none; }
.final .btn { margin-top: 46px; }
.footer { border-top: 1px solid var(--line); padding: 50px var(--pad); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer .fl { font-family: var(--display); font-size: 26px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-note { width: 100%; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 22px; color: var(--faint); font-size: 13px; }

.scroll-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 130; }

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .product { grid-template-columns: 1fr; gap: 30px; }
    .product.flip { direction: ltr; }
    .caps { grid-template-columns: 1fr; gap: 20px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .hero-sub { flex-direction: column; align-items: flex-start; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .preload { display: none !important; }
    body.preloading { overflow: auto; height: auto; }
    .scroll-cue { display: none; }
}
