/* Lento website. Same palette and fonts as the app (tailwind.config.ts), dark only like the app. */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #0A0F1C; --panel: #0D1424; --card: #111A2C; --mist: #1C2840; --line: #2B3A58;
  --ink: #E8EEF8; --muted: #93A3BF;
  --ledger: #3DD9A0; --azure: #6CA8FF; --harvest: #F2B84B; --rust: #FF7A7A;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--azure); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ledger); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10,15,28,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--mist); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a.link { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.top nav a.link:hover { color: var(--ink); }
@media (max-width: 560px) { .top nav a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: opacity .15s, border-color .15s; }
.btn.primary { background: var(--ledger); color: var(--paper); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero: words on the left, two real app screens on the right, Lento the sloth as a small mascot. */
.hero { padding: 64px 0 48px; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.02em; margin-top: 12px; }
.hero h1 em { font-style: normal; color: var(--ledger); }
.hero .lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero .actions { margin-top: 30px; }
.beta-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.beta-note i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--harvest); }
.hero-shots { position: relative; height: 600px; }
.hero-shots .phone { position: absolute; width: 270px; margin: 0; }
.hero-shots .front { left: 6%; top: 40px; z-index: 2; }
.hero-shots .back { right: 2%; top: 0; transform: rotate(4deg); opacity: .9; }
.hero-sloth { position: absolute; right: -2%; bottom: 8px; width: 140px; height: auto; z-index: 3; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero .actions .btn { flex: 1 1 220px; }
  .hero-shots { height: 520px; max-width: 390px; width: 100%; margin-inline: auto; }
  .hero-shots .phone { width: 220px; }
  .hero-shots .front { left: 0; top: 30px; }
  .hero-shots .back { right: 0; }
  .hero-sloth { left: auto; right: -4px; bottom: 0; width: 110px; }
}

/* Why a sloth */
.why-sloth { padding: 8px 0 24px; }
.why-sloth .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--mist); border-radius: 20px; padding: 28px; max-width: 1080px; }
.why-sloth .pose { width: 150px; height: auto; }
.why-sloth h2 { font-size: 26px; }
.why-sloth p { color: var(--muted); margin-top: 10px; font-size: 18px; max-width: 46em; }

/* Plaid explainer */
.plaid .tile h3 { color: var(--ledger); }
.plaid .more { margin-top: 20px; color: var(--muted); font-size: 16px; }

/* Phone frames around screenshots */
.phone { width: min(320px, 82vw); margin-inline: auto; border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #24314d, #111A2C); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px var(--line); }
.phone img { border-radius: 31px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(61,217,160,.18), transparent); filter: blur(30px); z-index: -1; }

/* Sections */
section { padding: 72px 0; }
@media (max-width: 860px) { section { padding: 48px 0; } }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--mist); border-radius: 18px; padding: 26px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(61,217,160,.12); color: var(--ledger); font-family: var(--display); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--mist); }
.feature:first-child { padding-top: 0; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); margin-top: 10px; }
.feature .text > p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.feature ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 16px; }
.feature li::before { content: "✓"; color: var(--ledger); font-weight: 700; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.flip .text { order: 0; }
}

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--mist); border-radius: 16px; padding: 22px; }
.tile:hover { border-color: var(--line); }
.tile .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(108,168,255,.12); color: var(--azure); margin-bottom: 14px; }
.tile .icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 18px; }
.tile p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.couples-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 8px; }
.couples-head .sec-head { margin-bottom: 32px; }
.couples-head .pose { width: 220px; height: auto; margin-bottom: 16px; }
.couples .tile h3 { color: var(--ledger); }
@media (max-width: 860px) { .couples-head { grid-template-columns: minmax(0, 1fr); gap: 0; } .couples-head .pose { width: 170px; order: -1; margin: 0 0 8px; } }

.trust { background: var(--panel); border-block: 1px solid var(--mist); }
.trust .grid .icon { background: rgba(61,217,160,.12); color: var(--ledger); }

.cta { text-align: center; }
.cta .pose { width: 150px; height: auto; margin: -16px auto 8px; }
.cta .box { background: radial-gradient(120% 140% at 50% 0%, rgba(61,217,160,.14), transparent 60%), var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 56px 24px; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta p { color: var(--muted); margin: 14px auto 0; max-width: 34em; font-size: 18px; }
.cta .actions { justify-content: center; margin-top: 28px; }
@media (max-width: 560px) { .cta .actions .btn { flex: 1 1 100%; } }

/* Footer */
footer { border-top: 1px solid var(--mist); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Legal pages (privacy, terms) */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: #C9D3E4; }
.legal p { margin: 12px 0; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--ink); }
.legal hr { border: 0; border-top: 1px solid var(--mist); margin: 32px 0; }
.legal .table { overflow-x: auto; margin: 16px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--mist); }
.legal th { font-family: var(--display); color: var(--ink); }

/* Three-screen strip ("The whole month in one look") */
.phone-only { display: none; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.shot .phone { width: 100%; max-width: 260px; margin-inline: auto; }
.shot figcaption h3 { font-size: 19px; }
.shot figcaption p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) and (min-width: 861px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phones: swipe strips instead of tall stacks, tighter spacing (aim: about 6 screens) */
@media (max-width: 860px) {
  .phone-only { display: inline; }
  section { padding: 32px 0; }
  .sec-head { margin-bottom: 18px; }
  .sec-head p { font-size: 16px; }
  .swipe { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 78%; scroll-snap-align: center; }
  .shots.swipe > * { flex-basis: 66%; }
  .shot { gap: 12px; }
  .shot .phone { max-width: none; border-radius: 30px; padding: 7px; }
  .shot .phone img { border-radius: 24px; }
  .shot figcaption h3 { font-size: 17px; }
  .shot figcaption p { font-size: 15px; }
  .tile { padding: 18px; }
  .tile .icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .tile p { font-size: 15px; }
  .steps { gap: 10px; }
  .step { padding: 16px 18px; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
  .step::before { width: 28px; height: 28px; font-size: 14px; margin: 0; grid-row: span 2; }
  .step h3 { font-size: 17px; }
  .step p { font-size: 15px; margin-top: 4px; }
  .hero { padding: 28px 0 8px; }
  .hero .lead { font-size: 17px; margin-top: 14px; }
  .hero .actions { margin-top: 22px; }
  /* Two phones fanned like playing cards: front straight on the left, back tilted on the right. */
  .hero-shots { height: 372px; width: 100%; max-width: 310px; }
  .hero-shots .phone { width: 150px; border-radius: 28px; padding: 6px; }
  .hero-shots .phone img { border-radius: 23px; }
  .hero-shots .front { left: 0; top: 26px; transform: none; }
  .hero-shots .back { display: block; right: 14px; top: 0; transform: rotate(4deg); }
  .hero-sloth { right: 0; bottom: 0; width: 80px; }
  .why-sloth { padding: 8px 0 0; }
  .why-sloth .wrap { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; margin-inline: 20px; }
  .why-sloth .pose { width: 72px; }
  .why-sloth h2 { font-size: 20px; }
  .why-sloth p { font-size: 15px; margin-top: 6px; }
  .plaid .more { font-size: 15px; margin-top: 14px; }
  .cta .box { padding: 32px 18px; }
  .cta .pose { width: 84px; margin-top: -8px; }
  .cta p { font-size: 16px; }
  footer { padding: 24px 0 32px; }
}
