/*  Swipe Quick — design system
 *  Shared by the landing page and the privacy policy: tokens, ground,
 *  navigation, footer, buttons and the motion primitives motion.js drives.
 */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Ground is near-black with a green cast, so the teal reads as light
     in the room rather than as a flat brand fill. */
  --ink:        #00070a;
  --ink-1:      #01121a;
  --ink-2:      #04202a;
  --teal-900:   #00404d;
  --teal-700:   #005f73;
  --teal:       #0a9396;
  --teal-hi:    #2ec4c1;
  --mint:       #94d2bd;
  --yellow:     #ffba08;
  --orange:     #f48c06;
  --red:        #dc2f02;
  --red-hi:     #ff7a52;

  --text:       #eaf6f6;
  --text-2:     #cfe3e4;
  --muted:      #8ea8ad;
  --dim:        #6d878c;

  --line:       rgba(148, 210, 189, 0.13);
  --line-hi:    rgba(148, 210, 189, 0.30);
  --glass:      rgba(255, 255, 255, 0.035);
  --glass-hi:   rgba(255, 255, 255, 0.065);
  /* One hairline of light on the top edge is what separates a crafted
     surface from a flat rectangle. Used on every raised element. */
  --sheen:      inset 0 1px 0 rgba(255, 255, 255, 0.07);

  --maxw:       1180px;
  --r-xl:       30px;
  --r-lg:       22px;
  --r-md:       16px;
  --r-sm:       11px;

  --e-out:      cubic-bezier(.16, 1, .3, 1);        /* expo out — the house curve */
  --e-inout:    cubic-bezier(.76, 0, .24, 1);
  --e-spring:   cubic-bezier(.34, 1.4, .56, 1);
  --mono:       ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain over everything. Low enough to be felt, not seen — it stops
   the large gradient fields from banding into flat plastic. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 900;
  pointer-events: none; opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(46, 196, 193, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ══ Type ══════════════════════════════════════════════════════════ */

/* The kicker is set in mono against a geometric sans on purpose: the
   contrast is what makes a label read as designed instead of as a
   smaller heading. */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-hi);
}
.kicker::before {
  content: ''; width: 22px; height: 1px; flex: none;
  background: linear-gradient(90deg, transparent, var(--teal-hi));
}
.kicker.center::after {
  content: ''; width: 22px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--teal-hi), transparent);
}

/* ══ Nav ═══════════════════════════════════════════════════════════ */

.scroll-prog {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--mint) 60%, var(--yellow));
  transform: scaleX(0); transform-origin: 0 50%;
}

.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 70; }
.nav .wrap { transition: width 0.5s var(--e-out); }
.nav.is-stuck .wrap { width: min(100% - 40px, 960px); }

.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 10px 0 18px; border-radius: 999px;
  background: rgba(2, 16, 22, 0.55);
  border: 1px solid var(--line);
  box-shadow: var(--sheen);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  transition: background 0.4s var(--e-out), border-color 0.4s var(--e-out), box-shadow 0.4s var(--e-out);
}
.nav.is-stuck .nav-inner {
  background: rgba(2, 16, 22, 0.82);
  border-color: var(--line-hi);
  box-shadow: var(--sheen), 0 14px 40px rgba(0, 0, 0, 0.5);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 1.02rem; }
.brand img { width: 30px; height: 30px; border-radius: 9px; transition: transform 0.5s var(--e-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }

.nav-nest { position: relative; margin-left: auto; }
.nav-links { display: flex; gap: 4px; font-size: 0.92rem; }
.nav-links a {
  position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); transition: color 0.3s var(--e-out);
}
.nav-links a:hover { color: var(--text); }
/* One pill slides between links instead of six independent hovers — the
   nav then reads as a single control with a position. */
.nav-ind {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; opacity: 0;
  border-radius: 999px; background: var(--glass-hi); border: 1px solid var(--line);
  transition: transform 0.45s var(--e-out), width 0.45s var(--e-out), opacity 0.3s ease;
  pointer-events: none;
}

.nav-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #00131a; font-weight: 700; font-size: 0.9rem;
  padding: 11px 20px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(10, 147, 150, 0.3), var(--sheen);
  transition: background 0.35s var(--e-out), box-shadow 0.35s var(--e-out), transform 0.55s var(--e-out);
}
.nav-cta:hover { background: var(--teal-hi); box-shadow: 0 10px 30px rgba(46, 196, 193, 0.4), var(--sheen); }
.nav-cta.is-mag { transition: transform 0.18s cubic-bezier(.2, .7, .3, 1), background 0.35s var(--e-out), box-shadow 0.35s var(--e-out); }
.nav-cta .mag-i { display: block; transition: transform 0.5s var(--e-out); }

@media (max-width: 860px) {
  .nav-nest { display: none; }
  .nav-inner { gap: 12px; }
  .nav-cta { margin-left: auto; }
}

/* ══ Buttons and links ═════════════════════════════════════════════ */

.badge-link { display: inline-block; border-radius: 12px; transition: transform 0.55s var(--e-out), filter 0.35s ease; }
.badge-link.is-mag { transition: transform 0.18s cubic-bezier(.2, .7, .3, 1), filter 0.35s ease; }
.badge-link:hover { filter: brightness(1.08); }
.badge-link img { height: 56px; width: auto; }

/* Underline that wipes in from the left instead of appearing all at once. */
.ghost-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  color: var(--mint); font-weight: 600; padding-bottom: 3px;
}
.ghost-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; opacity: 0.4;
  transform: scaleX(1); transform-origin: 100% 50%;
  transition: transform 0.45s var(--e-out), opacity 0.3s ease;
}
.ghost-link:hover { color: #fff; }
.ghost-link:hover::after { opacity: 1; transform-origin: 0 50%; }
.ghost-link .arw { transition: transform 0.45s var(--e-out); }
.ghost-link:hover .arw { transform: translateX(4px); }

/* ══ Footer ════════════════════════════════════════════════════════ */

footer.site {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 68px 0 44px;
  background: linear-gradient(180deg, rgba(10, 147, 150, 0.05), transparent 40%);
}
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; }
.foot-grid h3 {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 16px; font-weight: 500;
}
.foot-grid ul { list-style: none; display: grid; gap: 11px; font-size: 0.95rem; color: var(--muted); }
.foot-grid ul a { position: relative; display: inline-block; transition: color 0.3s var(--e-out), transform 0.4s var(--e-out); }
.foot-grid ul a:hover { color: #fff; transform: translateX(4px); }
.foot-about { color: var(--muted); font-size: 0.95rem; max-width: 30rem; margin-top: 16px; }
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--dim);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ══ Motion primitives ═════════════════════════════════════════════ */

[data-reveal] { transition-delay: var(--d, 0ms); }

[data-reveal="rise"] {
  opacity: 0; transform: translateY(26px);
  transition-property: opacity, transform;
  transition-duration: 0.9s; transition-timing-function: var(--e-out);
}
[data-reveal="fade"] {
  opacity: 0;
  transition-property: opacity; transition-duration: 1s; transition-timing-function: var(--e-out);
}
/* Mask reveal — the block wipes up from its own baseline. Reads as
   printing rather than as fading, which is what keeps section heads from
   feeling like every other scroll-fade site. */
[data-reveal="mask"] {
  opacity: 0; clip-path: inset(0 0 102% 0); transform: translateY(12px);
  transition-property: opacity, clip-path, transform;
  transition-duration: 0.75s, 1.05s, 1.05s; transition-timing-function: var(--e-out);
}
[data-reveal="scale"] {
  opacity: 0; transform: scale(0.955) translateY(22px);
  transition-property: opacity, transform;
  transition-duration: 1s; transition-timing-function: var(--e-out);
}
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 -12% 0); }

/* Word-split headings */
.is-split .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: 0.14em 0.02em 0.2em; margin: -0.14em -0.02em -0.2em;
}
.is-split .wi {
  display: inline-block; transform: translateY(118%); opacity: 0;
  transition: transform 0.95s var(--e-out), opacity 0.6s ease;
  transition-delay: inherit;
}
.is-split.is-in .wi { transform: none; opacity: 1; }

/* Check marks draw themselves rather than popping in. */
.list { list-style: none; display: grid; gap: 13px; margin-top: 24px; }
.list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-2); }
.list svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--mint); stroke-width: 2.4; }
.list svg path { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset 0.7s var(--e-out); transition-delay: inherit; }
.is-in .list svg path, .list.is-in svg path { stroke-dashoffset: 0; }

/* ══ Reduced motion ════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .is-split .wi { opacity: 1 !important; transform: none !important; }
  .list svg path { stroke-dashoffset: 0 !important; }
}
.no-motion [data-reveal] { opacity: 1; transform: none; clip-path: none; }
.no-motion .is-split .wi { opacity: 1; transform: none; }
