/* likwest.com — landing-page design system (apex hub + per-app landing pages).
   Dark, glassy, aurora background, scroll reveals. Legal/support pages keep
   using shared/style.css; this file is for the marketing pages only.
   Per-page accent: override --brand / --brand-2 in a page <style>. */

:root {
  --bg: #050508;
  --bg-elev: #0c0c14;
  --bg-card: rgba(255, 255, 255, 0.035);
  --text: #f5f5fa;
  --dim: #a2a2b3;
  --faint: #6d6d80;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);

  --brand: #5ba7ff;          /* clear blue — likwest default */
  --brand-2: #8ec7ff;        /* light blue */
  --gold: #f5c451;

  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1120px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: color-mix(in srgb, var(--brand) 40%, transparent); }

/* ---------------------------------------------------------------- aurora */

.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 130vh;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
  filter: blur(90px);
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
}
.aurora i:nth-child(1) {
  width: 56vw; height: 56vw; left: -12vw; top: -6vw;
  background: radial-gradient(closest-side, var(--brand), transparent 70%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.aurora i:nth-child(2) {
  width: 44vw; height: 44vw; right: -10vw; top: 4vw;
  background: radial-gradient(closest-side, var(--brand-2), transparent 70%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
.aurora i:nth-child(3) {
  width: 30vw; height: 30vw; left: 34vw; top: 30vw;
  background: radial-gradient(closest-side, var(--gold), transparent 70%);
  opacity: 0.07;
  animation: drift-a 40s var(--ease) infinite alternate-reverse;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-5vw, 6vw, 0) scale(0.94); }
}

/* faint blueprint grid behind the hero */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}

/* film-grain so gradients don't band */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  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='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ nav */

nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
nav.top .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo img, .logo svg { width: 30px; height: 30px; border-radius: 8px; }
.logo .app-ico { border-radius: 8px; }

nav.top .links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
  font-size: 14.5px;
  color: var(--dim);
}
nav.top .links a:hover { color: var(--text); }
nav.top .links a.cta {
  color: #0a0a0f;
  background: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
nav.top .links a.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px -6px rgba(255, 255, 255, 0.35);
}
@media (max-width: 640px) {
  nav.top .links a:not(.cta) { display: none; }
}

/* ----------------------------------------------------------------- type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 80%, transparent);
}

h1.display {
  margin: 18px 0 0;
  font-size: clamp(42px, 7.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}
/* a smaller second line under a big first line — kept to one line */
h1.display .line-2 {
  display: inline-block;
  margin-top: 0.12em;
  font-size: clamp(28px, 4.7vw, 56px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand) 110%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.grad-gold {
  background: linear-gradient(100deg, #f7d074, var(--gold) 45%, #e09c2f);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.lede {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--dim);
}
.lede strong { color: var(--text); font-weight: 600; }

h2.title {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.sub {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 17px;
  max-width: 520px;
}
h2.title .pro {
  display: inline-block;
  vertical-align: middle;
  margin-left: 14px;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transform: translateY(-4px);
}
.sub strong { color: var(--text); font-weight: 600; }

/* -------------------------------------------------------------- buttons */

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn.primary {
  background: #fff;
  color: #0a0a0f;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px -8px rgba(255, 255, 255, 0.4);
}
.btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--bg-card);
}
.btn.ghost:hover {
  border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
  transform: translateY(-2px);
}
.aside-note { font-size: 13.5px; color: var(--faint); }

/* App Store badge (official look, HTML+CSS) */
a.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  line-height: 1.15;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
a.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.9);
}
a.store-badge svg { width: 26px; height: 30px; flex: none; }
a.store-badge .small { display: block; font-size: 11px; color: #d8d8de; }
a.store-badge .big  { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }

/* ----------------------------------------------------------------- hero */

header.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vh, 120px) 0 clamp(48px, 7vh, 96px);
}
header.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- phone frame */

.phone {
  position: relative;
  width: min(320px, 78vw);
  margin: 0 auto;
  border-radius: 54px;
  padding: 12px;
  background: linear-gradient(160deg, #3a3a46, #17171d 40%, #101016);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.9);
}
.phone::before {
  /* Dynamic-Island pill */
  content: "";
  position: absolute;
  top: 24px; left: 50%;
  width: 88px; height: 26px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone::after {
  /* accent glow behind the device */
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side,
      color-mix(in srgb, var(--brand) 34%, transparent), transparent 72%);
  filter: blur(30px);
}
.phone img {
  border-radius: 42px;
  width: 100%;
  height: auto;   /* the width/height attrs otherwise stretch the img */
}
.phone.tilt { transform: rotate(2.4deg); }
.phone.tilt-l { transform: rotate(-2.4deg); }

/* floating glass chips around the hero phone */
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(20, 20, 30, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}
.float-chip b { font-weight: 700; color: var(--gold); }
@media (max-width: 880px) { .float-chip { display: none; } }

/* ------------------------------------------------------------- sections */

section.block {
  position: relative;
  padding: clamp(72px, 11vh, 130px) 0;
}
section.block.hairline { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }

/* feature rows: copy ↔ phone, alternating */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(48px, 8vh, 96px) 0;
}
.feature .visual { order: 2; }
.feature.flip .visual { order: 0; }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; padding: 40px 0; }
  .feature .visual, .feature.flip .visual { order: 2; }
}
.feature .copy .eyebrow { margin-bottom: 2px; }

.feature ul.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
  color: var(--dim);
  font-size: 15.5px;
}
.feature ul.ticks li {
  position: relative;
  padding-left: 21px;
}
.feature ul.ticks li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.5em;
  width: 7px; height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.feature ul.ticks b { color: var(--text); font-weight: 600; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.chip {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
}

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.card {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}
.card .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.card h3 { margin: 10px 0 8px; font-size: 19px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }

/* apex: app showcase cards — the whole card is clickable via a stretched
   .more link; interactive children (store badge) sit above the overlay. */
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.app-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--card-accent, var(--brand)) 45%, var(--line));
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--card-accent, var(--brand)) 30%, transparent);
}
.app-card .head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-card .head img {
  width: 62px; height: 62px;
  border-radius: 15px;
  border: 1px solid var(--line);
}
.app-card .head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.app-card .head .kind {
  margin-top: 3px;
  font-size: 13px;
  color: var(--card-accent, var(--brand));
  font-weight: 600;
}
.app-card p.blurb {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 15.5px;
  flex-grow: 1;
}
.app-card .platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.app-card .platforms span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}
.app-card .foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.app-card .foot .more {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--card-accent, var(--brand));
}
.app-card .foot .more::after {
  /* stretch the link over the whole card */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.app-card:has(.more:hover) {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--card-accent, var(--brand)) 45%, var(--line));
}
.app-card .foot .more:hover { text-decoration: underline; }
.app-card a.store-badge {
  position: relative;
  z-index: 1;                 /* stays clickable above the stretched link */
  padding: 8px 16px 8px 13px;
  border-radius: 11px;
}
.app-card a.store-badge svg { width: 20px; height: 24px; }
.app-card a.store-badge .small { font-size: 9.5px; }
.app-card a.store-badge .big { font-size: 15px; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
@media (max-width: 820px) { .apps-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 44px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.plan {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
}
.plan.pro {
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    linear-gradient(140deg, var(--brand), var(--brand-2) 50%, var(--gold)) border-box;
  border: 1px solid transparent;
}
.plan h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.plan .price { margin: 12px 0 2px; font-size: 34px; font-weight: 750; letter-spacing: -0.03em; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--dim); }
.plan .alt { font-size: 13.5px; color: var(--faint); }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  color: var(--dim);
  font-size: 15px;
}
.plan ul li { padding-left: 26px; position: relative; }
.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.plan.pro ul li::before { color: var(--gold); }

/* --------------------------------------------------------------- footer */

footer.site {
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 56px;
  color: var(--faint);
  font-size: 14px;
}
footer.site .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
footer.site .logo { font-size: 16px; color: var(--dim); }
footer.site .logo img { width: 24px; height: 24px; }
footer.site nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer.site a:hover { color: var(--text); }

/* ------------------------------------------------- legal / prose pages */

main.prose {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) 24px 96px;
}
.prose h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 750;
}
.prose .updated {
  margin: 0 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 14px;
}
.prose h2 {
  margin: 36px 0 10px;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.prose p, .prose li { color: var(--dim); font-size: 15.5px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand); }
.prose a:hover { text-decoration: underline; }
.prose .muted { color: var(--faint); }
.prose .contact {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-size: 15px;
}
.prose .card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 18px 0;
}

/* -------------------------------------------------------------- reveals */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease) var(--d, 0ms),
    transform 0.8s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i { animation: none; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
