/* Palette from Figma "Landing 2026" - main dark mode */
:root {
  --black: #000000;
  --surface: #0F0F0F;
  --surface-2: #191919;
  --border: #292929;
  --border-strong: #5C5C5C;

  --green: #229828;
  --green-deep: #186D1D;
  --green-text: #1B8520;
  --green-soft: #D0F4CD;
  --green-badge: #C7EEC1;

  --sage-from: #EFFCEC;
  --sage-to: #B0BDAD;
  --cream: #D6D2C4;

  --text: #FFFFFF;
  --text-muted: #818181;
  --ink: #101010;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
}

.bg-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(140px); }
.bg-glow--orange { background: var(--green); top: -260px; right: -180px; opacity: 0.18; }
.bg-glow--purple { background: var(--green-deep); bottom: -260px; left: -240px; opacity: 0.12; }

/* ---------- Nav ---------- */
.nav { padding: 28px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; min-width: 0; }
.brand-mark svg { display: block; width: 32px; height: 32px; }
.brand-mark rect { fill: var(--green); }
.brand-mark path { fill: #fff; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* outlined pill, like the "E-Invoice" / "Register" header buttons */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  border: 1px solid var(--green-deep);
  border-radius: 999px;
  white-space: nowrap;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,152,40,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34,152,40,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,152,40,0); }
}

/* ---------- Hero card ---------- */
main { flex: 1; display: flex; align-items: center; padding-bottom: 48px; }

.hero-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 48px;
  padding: 72px 56px 56px;
  border-radius: 32px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(34,152,40,0.28) 0%, transparent 55%),
    radial-gradient(60% 80% at 0% 100%, rgba(24,109,29,0.18) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px -40px rgba(34,152,40,0.35);
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute; top: -40px; right: -40px;
  width: 460px; height: 460px;
  z-index: -1;
  pointer-events: none;
}
.art-ring { fill: none; stroke: rgba(208,244,205,0.12); stroke-width: 1.5; }
.art-dot { fill: rgba(34,152,40,0.35); }

.hero-content { max-width: 700px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px;
  font-size: 16px; font-weight: 500;
  color: var(--text);
}
.eyebrow svg { width: 18px; height: 18px; fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linejoin: round; }

.headline {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.highlight { color: var(--green); }

.dots span { animation: blink 1.4s infinite both; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

.lede {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: 17px; line-height: 1.5;
  color: var(--text-muted);
}

/* Striped construction progress bar */
.progress {
  margin-top: 32px;
  width: min(320px, 100%);
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--green) 0 10px, var(--green-deep) 10px 20px);
  background-size: 28px 28px;
  animation: fill 1.6s cubic-bezier(.2,.8,.2,1) .4s forwards, stripes 1s linear infinite;
}
@keyframes fill { to { width: 72%; } }
@keyframes stripes { to { background-position: 28px 0; } }

/* ---------- Small business details card (sage glass, like the "Paid" card) ---------- */
.info-card {
  padding: 18px 20px;
  border-radius: 20px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(239,252,236,0.96) 0%, rgba(176,189,173,0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
  font-size: 13px;
}
.info-card h2 {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 9px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-badge);
  border-radius: 6px;
}

.details { margin: 0; }
.detail {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(16,16,16,0.08);
}
.detail:first-child { border-top: 0; padding-top: 0; }
.detail dt { color: rgba(16,16,16,0.55); font-weight: 500; }
.detail dd {
  margin: 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 6px;
  font-weight: 600; line-height: 1.4;
  overflow-wrap: anywhere;
}
.detail dd a { text-decoration: none; color: var(--green-text); }
.detail dd a:hover { text-decoration: underline; }

.copy {
  flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; padding: 0;
  color: rgba(16,16,16,0.55);
  background: transparent;
  border: 0; border-radius: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.copy:hover { background: rgba(16,16,16,0.08); color: var(--ink); }
.copy.is-done { color: var(--green); }

/* ---------- Footer ---------- */
.footer { padding: 20px 0 28px; font-size: 13px; color: var(--text-muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; gap: 40px; padding: 48px 32px 32px; }
  .info-card { max-width: 380px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav { padding: 20px 0; }
  main { align-items: flex-start; padding-bottom: 32px; }
  .hero-card { padding: 36px 20px 20px; border-radius: 24px; gap: 32px; }
  .hero-art { width: 320px; height: 320px; top: -60px; right: -90px; }
  .lede { font-size: 16px; }
  .info-card { max-width: none; }
  .pill { font-size: 12px; padding: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .progress-bar { width: 72%; }
}
