:root {
  --accent: #3D6FE0;
  --positive: #2E8B6E;
  --warning: #C9483B;
  --background: #FAFBFD;
  --blob-primary: #C9D8FF;
  --blob-secondary: #E3D9FA;
  --blob-tertiary: #D6E3FF;
  --text: #0E1424;
  --text-secondary: #5B6478;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 10px 40px rgba(30, 50, 110, 0.08);
  --phone-frame: #1A1F2C;
  --fixed: #8A6BD6;
  --review: #9A7414;
  --radius: 26px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7FA1EE;
    --positive: #5CC79E;
    --warning: #E8796D;
    --background: #0B0F1A;
    --blob-primary: #1D2D5C;
    --blob-secondary: #2A2152;
    --blob-tertiary: #172A50;
    --text: #EEF1F8;
    --text-secondary: #9AA3B8;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    --phone-frame: #2A3040;
    --fixed: #A992E8;
    --review: #E2BC5A;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 10% 8%, var(--blob-primary), transparent 70%),
    radial-gradient(45vmax 45vmax at 95% 40%, var(--blob-secondary), transparent 70%),
    radial-gradient(55vmax 55vmax at 30% 95%, var(--blob-tertiary), transparent 70%);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  width: calc(100% - 32px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

nav a:hover { color: var(--text); }

nav .nav-cta { color: var(--text); background: var(--glass); border: 1px solid var(--glass-border); }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

section[id] { scroll-margin-top: 96px; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 96px;
}

.wordmark {
  position: relative;
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 0 0.3em 0.38em 0;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.wordmark svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 0.5em;
  overflow: visible;
}

.wordmark-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-width: 1.5px;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s 0.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.wordmark-dot {
  position: absolute;
  width: 0.19em;
  height: 0.19em;
  border-radius: 50%;
  background: var(--accent);
  left: 94%;
  bottom: calc(0.5em * 0.82);
  translate: -50% 50%;
  scale: 0;
  animation: pop 0.4s 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 34em;
  margin: 20px 0 32px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.button svg { width: 18px; height: 18px; fill: currentColor; }

.button-primary {
  background: var(--text);
  color: var(--background);
  cursor: default;
}

.button-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

a.button:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow); }

.footnote { margin: 20px 0 0; font-size: 0.85rem; color: var(--text-secondary); }

.phone {
  justify-self: center;
  width: min(330px, 100%);
  aspect-ratio: 9 / 19.2;
  padding: 11px;
  border-radius: 54px;
  background: var(--phone-frame);
  box-shadow: 0 40px 80px rgba(20, 35, 90, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  rotate: 3deg;
  animation: float 7s ease-in-out infinite;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  padding: 54px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at 10% 8%, var(--blob-primary), transparent 60%),
    radial-gradient(circle at 95% 40%, var(--blob-secondary), transparent 55%),
    radial-gradient(circle at 30% 90%, var(--blob-tertiary), transparent 60%),
    var(--background);
  font-size: 13px;
}

.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: 96px;
  height: 28px;
  border-radius: 20px;
  background: #000;
}

.phone small { display: block; color: var(--text-secondary); font-size: 0.82em; }

.screen-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }

.screen-head strong { font-size: 1.9em; letter-spacing: -0.03em; }

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blob-primary), var(--accent));
  color: #fff;
  font-weight: 700;
}

.phone .glass { border-radius: 22px; padding: 14px; }

.amount { display: block; font-size: 1.75em; letter-spacing: -0.03em; margin-top: 2px; }

.spark { display: block; width: 100%; height: 40px; margin-top: 8px; color: var(--accent); }

.progress {
  height: 6px;
  border-radius: 6px;
  background: rgba(127, 140, 170, 0.2);
  margin: 10px 0 6px;
  overflow: hidden;
}

.progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

.list { display: flex; flex-direction: column; gap: 12px; }

.row { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; }

.row b { display: block; font-weight: 600; }

.row em { font-style: normal; font-weight: 600; }

.phone .tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text-secondary);
}

.tabbar .active { color: var(--accent); }

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-positive { background: var(--positive); }
.dot-accent { background: var(--accent); }
.dot-warning { background: var(--warning); }
.positive { color: var(--positive); }
.warning { color: var(--warning); }

.dot-text { background: var(--text-secondary); }

.card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.card-split strong { display: block; font-size: 1.25em; letter-spacing: -0.03em; margin-top: 2px; }

.card-split .progress { margin-bottom: 0; }

.card-split > div + div { border-left: 1px solid var(--glass-border); padding-left: 12px; }

.ipad-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 48px;
  padding: 32px 0 96px;
}

.ipad-section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }

.ipad-copy p { color: var(--text-secondary); margin: 0 0 12px; }

.ipad {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 10px;
  border-radius: 30px;
  container-type: inline-size;
  background: var(--phone-frame);
  box-shadow: 0 40px 80px rgba(20, 35, 90, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.ipad-screen {
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 24% 1fr;
  gap: 0.8em;
  padding: 0.8em;
  font-size: 2.2cqw;
  background:
    radial-gradient(circle at 10% 8%, var(--blob-primary), transparent 60%),
    radial-gradient(circle at 95% 40%, var(--blob-secondary), transparent 55%),
    radial-gradient(circle at 30% 90%, var(--blob-tertiary), transparent 60%),
    var(--background);
}

.ipad .glass { border-radius: 1.3em; }

.ipad small { display: block; color: var(--text-secondary); font-size: 0.85em; }

.ipad-sidebar { display: flex; flex-direction: column; gap: 0.35em; padding: 1em 0.65em; }

.ipad-brand { display: flex; align-items: center; gap: 0.5em; padding: 0 0.5em 0.8em; font-size: 1.1em; letter-spacing: -0.02em; }

.ipad-brand img { border-radius: 5px; width: 1.5em; height: 1.5em; }

.ipad-sidebar span { display: flex; justify-content: space-between; padding: 0.5em 0.65em; border-radius: 0.8em; }

.ipad-sidebar span.active { background: rgba(61, 111, 224, 0.14); color: var(--accent); font-weight: 600; }

.ipad-sidebar i { font-style: normal; color: var(--text-secondary); }

.ipad-sidebar i.warning { color: var(--warning); font-weight: 600; }

.ipad-main { display: grid; grid-template-rows: auto 1fr; gap: 0.8em; min-width: 0; }

.ipad-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.8em; }

.ipad-balance { padding: 1em; }

.ipad-balance strong { display: block; font-size: 1.8em; letter-spacing: -0.03em; }

.ipad-balance .spark { height: 4.5em; }

.ipad-stats { display: grid; gap: 0.65em; }

.ipad-stats .glass { padding: 0.65em 1em; }

.ipad-stats strong { font-size: 1.15em; letter-spacing: -0.02em; }

.ipad-lists { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0.8em; }

.ipad-lists .glass { padding: 1em; display: flex; flex-direction: column; gap: 0.65em; }

.ipad-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; }

.ipad-row span { font-weight: 600; }

.ipad-row small { font-weight: 400; white-space: nowrap; }

.ipad-row em { font-style: normal; font-weight: 600; white-space: nowrap; }

.pill { padding: 0.25em 0.75em; border-radius: 999px; background: rgba(61, 111, 224, 0.14); color: var(--accent); font-size: 0.9em; }

.pill-positive { background: rgba(46, 139, 110, 0.14); color: var(--positive); }

.cards-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 48px;
  padding: 32px 0 96px;
}

.cards-section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }

.cards-copy p { color: var(--text-secondary); margin: 0 0 12px; }

.phone-flat { rotate: -2deg; animation-delay: -3.5s; }

.shortcut-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 32px 0 96px;
}

.shortcut-section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }

.shortcut-copy p { color: var(--text-secondary); margin: 0 0 12px; }

.shortcut-copy .footnote { margin-top: 20px; }

.shortcut-copy h3 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 8px; color: var(--text); }

.shortcut-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin: 20px 0 0; padding: 0; }

.shortcut-steps li { display: flex; gap: 12px; align-items: baseline; color: var(--text-secondary); }

.shortcut-steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.shortcut-steps b { color: var(--text); }

.phone-shortcut { rotate: 2deg; animation-delay: -1.5s; }

.island-app {
  position: absolute;
  top: 12px;
  left: calc(50% + 56px);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
}

.home-icons {
  position: absolute;
  inset: 230px 22px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 18px;
}

.home-icons span { aspect-ratio: 1; border-radius: 14px; background: color-mix(in srgb, var(--text-secondary) 22%, transparent); }

.phone .prompt { position: relative; display: flex; flex-direction: column; gap: 10px; border-radius: 24px; }

.prompt-title { font-size: 1.05em; font-weight: 600; }

.prompt-field {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.caret { width: 2px; height: 0.9em; margin-left: 2px; background: var(--accent); }

.prompt-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.prompt-actions span { padding: 9px; border-radius: 999px; background: rgba(127, 140, 170, 0.18); font-weight: 600; text-align: center; }

.prompt-actions .ok { background: var(--accent); color: var(--background); }

.keypad { position: relative; margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.keypad span {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 9px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 1.3em;
}

.keypad .key-plain { background: none; border-color: transparent; }

.review { display: flex; align-items: center; gap: 10px; border-color: color-mix(in srgb, var(--review) 45%, transparent); }

.review b { display: block; font-weight: 600; }

.review-count {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--review) 20%, transparent);
  color: var(--review);
  font-weight: 700;
}

.chips { display: flex; gap: 6px; }

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(127, 140, 170, 0.16);
  font-weight: 500;
}

.chip.active { background: var(--accent); color: #fff; font-weight: 600; }

.commitment-split { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-secondary); }

.tag {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85em;
  padding: 1px 7px;
  border-radius: 999px;
  margin-right: 5px;
}

.tag-installments { background: rgba(61, 111, 224, 0.14); color: var(--accent); }

.tag-fixed { background: color-mix(in srgb, var(--fixed) 18%, transparent); color: var(--fixed); }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 76px; margin-top: 12px; }

.bars span {
  flex: 1;
  height: calc((var(--i) + var(--f)) / 1874 * 100%);
  border-radius: 4px;
  background: linear-gradient(to top, var(--fixed) 0 calc(var(--f) / (var(--i) + var(--f)) * 100%), var(--accent) 0);
}

.bars span:first-child { box-shadow: 0 0 0 2px var(--glass-border); }

.list .row em small { text-align: right; font-weight: 600; }

.features { padding: 32px 0 96px; }

.features h2, .closing h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }

.features h2 { margin-bottom: 32px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.feature { padding: 26px; transition: transform 0.25s; }

.feature:hover { transform: translateY(-4px); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blob-primary), var(--blob-tertiary));
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }

.feature p { margin: 0; color: var(--text-secondary); }

.privacy {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 34px;
}

.privacy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }

.privacy p { margin: 0; color: var(--text-secondary); font-size: 1.05rem; }

.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.privacy li {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.privacy li b { color: var(--accent); margin-right: 4px; }

.closing { text-align: center; padding: 112px 0 96px; }

.closing img { border-radius: 22px; box-shadow: var(--glass-shadow); margin-bottom: 28px; }

.closing h2 { max-width: 18em; margin: 0 auto 32px; }

.closing .actions { justify-content: center; }

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
}

footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { scale: 1; } }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 72px; gap: 56px; }
  .phone { rotate: 0deg; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .privacy { grid-template-columns: 1fr; padding: 32px; }
  .ipad-section { grid-template-columns: 1fr; gap: 32px; }
  .cards-section { grid-template-columns: 1fr; gap: 40px; }
  .cards-copy { order: -1; }
  .phone-flat { rotate: 0deg; }
  .shortcut-section { grid-template-columns: 1fr; gap: 40px; }
  .phone-shortcut { rotate: 0deg; }
}

@media (max-width: 600px) {
  nav a:not(.nav-cta) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .privacy { padding: 26px; }
  .closing { padding: 80px 0 72px; }
  .ipad { padding: 6px; border-radius: 20px; }
  .ipad-screen { border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wordmark-line { stroke-dashoffset: 0; }
  .wordmark-dot { scale: 1; }
}
