@font-face { font-family: 'Outfit'; src: url('fonts/Outfit-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

/* Q Snag brand tokens. Shape rule: anything you press is a pill; surfaces are 28px; screenshots inside frames are 14px. */
:root {
  --bg: #F4F6F5;            /* Paper */
  --surface: #FFFFFF;
  --surface-2: #EAEFED;
  --text: #16191C;          /* Ink */
  --muted: #59636B;         /* Slate */
  --line: #D5DCD9;          /* Mist */
  --accent: #145C4A;        /* Fern */
  --accent-press: #0E4537;
  --on-accent: #FFFFFF;
  --accent-soft: #5CBF9F;
  --panel: #145C4A;
  --on-panel: #FFFFFF;
  --on-panel-muted: rgba(255, 255, 255, .8);
  --glass: rgba(244, 246, 245, .72);
  --shadow: 0 1px 2px rgba(20, 92, 74, .06), 0 18px 48px rgba(20, 50, 42, .12);
  --r-surface: 28px;
  --r-shot: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1412;
    --surface: #151D1A;
    --surface-2: #1B2522;
    --text: #E9EFEC;
    --muted: #9AA7A1;
    --line: #26322E;
    --accent: #5CBF9F;
    --accent-press: #4BAA8B;
    --on-accent: #0E1412;
    --panel: #145C4A;
    --glass: rgba(14, 20, 18, .7);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.55 'Outfit', system-ui, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.body-lg { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.ic-lg { width: 32px; height: 32px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: var(--surface); padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }

/* Buttons: feedback on press, not release */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .3s var(--ease), background-color .2s; }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); }
.btn-quiet { color: var(--text); padding-left: 10px; }
.btn-quiet .ic { transition: transform .3s var(--ease); }
.btn-quiet:hover .ic { transform: translateX(4px); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-lg { padding: 17px 34px; font-size: 1.1rem; }
.btn-on-fern { background: #fff; color: #145C4A; }
.btn-on-fern:hover { background: #E8F3EF; }

/* Navigation: a translucent layer, content scrolls under it; the edge appears only once something is under it */
.nav { position: sticky; top: 0; z-index: 20; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 0 transparent; transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 40px; height: 64px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a, .nav-signin { color: var(--text); text-decoration: none; font-size: .95rem; opacity: .78; transition: opacity .2s; }
.nav-links a:hover, .nav-signin:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 22px; }

/* Hero */
.hero { padding: 88px 0 104px; overflow: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero-sub { font-size: 1.25rem; color: var(--muted); max-width: 30ch; margin-top: 24px; }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.hero-art { position: relative; padding: 0 6% 48px 0; }
.browser { border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); outline: 1px solid var(--line); }
.browser .bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--surface-2); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.handset { position: absolute; right: 0; bottom: 0; width: 31%; padding: 7px; border-radius: 34px; background: #16191C; box-shadow: var(--shadow); }
.handset img { border-radius: 27px; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; }

/* Facts strip */
.facts { border-block: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 12px; color: var(--muted); }
.facts li + li { border-left: 1px solid var(--line); }
.facts .ic { color: var(--accent); }

/* Why */
.why-head { max-width: 760px; }
.why-head .body-lg { margin-top: 20px; }
.why-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.why-col { background: var(--surface); border-radius: var(--r-surface); padding: 40px; }
.why-col h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.why-col h3 .ic { color: var(--accent); width: 28px; height: 28px; }
.ticks { display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.8); transform-origin: left top; }

/* How it works: steps scroll, the stage stays and cross-fades to the step in view */
.how { background: var(--surface); }
.how-title { max-width: 18ch; }
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; margin-top: 24px; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .5s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step h3 { font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 14px; }
.story-step p { color: var(--muted); font-size: 1.1rem; max-width: 38ch; }
.story-inline { display: none; }
.story-stage { position: relative; }
.stage-frame { position: sticky; top: calc(50vh - min(22vw, 270px)); aspect-ratio: 16 / 10; border-radius: var(--r-surface); background: var(--surface-2); overflow: hidden; }
.stage-shot { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: cover; object-position: top left; border-radius: var(--r-shot); box-shadow: var(--shadow); opacity: 0; transform: scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.stage-shot.is-active { opacity: 1; transform: none; }
.stage-phone { background: none; box-shadow: none; display: flex; justify-content: center; }
.stage-phone img { height: 100%; width: auto; max-width: none; aspect-ratio: 390 / 640; object-fit: cover; object-position: top; padding: 6px; border-radius: 30px; background: #16191C; box-shadow: var(--shadow); }

/* Site map */
.map-head { text-align: center; max-width: 720px; margin: 0 auto; }
.map-head .body-lg { margin: 20px auto 0; }
.map-shot { margin-top: 56px; border-radius: var(--r-surface); overflow: hidden; box-shadow: var(--shadow); outline: 1px solid var(--line); }

/* Bento */
.features { background: var(--surface); }
.features-title { max-width: 16ch; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.tile { background: var(--bg); border-radius: var(--r-surface); padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; overflow: hidden; }
.tile .ic-lg { color: var(--accent); margin-bottom: auto; }
.tile p { color: var(--muted); }
.tile-wide { grid-column: span 2; }
.tile-fern { background: var(--panel); color: var(--on-panel); }
.tile-fern p { color: var(--on-panel-muted); }
.tile-fern .ic-lg { color: var(--accent-soft); }
.tile-media { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; padding: 32px 0 0 32px; align-items: start; }
.tile-media .tile-text { display: grid; gap: 12px; align-content: start; padding-bottom: 32px; }
.tile-media img { border-radius: var(--r-shot) 0 0 0; box-shadow: var(--shadow); height: 100%; object-fit: cover; object-position: top left; }
.tile-media-right img { object-position: 12% 26%; }

/* Security */
.security-title { max-width: 20ch; }
.sec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; }
.sec-group h3 { font-size: 1rem; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.sec-list li { display: flex; gap: 16px; padding: 18px 0; color: var(--muted); }
.sec-list .ic { width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }
.sec-list strong { font-weight: 400; color: var(--text); }

/* Closing panel */
.close { padding-top: 0; }
.close-panel { background: var(--panel); color: var(--on-panel); border-radius: 36px; padding: 88px 40px; text-align: center; display: grid; justify-items: center; }
.close-panel h2 { max-width: 18ch; }
.close-panel .body-lg { color: var(--on-panel-muted); margin: 22px auto 40px; }
.eyebrow-on-fern { color: #A9E2CF; }
.close-mail { margin-top: 22px; color: var(--on-panel-muted); font-size: .95rem; }
.close-mail a { color: #fff; }

.foot { padding: 40px 0 48px; }
.foot-in { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.foot img { height: 26px; width: auto; }
.foot nav { display: flex; gap: 24px; flex: 1; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot p { color: var(--muted); font-size: .92rem; }

/* Motion: entrance on load, reveal on scroll (springs approximated by an ease-out-expo curve) */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1s var(--ease) both; }
  .hero-copy .rise:nth-child(2) { animation-delay: .08s; }
  .hero-copy .rise:nth-child(3) { animation-delay: .16s; }
  .hero-art.rise { animation-delay: .2s; animation-duration: 1.3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-shot, .story-step, .btn { transition: opacity .2s; transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Tablet and phone: one column; the story shows each picture under its step */
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding: 40px 0 72px; }
  .hero-in, .why-cols, .sec-groups { grid-template-columns: 1fr; }
  .hero-in { gap: 48px; min-height: 0; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 36px 0; }
  .story-inline { display: block; margin-top: 28px; border-radius: var(--r-shot); overflow: hidden; box-shadow: var(--shadow); outline: 1px solid var(--line); }
  .story-inline-phone { width: min(300px, 80%); margin-inline: auto; padding: 7px; border-radius: 34px; background: #16191C; outline: 0; }
  .story-inline-phone img { border-radius: 27px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .sec-groups { gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .nav-signin { display: none; }
  .hero-sub { font-size: 1.12rem; }
  .facts li { justify-content: flex-start; padding: 18px 8px; font-size: .95rem; }
  .why-col { padding: 28px 24px; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 0; padding: 28px 24px; }
  .tile .ic-lg { margin-bottom: 12px; }
  .tile-media { grid-template-columns: 1fr; padding: 28px 0 0 24px; }
  .tile-media .tile-text { padding: 0 24px 0 0; }
  .tile-media img { aspect-ratio: 4 / 3; height: auto; }
  .close-panel { padding: 64px 24px; border-radius: var(--r-surface); }
}
