/* Pack site. Rift's look (blue-black, clouds, glossy blue pill, glass), Cluely's layout (centered sections, UI cards). */
:root {
  --bg: #000000;
  --surface: #0d0f14;
  --card: #15171c;
  --card-2: #1c1f26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-2: #a1a1a6;
  --text-3: #8e8e93;
  --blue: #276be6;
  --blue-top: #3d8bf7;
  --pos: #34d982;
  --neg: #ff6b81;
  --amber: #ffb443;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wordmark: 'Inter Tight', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.block { display: block; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.t-strong { font-weight: 600; letter-spacing: -0.2px; }
.selectable { user-select: all; }
:focus-visible { outline: 2px solid var(--blue-top); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: -0.1px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-primary {
  color: #fff; background: linear-gradient(180deg, var(--blue-top) 0%, var(--blue) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 30px rgba(39, 107, 230, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 38px rgba(39, 107, 230, 0.55); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.11); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Top bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(0, 0, 0, 0.55); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.nav-links { display: flex; gap: 26px; margin-right: auto; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.lockup { display: inline-flex; align-items: flex-end; gap: 7px; }
.lockup img { height: 19px; margin-bottom: 6px; }
.lockup span { font-family: var(--wordmark); font-weight: 800; font-size: 26px; letter-spacing: -0.9px; line-height: 1; }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 104px); }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(46px, 7.6vw, 92px); line-height: 0.98; letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.lede { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 24px 0 0; text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.fine { font-size: 13px; color: var(--text-3); margin: 16px 0 0; }

.stage {
  position: relative; margin-top: clamp(48px, 7vw, 72px); height: clamp(520px, 52vw, 620px);
  border-radius: 36px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, #0c1a3d 0%, #050a18 55%, #000 100%);
  box-shadow: 0 40px 120px rgba(20, 60, 160, 0.25);
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Shared UI pieces (mirrors the app) */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 26px; }
.tile { width: 42px; height: 42px; border-radius: 50%; background: #2a2a2d; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.tile-sm { width: 32px; height: 32px; font-size: 16px; }
.stack { display: inline-flex; }
.av {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--card); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; font-style: normal; color: #fff;
}
.stack .av + .av { margin-left: -8px; }
.av-lg { width: 34px; height: 34px; font-size: 13px; }
.a1 { background: #3b4a6b; } .a2 { background: #6b2f45; } .a3 { background: #2f5d50; } .a4 { background: #5b3f6b; } .a5 { background: #6b4a2f; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; background: #2a2a2d; font-size: 13px; white-space: nowrap; align-self: flex-start; }
.pill b { font-weight: 600; } .pill span { color: var(--text-2); }
.pill-sm { height: 28px; font-size: 12.5px; padding: 0 11px; }
.pill-lg { height: 38px; font-size: 14px; padding: 0 16px; background: rgba(21, 23, 28, 0.85); border: 1px solid var(--line); }
.pill-dark { background: rgba(255, 255, 255, 0.06); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-amber { background: var(--amber); box-shadow: 0 0 10px rgba(255, 180, 67, 0.6); }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 11px; border-radius: 999px; background: #fff; color: #000; font-size: 15px; font-weight: 500; white-space: nowrap; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.toast .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.toast-sm { font-size: 14px; padding: 9px 16px 9px 9px; }
.toast-sm .tick { width: 22px; height: 22px; }
.price { width: 66px; text-align: right; font-weight: 600; }
.line { border-top: 1px solid var(--line); padding: 12px 0; }

/* Hero composition */
.receipt-card {
  position: absolute; left: 50%; top: 52%; width: min(430px, 82%); transform: translate(-50%, -50%);
  padding: 18px 20px 6px; font-size: 15px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.receipt-card .head { padding-bottom: 14px; }
.receipt-card .head .muted { font-size: 14px; }
.receipt-card .line .pill { margin-top: 8px; }
.float { position: absolute; animation: drift 7s var(--ease) infinite alternate; }
.float-left { left: 6%; top: 16%; animation-delay: -2s; }
.float-right { right: 4%; top: 18%; animation-delay: -4s; }
.float-bottom { left: 50%; bottom: 26px; translate: -50% 0; animation: none; }
.balance-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; background: rgba(21, 23, 28, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.big-amount { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -1.4px; line-height: 1.1; }
.big-amount sup { font-size: 20px; margin-right: 2px; }
.balance-card .pill { margin-top: 8px; }
.glass-bar { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(32, 32, 34, 0.7); border: 1px solid var(--line-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.glass-plus { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
@keyframes drift { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

/* Sections */
.section { padding-top: clamp(96px, 12vw, 150px); }
.center { text-align: center; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.035em; line-height: 1.05; margin: 0; text-wrap: balance; }
.sub { color: var(--text-2); font-size: 17px; max-width: 540px; margin: 16px auto 0; text-wrap: balance; }

/* Two big feature cards */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.feature { position: relative; overflow: hidden; border-radius: 32px; padding: 32px 32px 0; min-height: 520px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.6px; line-height: 1.25; margin: 0; }
.feature p { color: rgba(255, 255, 255, 0.72); margin: 12px 0 0; max-width: 420px; }
.feature-blue { background: linear-gradient(160deg, #3d7df0 0%, #2152c9 55%, #142f7a 100%); border-color: rgba(255, 255, 255, 0.16); }
.feature-blue p { color: rgba(255, 255, 255, 0.82); }
.feature-glass { background: linear-gradient(180deg, #14161c 0%, #0b0c10 100%); }
.chip-inline { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.85em; vertical-align: 2px; }
.chip-dark { background: rgba(255, 255, 255, 0.07); border-color: var(--line-strong); }
.feature-ui { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; margin-top: 28px; }
.paper {
  position: absolute; left: 10%; top: 6px; width: 200px; padding: 16px 16px 20px; border-radius: 6px; background: #f4f3ef; color: #222;
  font-family: Menlo, ui-monospace, monospace; font-size: 11px; line-height: 1.75; transform: rotate(-5deg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.paper-title { text-align: center; font-weight: 700; letter-spacing: 2px; margin-bottom: 6px; }
.paper-row, .paper-total { display: flex; justify-content: space-between; }
.paper-total { border-top: 1px dashed #999; margin-top: 8px; padding-top: 4px; font-weight: 700; }
.items-card { width: min(340px, 86%); margin-left: 16%; padding: 14px 18px 4px; border-radius: 24px 24px 0 0; border-bottom: none; font-size: 15px; box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.35); }
.items-head { justify-content: space-between; padding-bottom: 10px; }
.sheet { width: min(380px, 92%); padding: 22px 22px 22px; border-radius: 30px 30px 0 0; background: #141416; border: 1px solid var(--line-strong); border-bottom: none; display: flex; flex-direction: column; gap: 12px; text-align: left; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45); }
.sheet-title { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.4px; margin-top: -6px; }
.input { height: 48px; border-radius: 24px; background: #2a2a2d; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; padding: 0 18px; font-size: 15px; }
.check-row { font-size: 14px; gap: 10px; }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Settle showcase */
.showcase { position: relative; overflow: hidden; margin-top: 44px; border-radius: 36px; border: 1px solid var(--line); min-height: 560px; display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: #030712; }
.settle-ui { position: relative; width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.settle-ui .pill-lg { align-self: center; margin-bottom: 8px; }
.transfer { width: 100%; padding: 16px 18px; text-align: left; background: rgba(21, 23, 28, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.transfer .stack .av { border-color: #15171c; }
.transfer .left { margin-left: 4px; }
.transfer .amount { font-size: 19px; font-weight: 700; }
.transfer .actions { margin-top: 14px; gap: 10px; }

/* Trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; text-align: left; }
.trio figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.mini { border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(120% 100% at 50% 0%, #10204a 0%, #070b16 60%, #040507 100%); height: 300px; display: flex; align-items: center; justify-content: center; padding: 22px; }
.mini-card { width: 100%; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.log { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.log b { font-weight: 600; }
.night { padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.night .av { width: 22px; height: 22px; font-size: 9.5px; border-color: #1b1d23; }
.fx { align-items: center; text-align: center; gap: 10px; }
.fx-row { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fx-amount { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; }
.fx .pill { align-self: center; }
figcaption { color: var(--text-2); font-size: 15px; padding: 0 4px; }
figcaption b { color: var(--text); font-weight: 600; }
.label-caps { margin: 64px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.pay-apps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 0; margin: 18px 0 0; font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* Split: balances + facts */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.balances { padding: 20px 22px; background: linear-gradient(180deg, #15171c 0%, #0f1115 100%); box-shadow: 0 40px 100px rgba(20, 60, 160, 0.18); }
.bal-title { font-size: 18px; margin-bottom: 6px; }
.bal { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.bal:first-of-type { border-top: none; }
.bal .num { font-weight: 600; }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); align-items: center; }
.facts > div:first-child { border-top: none; padding-top: 0; }
.facts dt { font-family: var(--display); font-size: 46px; font-weight: 600; letter-spacing: -1.6px; line-height: 1; margin: 0; }
.facts dd { margin: 0; color: var(--text-2); }
.facts dd b { display: block; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 4px; }

/* FAQ */
.faq { max-width: 860px; }
.faq .h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-size: 18px; font-weight: 500; letter-spacing: -0.2px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.3s var(--ease); flex-shrink: 0; }
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details p { color: var(--text-2); margin: 0 0 22px; max-width: 680px; }

/* Closer */
.closer { position: relative; overflow: hidden; margin-top: clamp(96px, 12vw, 150px); border-radius: 36px; border: 1px solid var(--line); min-height: 380px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; padding: 56px; background: #050a18; }
.closer-copy { position: relative; }
.closer h2 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
.closer p { color: rgba(170, 196, 255, 0.85); font-size: 18px; margin: 14px 0 28px; }
.closer-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.app-icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 30px 80px rgba(61, 139, 247, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12); animation: drift 6s var(--ease) infinite alternate; }

/* Footer */
.footer { margin-top: 96px; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.footer-cols h4 { margin: 0 0 4px; font-size: 14px; color: var(--text); font-weight: 600; }
.footer-cols a:hover { color: #fff; }
.copyright { margin: 40px 0 0; font-size: 13px; color: var(--text-3); }

/* Inner pages (privacy, terms, support, invite) */
.nav-inner { min-height: 64px; display: flex; align-items: center; }
.doc { max-width: 720px; padding: 40px 0 80px; }
.doc h1 { font-size: 44px; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.84); }
.doc a { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 28px; background: linear-gradient(180deg, var(--blue-top) 0%, var(--blue) 55%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 12px 30px rgba(39,107,230,0.35); color: #fff; font-weight: 600; font-size: 17px; }
.button.secondary { background: var(--card); box-shadow: none; border: 1px solid var(--line-strong); }
.invite { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 16px; overflow: hidden; }
.invite > *:not(canvas) { position: relative; }
.invite h1 { font-size: clamp(40px, 10vw, 64px); margin: 18px 0 0; }
.invite p { color: rgba(255, 255, 255, 0.84); font-size: 18px; max-width: 420px; }
.invite .actions { display: flex; flex-direction: column; gap: 12px; width: min(360px, 100%); margin-top: 18px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }

/* Phones and small tablets */
@media (max-width: 900px) {
  .duo, .trio { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .closer { grid-template-columns: 1fr; padding: 40px 28px; gap: 36px; }
  .closer-art { align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .stage { height: 560px; border-radius: 28px; }
  .receipt-card { top: 47%; width: calc(100% - 32px); font-size: 14px; }
  .float-left { left: 16px; top: 18px; }
  .float-left .big-amount { font-size: 30px; }
  .float-right { right: 12px; top: auto; bottom: 92px; }
  .toast { font-size: 13px; }
  .balance-card { padding: 12px 14px; }
  .balance-card .pill { display: none; }
  .feature { padding: 26px 22px 0; min-height: 480px; }
  .paper { left: 2%; width: 180px; }
  .items-card { margin-left: 10%; }
  .facts > div { grid-template-columns: 1fr; gap: 6px; }
  .footer-cols { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .app-icon { animation: none; }
}
