/* Soft UI / neumorphic layout layer — same content, new surfaces */

.hero {
  padding: clamp(140px, 12vw, 168px) 0 clamp(72px, 8vw, 110px);
  text-align: center;
}
.hero::before {
  width: 900px;
  height: 520px;
  top: -240px;
  background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 255, 255, .15) 45%, transparent 70%);
  filter: blur(8px);
}
.hero h1 {
  max-width: 980px;
  margin: 0 auto 22px;
  font-size: clamp(2.7rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero p {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: .9rem;
  line-height: 1.7;
}
.hero-line-secondary::after {
  width: 64px;
  height: 4px;
  bottom: -12px;
  background: var(--orange-500);
  box-shadow: none;
}
.hero-sticker {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: var(--shadow-raised-sm);
}
.sticker-organize { background: var(--navy-950); }
.sticker-paid { background: #3d8b5a; }
.sticker-contract { background: #2f6fd6; }

.hero-preview-wrap { width: min(880px, 100%); margin: 64px auto 0; }
.product-preview {
  min-height: 420px;
  padding: 40px;
  border: 0;
  border-radius: 32px;
  background: var(--neu-bg);
  box-shadow: var(--shadow-raised);
}
.product-preview::before {
  inset: 18px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: var(--shadow-inset);
  animation: none;
}
.demo-screen {
  border: 0;
  border-radius: 18px;
  color: rgba(255, 255, 255, .78);
  background: linear-gradient(160deg, #162a52, #0d2750);
  box-shadow:
    -12px -12px 24px rgba(255, 255, 255, .55),
    14px 14px 28px rgba(13, 39, 80, .22);
  opacity: 0;
  filter: none;
}
.demo-screen.is-active { opacity: 1; }
.demo-toolbar { border-bottom-color: rgba(255, 255, 255, .08); }
.play-button {
  width: 56px;
  height: 56px;
  border: 0;
  color: var(--navy-950);
  background: var(--neu-bg);
  box-shadow: var(--shadow-raised-sm);
  backdrop-filter: none;
}
.play-button:hover {
  border: 0;
  background: var(--neu-bg);
  box-shadow: var(--shadow-inset-sm);
  transform: scale(1.04);
}
.preview-caption { color: var(--navy-950); }
.preview-caption strong { font-size: .68rem; }
.preview-caption small { color: var(--text-secondary); font-size: .55rem; }
.preview-switcher { margin-top: 22px; gap: 12px; }
.preview-switcher button {
  min-width: 110px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--neu-bg);
  box-shadow: var(--shadow-raised-sm);
  font-size: .68rem;
}
.preview-switcher button.is-active {
  color: #fff;
  background: var(--navy-950);
  box-shadow:
    -6px -6px 12px rgba(255, 255, 255, .5),
    8px 8px 16px rgba(13, 39, 80, .2);
}

/* Feature scroll */
.feature-scroll { background: var(--neu-bg); }
.feature-panel.feature-invoice,
.feature-panel.feature-contract { background: transparent; }
.feature-sticky::before,
.feature-sticky::after {
  border: 0;
  background: rgba(255, 255, 255, .35);
  box-shadow: var(--shadow-raised-sm);
}
.document-frame {
  padding: 14px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-raised);
}
.document-frame::before {
  background: transparent;
  box-shadow: none;
}
.signature-card {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-raised-sm);
}
.signature-card button {
  border-radius: var(--radius-sm);
}

/* How it works — orange path + soft step nodes */
.how-it-works {
  background: var(--neu-bg);
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 88px);
}
.how-it-heading { margin-bottom: 36px; text-align: center; }
.how-it-heading .section-kicker { color: var(--navy-950); }
.how-it-heading h2 {
  margin: 0;
  color: var(--neu-text);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}
.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  padding: 8px 0 0;
}
.steps-grid::before {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 28px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--orange-500);
  box-shadow: none;
  content: "";
  z-index: 0;
}
.step-card {
  position: relative;
  z-index: 1;
  min-height: 0;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.step-card:nth-child(even),
.step-card:nth-child(odd) { margin-top: 0 !important; }
.step-card > span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  place-items: center;
  color: var(--navy-950);
  background: var(--white);
  box-shadow: var(--shadow-raised-sm);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 800;
  line-height: 1;
  animation: none;
}
.step-card:nth-child(2) > span,
.step-card:nth-child(3) > span,
.step-card:nth-child(4) > span { animation: none; }
.step-card > span::before {
  display: none;
}
.step-card h3 {
  margin: 0;
  color: var(--neu-text);
  font-size: .95rem;
}
.step-card p {
  margin: 0;
  max-width: 24ch;
  color: var(--text-secondary);
  font-size: .7rem;
  line-height: 1.5;
}

/* Pricing */
.pricing-section {
  background: var(--neu-bg);
}
.currency-toggle {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-inset-sm);
  padding: 6px;
}
.currency-toggle button {
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  box-shadow: none;
}
.currency-toggle button.is-active {
  color: var(--white);
  background: var(--navy-950);
  box-shadow: none;
}
.pricing-card {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-raised);
}
.pricing-card:hover {
  border: 0;
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
}
.pricing-card.popular {
  color: var(--neu-text);
  background: var(--white);
  box-shadow: var(--shadow-raised-lg);
  transform: translateY(-6px);
}
.pricing-card.popular:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-raised-lg);
}
.pricing-card.popular h3,
.pricing-card.popular .price,
.pricing-card.popular .plan-list li { color: var(--neu-text); }
.pricing-card.popular .pricing-card-top > p,
.pricing-card.popular .price small { color: var(--text-secondary); }
.plan-tier {
  border: 0;
  color: var(--text-secondary);
  background: var(--neu-bg);
  box-shadow: var(--shadow-inset-sm);
}
.pricing-card.popular .plan-tier {
  border: 0;
  color: var(--orange-600);
  background: rgba(249, 115, 22, .08);
  box-shadow: none;
}
.price {
  border-top: 0;
  border-bottom: 0;
  margin: 4px 0 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--neu-bg);
  box-shadow: var(--shadow-inset-sm);
}
.pricing-card.popular .price { border: 0; color: var(--neu-text); }
.plan-list li::before {
  background: var(--neu-bg);
  box-shadow: var(--shadow-raised-sm);
}
.pricing-card.popular .plan-list li::before {
  color: var(--orange-600);
  background: var(--neu-bg);
}
.popular-badge {
  box-shadow: var(--shadow-raised-sm);
}

/* Businesses / markets */
.businesses {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .5), transparent 35%),
    var(--neu-bg);
}
.market-card {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-raised);
}
.market-card-top { border-bottom-color: var(--border); }
.market-badge {
  box-shadow: var(--shadow-raised-sm);
}
.team-workflows-nav button {
  border: 0;
  background: var(--neu-bg);
  box-shadow: var(--shadow-raised-sm);
  color: var(--text-secondary);
}
.team-workflows-nav button.is-active {
  background: var(--navy-950);
  color: var(--white);
  box-shadow: none;
}
.team-workflows-stage {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(249, 115, 22, .18), transparent 34%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 100%);
  box-shadow: var(--shadow-raised);
}
.team-doc {
  border-radius: 18px;
  box-shadow: var(--shadow-raised-sm);
}

/* Final CTA */
.final-cta {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .45), transparent 35%),
    var(--neu-bg);
}
.final-cta-main {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, .14), transparent 42%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 100%);
  box-shadow: var(--shadow-raised);
}
.final-cta-list li {
  border: 0;
  border-radius: 20px;
  background: var(--neu-bg);
  box-shadow: var(--shadow-raised-sm);
  backdrop-filter: none;
}
.final-cta-list::before { display: none; }
.final-cta-list i {
  box-shadow: var(--shadow-raised-sm);
}

/* Inner pages */
.page-hero {
  border-bottom: 0;
  background: transparent;
}
.invoice-page-hero,
.contract-page-hero,
.pricing-page-hero {
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .55), transparent 40%),
    var(--neu-bg);
}
.invoice-showcase-section,
.pricing-page-section,
.page-info-section,
.templates-section,
.template-page-cta {
  background: var(--neu-bg);
}

.invoice-templates-page .live-demo-section,
.contract-templates-page .live-demo-section,
.pricing-page .pricing-page-section {
  padding-block: 88px 40px;
}
.invoice-templates-page .section.page-info-section,
.contract-templates-page .section.page-info-section,
.invoice-templates-page .invoice-showcase-section,
.contract-templates-page .invoice-showcase-section {
  padding-block: clamp(40px, 5vw, 64px);
}

/* Live demo — match free Try invoice / contract mockups */
.live-demo-section {
  background: var(--neu-bg);
}
.live-demo-section .invoice-showcase-heading {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}
.page-main-heading {
  padding-top: 0;
}
.live-demo-section .invoice-showcase-heading h1,
.live-demo-section .invoice-showcase-heading h2,
.pricing-page-section .page-main-heading h1 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  letter-spacing: -.03em;
}
.live-demo-section .invoice-showcase-heading p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.55;
}
.live-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: start;
}
.live-demo-form {
  display: grid;
  gap: 18px;
  padding: 28px 26px 24px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, .02),
    0 18px 40px rgba(15, 23, 42, .08);
}
.live-demo-fields {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  background: #f4f5f7;
  box-shadow:
    inset 6px 6px 14px rgba(13, 39, 80, .06),
    inset -6px -6px 14px rgba(255, 255, 255, .9);
}
.live-field {
  display: grid;
  gap: 7px;
}
.live-field span {
  color: #0d2750;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.live-demo-form .input,
.live-demo-form input,
.live-demo-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: #0d2750;
  background: #eef0f3;
  box-shadow:
    inset 5px 5px 10px rgba(13, 39, 80, .07),
    inset -5px -5px 10px rgba(255, 255, 255, .85);
  font: inherit;
  font-size: .8rem;
  font-weight: 500;
  transition: box-shadow .18s ease, background .18s ease;
}
.live-demo-form .input:hover,
.live-demo-form input:hover,
.live-demo-form select:hover {
  background: #f2f3f5;
}
.live-demo-form .input:focus,
.live-demo-form input:focus,
.live-demo-form select:focus {
  outline: none;
  background: #fff;
  box-shadow:
    inset 4px 4px 8px rgba(13, 39, 80, .05),
    inset -4px -4px 8px rgba(255, 255, 255, .9),
    0 0 0 3px rgba(255, 107, 24, .18);
}
.live-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.live-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.live-demo-actions .button {
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 12px;
  font-size: .72rem;
}
.live-demo-actions .button-orange {
  box-shadow: 0 10px 22px rgba(255, 107, 24, .28);
}
.live-demo-actions .button-navy {
  box-shadow: 0 8px 18px rgba(13, 39, 80, .16);
}
.live-demo-note {
  margin: 0;
  color: #9aa3af;
  font-size: .58rem;
  line-height: 1.5;
}
.live-demo-preview {
  position: sticky;
  top: 96px;
  min-height: 100%;
  display: grid;
  place-items: start stretch;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.live-doc {
  width: 100%;
  max-width: none;
  padding: 26px 24px 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, .02),
    0 18px 40px rgba(15, 23, 42, .08);
  display: grid;
  gap: 18px;
}
.live-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--orange-500);
}
.live-doc-head strong {
  color: #0d2750;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.live-doc-head span {
  color: var(--orange-500);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.live-doc-invoice .live-doc-line {
  border-top: 1px solid rgba(255, 107, 24, .35);
  border-bottom: 1px solid rgba(255, 107, 24, .35);
}
.live-doc-totals .is-total {
  border-top-color: #0d2750;
  border-top-width: 2px;
}
.live-doc-title {
  margin: 0;
  color: #0d2750;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.live-doc-contract .live-doc-head {
  border-bottom: 2px solid rgba(13, 39, 80, .12);
}
.live-doc-contract .live-doc-head span {
  color: var(--orange-500);
}
.live-doc-sign {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f1ea;
}
.live-doc-sign span {
  color: #667085;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-doc-sign strong {
  color: var(--orange-500);
  font-size: .72rem;
  font-weight: 700;
}

.page-info-card {
  border: 0 !important;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-raised);
}
.invoice-showcase {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
  min-height: 0;
}
.invoice-showcase:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
}
.invoice-showcase-visual,
.contract-showcase-visual {
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: block;
  min-height: 0;
  line-height: 0;
  overflow: hidden;
}
.invoice-showcase-visual img,
.contract-showcase-visual img {
  width: 100%;
  max-height: none;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: none;
}
.template-card {
  border: 0;
  border-radius: 22px;
  background: var(--neu-bg);
  box-shadow: var(--shadow-raised-sm);
}
.template-preview {
  border-bottom: 0;
  background: var(--neu-bg);
  box-shadow: var(--shadow-inset-sm);
}

.page-info-index,
.invoice-showcase-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--orange-600);
  background: rgba(249, 115, 22, .1);
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .steps-grid::before,
  .step-card > span,
  .pricing-card,
  .market-card,
  .invoice-showcase,
  .final-cta-main {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .steps-grid::before { display: none; }
  .step-card:nth-child(even),
  .step-card:nth-child(odd) { margin-top: 0; }
  .steps-grid { gap: 18px; }
  .invoice-showcase {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .product-preview { border-radius: 24px; }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: none; }
}
@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-card > span { width: 52px; height: 52px; }
}
