/* Liftwell website. Colours and type follow the app (web/index.html). Plain CSS, no build step. */

@font-face { font-family: 'Geist'; src: url(/fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/geist-mono.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }

:root {
  --bg: #08090B; --bg2: #0C0E12; --card-solid: #131619;
  --card: linear-gradient(180deg, rgba(255,255,255,.058), rgba(255,255,255,.028));
  --line: rgba(255,255,255,.075); --edge: rgba(255,255,255,.09);
  --ink: #F3F1EC; --ink2: #A3A7AF; --ink3: #676C75;
  --train: #7B61FF; --ember-hi: #B3A6FF; --violet: #B59DFF; --gold: #E6CB6E; --protein: #8EC5FF; --water: #5FD6E3; --up: #74E2B5;
  --btn: #F3F1EC; --btn-ink: #0A0B0D;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 22px; --r-sm: 14px; --wrap: 1120px; --pad: 20px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; background: var(--grain); opacity: .035; pointer-events: none; z-index: 100; }
img { max-width: 100%; display: block; }
a { color: var(--ember-hi); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }

/* Labels in the app's logbook style */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ember-hi); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--train)); box-shadow: 0 0 10px var(--c, var(--train)); }

h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 9.5vw, 76px); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 6vw, 48px); line-height: 1.06; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; }
.lede { color: var(--ink2); font-size: clamp(17px, 2.4vw, 20px); line-height: 1.55; max-width: 34em; text-wrap: pretty; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(8,9,11,.72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.03em; font-size: 19px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--edge); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--btn-ink); }
.nav .hide-s { display: none; }
@media (min-width: 760px) { .nav .hide-s { display: inline; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--btn); color: var(--btn-ink); }
.btn-light:hover { background: #fff; color: var(--btn-ink); box-shadow: 0 8px 30px rgba(123,97,255,.35); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--edge); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.appstore { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.28); transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.appstore:hover { color: #fff; border-color: rgba(255,255,255,.6); box-shadow: 0 10px 40px rgba(123,97,255,.35); }
.appstore:active { transform: scale(.98); }
.appstore svg { width: 26px; height: 30px; flex: none; }
.appstore span { display: flex; flex-direction: column; line-height: 1.05; }
.appstore small { font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.appstore b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* Hero */
.hero { position: relative; padding: 56px 0 24px; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -60px 0 auto; height: 900px; z-index: -1;
  background: radial-gradient(60% 45% at 50% 0%, rgba(123,97,255,.38), transparent 70%), radial-gradient(130% 55% at 50% -12%, #1B222B 0%, #10141A 42%, transparent 78%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 10%, var(--ember-hi) 55%, var(--train)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.fine { color: var(--ink3); font-size: 14px; margin-top: 16px; }
.hero-phones { position: relative; aspect-ratio: 1 / 1.2; max-width: 520px; width: 100%; margin: 0 auto 8px; clip-path: inset(-30% -30% 0 -30%); }
.phone { position: absolute; width: 56%; border-radius: 13% / 6%; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.6); background: #0b0c0f; }
.hero-phones .phone { aspect-ratio: 600 / 1309; top: 0; }
.hero-phones .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-phones .p1 { left: 50%; transform: translateX(-50%); z-index: 3; width: 58%; }
.hero-phones .p2 { left: 0; top: 70px; transform: rotate(-7deg); z-index: 1; opacity: .7; }
.hero-phones .p3 { right: 0; top: 70px; transform: rotate(7deg); z-index: 2; opacity: .7; }
.hero-phones::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 45%; background: linear-gradient(transparent, var(--bg)); z-index: 4; pointer-events: none; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 40px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-copy { text-align: left; align-items: flex-start; }
  .cta { justify-content: flex-start; }
}

/* Trust strip */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 8px; }
.facts div { background: var(--bg2); padding: 18px 18px 20px; }
.facts b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.facts span { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 860px) { section { padding: 96px 0; } }
.head { max-width: 720px; margin-bottom: 40px; }
.head h2 { margin-bottom: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lede { margin: 0 auto; }

/* Screenshot gallery */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 24px; margin: 0 auto; max-width: 1600px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.gallery figure { flex: 0 0 auto; width: min(64vw, 270px); margin: 0; scroll-snap-align: center; border-radius: 20px; overflow: hidden; border: 1px solid var(--edge); background: #0b0a12; }
.gallery img { width: 100%; height: auto; aspect-ratio: 645 / 1398; }
.gallery-hint { color: var(--ink3); font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; text-align: center; margin-top: 4px; }
@media (min-width: 1200px) { .gallery-hint { display: none; } }

/* Feature sections */
.feature { display: grid; gap: 36px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature h3 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 16px; }
.feature p { color: var(--ink2); font-size: 17px; max-width: 32em; }
.feature .eyebrow { font-size: 12px; color: var(--ember-hi); }
.feature ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 26px; color: var(--ink); font-size: 16px; }
.feature li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c, var(--train)); box-shadow: 0 0 10px var(--c, var(--train)); }
.shot { position: relative; max-width: 330px; margin: 0 auto; width: 100%; }
.shot::before { content: ''; position: absolute; inset: 10% -20%; background: radial-gradient(closest-side, var(--glow, rgba(123,97,255,.35)), transparent); filter: blur(20px); z-index: -1; }
.shot .phone { position: relative; width: 100%; }
.shot img { width: 100%; height: auto; aspect-ratio: 600 / 1309; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; padding: 64px 0; }
  .feature.flip .shot { order: -1; }
}

/* More features grid */
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r); padding: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.055); }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft, rgba(123,97,255,.14)); color: var(--c, var(--ember-hi)); margin-bottom: 18px; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { margin-bottom: 8px; font-size: 18px; }
.tile p { color: var(--ink2); font-size: 15px; line-height: 1.55; }

/* Pricing */
.pricing { position: relative; isolation: isolate; }
.pricing::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 40% at 50% 30%, rgba(123,97,255,.16), transparent 70%); }
.plans { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r); padding: 28px 24px 26px; display: flex; flex-direction: column; box-shadow: inset 0 1px 0 rgba(255,255,255,.055); }
.plan.best { border-color: rgba(123,97,255,.65); background: linear-gradient(180deg, rgba(123,97,255,.18), rgba(123,97,255,.04)); box-shadow: 0 30px 80px rgba(123,97,255,.18), inset 0 1px 0 rgba(255,255,255,.1); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--train); color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.plan .name { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); margin-bottom: 18px; }
.plan .price { font-size: 46px; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 16px; color: var(--ink2); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.plan .sub { color: var(--ink2); font-size: 15px; margin: 10px 0 22px; min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; align-content: start; font-size: 15px; flex: 1; }
.plan li { padding-left: 24px; position: relative; color: var(--ink); }
.plan li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--up); border-bottom: 2px solid var(--up); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.small-print { color: var(--ink3); font-size: 13px; line-height: 1.6; max-width: 720px; margin: 28px auto 0; text-align: center; }

/* Signup */
.signup { background: var(--card); border: 1px solid var(--edge); border-radius: 28px; padding: 40px 24px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.signup::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(123,97,255,.28), transparent); }
.signup h2 { margin-bottom: 12px; }
.signup .lede { margin: 0 auto 26px; }
.form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 0 auto; }
.form input { height: 52px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255,255,255,.06); color: var(--ink); font: 400 16px var(--sans); padding: 0 20px; outline: none; width: 100%; }
.form input::placeholder { color: var(--ink3); }
.form input:focus { border-color: var(--ember-hi); background: rgba(255,255,255,.08); }
.form-note { color: var(--ink3); font-size: 13px; margin-top: 14px; min-height: 1.4em; }
.form-note.ok { color: var(--up); }
@media (min-width: 560px) { .form { flex-direction: row; } .form .btn { flex: none; } .signup { padding: 56px 40px; } }

/* Final call */
.final { text-align: center; }
.final img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; border: 1px solid var(--edge); box-shadow: 0 20px 60px rgba(123,97,255,.3); }
.final h2 { margin-bottom: 14px; }
.final .lede { margin: 0 auto 30px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink3); font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer p { max-width: 640px; line-height: 1.6; }
@media (min-width: 760px) { footer .wrap { flex-direction: row; justify-content: space-between; align-items: flex-start; } }

/* Text pages (privacy, support) */
.doc { padding: 56px 0 80px; position: relative; isolation: isolate; }
.doc::before { content: ''; position: absolute; inset: -60px 0 auto; height: 480px; z-index: -1; background: radial-gradient(60% 60% at 50% 0%, rgba(123,97,255,.22), transparent 70%); }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(36px, 7vw, 54px); margin-bottom: 14px; }
.doc .meta { color: var(--ink3); font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 26px; }
.doc .intro { font-size: 19px; color: var(--ink); line-height: 1.6; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 44px 0 10px; }
.doc p { color: var(--ink2); margin: 0 0 14px; line-height: 1.7; text-wrap: pretty; }
.doc .contact { margin-top: 28px; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r); padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.doc .contact p { margin: 0; color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.toc a { font-size: 14px; color: var(--ink2); text-decoration: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255,255,255,.04); }
.toc a:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.faq h2 { scroll-margin-top: 80px; }

/* Entrance */
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-phones .p1 { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { overflow-x: hidden; }
