:root {
  --ink: #1c1812;
  --muted: #6e6256;
  --paper: #f7efe2;
  --paper-2: #fff8ee;
  --line: rgba(55, 42, 26, .16);
  --line-strong: rgba(55, 42, 26, .28);
  --accent: #e85d2a;
  --accent-2: #1f6f5b;
  --gold: #d8a446;
  --danger: #a4342a;
  --shadow: 0 24px 80px rgba(70, 42, 16, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(232, 93, 42, .16), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(31, 111, 91, .18), transparent 26rem),
    linear-gradient(180deg, var(--paper), #f2e2cc 58%, #ead6ba);
  font-family: Manrope, sans-serif;
  min-height: 100vh;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 239, 226, .82);
  backdrop-filter: blur(18px);
}

.brand, .nav-links { display: flex; align-items: center; gap: 18px; }
.brand { font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--gold);
}
.nav-links { font-size: 14px; color: var(--muted); }
.nav-links a:hover, .nav-cta { color: var(--ink); font-weight: 800; }
.mobile-menu { display: none; }

.section-pad { padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .72fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -.055em; line-height: .98; }
h1, h2 { font-family: "DM Serif Display", serif; font-weight: 400; }
h1 { max-width: 1050px; font-size: clamp(50px, 7.8vw, 112px); }
h2 { font-size: clamp(42px, 6vw, 84px); }
h3 { font-size: 28px; letter-spacing: -.04em; }
h4 { font-size: 20px; letter-spacing: -.04em; }
.hero-sub {
  max-width: 800px;
  margin: 28px 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}
.hero-actions, .form-actions, .history-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font: 800 14px Manrope, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { color: #fff; background: var(--ink); box-shadow: 6px 6px 0 var(--accent); }
.ghost { background: transparent; }
.soft { color: var(--ink); background: var(--paper-2); }
.big { min-height: 60px; padding-inline: 30px; }
.mini { min-height: 38px; padding-inline: 14px; font-size: 12px; }
.danger { color: var(--danger); border-color: rgba(164, 52, 42, .45); }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 238, .6);
  color: var(--muted);
  font-size: 14px;
}
.hero-card, .pitch-card, .invoice-form-panel, .preview-panel, .history-panel, .feature-grid article, .page-card {
  border: 1px solid rgba(55, 42, 26, .2);
  background: rgba(255, 248, 238, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero-card { padding: 28px; border-radius: 34px; transform: rotate(1.5deg); }
.card-topline { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.card-topline span, .metric-grid span { color: var(--muted); }
.card-topline strong { font-size: 38px; letter-spacing: -.05em; }
.metric-grid, .overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.metric-grid div, .overview-grid div { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2); }
.metric-grid strong, .overview-grid strong { display: block; margin-top: 8px; font-size: 24px; }
.pulse-note { margin-top: 18px; padding: 16px; border-radius: 18px; background: rgba(31, 111, 91, .11); color: #174b3f; line-height: 1.5; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 7px rgba(31, 111, 91, .15); margin-right: 9px; }
.problem { display: grid; grid-template-columns: .8fr 1fr; gap: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-list p { margin: 0 0 18px; color: var(--muted); font-size: 22px; line-height: 1.6; }
.section-heading { max-width: 900px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow), .page-card p, .page-card li { color: var(--muted); font-size: 18px; line-height: 1.7; }
.narrow { max-width: 720px; }
.overview-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.overview-grid span { color: var(--muted); }
.workspace-grid { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(300px, 1.05fr); gap: 22px; align-items: start; }
.invoice-form-panel, .preview-panel, .history-panel, .page-card { border-radius: 30px; padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.invoice-form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--ink);
  background: rgba(255,255,255,.68);
  font: 600 16px Manrope, sans-serif;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(31, 111, 91, .12); }
textarea { min-height: 86px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.invoice-preview { min-height: 520px; border-radius: 24px; padding: 22px; background: #fffaf2; border: 1px solid var(--line); }
.invoice-title { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 20px; }
.invoice-title h3 { font-size: 34px; }
.preview-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--line); gap: 18px; }
.preview-row span { color: var(--muted); }
.preview-row strong { text-align: right; }
.total-row { margin-top: 20px; padding: 18px; border-radius: 20px; color: white; background: var(--ink); }
.reminder { margin-top: 20px; padding: 18px; border-radius: 20px; background: #f1eadb; color: #473c31; line-height: 1.65; }
.history-panel { margin-top: 22px; }
.history-list { display: grid; gap: 14px; }
.history-item { display: flex; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,250,242,.7); }
.history-item p { color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.status-pill { display: inline-flex; margin-bottom: 9px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; background: #efe5d5; color: var(--muted); }
.status-pill.paid { background: rgba(31,111,91,.14); color: var(--accent-2); }
.status-pill.overdue { background: rgba(164,52,42,.13); color: var(--danger); }
.empty-state { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid article { border-radius: 28px; padding: 24px; min-height: 240px; }
.feature-grid span { color: var(--accent); font-weight: 900; }
.feature-grid p { color: var(--muted); line-height: 1.65; }
.pitch-card { max-width: 980px; margin: auto; border-radius: 38px; padding: clamp(28px, 5vw, 56px); }
.pitch-card p, .pitch-card li { color: var(--muted); font-size: 18px; line-height: 1.75; }
.pitch-card strong { color: var(--ink); }
.waitlist { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); }
.waitlist p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.footer { display: flex; justify-content: space-between; gap: 18px; padding: 28px clamp(18px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); }
.footer a { text-decoration: underline; text-decoration-color: rgba(110, 98, 86, .3); }
.page-hero { max-width: 980px; }
.page-card { max-width: 980px; margin-top: 28px; }
.page-card h2 { font-size: clamp(34px, 4vw, 56px); margin-top: 28px; }
.page-card ul { padding-left: 22px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.contact-tile { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2); }
@media (max-width: 1040px) {
  .overview-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .mobile-menu { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 9px 14px; background: transparent; font-weight: 800; }
  .nav-links { display: none; position: absolute; top: 78px; left: 18px; right: 18px; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero, .problem, .workspace-grid, .feature-grid, .overview-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .waitlist, .footer, .history-item { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .two-col, .metric-grid { grid-template-columns: 1fr; }
  h1 { font-size: 48px; }
  .preview-row { flex-direction: column; gap: 5px; }
  .preview-row strong { text-align: left; }
}
