:root {
  --ink: #17202a;
  --muted: #5b6876;
  --paper: #f7f7f2;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #d99322;
  --rose: #b63d53;
  --line: #d9dfdf;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(23, 32, 42, 0.88);
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.16);
  backdrop-filter: blur(12px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.88;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  overflow: hidden;
  color: var(--white);
  background: #101820;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-einvoice.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 17, 23, 0.9) 0%, rgba(11, 17, 23, 0.72) 46%, rgba(11, 17, 23, 0.28) 100%),
    linear-gradient(0deg, rgba(11, 17, 23, 0.42), rgba(11, 17, 23, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 84px) clamp(44px, 8vh, 84px);
}

.eyebrow {
  margin: 0 0 16px;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.dark-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 34px 0 0;
}

.trust-row div {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 12px;
}

.trust-row dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.trust-row dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.section {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 82px;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.two-column,
.request-layout,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.intro-band {
  background: var(--white);
  padding-top: clamp(34px, 4vw, 58px);
}

.process-band {
  background: #eef4f3;
}

.pricing-band {
  background: var(--paper);
}

.request-band {
  background: #ffffff;
}

.legal-band {
  background: #eef4f3;
}

.text-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-stack p,
.request-copy,
.plan-copy,
.step p {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 34px;
}

.steps-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step,
.price-card,
.request-form,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.step {
  min-height: 226px;
  padding: 28px;
}

.step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.step p,
.plan-copy,
.request-copy {
  color: var(--muted);
}

.price-card {
  display: grid;
  min-height: 330px;
  align-content: start;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.05);
}

.price-card.featured {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: var(--shadow);
}

.plan {
  margin-bottom: 12px;
  color: var(--teal);
  font-weight: 800;
}

.price {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.button-card {
  align-self: end;
  margin-top: 28px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.price-card.featured .button-card {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.request-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
legend {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfc;
  font: inherit;
}

textarea {
  resize: vertical;
}

.file-upload {
  position: relative;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.file-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fbfcfc;
}

.file-button {
  flex: 0 0 auto;
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.file-control:focus-within,
.file-upload:focus-within .file-control {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  outline-offset: 2px;
}

.file-upload:hover .file-button {
  background: var(--teal-dark);
}

.file-upload input[type="file"] {
  cursor: pointer;
}

.file-hint,
.file-summary {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.file-summary {
  min-width: 0;
  color: var(--teal-dark);
  overflow-wrap: anywhere;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.choice input {
  width: auto;
  margin: 0;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
}

.consent input {
  width: auto;
  margin: 3px 0 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 5px solid var(--amber);
  padding: 16px 18px;
  background: #fff8ea;
}

.estimate span {
  color: var(--muted);
  font-weight: 800;
}

.estimate strong {
  font-size: 1.35rem;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.form-status.error {
  color: var(--rose);
}

.form-status.success {
  color: var(--teal-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.legal-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--muted);
}

.legal-card p {
  margin: 0;
}

.legal-card strong {
  color: var(--ink);
}

.legal-card a {
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding-top: 14px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-content {
    margin-bottom: 36px;
  }

  .trust-row,
  .steps-grid,
  .pricing-grid,
  .two-column,
  .request-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .trust-row {
    gap: 8px;
  }

  .step,
  .price-card {
    min-height: auto;
  }

  .estimate,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .brand {
    max-width: 220px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .trust-row dd {
    font-size: 0.9rem;
  }
}
