:root {
      --bg: #ffffff;
      --text: #111111;
      --muted: #5f5f5f;
      --line: #d9d9d9;
      --soft: #f7f7f7;
      --accent: #111111;
      --success-bg: #f5f5f5;
      --warning-bg: #fff8e7;
      --warning-border: #d7b14d;
      --danger-bg: #fff1f1;
      --danger-border: #c96a6a;
      --radius: 16px;
      --shadow: 0 12px 40px rgba(0,0,0,0.06);
      --max: 1160px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.5;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    .container {
      width: min(var(--max), calc(100% - 32px));
      margin: 0 auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255,255,255,0.93);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: 70px;
    }

    .brand {
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 18px;
      color: var(--muted);
      font-size: 0.96rem;
    }

    .nav a:hover { color: var(--text); }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 13px 18px;
      border-radius: 999px;
      border: 1px solid var(--text);
      font-weight: 600;
      font-size: 0.97rem;
      cursor: pointer;
      transition: 0.2s ease;
      background: var(--text);
      color: #fff;
    }

    .btn:hover { transform: translateY(-1px); }
    .btn.secondary {
      background: #fff;
      color: var(--text);
    }

    .hero {
      padding: 72px 0 48px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 36px;
      align-items: start;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 11px;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.88rem;
      margin-bottom: 18px;
      background: #fff;
    }

    h1, h2, h3 {
      margin: 0;
      letter-spacing: -0.03em;
      line-height: 1.05;
    }

    h1 {
      font-size: clamp(2.4rem, 5vw, 4.5rem);
      max-width: 13ch;
    }

    .lead {
      margin: 18px 0 0;
      font-size: 1.12rem;
      color: var(--muted);
      max-width: 62ch;
    }

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

    .trust-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 22px;
    }

    .pill {
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.92rem;
      background: #fff;
    }

    .hero-card,
    .card {
      border: 1px solid var(--line);
      border-radius: 24px;
      background: #fff;
      box-shadow: var(--shadow);
    }

    .hero-card {
      padding: 24px;
    }

    .hero-card h3 {
      font-size: 1.12rem;
      margin-bottom: 10px;
    }

    .hero-list {
      display: grid;
      gap: 10px;
      margin-top: 18px;
    }

    .hero-list-item {
      display: grid;
      grid-template-columns: 24px 1fr;
      gap: 12px;
      align-items: start;
      color: var(--muted);
      font-size: 0.98rem;
    }

    .hero-list-item span:first-child {
      width: 24px;
      height: 24px;
      border-radius: 999px;
      border: 1px solid var(--line);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--text);
      font-size: 0.85rem;
      font-weight: 700;
    }

    section {
      padding: 40px 0;
    }

    .section-header {
      max-width: 760px;
      margin-bottom: 24px;
    }

    .section-header h2 {
      font-size: clamp(1.8rem, 3.4vw, 3rem);
      margin-bottom: 12px;
    }

    .section-header p {
      margin: 0;
      color: var(--muted);
      font-size: 1.02rem;
    }

    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .info-card {
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: var(--soft);
    }

    .info-card h3 {
      font-size: 1.15rem;
      margin-bottom: 12px;
    }

    .info-card ul {
      margin: 0;
      padding-left: 20px;
      color: var(--muted);
    }

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

    .step {
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: #fff;
    }

    .step-number {
      display: inline-flex;
      width: 38px;
      height: 38px;
      border-radius: 999px;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--text);
      font-weight: 700;
      margin-bottom: 16px;
    }

    .quote {
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: #fff;
      box-shadow: var(--shadow);
      max-width: 860px;
    }

    .quote p {
      font-size: 1.25rem;
      margin: 0 0 14px;
      line-height: 1.4;
    }

    .quote small {
      color: var(--muted);
      font-size: 0.96rem;
    }

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

    .pricing-card {
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: #fff;
    }

    .pricing-card.featured {
      border-color: var(--text);
    }

    .pricing-card h3 {
      font-size: 1.2rem;
      margin-bottom: 6px;
    }

    .price {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 12px;
    }

    .pricing-card p,
    .pricing-card ul,
    .faq-item p,
    .app-intro p,
    .muted {
      color: var(--muted);
    }

    .pricing-card ul {
      margin: 0;
      padding-left: 20px;
    }

    .faq {
      display: grid;
      gap: 14px;
    }

    .faq-item {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 18px 20px;
      background: #fff;
    }

    .faq-item h3 {
      font-size: 1.02rem;
      margin-bottom: 8px;
    }

    .cta {
      padding: 34px;
      border: 1px solid var(--text);
      border-radius: 28px;
      background: var(--text);
      color: #fff;
      display: grid;
      gap: 16px;
    }

    .cta p { color: rgba(255,255,255,0.78); margin: 0; }

    .site-footer {
      border-top: 1px solid var(--line);
      padding: 28px 0 40px;
      color: var(--muted);
      font-size: 0.94rem;
    }

    /* App section */
    .app-shell {
      background: var(--soft);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .app-wrap {
      padding: 32px 0 56px;
    }

    .app-intro {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 20px;
      align-items: end;
      margin-bottom: 22px;
    }

    .app-intro h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }

    .page {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 28px;
      box-shadow: var(--shadow);
      padding: 24px 24px 36px;
    }

    .invoice-title {
      margin: 0;
      font-size: 2.1rem;
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    .subtitle {
      margin: 8px 0 22px;
      color: var(--muted);
      font-size: 1rem;
    }

    .controls {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 14px;
    }

    .controls button,
    .controls .button-like {
      font: inherit;
      border-radius: 999px;
      border: 1px solid var(--text);
      padding: 10px 14px;
      background: var(--text);
      color: #fff;
      cursor: pointer;
    }

    .controls .secondary {
      background: #fff;
      color: var(--text);
    }

    .hint {
      color: var(--muted);
      font-size: 0.94rem;
      margin-bottom: 18px;
    }

    .app-badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 10px 0 22px;
    }

    .status-badge {
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 0.92rem;
      border: 1px solid var(--line);
      background: #fff;
    }

    .status-badge.warning {
      background: var(--warning-bg);
      border-color: var(--warning-border);
      color: #6b5316;
    }

    .status-badge.danger {
      background: var(--danger-bg);
      border-color: var(--danger-border);
      color: #7b2b2b;
    }

    .status-badge.success {
      background: var(--success-bg);
    }

    .section-block { margin-top: 28px; }
    .section-block h2 {
      margin: 0 0 10px;
      font-size: 1.18rem;
      line-height: 1.2;
    }

    .box {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
      background: #fff;
    }

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

    .col {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
      background: #fff;
    }

    .section-title {
      margin: 0 0 12px;
      font-size: 1rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .field {
      display: grid;
      grid-template-columns: 170px 1fr;
      gap: 10px;
      align-items: center;
      margin: 8px 0;
    }

    .field label {
      font-weight: 600;
      font-size: 0.95rem;
    }

    .field input,
    .field textarea,
    .field select {
      width: 100%;
      font: inherit;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 12px;
      background: #fff;
      color: var(--text);
    }

    textarea {
      min-height: 62px;
      resize: vertical;
    }

    .field-warning input,
    .field-warning textarea,
    .field-warning select {
      border-color: var(--warning-border);
      background: var(--warning-bg);
    }

    .field-danger input,
    .field-danger textarea,
    .field-danger select {
      border-color: var(--danger-border);
      background: var(--danger-bg);
    }

    .field-meta {
      grid-column: 2;
      font-size: 0.88rem;
      color: var(--muted);
      margin-top: -2px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 8px;
    }

    th, td {
      border: 1px solid var(--line);
      padding: 8px;
      vertical-align: top;
      text-align: left;
      font-size: 0.95rem;
    }

    th {
      background: #fafafa;
      font-weight: 700;
    }

    .lines-table input,
    .lines-table textarea {
      width: 100%;
      border: 0;
      padding: 4px;
      font: inherit;
      background: transparent;
      color: inherit;
    }

    .lines-table textarea {
      min-height: 52px;
      resize: vertical;
    }

    .num { text-align: right; white-space: nowrap; }

    .summary-grid {
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      gap: 18px;
      align-items: start;
    }

    .small {
      font-size: 0.92rem;
      color: var(--muted);
      margin-top: 14px;
    }

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

    .suggestion-item {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px;
      background: #fff;
      display: grid;
      gap: 10px;
    }

    .suggestion-item h3 {
      font-size: 1rem;
      line-height: 1.2;
    }

    .suggestion-item p {
      margin: 0;
      color: var(--muted);
      font-size: 0.94rem;
    }

    .helper-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    details summary {
      cursor: pointer;
      font-weight: 600;
    }

    @media (max-width: 1040px) {
      .hero-grid,
      .two-col,
      .steps,
      .pricing-grid,
      .summary-grid,
      .two-cols,
      .app-intro {
        grid-template-columns: 1fr;
      }

      .nav {
        display: none;
      }
    }

    @media (max-width: 760px) {
      .page { padding: 18px 16px 28px; }
      .field { grid-template-columns: 1fr; }
      .field-meta { grid-column: 1; }
      th, td { font-size: 0.88rem; }
      .container { width: min(var(--max), calc(100% - 20px)); }
      .hero { padding-top: 48px; }
    }

    @media print {
      .site-header,
      .hero,
      .problem-solution,
      .steps-section,
      .quote-section,
      .pricing-section,
      .faq-section,
      .cta-section,
      .site-footer,
      .app-intro,
      .controls,
      .hint,
      .app-badge-row,
      .suggestions,
      .no-print {
        display: none !important;
      }

      body { background: #fff; }
      .app-shell { border: 0; background: #fff; }
      .app-wrap { padding: 0; }
      .page { box-shadow: none; border: 0; padding: 0; }
      input, textarea, select { border: 0 !important; padding: 0 !important; appearance: none; background: transparent !important; }
    }