@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Bold.ttf") format("truetype"); font-style: normal; font-weight: 700 900; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #17213a;
  --muted: #687085;
  --orange: #ff6842;
  --orange-dark: #ed5330;
  --cream: #fffaf4;
  --peach: #fff0e5;
  --line: #e8e3dc;
  --white: #fff;
  --green: #17875b;
  --yellow: #ae7511;
  --shadow: 0 18px 60px rgba(23, 33, 58, .11);
}

html[data-theme="dark"] { color-scheme: dark; --cream: #101521; --muted: #a9b1c2; --line: #31394b; --shadow: 0 18px 60px rgba(0, 0, 0, .28); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: auto; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -.7px; }
.brand i { color: var(--orange); font-style: normal; margin-left: -7px; }
.brand-tagline { margin-left: 10px; padding-left: 17px; border-left: 1px solid #ded9d2; color: #7a8090; font: 500 10px/1.35 "DM Sans", sans-serif; letter-spacing: 0; white-space: nowrap; }
.brand-tagline em { color: var(--orange); font: inherit; font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.nav-link { border: 0; background: none; color: var(--ink); cursor: pointer; padding: 8px 2px; }
.nav-link:hover { color: var(--orange); }
.theme-toggle { width: 46px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.theme-track { position: relative; width: 44px; height: 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; border: 1px solid #ddd8d0; border-radius: 15px; background: #eeeae4; transition: background .2s, border-color .2s; }
.theme-glyph { position: relative; z-index: 2; display: grid; place-items: center; font-size: 11px; line-height: 1; transition: color .2s; }
.theme-sun { color: var(--orange); }.theme-moon { color: #858b98; font-size: 13px; }
.theme-thumb { position: absolute; z-index: 1; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(23,33,58,.16); transition: transform .22s ease, background .2s; }
html[data-theme="dark"] .theme-track { border-color: #3d465a; background: #222a3a; }
html[data-theme="dark"] .theme-thumb { transform: translateX(20px); background: #465169; }
html[data-theme="dark"] .theme-sun { color: #7e8799; }
html[data-theme="dark"] .theme-moon { color: #fff; }
.button { border: 0; border-radius: 9px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 21px; font-weight: 700; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 0 17px; font-size: 13px; }
.button-dark { color: #fff; background: var(--ink); box-shadow: 0 6px 15px rgba(23,33,58,.15); }
.button-dark:hover { background: #26324e; }
.button-primary { background: var(--orange); color: white; box-shadow: 0 8px 18px rgba(255,104,66,.24); }
.button-primary:hover { background: var(--orange-dark); box-shadow: 0 10px 22px rgba(255,104,66,.3); }
.button-primary.is-success { background: var(--green); box-shadow: 0 8px 18px rgba(23,135,91,.23); }
.button[aria-busy="true"] { cursor: wait; opacity: .82; }
.button-ghost { background: white; color: var(--ink); border: 1px solid var(--line); }

.hero { text-align: center; padding: 64px 24px 53px; background: radial-gradient(circle at 10% 25%, rgba(255,104,66,.06), transparent 23%), radial-gradient(circle at 88% 15%, rgba(255,104,66,.08), transparent 20%); }
.eyebrow, .section-kicker { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow span { width: 22px; height: 2px; background: var(--orange); }
.hero h1 { max-width: 800px; margin: 20px auto 13px; font-size: clamp(42px, 6vw, 68px); line-height: 1.03; letter-spacing: -3.5px; }
.hero h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 500; }
.hero > p { color: var(--muted); margin: 0; font-size: 17px; }
.trust-row { display: flex; justify-content: center; gap: 30px; margin-top: 26px; color: #4d566a; font-size: 12px; }
.trust-row b { margin-right: 6px; color: var(--orange); font-size: 13px; font-weight: 800; }
.privacy-strip { min-height: 52px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; padding: 10px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; text-align: center; }
.privacy-strip > span:first-child { margin-right: 3px; color: var(--green); font-size: 8px; }
.privacy-strip b { color: var(--ink); }
.invoice-page .builder-shell { margin-top: 42px; }

.builder-shell { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(390px, .93fr); margin: 0 auto 80px; padding: 0 28px; filter: drop-shadow(0 22px 40px rgba(23,33,58,.08)); }
.builder-card { position: relative; z-index: 2; min-height: 690px; padding: 41px 45px 27px; background: white; border-radius: 15px 0 0 15px; }
.builder-head { display: flex; align-items: flex-start; justify-content: space-between; }
.builder-head h1 { margin: 7px 0 0; font-size: 28px; line-height: 1.2; letter-spacing: -1px; }
.step-count { width: 52px; height: 32px; display: flex; align-items: center; justify-content: center; gap: 3px; background: var(--peach); color: var(--muted); border-radius: 20px; font-size: 12px; white-space: nowrap; }
.step-count b { color: var(--orange); }
.progress-track { width: 100%; height: 3px; overflow: hidden; margin: 24px 0 32px; background: #f0ede8; }
.progress-track span { display: block; height: 100%; width: 25%; background: var(--orange); transition: width .28s ease; }
.form-step { display: none; min-height: 408px; animation: formIn .25s ease; }
.form-step.is-active { display: block; }
@keyframes formIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.form-grid.three-up { grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; margin-top: 18px; }
.field > span, .items-heading { color: #343d51; font-size: 11px; font-weight: 700; }
.field i { margin-left: 5px; color: var(--orange); font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .7px; }
.field small { color: #9a9eaa; font-size: 9px; font-weight: 500; }
.field input, .field textarea, .field select, .line-item input { width: 100%; border: 1px solid #ddd9d3; border-radius: 7px; background: #fff; color: var(--ink); outline: 0; transition: border .16s, box-shadow .16s; }
.field input, .field select, .line-item input { height: 47px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus, .line-item input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,104,66,.1); }
::placeholder { color: #afb2bb; opacity: 1; }
.check-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 23px; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; }
.fake-check { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; margin-top: 1px; border: 1px solid #d6d2cb; border-radius: 5px; color: transparent; font-size: 11px; transition: .16s; }
.check-row input:checked + .fake-check { background: var(--orange); border-color: var(--orange); color: white; }
.check-row > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.check-row b { font-size: 12px; }
.check-row small { color: #8a8f9c; font-size: 10px; }
.form-actions { display: flex; justify-content: center; gap: 10px; padding-top: 8px; }
.form-actions .button-ghost { margin-right: 0; }
.clear-form { display: block; margin: 16px auto 0; padding: 0; border: 0; background: none; color: #9b9faa; font-size: 9px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.clear-form:hover { color: var(--orange); }
.form-privacy { margin: 13px 0 0; padding-top: 8px; color: #969aa4; font-size: 9px; text-align: center; }
.download-status { min-height: 14px; margin: 5px 0 0; color: var(--green); font-size: 9px; font-weight: 700; text-align: center; }
.items-heading, .line-item { display: grid; grid-template-columns: minmax(170px, 1fr) 58px 105px 28px; gap: 9px; align-items: center; }
.items-heading { padding: 0 4px 6px; color: #838895; }
.line-item { margin-bottom: 10px; }
.line-item input { padding: 0 10px; }
.money-input, .suffix-input { display: flex; align-items: center; position: relative; }
.money-input { display: grid; grid-template-columns: auto minmax(0, 1fr); overflow: hidden; height: 47px; border: 1px solid #ddd9d3; border-radius: 7px; background: #fff; transition: border .16s, box-shadow .16s; }
.money-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,104,66,.1); }
.money-input b { padding-left: 9px; color: #7a8090; font-size: 10px; white-space: pre; }
.money-input input { min-width: 0; height: 45px; padding: 0 9px 0 6px; border: 0 !important; box-shadow: none !important; }
.suffix-input b { position: absolute; right: 13px; color: #7a8090; }
.suffix-input input { padding-right: 30px; }
.remove-item { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; background: #f8f5f1; color: #9195a0; font-size: 19px; cursor: pointer; }
.remove-item:hover { background: #ffe8df; color: var(--orange); }
.add-item { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--orange); font-size: 11px; font-weight: 700; cursor: pointer; }
.add-item span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #ffc8b8; border-radius: 50%; }
.totals-fields { display: flex; justify-content: flex-end; margin-top: 31px; padding-top: 22px; border-top: 1px solid var(--line); }
.totals-fields .compact-field { width: min(190px, 100%); }
.mobile-label { display: none; }
.ready-note { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding: 13px 15px; border-radius: 8px; background: #fff7e8; }
.ready-note > span { font-size: 20px; }
.ready-note div { display: flex; flex-direction: column; gap: 2px; }
.ready-note b { font-size: 11px; }
.ready-note small { color: #777d8b; font-size: 9px; }

.preview-panel { padding: 30px 37px; background: #f1ede6; border-radius: 0 15px 15px 0; }
.preview-label { height: 25px; display: flex; justify-content: space-between; align-items: flex-start; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.preview-label b { display: flex; align-items: center; gap: 5px; color: #878b96; font-size: 7px; letter-spacing: 0; text-transform: none; }
.preview-label i { width: 5px; height: 5px; background: #3abc7b; border-radius: 50%; box-shadow: 0 0 0 3px rgba(58,188,123,.13); }
.invoice-paper { position: relative; aspect-ratio: 1 / 1.31; overflow: hidden; padding: 33px 34px 25px; background: white; box-shadow: 0 10px 34px rgba(34,35,38,.13); color: #202942; }
.paper-topline { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--ink); }
.paper-header { display: flex; justify-content: space-between; align-items: flex-start; }
.paper-brand { display: block; }
.paper-brand div, .paper-title { display: flex; flex-direction: column; }
.paper-brand b { font-size: 6.5px; letter-spacing: .6px; }
.paper-brand b span { color: var(--orange); }
.paper-brand small { color: #89909e; font-size: 5px; }
.paper-title { align-items: flex-end; gap: 4px; }
.paper-title strong { font-size: 22px; font-weight: 800; letter-spacing: -.7px; }
.paper-title small { font-size: 6.5px; font-weight: 700; }
.paper-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 32px; }
.paper-parties > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.paper-parties label, .paper-dates label { color: #989da7; font-size: 5.5px; font-weight: 800; letter-spacing: .7px; }
.paper-parties b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.paper-parties span, .paper-parties small { color: #6d7483; font-size: 6px; white-space: pre-line; }
.paper-dates { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 25px; padding: 11px 13px; border-radius: 5px; background: #fff5ea; }
.paper-dates > div { display: flex; flex-direction: column; gap: 4px; }
.paper-dates b { font-size: 7.5px; }
.paper-dates .accent { color: var(--orange); font-size: 9px; }
.paper-table { margin-top: 22px; }
.paper-row { display: grid; grid-template-columns: 1fr 36px 65px 65px; align-items: start; gap: 7px; min-height: 31px; padding: 10px 7px; border-bottom: 1px solid #ece9e5; font-size: 6.5px; }
.paper-row span:not(:first-child), .paper-row b { text-align: right; }
.paper-row.table-head { min-height: auto; padding: 7px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; font-size: 5.5px; font-weight: 700; }
.paper-totals { width: 48%; margin: 15px 0 0 auto; }
.paper-totals > div { display: flex; justify-content: space-between; padding: 4px 7px; color: #737988; font-size: 6.5px; }
.paper-totals i { font-style: normal; }
.paper-totals .grand-total { align-items: center; margin-top: 5px; padding: 9px 8px; border-radius: 4px; background: var(--ink); color: white; font-weight: 700; }
.paper-totals .grand-total b { font-size: 9px; }
.paper-extras { position: absolute; left: 34px; right: 46%; bottom: 27px; display: grid; gap: 10px; }
.paper-extra { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.paper-extra label { color: var(--ink); font-size: 5.5px; font-weight: 800; letter-spacing: .45px; }
.paper-extra span { display: -webkit-box; overflow: hidden; color: #737988; font-size: 5.5px; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.paper-stamp { position: absolute; right: 24px; bottom: 15px; color: #aaaeb7; font-size: 5.5px; }
.pdf-note { margin: 16px 0 0; text-align: center; color: #888d98; font-size: 8px; }

.privacy-promise { max-width: 1184px; min-height: 142px; display: flex; align-items: center; justify-content: center; gap: 22px; margin: 0 auto 78px; padding: 30px 40px; border-radius: 14px; background: var(--ink); color: white; box-shadow: 0 15px 36px rgba(23,33,58,.15); }
.privacy-icon { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.09); color: #62d09e; font-size: 24px; }
.privacy-promise h2 { margin: 0 0 6px; font-size: 21px; }
.privacy-promise p { max-width: 680px; margin: 0; color: #bdc2cd; font-size: 12px; line-height: 1.55; }
.site-footer { max-width: 1240px; display: flex; justify-content: space-between; margin: auto; padding: 25px 28px 35px; border-top: 1px solid var(--line); color: #999da6; font-size: 10px; }

.about-main { overflow: hidden; }
.about-hero { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 54px 24px 60px; }
.about-hero > p { margin-top: 18px; }
.about-cta { margin-top: 28px; }
.about-story { max-width: 1128px; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin: 0 auto; padding: 90px 28px 70px; border-top: 1px solid var(--line); }
.about-story h1 { margin: 10px 0 0; font-size: 38px; line-height: 1.12; letter-spacing: -1.8px; }
.about-story-copy { padding-top: 18px; }
.about-story-copy p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.about-principles { max-width: 1128px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0 auto 32px; padding: 0 28px; }
.about-principles article { min-height: 210px; padding: 27px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.about-principles article > span { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.about-principles h2 { margin: 38px 0 8px; font-size: 17px; }
.about-principles p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

html[data-theme="dark"] body { background: var(--cream); color: #edf0f6; }
html[data-theme="dark"] .brand-tagline { border-color: #343d50; color: #9ba4b7; }
html[data-theme="dark"] .nav-link { color: #edf0f6; }
html[data-theme="dark"] .button-dark { border: 1px solid #3b465c; background: #263149; }
html[data-theme="dark"] .button-ghost { border-color: var(--line); background: #202838; color: #edf0f6; }
html[data-theme="dark"] .hero { background: radial-gradient(circle at 10% 25%, rgba(255,104,66,.08), transparent 23%), radial-gradient(circle at 88% 15%, rgba(255,104,66,.08), transparent 20%); }
html[data-theme="dark"] .trust-row { color: #bbc2cf; }
html[data-theme="dark"] .builder-card,
html[data-theme="dark"] .about-principles article { background: #171e2c; }
html[data-theme="dark"] .progress-track { background: #30384a; }
html[data-theme="dark"] .step-count { background: rgba(255,104,66,.12); color: #aeb6c5; }
html[data-theme="dark"] .field > span,
html[data-theme="dark"] .items-heading { color: #dce1eb; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .line-item input { border-color: #394256; background: #111827; color: #edf0f6; }
html[data-theme="dark"] .money-input { border-color: #394256; background: #111827; }
html[data-theme="dark"] ::placeholder { color: #717b8e; }
html[data-theme="dark"] .fake-check { border-color: #4a5366; }
html[data-theme="dark"] .remove-item { background: #252d3e; color: #aeb6c5; }
html[data-theme="dark"] .ready-note { background: rgba(255,185,62,.08); }
html[data-theme="dark"] .preview-panel { background: #0c111b; }
html[data-theme="dark"] .preview-label { color: #d6dbe5; }
html[data-theme="dark"] .privacy-strip { border-color: var(--line); }
html[data-theme="dark"] .privacy-strip b { color: #edf0f6; }
html[data-theme="dark"] .privacy-promise { border: 1px solid #313a4c; background: #0b111e; }
html[data-theme="dark"] .about-story { border-color: var(--line); }
html[data-theme="dark"] .site-footer { border-color: var(--line); color: #8e97a8; }

/* The preview represents white paper, regardless of the surrounding app theme. */
html[data-theme="dark"] .invoice-paper { color-scheme: light; color: #202942; }
html[data-theme="dark"] .invoice-paper .paper-topline,
html[data-theme="dark"] .invoice-paper .table-head,
html[data-theme="dark"] .invoice-paper .grand-total { background: #17213a; }
html[data-theme="dark"] .invoice-paper .paper-extra label { color: #17213a; }

@media (max-width: 1000px) {
  .brand-tagline { display: none; }
  .builder-shell { grid-template-columns: 1fr; max-width: 760px; }
  .builder-card { border-radius: 15px 15px 0 0; }
  .preview-panel { border-radius: 0 0 15px 15px; padding: 35px 80px; }
  .privacy-promise { margin-left: 28px; margin-right: 28px; }
}

@media (max-width: 700px) {
  .site-header { height: 68px; padding: 0 18px; }.brand { font-size: 18px; }
  .nav-actions { gap: 10px; }.nav-actions .button { display: none; }
  .hero { padding: 48px 18px 38px; }.hero h1 { font-size: 42px; letter-spacing: -2.4px; }.hero h1 br { display: none; }.hero > p { font-size: 14px; line-height: 1.5; }
  .privacy-strip { min-height: 58px; padding-inline: 18px; line-height: 1.4; }
  .invoice-page .builder-shell { margin-top: 24px; }
  .trust-row { flex-wrap: wrap; gap: 9px 18px; }
  .builder-shell { padding: 0 12px; margin-bottom: 45px; filter: none; }
  .builder-card { min-height: 650px; padding: 30px 20px 22px; box-shadow: 0 10px 30px rgba(23,33,58,.08); }
  .builder-head h1 { font-size: 23px; }.form-step { min-height: 430px; }
  .form-grid, .form-grid.three-up { grid-template-columns: 1fr; gap: 15px; }.field-full { margin-top: 15px; }
  .items-heading { display: none; }.line-item { grid-template-columns: 1fr 70px 1fr 28px; align-items: end; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
  .line-item > label:first-child { grid-column: 1 / -1; }.mobile-label { display: block; margin: 0 0 5px; color: #838895; font-size: 9px; font-weight: 700; }
  .totals-fields { margin-top: 22px; }.form-actions .button { padding: 0 15px; font-size: 12px; }
  .preview-panel { padding: 26px 18px; }.invoice-paper { padding: 28px 25px 20px; }.paper-parties { margin-top: 25px; }.paper-table { margin-top: 18px; }.paper-extras { left: 25px; }
  .privacy-promise { align-items: flex-start; margin: 0 12px 45px; padding: 28px 24px; }
  .site-footer { flex-direction: column; gap: 7px; padding: 22px 18px; }
  .about-hero { min-height: 340px; padding: 48px 18px; }.about-story { grid-template-columns: 1fr; gap: 25px; padding: 65px 22px 50px; }.about-story h1 { font-size: 30px; }.about-story-copy { padding-top: 0; }.about-principles { grid-template-columns: 1fr; margin-bottom: 28px; padding: 0 14px; }.about-principles article { min-height: 175px; }.about-principles h2 { margin-top: 25px; }
}
