/* PraInvoice public site — company product page (teal brand) */

:root {
  --teal-header: #1f4f59;
  --teal-header-secondary: #2f6f73;
  --teal-accent: #3e8b8f;
  --teal-bg: #f4f6f8;
  --teal-card-bg: #ffffff;
  --teal-border: #e2e8f0;
  --teal-text: #1f2937;
  --teal-text-muted: #6b7280;
  --site-display: "Sora", system-ui, sans-serif;
  --site-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--site-body);
  color: var(--teal-text);
  background: var(--teal-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(90deg, var(--teal-header), var(--teal-header-secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--site-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.site-brand__logo {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
  padding: 0.28rem 0.45rem;
  background: #fff;
  border-radius: 0.5rem;
}

.site-brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.site-nav__links a:hover {
  color: #fff;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
  }
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.45rem;
  font-family: var(--site-body);
  font-weight: 600;
  font-size: 0.925rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.site-btn:active {
  transform: translateY(1px);
}

.site-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.site-btn--ghost:hover,
.site-btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-btn--solid {
  background: #fff;
  color: var(--teal-header);
}

.site-btn--solid:hover {
  background: #f0f7f7;
}

.site-btn--primary {
  background: var(--teal-header-secondary);
  color: #fff;
  border-color: var(--teal-header-secondary);
}

.site-btn--primary:hover {
  background: #275b5f;
  border-color: #275b5f;
}

/* ——— Hero ——— */
.site-hero {
  position: relative;
  min-height: calc(100vh - 4.2rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 78% 28%, rgba(62, 139, 143, 0.55), transparent 55%),
    radial-gradient(ellipse 55% 45% at 12% 80%, rgba(47, 111, 115, 0.45), transparent 50%),
    linear-gradient(145deg, #163940 0%, #1f4f59 42%, #2f6f73 100%);
}

.site-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  animation: site-grid-drift 28s linear infinite;
}

.site-hero__receipt {
  position: absolute;
  right: clamp(-2rem, 4vw, 6rem);
  top: 50%;
  width: min(28rem, 48vw);
  aspect-ratio: 3 / 4;
  transform: translateY(-46%) rotate(8deg);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  pointer-events: none;
  animation: site-card-float 7s ease-in-out infinite;
}

.site-hero__receipt::before {
  content: "";
  display: block;
  width: 42%;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.site-hero__receipt span {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 0.7rem;
}

.site-hero__receipt span:nth-child(2) { width: 78%; }
.site-hero__receipt span:nth-child(3) { width: 64%; }
.site-hero__receipt span:nth-child(4) { width: 88%; margin-top: 1.5rem; }
.site-hero__receipt span:nth-child(5) { width: 55%; }
.site-hero__receipt span:nth-child(6) { width: 70%; }
.site-hero__receipt span:nth-child(7) {
  width: 46%;
  margin-top: auto;
  height: 2.4rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.28);
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
}

.site-hero__content {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 9vh, 5.5rem);
}

.site-hero__brand {
  font-family: var(--site-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 1rem;
}

.site-hero__logo {
  display: block;
  width: min(17rem, 72vw);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.25));
}

.site-hero__headline {
  font-family: var(--site-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  max-width: 24ch;
  color: rgba(255, 255, 255, 0.95);
}

.site-hero__lede {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.site-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-hero__cta .site-btn--solid {
  min-width: 8.5rem;
}

@keyframes site-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes site-card-float {
  0%, 100% { transform: translateY(-46%) rotate(8deg); }
  50% { transform: translateY(-50%) rotate(6.5deg); }
}

@keyframes site-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-hero__content {
  animation: site-rise 0.7s ease-out both;
}

/* ——— Sections ——— */
.site-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  background: #fff;
}

.site-section--tint {
  background:
    linear-gradient(180deg, rgba(47, 111, 115, 0.06), transparent 40%),
    var(--teal-bg);
}

.site-section__inner {
  max-width: 68rem;
  margin: 0 auto;
}

.site-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-accent);
}

.site-section__title {
  font-family: var(--site-display);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  color: var(--teal-header);
}

.site-section__lede {
  margin: 0 0 2.25rem;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--teal-text-muted);
}

.site-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--teal-border);
}

.site-feature-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--teal-border);
}

@media (min-width: 720px) {
  .site-feature-list li {
    grid-template-columns: minmax(10rem, 14rem) 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.site-feature-list strong {
  font-family: var(--site-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-header);
}

.site-feature-list span {
  color: var(--teal-text-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

/* Steps */
.site-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .site-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.site-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.site-steps__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  font-family: var(--site-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, var(--teal-header), var(--teal-accent));
}

.site-steps strong {
  display: block;
  font-family: var(--site-display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--teal-header);
}

.site-steps p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--teal-text-muted);
}

/* Split / for companies */
.site-split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .site-split {
    grid-template-columns: 1.35fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.site-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-bullets li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.35rem;
  border-bottom: 1px solid var(--teal-border);
  color: var(--teal-text);
  line-height: 1.5;
  font-size: 0.98rem;
}

.site-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--teal-accent);
}

.site-aside {
  padding: 1.75rem 0 0;
  border-top: 2px solid var(--teal-header);
}

@media (min-width: 860px) {
  .site-aside {
    padding: 0 0 0 1.75rem;
    border-top: none;
    border-left: 2px solid var(--teal-header);
  }
}

.site-aside__label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-accent);
}

.site-aside p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--teal-text-muted);
}

.site-aside p:last-child {
  margin-bottom: 0;
}

.site-aside strong {
  color: var(--teal-header);
}

/* Contact form */
.site-contact {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .site-contact {
    grid-template-columns: 1fr minmax(18rem, 24rem);
    gap: 3rem;
    align-items: start;
  }
}

.site-contact__intro .site-section__lede {
  margin-bottom: 0;
}

.site-contact-form {
  display: grid;
  gap: 1rem;
}

.site-field {
  display: grid;
  gap: 0.4rem;
}

.site-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-header);
}

.site-req {
  color: #c0392b;
}

.site-input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--teal-border);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--teal-text);
  font-family: var(--site-body);
  font-size: 0.95rem;
}

.site-input:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(62, 139, 143, 0.2);
}

.site-alert {
  padding: 0.75rem 0.9rem;
  border-radius: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-alert--success {
  background: #e8f7ef;
  color: #1e6b3a;
  border: 1px solid #b7e0c5;
}

.site-alert--danger {
  background: #fdecea;
  color: #922b21;
  border: 1px solid #f5c6cb;
}

.site-captcha-box {
  margin-top: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--teal-border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
}

.site-captcha-header {
  margin-bottom: 0.65rem;
}

.site-captcha-body {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .site-captcha-body {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.site-captcha-challenge {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.site-captcha-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.35rem;
  border: 1px solid var(--teal-border);
  background: #e8eef4;
}

.site-captcha-refresh {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.35rem;
  background: rgba(31, 79, 89, 0.85);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.site-captcha-refresh:hover {
  background: var(--teal-header);
}

.site-captcha-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-captcha-eq {
  font-family: var(--site-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal-header);
}

.site-captcha-input-wrap .site-input {
  max-width: 7.5rem;
}

.site-contact-submit {
  justify-self: start;
  margin-top: 0.25rem;
}

/* Closing CTA */
.site-cta-band {
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(135deg, #163940 0%, #1f4f59 45%, #2f6f73 100%);
  color: #fff;
  text-align: center;
}

.site-cta-band__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.site-cta-band__title {
  font-family: var(--site-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.site-cta-band__text {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
  background: #122f34;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.site-footer__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer__brand {
  font-family: var(--site-display);
  font-weight: 700;
  color: #fff;
}

.site-footer__logo {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
  padding: 0.28rem 0.45rem;
  background: #fff;
  border-radius: 0.5rem;
}

@media (max-width: 767.98px) {
  .site-hero__receipt {
    width: min(16rem, 58vw);
    right: -1.5rem;
    opacity: 0.55;
  }

  .site-hero__content {
    padding-top: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-hero__grid,
  .site-hero__receipt,
  .site-hero__content {
    animation: none;
  }
}
