/* Receiptly AI landing: deep violet night, purple→pink gradient, a real paper receipt. */
:root {
  --night: #120E2C; --night2: #1B1540; --ink: #F4F1FF; --dim: rgba(244,241,255,.68);
  --violet: #6C63FF; --pink: #FF4FA3; --rose: #FF80C4; --paper: #FBFAF6; --paper-ink: #2A2A2E;
  --grad: linear-gradient(100deg, #8E86FF 0%, #FF6FB5 100%);
  --display: "Sora", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1); --pop: cubic-bezier(.34,1.56,.64,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font: 600 14px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.lede { color: var(--dim); font-size: clamp(17px, 1.5vw, 19px); max-width: 34em; margin: 22px 0 0; }
.small { color: var(--dim); font-size: 14px; }
.center { text-align: center; }
section { position: relative; padding: clamp(80px, 11vw, 140px) max(20px, 6vw); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, 4vw); transition: background .3s, box-shadow .3s; }
.bar.solid { background: rgba(18,14,44,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--dim); transition: color .2s; }
.bar nav a:hover { color: var(--ink); }
.cta { text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--night); white-space: nowrap; }
@media (max-width: 860px) { .bar nav { display: none; } .cta { margin-left: auto; } }

/* store button */
.store { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #000; text-decoration: none; padding: 11px 22px 11px 18px; border-radius: 14px; transition: transform .25s var(--pop), box-shadow .25s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(108,99,255,.45); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: flex; flex-direction: column; font: 600 20px/1.05 var(--body); letter-spacing: -.01em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.note { color: var(--dim); font-size: 14px; }

/* glow */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.glow::before, .glow::after { content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .45; animation: float 18s ease-in-out infinite alternate; }
.glow::before { background: var(--violet); top: -30vmax; left: -15vmax; }
.glow::after { background: var(--pink); bottom: -35vmax; right: -20vmax; opacity: .3; animation-delay: -9s; }
@keyframes float { to { transform: translate(8vmax, 6vmax) scale(1.1); } }

/* hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px; padding-top: 120px; isolation: isolate; }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: .98; font-weight: 800; letter-spacing: -.045em; }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.stage { position: relative; height: min(640px, 78svh); }
.receipt { position: absolute; left: 0; top: 50%; width: min(300px, 46%); transform: translateY(-50%) rotate(-5deg); background: var(--paper); color: var(--paper-ink); font: 400 12.5px/1.55 var(--mono); padding: 22px 20px 30px; box-shadow: 0 40px 80px rgba(0,0,0,.45); overflow: hidden;
  -webkit-mask: radial-gradient(circle 6px at 7px 100%, transparent 98%, #000) -7px 0/14px 100% repeat-x; mask: radial-gradient(circle 6px at 7px 100%, transparent 98%, #000) -7px 0/14px 100% repeat-x; }
.r-head { text-align: center; margin-bottom: 12px; border-bottom: 1px dashed #bbb; padding-bottom: 10px; }
.r-head b { display: block; font-weight: 600; letter-spacing: .06em; }
.r-head span { font-size: 11px; color: #777; }
.r-lines { list-style: none; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px dashed #bbb; }
.r-lines li, .r-sum { display: flex; justify-content: space-between; gap: 10px; padding: 1px 4px; margin: 0 -4px; border-radius: 4px; transition: background .3s, color .3s; }
.r-lines li.hit { background: color-mix(in srgb, var(--c) 18%, transparent); color: #111; }
.r-sum.total { font-weight: 600; font-size: 14px; margin-top: 4px; }
.r-bar { height: 34px; margin-top: 16px; background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 5px, transparent 5px 8px); opacity: .8; }
.laser { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pink); box-shadow: 0 0 14px 4px rgba(255,79,163,.7), 0 0 40px 10px rgba(108,99,255,.35); opacity: 0; }
.hero-phone { position: absolute; right: 0; top: 50%; width: min(280px, 44%); transform: translateY(-50%) rotate(3deg); }
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; background: #fff; color: #1c1c1e; font: 600 13px var(--body); box-shadow: 0 10px 24px rgba(0,0,0,.35); white-space: nowrap; will-change: transform, opacity; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.tally { position: absolute; left: 4%; bottom: 2%; display: flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: 16px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); font-size: 14px; color: var(--dim); }
.tally b { font: 800 26px var(--display); color: var(--ink); min-width: 1ch; text-align: center; }

/* phone frame */
.phone { border-radius: 44px; padding: 9px; background: #0b0a14; box-shadow: 0 0 0 1.5px rgba(255,255,255,.14) inset, 0 40px 90px rgba(0,0,0,.55), 0 0 60px rgba(108,99,255,.25); }
.phone img, .phone video { border-radius: 35px; width: 100%; aspect-ratio: 600/1304; object-fit: cover; background: #f2f2f7; }

/* how */
.how { text-align: center; }
.how h2 { margin: 0 auto; max-width: 16ch; }
.steps { list-style: none; padding: 0; margin: 60px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; counter-reset: s; }
.steps li { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); border-radius: 26px; padding: 30px 28px; }
.steps li:nth-child(2) { transition-delay: .12s; } .steps li:nth-child(3) { transition-delay: .24s; }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); font: 800 20px var(--display); color: #fff; margin-bottom: 18px; }
.steps p { color: var(--dim); margin: 8px 0 0; font-size: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ask */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(30px, 6vw, 90px); align-items: center; max-width: 1240px; margin: 0 auto; }
.qs { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 30px; }
.qs button { font: 500 16px var(--body); color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--pop); text-align: left; }
.qs button:hover { background: rgba(108,99,255,.25); border-color: var(--violet); transform: translateX(4px); }
.qs button.used { opacity: .5; }
.qs button:disabled { cursor: default; }
.ask .small { margin-top: 18px; }
.chat-phone { background: #F2F2F7; color: #1c1c1e; border-radius: 44px; padding: 18px 16px 16px; height: 620px; display: flex; flex-direction: column; box-shadow: 0 0 0 9px #0b0a14, 0 0 0 10.5px rgba(255,255,255,.14), 0 40px 90px rgba(0,0,0,.55), 0 0 80px rgba(255,79,163,.18); margin: 10px; }
.chat-top { display: flex; justify-content: center; position: relative; padding: 6px 0 14px; font-size: 17px; }
.chat-top span { position: absolute; right: 4px; top: 2px; color: #4F46E5; background: #fff; padding: 4px 12px; border-radius: 999px; font-size: 15px; }
.chat-intro { display: flex; gap: 10px; background: #fff; border-radius: 16px; padding: 12px; font-size: 14px; line-height: 1.35; }
.chat-intro i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); }
.chat-intro small { display: block; color: #8e8e93; font-size: 12px; margin-top: 2px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 0; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.38; animation: pop .35s var(--pop); }
.msg.me { align-self: flex-end; background: #6C5CE7; color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.msg.think { color: #8e8e93; display: flex; gap: 4px; align-items: center; }
.msg.think b { width: 6px; height: 6px; border-radius: 50%; background: #b0b0b8; animation: blink 1s infinite; }
.msg.think b:nth-child(2) { animation-delay: .15s; } .msg.think b:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.chat-input { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 10px 10px 10px 16px; color: #8e8e93; font-size: 15px; }
.chat-input span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-input span.typing { color: #1c1c1e; }
.chat-input i { width: 26px; height: 26px; border-radius: 50%; background: #c7c7cc; }
@media (max-width: 900px) { .ask { grid-template-columns: 1fr; } .chat-phone { max-width: 400px; width: calc(100% - 20px); justify-self: center; height: 560px; } }

/* tour (pinned) */
.tour { padding: 0 max(20px, 6vw); height: 520vh; }
.tour-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(30px, 6vw, 90px); max-width: 1180px; margin: 0 auto; }
.tour-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; }
.tour-list li { grid-area: 1/1; opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.tour-list li.on { opacity: 1; transform: none; pointer-events: auto; }
.tour-list li.past { transform: translateY(-26px); }
.tour-list h3 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.tour-list p { color: var(--dim); font-size: clamp(17px, 1.6vw, 20px); max-width: 26em; margin: 16px 0 0; }
.tour-dots { display: flex; gap: 8px; margin-top: 34px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); transition: width .35s var(--ease), background .35s; }
.tour-dots i.on { width: 30px; background: var(--grad); }
.tour-phone { position: relative; width: min(330px, 34vw, calc((100svh - 120px) * .46)); }
.tour-phone img { position: absolute; inset: 9px; width: calc(100% - 18px); opacity: 0; transform: scale(.94) translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.tour-phone img:first-child { position: relative; inset: auto; width: 100%; }
.tour-phone img.on { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .tour { height: auto; padding: 60px 20px; }
  .tour-pin { position: static; height: auto; grid-template-columns: 1fr; }
  .tour-list li, .tour-list li.past { grid-area: auto; opacity: 1; transform: none; margin-bottom: 18px; }
  .tour-list h3 { font-size: 22px; }
  .tour-list p { font-size: 16px; margin-top: 4px; }
  .tour-dots, .tour-copy .kicker { display: none; }
  .tour-phone { width: 100%; max-width: none; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 20px; background: none; box-shadow: none; border-radius: 0; }
  .tour-phone img, .tour-phone img:first-child { position: static; inset: auto; flex: none; width: 72%; opacity: 1; transform: none; scroll-snap-align: center; border-radius: 28px; box-shadow: 0 0 0 7px #0b0a14, 0 20px 50px rgba(0,0,0,.5); margin: 8px; }
  .tour::before { content: "Everything in one place"; display: block; font: 600 14px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 16px; }
}

/* privacy */
.privacy { text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(108,99,255,.22), transparent 60%); }
.lock { width: 74px; height: 74px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 24px; background: var(--grad); box-shadow: 0 20px 50px rgba(255,79,163,.35); }
.lock svg { width: 38px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.promises { list-style: none; padding: 0; margin: 50px auto 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promises li { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.promises b { font: 700 19px var(--display); }
.promises span { color: var(--dim); font-size: 15.5px; }
@media (max-width: 820px) { .promises { grid-template-columns: 1fr; } }

/* pricing */
.pricing { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 22px; margin: 50px 0 24px; text-align: left; }
.plan { padding: 30px; border-radius: 26px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.plan.pro { background: linear-gradient(160deg, rgba(108,99,255,.35), rgba(255,79,163,.22)); border-color: rgba(255,128,196,.45); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--dim); }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 2.5px solid var(--rose); border-bottom: 2.5px solid var(--rose); transform: rotate(-45deg); }
.plan.pro li { color: var(--ink); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq h2 { text-align: center; }
.qa { max-width: 820px; margin: 50px auto 0; }
.qa details { border-bottom: 1px solid rgba(255,255,255,.12); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 19px var(--display); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 30px/1 var(--body); color: var(--rose); transition: transform .3s var(--pop); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--dim); margin: -6px 0 22px; }

/* end */
.end { text-align: center; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.end img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 50px rgba(108,99,255,.5); }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 26px max(20px, 4vw) 36px; border-top: 1px solid rgba(255,255,255,.1); color: var(--dim); font-size: 14px; }
.foot nav { display: flex; gap: 20px; }
.foot small { width: 100%; opacity: .75; }

/* small screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; }
  .stage { height: 540px; max-width: 520px; width: 100%; margin: 0 auto; }
  .receipt { width: 54%; font-size: 11px; }
  .hero-phone { width: 46%; }
}
@media (max-width: 420px) { .stage { height: 460px; } .receipt { font-size: 9.5px; padding: 16px 12px 24px; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .glow::before, .glow::after { animation: none; }
  .laser { display: none; }
  html { scroll-behavior: auto; }
}
