/* Mirella's landing page. The palette and radius are the app's own
   (app/app.css): white page, warm greys, 12px cards. Terracotta is the one
   addition and it lives on the buttons only. */
:root {
  --bg: rgb(255 255 255);
  --ink: rgb(44 44 43);
  --muted: rgb(125 122 117);
  --faint: rgb(165 162 157);
  --surface: rgb(249 248 247);
  --fill: rgb(244 244 243);
  --border: rgb(230 229 227);
  --accent: rgb(190 94 60);
  --accent-hover: rgb(168 80 49);
  --accent-ink: rgb(255 255 255);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px rgb(0 0 0 / 6%);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: rgb(25 25 25);
    --ink: rgb(212 212 212);
    --muted: rgb(155 155 155);
    --faint: rgb(110 110 110);
    --surface: rgb(32 32 32);
    --fill: rgb(44 44 44);
    --border: rgb(50 50 50);
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.028em; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--fill); padding: 0.1em 0.35em; border-radius: 6px; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Buttons: the only terracotta on the page. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border: 0;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover { background: var(--fill); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid rgb(44 44 43 / 40%); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-row { height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand svg, .benefit svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a, .link { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .link:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 22px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 72px 0 96px; }
.hero h1 { max-width: 12ch; }

/* Screenshots sit in a rounded card with a soft shadow, like the app's own. */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.shot { margin: 0; }

/* Callouts: small cards that pop over a screenshot once it is in view. */
.callout {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 14px; white-space: nowrap;
  background: var(--bg); border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
  opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0s);
}
.in .callout { opacity: 1; transform: none; }
.callout-stay { left: 6%; bottom: 7%; }
.dot-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.pill-dark { width: 22px; height: 10px; border-radius: 99px; background: var(--ink); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.shot.reveal img { transform: scale(1.03); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.shot.reveal.in img { transform: none; }

/* Cards */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* Teaser */
.teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 24px 0 96px; }
.teaser-copy p { color: var(--muted); margin-top: 16px; max-width: 42ch; }
.earn { padding: 24px; box-shadow: var(--shadow); }
.earn-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.earn-head .muted { font-weight: 400; font-size: 15px; }
.earn-list { list-style: none; margin: 0; padding: 0; }
.earn-list li { display: grid; grid-template-columns: 9.5rem 1fr 8.5rem; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); }
.earn-list li:first-child { border-top: 0; }
.earn-name, .earn-net { display: flex; flex-direction: column; font-size: 15px; }
.earn-net { text-align: right; }
.earn-net b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.earn-name .muted, .earn-net .muted { font-size: 13px; }
.earn-bars { display: flex; flex-direction: column; gap: 5px; }
.bar { display: block; height: 10px; border-radius: 99px; width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.bar.pay, .sw.pay { background: rgb(150 147 142); }
.bar.spend, .sw.spend { background: var(--border); }
.earn-legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 120px; }
.benefit { padding: 28px; }
.benefit svg { width: 28px; height: 28px; margin-bottom: 20px; }
.benefit h3 { font-size: 1.2rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 16px; }

/* Features */
.section-head { text-align: center; max-width: 720px; margin-bottom: 72px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.1rem; }
.feature { display: grid; grid-template-columns: 1fr 1.45fr; gap: 64px; align-items: center; padding-bottom: 112px; }
.feature.flip { grid-template-columns: 1.45fr 1fr; }
.feature.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.025em; margin-bottom: 14px; }
.feature-copy > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 16px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) scale(.85); }

/* A soft box that settles on the row or card the copy is talking about. */
.ring { position: absolute; border-radius: 10px; background: rgb(44 44 43 / 4%); box-shadow: inset 0 0 0 1.5px rgb(44 44 43 / 28%); opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); pointer-events: none; }
.ring.sweep { transform: translateY(-260%); transition-duration: .4s, 1.1s; }
.in .ring { opacity: 1; transform: none; }

/* Expenses: a receipt slides in beside its row. */
.receipt { position: absolute; right: 5%; top: 34%; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.receipt-paper { display: flex; flex-direction: column; gap: 2px; width: 170px; padding: 14px 14px 18px; font-size: 12px; background: #fff; color: rgb(44 44 43); border-radius: 6px; box-shadow: 0 0 0 1px var(--border), var(--shadow); transform: translateX(30px) rotate(6deg); opacity: 0; transition: transform .8s cubic-bezier(.2,.8,.2,1) .4s, opacity .5s .4s; }
.receipt-paper span { color: rgb(125 122 117); }
.receipt-paper .rule { border-top: 1px dashed rgb(210 208 205); margin: 6px 0; }
.receipt-paper .total { color: rgb(44 44 43); font-weight: 650; font-size: 15px; }
.receipt-tag { font-size: 13px; padding: 5px 10px; border-radius: 99px; background: var(--ink); color: var(--bg); opacity: 0; transform: translateY(6px); transition: opacity .4s 1.1s, transform .4s 1.1s; }
.in .receipt-paper { transform: rotate(3deg); opacity: 1; }
.in .receipt-tag { opacity: 1; transform: none; }

/* Claude */
.claude { background: var(--surface); border-block: 1px solid var(--border); padding: 112px 0; }
.claude-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.claude-copy h2 { margin-bottom: 16px; }
.claude-copy > p { color: var(--muted); }
.chat { box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 15px; }
.chat-head .muted { font-weight: 400; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.chat-body { height: 440px; padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; justify-content: flex-end; font-size: 15px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; animation: msg-in .35s cubic-bezier(.2,.8,.2,1) both; }
.msg.you { align-self: flex-end; background: var(--fill); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; padding-left: 0; padding-right: 0; }
.msg.tool { align-self: flex-start; font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; }
.msg.tool::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--faint); border-top-color: transparent; animation: spin .8s linear infinite; }
.msg.tool.done::before { border: 0; width: 8px; height: 5px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); border-radius: 0; transform: rotate(-45deg); animation: none; margin: 0 2px 3px; }
.msg .attach { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 6px 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; }
.msg .attach i { width: 22px; height: 28px; border-radius: 3px; background: linear-gradient(var(--border) 2px, transparent 2px) 4px 6px / 14px 5px repeat-y, var(--bg); box-shadow: 0 0 0 1px var(--border); }
.approve { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; animation: msg-in .35s cubic-bezier(.2,.8,.2,1) both; }
.approve span.btnlike { padding: 5px 12px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 600; transition: transform .15s; }
.approve.pressed span.btnlike { transform: scale(.94); }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--ink); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

/* Split cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 112px 0; }
.plain { padding: 36px; }
.plain h3 { margin-bottom: 12px; }
.plain p { color: var(--muted); }

/* FAQ */
.faq { padding-bottom: 112px; }
.faq h2 { margin-bottom: 32px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 24px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Final */
.final { padding-bottom: 96px; }
.final-card { text-align: center; padding: 72px 24px; background: var(--surface); }
.final-card p { color: var(--muted); margin-top: 14px; }
.final-card .cta-row { margin-top: 28px; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 40px; border-top: 1px solid var(--border); font-size: 14px; }
.brand.small { font-size: 15px; }
.brand.small svg { width: 20px; height: 20px; }

/* Tablet */
@media (max-width: 960px) {
  .hero, .teaser, .feature, .feature.flip, .claude-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
  .hero { padding: 48px 0 72px; }
  .hero h1 { max-width: 16ch; }
  .benefits { grid-template-columns: 1fr; }
  .feature { padding-bottom: 80px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-row { gap: 16px; }
  .nav-links, .nav-actions .link { display: none; }
  .split, .faq-grid { grid-template-columns: 1fr; }
  .split { padding: 72px 0; }
  .claude { padding: 72px 0; }
  .section-head { margin-bottom: 48px; text-align: left; }
  .earn { padding: 18px; }
  .earn-list li { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .earn-bars { grid-column: 1 / -1; grid-row: 2; }
  .callout { font-size: 12px; padding: 6px 9px; }
  .receipt { right: 3%; top: 18%; transform: scale(.75); transform-origin: top right; }
  .chat-body { height: 400px; font-size: 14px; }
  .plain { padding: 26px; }
  .cta-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .callout, .ring, .receipt-paper, .receipt-tag, .bar, .shot.reveal img { transition: none !important; }
  .msg, .approve { animation: none; }
}
