/* Invoicy landing page. Pairs with style.css. */

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; }
.kicker { font: 500 12.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lav); margin: 0 0 18px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section h2 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.02; font-weight: 800; margin: 0 0 20px; max-width: 16ch; }
.section .sub { font-size: clamp(18px, 2vw, 21px); color: var(--muted-d); max-width: 54ch; margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; position: relative; }
.hero::before { /* lamp glow */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(112, 92, 255, 0.45), rgba(112, 92, 255, 0) 70%); pointer-events: none;
}
.hero::after { /* ruled-paper lines, very faint */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, transparent 0 63px, rgba(237, 234, 247, 0.045) 63px 64px);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(50px, 8.4vw, 112px); line-height: .92; font-weight: 800; margin: 0 0 26px; letter-spacing: -0.045em; }
.hero h1 .line { display: block; }
.hero h1 .pay { position: relative; display: inline-block; color: var(--amber); }
.hero h1 .pay svg { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .22em; overflow: visible; }
.hero h1 .pay path { stroke: var(--amber); stroke-width: 7; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s .9s cubic-bezier(.6, .1, .2, 1) forwards; }
.hero .lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted-d); max-width: 46ch; margin: 0 0 34px; }
.hero .lead strong { color: var(--text-d); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.fine { font: 400 13px/1.5 var(--mono); color: var(--muted-d); letter-spacing: .02em; }
.fine b { color: var(--mint); font-weight: 500; }

.stage { position: relative; justify-self: center; width: min(100%, 440px); }
.stage .phone { width: 100%; border-radius: 46px; box-shadow: 0 60px 100px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .07); transform: rotate(2.4deg); animation: float 9s ease-in-out infinite; }
.slip {
  position: absolute; left: -16%; bottom: 7%; width: 62%;
  background: var(--paper); color: var(--paper-ink); border-radius: 4px 4px 14px 14px;
  padding: 18px 18px 22px; transform: rotate(-5deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  font: 500 12px/1.5 var(--mono);
}
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 9px; background: radial-gradient(circle at 7px 0, #0b0d17 4px, transparent 5px) 0 0 / 14px 9px repeat-x; }
.slip .row { display: flex; justify-content: space-between; gap: 10px; }
.slip .no { color: var(--paper-muted); letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; }
.slip .who { font: 700 17px/1.2 var(--display); letter-spacing: -.02em; margin: 8px 0 2px; }
.slip .amt { font: 700 30px/1 var(--display); letter-spacing: -.03em; margin-top: 10px; }
.slip .dash { border-top: 1.5px dashed var(--paper-line); margin: 12px 0; }
.stamp {
  position: absolute; right: 8px; bottom: 14px; transform: rotate(-12deg) scale(1);
  font: 800 25px/1 var(--display); letter-spacing: .08em; color: #d23b2a;
  border: 3.5px solid #d23b2a; border-radius: 8px; padding: 6px 12px 5px; opacity: .92;
  mix-blend-mode: multiply; animation: thump .5s 1.5s cubic-bezier(.3, 1.6, .5, 1) both;
}
.chip {
  position: absolute; right: -6%; top: 14%; background: rgba(20, 23, 41, .88); border: 1px solid var(--line-d);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; padding: 12px 16px; font: 500 12.5px/1.4 var(--mono); color: var(--text-d);
  transform: rotate(3deg); animation: float 7s -2s ease-in-out infinite;
}
.chip b { display: block; color: var(--mint); font: 700 20px/1.1 var(--display); letter-spacing: -.02em; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes thump { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 100% { opacity: .92; transform: rotate(-12deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .rise { opacity: 0; animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero .rise:nth-child(1) { animation-delay: .05s; }
.hero .rise:nth-child(2) { animation-delay: .18s; }
.hero .rise:nth-child(3) { animation-delay: .3s; }
.hero .rise:nth-child(4) { animation-delay: .42s; }
.hero .stage { opacity: 0; animation: rise 1s .25s cubic-bezier(.2, .7, .2, 1) forwards; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { width: min(78%, 380px); margin-top: 24px; }
  .slip { left: -8%; }
  .chip { right: -2%; }
}

/* ---------- trade ribbon ---------- */
.ribbon { border-block: 1px solid var(--line-d); background: var(--ink-2); overflow: hidden; padding: 18px 0; }
.ribbon .track { display: flex; width: max-content; gap: 44px; animation: slide 46s linear infinite; font: 800 clamp(22px, 3vw, 34px)/1 var(--display); letter-spacing: -.02em; color: var(--text-d); }
.ribbon .track span { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.ribbon .track span::after { content: "✦"; color: var(--amber); font-size: .6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- three promises (paper band) ---------- */
.band { background: var(--paper); color: var(--paper-ink); }
.band .kicker { color: var(--amber-deep); }
.band h2 { max-width: 18ch; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 2px solid var(--paper-ink); }
.promise { padding: 30px 30px 8px 0; position: relative; }
.promise + .promise { padding-left: 30px; border-left: 1.5px dashed var(--paper-line); }
.promise .n { font: 500 13px/1 var(--mono); color: var(--amber-deep); letter-spacing: .14em; }
.promise h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.05; font-weight: 800; margin: 14px 0 12px; }
.promise p { color: var(--paper-muted); margin: 0; max-width: 34ch; }
@media (max-width: 860px) {
  .promises { grid-template-columns: 1fr; }
  .promise + .promise { padding-left: 0; border-left: 0; border-top: 1.5px dashed var(--paper-line); margin-top: 22px; }
}

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; }
.feature + .feature { border-top: 1px solid var(--line-d); }
.feature:nth-of-type(even) .shot { order: -1; }
.feature .tag { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; display: block; }
.feature h3 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.02; font-weight: 800; margin: 0 0 18px; max-width: 14ch; }
.feature p { color: var(--muted-d); font-size: 19px; max-width: 44ch; margin: 0 0 16px; }
.feature ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; align-items: baseline; color: var(--text-d); font-size: 16px; }
.feature li::before { content: "→"; color: var(--amber); font-family: var(--mono); }
.shot { display: grid; place-items: center; position: relative; }
.shot::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, rgba(112, 92, 255, .38), transparent 72%); filter: blur(10px); }
.shot img { position: relative; width: min(100%, 400px); border-radius: 40px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06); }
.shot--pair { grid-auto-flow: column; gap: 18px; align-items: start; }
.shot--pair img { width: 100%; }
.shot--pair img:nth-child(2) { margin-top: 44px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .feature h3, .feature p { max-width: none; }
}

/* ---------- everything else ---------- */
.more { background: var(--ink-2); border-block: 1px solid var(--line-d); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 48px; }
.tile { background: var(--ink-3); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 24px; transition: transform .2s ease, border-color .2s ease; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 122, 69, .55); }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(169, 155, 255, .14); color: var(--lav); margin-bottom: 18px; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--muted-d); font-size: 15.5px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; margin-top: 52px; align-items: stretch; }
.plan { border-radius: 26px; padding: clamp(26px, 4vw, 40px); border: 1px solid var(--line-d); background: var(--ink-2); }
.plan h3 { font-size: 30px; margin: 0 0 4px; font-weight: 800; }
.plan .for { color: var(--muted-d); margin: 0 0 24px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: baseline; font-size: 16.5px; }
.plan li::before { content: "✓"; color: var(--mint); font-weight: 700; }
.plan--pro { background: linear-gradient(160deg, #2b2670 0%, #171a36 55%, #121428 100%); border-color: rgba(169, 155, 255, .4); position: relative; box-shadow: 0 40px 80px -40px rgba(112, 92, 255, .6); }
.plan--pro .badge { position: absolute; top: -14px; right: 28px; background: var(--amber); color: #1b0f08; font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.plan--pro li::before { content: "★"; color: var(--amber); }
.terms { margin: 26px 0 0; font: 400 13px/1.7 var(--mono); color: var(--muted-d); max-width: 78ch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- privacy strip ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-block: 1px solid var(--line-d); }
.trust div { padding: 30px 28px 30px 0; }
.trust div + div { padding-left: 28px; border-left: 1px solid var(--line-d); }
.trust b { display: block; font: 800 clamp(24px, 2.8vw, 32px)/1.05 var(--display); letter-spacing: -.03em; margin-bottom: 10px; }
.trust span { color: var(--muted-d); font-size: 16px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } .trust div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-d); } }

/* ---------- faq (paper) ---------- */
.faq { max-width: 860px; margin-top: 40px; }
.faq details { border-top: 1px solid var(--line-d); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-d); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 700 clamp(19px, 2.2vw, 24px)/1.25 var(--display); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--mono); color: var(--amber); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted-d); margin: 0 0 22px; max-width: 64ch; }

/* ---------- final call ---------- */
.final { text-align: center; padding: clamp(80px, 11vw, 150px) 0; background: radial-gradient(60% 80% at 50% 100%, rgba(112, 92, 255, .4), transparent 70%), var(--ink); }
.final h2 { margin-inline: auto; max-width: 14ch; font-size: clamp(44px, 8vw, 100px); line-height: .95; letter-spacing: -.045em; }
.final p { color: var(--muted-d); font-size: 20px; margin: 0 auto 34px; max-width: 40ch; }
.final .cta-row { justify-content: center; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero .rise, .hero .stage, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .stage .phone, .chip, .ribbon .track { animation: none; }
  .hero h1 .pay path { animation: none; stroke-dashoffset: 0; }
  .stamp { animation: none; }
}
