:root {
  --bg: #f2eee6;
  --bg-soft: #e9e4d9;
  --bg-card: #faf8f2;
  --border: rgba(22, 28, 23, 0.13);
  --text: #19201b;
  --text-muted: #646a60;
  --accent: #d4452d;
  --accent-2: #b83624;
  --ink: #f8f4ec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(32, 36, 29, 0.14);
}

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.narrow {
  max-width: 860px;
}

.section {
  padding-block: 84px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-lead {
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

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

.btn-sm {
  padding: 10px 14px;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(151, 59, 42, 0.2);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 16px 36px rgba(151, 59, 42, 0.24);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(25, 32, 27, 0.2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(25, 32, 27, 0.34);
  background: rgba(25, 32, 27, 0.035);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 238, 230, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0.02em;
}

.logo-image {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.logo-text {
  font-size: 1.05rem;
}

.logo-sub {
  display: block;
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-footer {
  margin-bottom: 10px;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 92px 78px;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  top: -210px;
  right: -160px;
  width: 600px;
  aspect-ratio: 1;
  border: 1px solid rgba(25, 32, 27, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(25, 32, 27, 0.025), 0 0 0 92px rgba(25, 32, 27, 0.018);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  max-width: 670px;
  font-size: clamp(3.2rem, 7.4vw, 6.7rem);
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.accent-text {
  color: var(--accent);
}

.badge {
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 69, 45, 0.12);
}

.hero-copy .sub {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 500px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.035em;
}

.trust-strip li::before {
  content: "✳";
  margin-right: 9px;
  color: var(--accent);
}

.hero-card {
  position: relative;
}

.card-stack {
  position: relative;
  aspect-ratio: 0.89;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #354b39;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(9, 14, 11, 0.05) 24%, rgba(9, 14, 11, 0.66) 100%), url("https://images.unsplash.com/photo-1523398002811-999ca8dec234?auto=format&fit=crop&w=1200&q=85");
  background-size: cover;
  background-position: center 48%;
  transform: scale(1.01);
  transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.hero-card:hover .hero-image {
  transform: scale(1.06);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-wordmark {
  position: absolute;
  z-index: 1;
  top: 12%;
  left: 9%;
  color: #f6f1e7;
  font: 700 clamp(2.8rem, 6vw, 5rem)/0.83 "Space Grotesk", sans-serif;
  letter-spacing: -0.085em;
  text-shadow: 0 2px 25px rgba(0, 0, 0, 0.14);
}

.hero-wordmark span {
  color: #e15b3c;
}

.floating-note {
  position: absolute;
  z-index: 2;
  right: -24px;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #f3eee4;
  color: #19201b;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  transform: rotate(4deg);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

.note-star {
  color: var(--accent);
  font-size: 1.5rem;
}

.card-label {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  color: #f6f1e7;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.card-label strong {
  font-size: 0.68rem;
  font-family: "Space Grotesk", sans-serif;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
}

.courses {
  background: #e9e4d9;
}

.courses .section-lead {
  max-width: 580px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-header h2 {
  max-width: 680px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
}

.text-link,
.course-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 700;
}

.text-link span,
.course-link span {
  color: var(--accent);
  font-size: 1.05rem;
  transition: transform 0.18s ease;
}

.text-link:hover span,
.course-link:hover span {
  transform: translate(3px, -3px);
}

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

.course-card {
  background: var(--bg-card);
  border: 1px solid rgba(22, 28, 23, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(37, 40, 31, 0.15);
}

.course-media {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background-color: #353e35;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.course-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.course-card:hover .course-media::before {
  transform: scale(1.06);
}

.course-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 16, 0.32), transparent 46%, rgba(14, 20, 16, 0.2));
  pointer-events: none;
}

.start-brand::before {
  background-image: url("https://images.unsplash.com/photo-1551488831-00ddcb6c6bd3?auto=format&fit=crop&w=900&q=82");
}

.garment-design::before {
  background-image: url("https://images.unsplash.com/photo-1598033129183-c4f50c736f10?auto=format&fit=crop&w=900&q=82");
}

.production::before {
  background-image: url("https://images.unsplash.com/photo-1452860606245-08befc0ff44b?auto=format&fit=crop&w=900&q=82");
}

.retail::before {
  background-image: url("https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=900&q=82");
}

.course-index {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 18px;
  color: #fff9ee;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.course-stamp {
  position: absolute;
  z-index: 1;
  right: 17px;
  bottom: 16px;
  display: grid;
  width: 82px;
  height: 82px;
  place-content: center;
  border: 1px solid rgba(255, 249, 238, 0.8);
  border-radius: 50%;
  color: #fff9ee;
  font: 700 0.72rem/1.08 "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  transform: rotate(-9deg);
}

.course-body {
  padding: 23px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.course-body p {
  color: var(--text-muted);
  margin: 0;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 4px 0 6px;
  list-style: none;
}

.meta-list li {
  padding: 7px 10px;
  border-radius: 2px;
  background: rgba(25, 32, 27, 0.04);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding: 0;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 24px;
  list-style: none;
}

.step-number {
  display: inline-block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.outcome-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.outcome-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.highlight-card {
  background: #243c30;
  color: #f7f2e9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.highlight-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #ef8266;
  margin-bottom: 14px;
}

.highlight-card h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.highlight-card p {
  color: rgba(247, 242, 233, 0.72);
}

.faq-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

details {
  border-bottom: 1px solid var(--border);
}

summary {
  position: relative;
  padding: 18px 42px 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 30px 18px 0;
  color: var(--text-muted);
}

.cta-banner {
  background: radial-gradient(circle at 85% 50%, rgba(212, 69, 45, 0.08), transparent 34%), var(--bg-soft);
}

.assurance-strip {
  padding-block: 26px;
  border-top: 1px solid var(--border);
  background: #f8f5ee;
}

.assurance-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.assurance-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.assurance-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(212, 69, 45, 0.24);
  color: var(--accent);
  font-size: 1.1rem;
}

.assurance-item strong,
.assurance-item span:not(.assurance-icon) {
  display: block;
}

.assurance-item strong {
  font-size: 0.82rem;
}

.assurance-item div > span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.course-disclaimer {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.legal-page {
  min-height: 65vh;
}

.legal-hero {
  padding-block: 78px 42px;
  background: var(--bg-soft);
}

.legal-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: -0.07em;
}

.legal-meta {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legal-notice {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(212, 69, 45, 0.07);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legal-content {
  max-width: 820px;
  padding-block: 52px 84px;
}

.legal-content h2 {
  margin: 38px 0 12px;
  font-size: 1.5rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-address {
  font-style: normal;
  line-height: 1.7;
}

.banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--border);
  background: #1e2a21;
  color: #f2eee6;
}

.site-footer .logo-sub,
.site-footer .copy {
  color: rgba(242, 238, 230, 0.6);
}

.site-footer .footer-brand > p {
  max-width: 380px;
  color: rgba(242, 238, 230, 0.68);
}

.site-footer .footer-links a:hover {
  color: #ef8266;
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-weight: 600;
}

.copy {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 7vw, 5rem);
  }

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

  .hero-card {
    order: 0;
  }
}

@media (max-width: 780px) {
  .logo {
    gap: 8px;
  }

  .logo-image {
    width: 38px;
    height: 38px;
  }

  .logo-text {
    font-size: 0.96rem;
  }

  .logo-sub {
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }

  .site-nav a:not(.btn) {
    display: none;
  }

  .header-inner {
    padding-block: 10px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-card {
    width: min(100%, 440px);
    justify-self: center;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 16vw, 6rem);
  }

  .course-grid,
  .process-grid,
  .assurance-inner {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 64px;
  }

  .hero {
    padding-block: 62px 56px;
  }

  .course-media {
    min-height: 250px;
  }

  .course-actions {
    flex-direction: row;
  }

  .banner-inner {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   INVOICE TOOL
   ============================================================ */

.invoice-tool {
  max-width: 920px;
  padding-block: 48px 84px;
}

.invoice-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  margin: 0 0 28px;
}

.form-section-heading {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.seller-block {
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Line items */
.line-item {
  display: grid;
  grid-template-columns: 1fr 80px 120px 100px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.line-item input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
}

.line-item .li-total {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  color: var(--text);
}

.btn-remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.btn-remove:hover {
  color: var(--accent);
}

.btn-add {
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 24px;
}

.btn-add:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Totals */
.totals-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.totals-labels,
.totals-values {
  width: 280px;
}

.totals-labels > div,
.totals-values > div {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.totals-values > div {
  text-align: right;
  font-weight: 600;
}

.totals-labels input {
  width: 54px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.88rem;
  text-align: right;
}

.totals-labels span {
  font-size: 0.82rem;
  margin-left: 4px;
}

.total-bold {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  border-top: 2px solid var(--border);
  padding-top: 10px !important;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* ============================================================
   PRINTABLE INVOICE
   ============================================================ */

.invoice-preview {
  display: none;
  background: #fff;
  color: #19201b;
  border-radius: var(--radius);
  padding: 48px 52px;
  border: 1px solid var(--border);
}

.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.inv-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inv-logo {
  width: 48px;
  height: 48px;
}

.inv-brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.inv-brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.inv-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  margin: 0;
  text-align: right;
  letter-spacing: 0.04em;
}

.inv-meta-table {
  margin-top: 12px;
  margin-left: auto;
  font-size: 0.88rem;
  border-collapse: collapse;
}

.inv-meta-table td {
  padding: 3px 0;
  vertical-align: top;
}

.inv-meta-table td:first-child {
  color: var(--text-muted);
  padding-right: 16px;
}

.inv-meta-table td:last-child {
  font-weight: 600;
}

.inv-whop td {
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

.inv-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.inv-party-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.inv-party-text {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Invoice table */
.inv-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.inv-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-soft);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.inv-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.inv-num {
  text-align: right;
}

.inv-table tfoot td {
  font-size: 0.88rem;
}

.inv-grand td {
  font-weight: 700;
  font-size: 1rem;
  border-top: 2px solid var(--border);
  border-bottom: none;
  padding-top: 14px;
}

/* Notes */
.inv-notes {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.inv-notes-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* Footer */
.inv-footer {
  border-top: 2px solid var(--border);
  padding-top: 20px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.inv-footer a {
  color: var(--accent-2);
  text-decoration: underline;
}

.inv-print-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ============================================================
   PRINT STYLES — invoice only, everything else hidden
   ============================================================ */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .legal-hero,
  .invoice-form-wrap,
  .inv-print-actions,
  #formWrap {
    display: none !important;
  }

  .invoice-preview {
    display: block !important;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
  }

  .inv-table th {
    background: #e9e4d9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .inv-notes {
    background: #e9e4d9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .inv-footer {
    margin-top: 24px;
  }

  .invoice-tool {
    padding: 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 780px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .line-item {
    grid-template-columns: 1fr 60px 90px 80px 30px;
    gap: 4px;
  }

  .inv-header {
    flex-direction: column;
    gap: 20px;
  }

  .inv-title {
    text-align: left;
  }

  .inv-meta-table {
    margin-left: 0;
  }

  .inv-parties {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .invoice-preview {
    padding: 24px 20px;
  }
}