/* ==============================
   RAPIDO — Custom Stylesheet
   ============================== */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F5F0E8;
  --fg: #1A1A1A;
  --fg-muted: #6B6860;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-light: #FEF3C7;
  --surface: #FFFFFF;
  --border: #E5DFD5;
  --green: #059669;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--fg); }

/* HERO */
.hero {
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}
.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
/* Centered variant — used on homepage hub */
.hero__inner--centered {
  display: block;
  text-align: center;
  padding-bottom: 1rem;
}
.hero__inner--centered .hero__headline {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.hero__inner--centered .hero__sub {
  max-width: 560px;
  margin: 0 auto;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: #92400E;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero__headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.2rem;
}
.hero__highlight {
  color: var(--accent);
  position: relative;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
}

/* TOOL WIDGET */
.tool-widget {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.tool-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.tool-widget__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.tool-widget__tag {
  background: var(--accent-light);
  color: #92400E;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  letter-spacing: 0.02em;
}
.tool-widget__field {
  margin-bottom: 0.9rem;
}
.tool-widget__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}
.tool-widget__input,
.tool-widget__select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg);
  appearance: none;
}
.tool-widget__result {
  background: var(--bg);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.2rem 0;
}
.result-row strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: var(--green);
}
.result-row.muted {
  color: var(--fg-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.tool-widget__footer {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: #B5AEA0;
  text-align: right;
}

/* TOOLS SECTION */
.tools {
  padding: 5rem 2rem;
  background: var(--bg-alt);
}
.tools__inner { max-width: 1100px; margin: 0 auto; }
.tools__label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}
.tools__label--soon {
  margin-top: 3rem;
}
.tools__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.tools__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.tools__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.tool-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.tool-card--featured {
  background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
  color: white;
  border-color: #2D2D2D;
}
.tool-card--featured p { color: #A8A29E; }
.tool-card--featured .tool-card__icon { color: var(--accent); }
.tool-card--featured .arrow { color: var(--accent); }
.tool-card--soon {
  cursor: default;
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}
.tool-card--soon::after {
  content: 'Bient\00F4t';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--border);
  color: var(--fg-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
}
.tool-card__icon { color: var(--accent); }
.tool-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.tool-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.55;
  flex-grow: 1;
}
.tool-card__cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}
.arrow { color: var(--fg-muted); }

/* DEMO SECTION */
.demo {
  padding: 6rem 2rem;
  background: var(--bg);
}
.demo__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.demo__steps { display: flex; flex-direction: column; gap: 2rem; }
.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
.step__num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.1rem;
}
.step__content h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.step__content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* INVOICE MOCK */
.invoice-mock {
  background: white;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  font-size: 0.75rem;
}
.invoice-mock__topbar {
  background: var(--fg);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}
.invoice-mock__body { padding: 1.25rem; }
.invoice-mock__row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
}
.invoice-mock__label {
  font-weight: 600;
  color: var(--fg-muted);
}
.invoice-mock__table {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.invoice-mock__tablehead {
  display: grid;
  grid-template-columns: 1fr 2.5rem 3rem 2.5rem 3.5rem;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--fg-muted);
}
.invoice-mock__tablerow {
  display: grid;
  grid-template-columns: 1fr 2.5rem 3rem 2.5rem 3.5rem;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
}
.invoice-mock__total {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: var(--accent);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}
.invoice-mock__footer {
  background: var(--bg-alt);
  padding: 0.6rem 1.25rem;
  font-size: 0.62rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

/* DIFFERENCE SECTION */
.difference {
  padding: 6rem 2rem;
  background: var(--bg-alt);
}
.difference__inner { max-width: 900px; margin: 0 auto; }
.difference__header {
  margin-bottom: 3rem;
}
.difference__header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.3rem;
}
.difference__header p { color: var(--fg-muted); }
.comparison-table {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.comparison-table__head {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 0;
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  border-bottom: 1.5px solid var(--border);
}
.comparison-table__head span:not(:first-child) {
  text-align: center;
}
.comparison-table__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 0.88rem;
}
.comparison-table__row:last-child { border-bottom: none; }
.comparison-table__row span:first-child { font-weight: 500; }
.comparison-table__row span:not(:first-child) {
  text-align: center;
}
.check { display: inline-flex; justify-content: center; }
.partial { font-size: 0.78rem; color: var(--fg-muted); }
.cross { display: inline-flex; justify-content: center; }
.difference__note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
  text-align: center;
  font-style: italic;
}

/* MANIFESTO */
.manifesto {
  padding: 7rem 2rem;
  background: var(--fg);
  color: white;
  text-align: center;
}
.manifesto__inner { max-width: 750px; margin: 0 auto; }
.manifesto__quote {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: #F5F0E8;
}
.manifesto__body {
  font-size: 1rem;
  color: #A8A29E;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* FOOTER */
.footer {
  padding: 2.5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer__inner { max-width: 1100px; margin: 0 auto; }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.footer__copy {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.footer__legal {
  font-size: 0.75rem;
  color: #B5AEA0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero__inner,
  .demo__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero { padding: 3rem 1.5rem 3rem; }
  .tools { padding: 4rem 1.5rem; }
  .tools__grid,
  .tools__grid--3,
  .tools__grid--4 {
    grid-template-columns: 1fr 1fr;
  }
  .comparison-table__head,
  .comparison-table__row {
    grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr;
    font-size: 0.8rem;
  }
  .nav__links { display: none; }
}

@media (max-width: 480px) {
  .tools__grid,
  .tools__grid--3,
  .tools__grid--4 { grid-template-columns: 1fr; }
  .comparison-table { overflow-x: auto; }
}