/* Nota design system — ink, paper, copper. Plain CSS. */

[hidden] {
  display: none !important;
}

:root {
  --sp-ink: #0b1f33;
  --sp-paper: #f4efe6;
  --sp-copper: #c47a3a;
  --sp-chalk: #e8e1d5;
  --sp-cream: #faf6ee;
  --sp-bg: #f4efe6;
  --sp-surface: #faf6ee;
  --sp-muted: #5c6b7a;
  --sp-subtle: #7a8694;
  --sp-line: #d6cbb8;
  --sp-line-soft: #ebe3d4;
  --sp-accent: #c47a3a;
  --sp-accent-hover: #a8642c;
  --sp-accent-soft: #f3e4d2;
  --sp-paid: #2f5d3a;
  --sp-paid-soft: #e4ede4;
  --sp-overdue: #9a4a2a;
  --sp-overdue-soft: #f6e6dc;
  --sp-draft: #4a5560;
  --sp-draft-soft: #e8e1d5;
  --sp-danger: #9b2c2c;
  --sp-danger-soft: #f8e8e6;
  --sp-shadow: 0 1px 0 rgba(11, 31, 51, 0.06);
  --sp-shadow-lg: 0 24px 48px -28px rgba(11, 31, 51, 0.45);
  --sp-radius: 4px;
  --sp-radius-sm: 3px;
  --sp-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sp-sans: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--sp-paper);
  color: var(--sp-ink);
  font-family: var(--sp-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.055;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

* {
  box-sizing: border-box;
}

.sp-page {
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 8% -10%, rgba(196, 122, 58, 0.08), transparent 50%),
    var(--sp-paper);
  color: var(--sp-ink);
}

.sp-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sp-ink);
}

.sp-logo-word {
  font-family: var(--sp-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sp-logo-mark,
.sp-logo-mark-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--sp-ink);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.12);
}

.sp-logo-mark {
  display: grid;
  place-items: center;
  color: var(--sp-paper);
  font-family: var(--sp-serif);
  font-size: 16px;
}

.sp-btn,
.sp-btn-primary,
.sp-btn-secondary,
.sp-btn-ghost,
.sp-btn-danger,
.sp-btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--sp-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.sp-btn-primary {
  background: var(--sp-ink);
  color: var(--sp-paper);
}

.sp-btn-primary:hover {
  background: #16324d;
}

.sp-btn-secondary {
  background: transparent;
  color: var(--sp-ink);
  border-color: var(--sp-line);
}

.sp-btn-secondary:hover {
  background: var(--sp-chalk);
}

.sp-btn-ghost {
  background: transparent;
  color: var(--sp-muted);
}

.sp-btn-ghost:hover {
  background: var(--sp-chalk);
  color: var(--sp-ink);
}

.sp-btn-danger {
  background: var(--sp-danger);
  color: #fff;
}

.sp-btn-google {
  width: 100%;
  background: var(--sp-cream);
  color: var(--sp-ink);
  border-color: var(--sp-line);
}

.sp-btn-google:hover {
  border-color: var(--sp-copper);
}

.sp-btn:disabled,
.sp-btn-primary:disabled,
.sp-btn-secondary:disabled,
.sp-btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sp-btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.sp-btn-lg {
  min-height: 48px;
  padding: 0 20px;
}

.sp-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
}

.sp-input,
.sp-select,
.sp-textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  background: #fffdf8;
  color: var(--sp-ink);
  box-shadow: inset 0 1px 0 rgba(11, 31, 51, 0.03);
}

.sp-textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
}

.sp-input:focus,
.sp-select:focus,
.sp-textarea:focus {
  outline: none;
  border-color: var(--sp-copper);
  box-shadow: 0 0 0 3px rgba(196, 122, 58, 0.18);
}

.sp-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-ink);
}

.sp-field {
  display: flex;
  flex-direction: column;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.sp-badge-draft {
  background: var(--sp-draft-soft);
  color: var(--sp-draft);
}
.sp-badge-sent {
  background: var(--sp-accent-soft);
  color: #8a4f1f;
}
.sp-badge-paid {
  background: var(--sp-paid-soft);
  color: var(--sp-paid);
}
.sp-badge-overdue {
  background: var(--sp-overdue-soft);
  color: var(--sp-overdue);
}

.sp-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  background: rgba(244, 239, 230, 0.88);
  border-bottom: 1px solid var(--sp-line);
  backdrop-filter: blur(12px);
}

.sp-site-header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-muted);
}

.sp-kicker {
  margin: 0;
  font-family: var(--sp-serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  color: var(--sp-copper);
}

.sp-h1,
.sp-h2 {
  font-family: var(--sp-serif);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sp-h1 {
  margin: 14px 0 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
}

.sp-h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.sp-lead {
  margin: 20px 0 0;
  max-width: 34rem;
  font-size: 18px;
  line-height: 1.6;
  color: var(--sp-muted);
}

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

.sp-caption {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--sp-subtle);
}

.sp-section {
  padding: 80px 0;
}

.sp-price {
  margin: 8px 0 0;
  font-family: var(--sp-serif);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sp-price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--sp-muted);
}

.sp-cta {
  background: var(--sp-ink);
  color: var(--sp-paper);
  border-radius: 6px;
  padding: 56px 40px;
}

.sp-cta .sp-h2 {
  color: var(--sp-paper);
  margin: 0;
}

.sp-cta p {
  max-width: 420px;
  color: #c9c0b2;
}

.sp-cta .sp-btn-primary {
  margin-top: 20px;
  background: var(--sp-copper);
  color: var(--sp-paper);
}

.sp-cta .sp-btn-primary:hover {
  background: #d38b4c;
}

.sp-footer {
  border-top: 1px solid var(--sp-line);
  padding: 48px 0 64px;
}

.sp-footer-grid {
  display: grid;
  gap: 32px;
}

.sp-shell {
  display: flex;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.03), transparent 180px),
    var(--sp-paper);
}

.sp-sidebar,
.nota-rail {
  display: none;
  width: 252px;
  flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(196, 122, 58, 0.08), transparent 140px),
    var(--sp-ink);
  color: var(--sp-paper);
  flex-direction: column;
  border-right: 1px solid rgba(196, 122, 58, 0.28);
}

.sp-sidebar .sp-logo-word,
.sp-sidebar a,
.nota-rail .sp-logo-word,
.nota-rail a {
  color: var(--sp-paper);
}

.nota-rail-brand {
  padding: 28px 22px 20px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}

.nota-rail-mark {
  margin: 10px 0 0;
  font-family: var(--sp-serif);
  font-style: italic;
  font-size: 13px;
  color: #c9b089;
}

.nota-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px;
  flex: 1;
}

.nota-rail-link,
.sp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 2px;
  color: #c9c0b2;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nota-rail-tick {
  width: 7px;
  height: 7px;
  border: 1px solid #c47a3a;
  transform: rotate(45deg);
  opacity: 0.35;
}

.nota-rail-link:hover,
.sp-nav-link:hover {
  background: rgba(244, 239, 230, 0.06);
  color: var(--sp-paper);
}

.nota-rail-link.is-active,
.sp-nav-link.is-active {
  background: rgba(196, 122, 58, 0.16);
  color: #f4d7b5;
}

.nota-rail-link.is-active .nota-rail-tick,
.nota-rail-link:hover .nota-rail-tick {
  background: #c47a3a;
  opacity: 1;
}

.nota-rail-foot,
.nota-drawer-foot {
  padding: 18px 20px 24px;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
}

.nota-rail-email {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
  color: #f4efe6;
}

.nota-rail-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 13px;
  color: #9aa3ad;
}

.nota-rail-plan a {
  color: #f4d7b5;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(196, 122, 58, 0.7);
}

.nota-seal {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(244, 239, 230, 0.28);
  border-radius: 999px;
  color: #e8e1d5;
  font-family: var(--sp-serif);
  font-size: 12px;
  font-style: italic;
}

.nota-seal.is-pro {
  border-color: #c47a3a;
  color: #f4d7b5;
  background: rgba(196, 122, 58, 0.16);
}

.nota-rail-logout {
  width: 100%;
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(244, 239, 230, 0.08);
  background: transparent;
  color: #c9c0b2;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.nota-rail-logout:hover {
  color: var(--sp-paper);
}

.sp-main {
  flex: 1;
  min-width: 0;
}

.sp-mobile-bar,
.nota-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  background: var(--sp-ink);
  color: var(--sp-paper);
  border-bottom: 1px solid rgba(196, 122, 58, 0.35);
}

.nota-topbar .sp-logo-word {
  color: var(--sp-paper);
}

.nota-menu-btn {
  padding: 8px 12px;
  border: 1px solid rgba(244, 239, 230, 0.22);
  background: transparent;
  color: #f4d7b5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.nota-menu-btn[aria-expanded="true"] {
  background: rgba(196, 122, 58, 0.18);
  border-color: #c47a3a;
}

.sp-mobile-nav,
.nota-drawer {
  background: var(--sp-ink);
  color: var(--sp-paper);
  border-bottom: 1px solid rgba(196, 122, 58, 0.28);
  padding: 8px 12px 20px;
}

.nota-drawer .nota-rail-nav {
  padding: 8px 4px 12px;
}

.sp-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.sp-content:has(.nota-desk-mount),
.sp-content:has(.nota-ledger-page) {
  max-width: 1240px;
}

.sp-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.sp-kpis {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.sp-kpi {
  padding: 18px 20px;
}

.sp-kpi-label {
  margin: 0;
  font-family: var(--sp-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--sp-copper);
}

.sp-kpi-value {
  margin: 8px 0 0;
  font-family: var(--sp-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sp-filters {
  display: inline-flex;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 4px;
  background: var(--sp-cream);
  border: 1px solid var(--sp-line);
  border-radius: 4px;
}

.sp-filter {
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-muted);
}

.sp-filter.is-active {
  background: var(--sp-ink);
  color: var(--sp-paper);
}

.sp-table-wrap {
  margin-top: 16px;
  overflow: auto;
}

.sp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.sp-table th {
  padding: 12px 16px;
  background: var(--sp-chalk);
  color: var(--sp-muted);
  font-size: 12px;
  font-weight: 700;
}

.sp-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--sp-line-soft);
}

.sp-table tbody tr:hover {
  background: rgba(196, 122, 58, 0.05);
}

.sp-money {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.sp-empty {
  margin-top: 16px;
  padding: 72px 28px;
  text-align: center;
  background:
    linear-gradient(180deg, transparent 0%, rgba(196, 122, 58, 0.05) 100%),
    var(--sp-cream);
  border-style: solid;
}

.sp-empty h2 {
  margin: 8px 0 0;
  font-family: var(--sp-serif);
  font-size: 28px;
  font-weight: 600;
}

.sp-editor {
  display: grid;
  gap: 24px;
}

.sp-editor-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-editor-preview {
  position: sticky;
  top: 24px;
}

.sp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-form-grid {
  display: grid;
  gap: 16px;
}

.sp-invoice {
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-lg);
}

.sp-invoice-accent {
  height: 7px;
  background: linear-gradient(90deg, var(--sp-ink), var(--sp-copper));
}

.sp-invoice-body {
  padding: 32px;
}

.sp-invoice-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.sp-invoice-who {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sp-invoice-logo {
  border-radius: 8px;
  object-fit: cover;
}

.sp-invoice-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--sp-ink);
  color: var(--sp-paper);
  font-family: var(--sp-serif);
  font-size: 16px;
  font-weight: 600;
}

.sp-invoice-biz {
  margin: 0;
  font-weight: 700;
}

.sp-invoice-meta {
  margin: 0;
  font-size: 12px;
  color: var(--sp-subtle);
}

.sp-invoice-meta.is-pre,
.is-pre {
  white-space: pre-line;
}

.sp-invoice-id {
  text-align: right;
}

.sp-invoice-label {
  margin: 0;
  font-family: var(--sp-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--sp-copper);
}

.sp-invoice-number {
  margin: 0;
  font-family: var(--sp-serif);
  font-size: 26px;
  font-weight: 600;
}

.sp-invoice-mid {
  margin-top: 32px;
}

.sp-invoice-due {
  padding: 16px;
  border-radius: 3px;
  background: var(--sp-chalk);
  text-align: right;
}

.sp-invoice-total {
  margin: 4px 0 0;
  font-family: var(--sp-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sp-invoice-lines {
  overflow-x: auto;
  margin-top: 28px;
}

.sp-invoice-sum {
  margin-left: auto;
  width: 220px;
  margin-top: 16px;
  font-size: 14px;
}

.sp-invoice-sum p {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  color: var(--sp-subtle);
}

.sp-invoice-sum .is-total {
  font-weight: 700;
  color: var(--sp-ink);
  border-top: 1px solid var(--sp-line);
  padding-top: 8px;
}

.sp-invoice-notes {
  margin-top: 28px;
  padding: 12px;
  background: var(--sp-chalk);
  border-radius: 3px;
  font-size: 14px;
  color: var(--sp-muted);
}

.sp-alert {
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 14px;
}

.sp-alert-error {
  background: var(--sp-danger-soft);
  color: var(--sp-danger);
  border: 1px solid #e8c4c0;
}

.sp-alert-ok {
  background: var(--sp-paid-soft);
  color: var(--sp-paid);
  border: 1px solid #b7d0b8;
}

.sp-auth {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.04), transparent 28%),
    var(--sp-paper);
}

.sp-auth-card {
  width: 100%;
  max-width: 440px;
  margin: 48px auto;
  padding: 36px;
}

.nota-sso-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nota-sso-logo {
  margin-bottom: 22px;
}

.nota-sso-title {
  margin: 0;
}

.nota-sso-switch {
  margin: 8px 0 0;
}

.nota-sso-switch a,
.nota-text-btn {
  font-weight: 700;
  color: var(--sp-ink);
  box-shadow: inset 0 -1px 0 var(--sp-copper);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.nota-sso-lead {
  margin: 14px 0 0;
}

.nota-login-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nota-sso-submit {
  width: 100%;
  min-height: 48px;
}

.nota-password-wrap {
  position: relative;
}

.nota-password-wrap .sp-input {
  padding-right: 72px;
}

.nota-show-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--sp-copper);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nota-forgot-toggle {
  margin: 14px 0 0;
  text-align: left;
}

.nota-forgot-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-pay {
  padding: 32px 24px 64px;
}

.sp-pay-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.sp-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-line-row {
  display: grid;
  gap: 8px;
}

.sp-nav-desktop {
  display: none;
}

.sp-plan-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 8px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  background: var(--sp-cream);
}

.sp-plan-banner.is-blocked {
  background: var(--sp-danger-soft);
  border-color: #e8c4c0;
}

.sp-plan-banner.is-pro {
  background: var(--sp-accent-soft);
  border-color: #e2c39a;
}

.sp-billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nota-landing {
  overflow-x: hidden;
}

.nota-hero {
  display: grid;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 4px 0 48px;
  align-items: start;
}

.nota-hero-copy {
  padding: 12px 8px 8px;
}

.nota-hero-frame {
  margin: 0;
  position: relative;
}

.nota-hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--sp-shadow-lg);
}

.nota-hero-frame figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 4px 8px;
  background: rgba(11, 31, 51, 0.62);
  color: var(--sp-paper);
  font-family: var(--sp-serif);
  font-style: italic;
  font-size: 13px;
}

.nota-trust {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
}

.nota-trust > .sp-kicker {
  margin-bottom: 16px;
}

.nota-trust-grid,
.nota-contrast-grid {
  display: grid;
  gap: 16px;
}

.nota-trust-item h3,
.nota-contrast h3 {
  margin: 0;
  font-family: var(--sp-serif);
  font-size: 22px;
  font-weight: 600;
}

.nota-trust-item p,
.nota-contrast li {
  color: var(--sp-muted);
}

.nota-stripe-badge {
  display: inline-block;
  margin: 16px 0 0;
  padding: 4px 8px;
  border: 1px solid var(--sp-line);
  color: var(--sp-ink);
  font-family: var(--sp-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nota-contrast {
  padding-top: 24px;
}

.nota-contrast .sp-lead {
  max-width: 40rem;
}

.nota-contrast ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.nota-contrast li {
  padding: 7px 0 7px 18px;
  position: relative;
}

.nota-contrast li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 1px;
  background: var(--sp-copper);
}

.nota-contrast-close {
  margin-top: 20px;
  font-family: var(--sp-serif);
  font-size: 22px;
}

.nota-fee {
  max-width: 46rem;
  margin-top: 28px;
}

.nota-facts {
  padding: 48px 0 80px;
  max-width: 46rem;
}

.nota-facts h2 {
  margin: 40px 0 0;
  font-family: var(--sp-serif);
  font-size: 32px;
  font-weight: 600;
}

.nota-facts h3 {
  margin: 22px 0 0;
  font-family: var(--sp-serif);
  font-size: 22px;
}

.nota-facts p,
.nota-facts li {
  color: var(--sp-muted);
  font-size: 17px;
}

.nota-facts ol,
.nota-facts ul {
  padding-left: 1.2rem;
}

.nota-fact-block {
  margin-top: 12px;
  padding: 16px;
  white-space: pre-wrap;
  background: var(--sp-chalk);
  border: 1px solid var(--sp-line);
  font-family: var(--sp-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--sp-ink);
}

.nota-rise {
  animation: nota-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nota-rise-2 { animation-delay: 0.08s; }
.nota-rise-3 { animation-delay: 0.16s; }
.nota-rise-4 { animation-delay: 0.24s; }
.nota-rise-5 { animation-delay: 0.32s; }

@keyframes nota-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nota-story {
  padding: 96px 0 40px;
}

.nota-story .sp-wrap {
  margin-bottom: 36px;
}

.nota-beat {
  display: grid;
  gap: 28px;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 72px;
  align-items: center;
}

.nota-beat-art {
  margin: 0;
}

.nota-beat-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--sp-shadow-lg);
}

.nota-beat-index {
  margin: 0;
  font-family: var(--sp-serif);
  font-size: 42px;
  color: var(--sp-copper);
  line-height: 1;
}

.nota-beat-copy h3 {
  margin: 8px 0 0;
  font-family: var(--sp-serif);
  font-size: 36px;
  font-weight: 600;
}

.nota-beat-copy p:last-child {
  margin: 14px 0 0;
  color: var(--sp-muted);
  font-size: 17px;
  max-width: 36rem;
}

.nota-aside {
  display: grid;
  gap: 20px;
  padding: 24px 24px 80px;
}

.nota-aside blockquote {
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--sp-copper);
  padding-left: 20px;
}

.nota-aside blockquote p {
  margin: 0;
  font-family: var(--sp-serif);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
}

.nota-aside > p {
  max-width: 36rem;
  color: var(--sp-muted);
}

.nota-tariff {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.nota-plan {
  padding: 32px;
}

.nota-plan.is-pro {
  background: var(--sp-ink);
  color: var(--sp-paper);
  border-color: var(--sp-ink);
}

.nota-plan.is-pro .sp-caption,
.nota-plan.is-pro .sp-price span {
  color: #c9c0b2;
}

.nota-plan-name {
  margin: 0;
  font-family: var(--sp-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--sp-copper);
}

.nota-plan ul {
  padding: 0;
  list-style: none;
  margin: 20px 0;
}

.nota-plan li {
  padding: 7px 0 7px 18px;
  position: relative;
}

.nota-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 1px;
  background: var(--sp-copper);
}

.nota-plan li.is-muted {
  color: var(--sp-subtle);
}

.nota-plan .sp-btn-secondary,
.nota-plan .sp-btn-primary {
  margin-top: 8px;
}

.nota-plan.is-pro .sp-btn-primary {
  background: var(--sp-copper);
}

.nota-close {
  padding-bottom: 80px;
}

.nota-foot-head {
  margin: 0 0 8px;
  font-family: var(--sp-serif);
  font-style: italic;
  color: var(--sp-copper);
}

.nota-auth-top {
  padding-top: 28px;
}

.nota-auth-switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--sp-chalk);
  text-align: center;
}

.nota-auth-switch a {
  font-weight: 700;
  color: var(--sp-ink);
  box-shadow: inset 0 -1px 0 var(--sp-copper);
}

.nota-auth-alert,
.nota-auth-back,
.nota-limit,
.nota-backlinks,
.nota-powered {
  margin-top: 16px;
}

.nota-auth-back,
.nota-powered {
  text-align: center;
  padding-bottom: 48px;
}

.nota-auth-back a,
.nota-backlinks a,
.nota-powered a,
.nota-limit a,
.nota-invoice-link {
  font-weight: 700;
  color: var(--sp-ink);
  box-shadow: inset 0 -1px 0 var(--sp-copper);
}

.nota-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 8px;
  color: var(--sp-subtle);
  font-size: 13px;
}

.nota-or::before,
.nota-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sp-line);
}

.nota-login-form {
  margin-top: 8px;
  display: grid;
  gap: 16px;
}

.nota-dev-link {
  background: var(--sp-accent-soft);
  border: 1px solid #e2c39a;
  color: #8a4f1f;
}

.nota-dev-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.nota-dev-link a {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  word-break: break-all;
}

.nota-client-email {
  font-size: 12px;
  color: var(--sp-subtle);
}

.nota-narrow {
  max-width: 640px;
}

.nota-wide {
  max-width: 720px;
}

.nota-panel {
  padding: 24px;
  margin-top: 24px;
}

.nota-plan-value {
  font-size: 28px;
}

.nota-alert-warn {
  margin-top: 16px;
  background: var(--sp-overdue-soft);
  border: 1px solid #ebc8b2;
  color: var(--sp-overdue);
}

.nota-alert-info {
  margin-top: 16px;
  background: var(--sp-accent-soft);
  border: 1px solid #e2c39a;
  color: #8a4f1f;
}

.nota-pay-top,
.nota-pay-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nota-pay-actions {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.nota-pay-aside {
  padding: 24px;
}

.nota-pay-aside .sp-price {
  font-size: 36px;
}

.nota-pay-aside .sp-alert {
  margin-top: 12px;
}

.nota-pay-secure {
  padding: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--sp-subtle);
}

.nota-secure-head {
  margin: 0;
  font-weight: 700;
  color: var(--sp-ink);
}

.nota-mailbox-lead {
  max-width: 640px;
}

.nota-mail-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.nota-mail {
  padding: 20px;
}

.nota-mail h2 {
  margin: 4px 0 0;
  font-family: var(--sp-serif);
  font-size: 20px;
}

.nota-mail iframe {
  margin-top: 16px;
  width: 100%;
  height: 256px;
  border: 1px solid var(--sp-line);
  border-radius: 3px;
  background: #fff;
}

.nota-cancel-form {
  margin-top: 16px;
}

.nota-setup {
  background:
    linear-gradient(180deg, rgba(196, 122, 58, 0.06), transparent 80px),
    var(--sp-cream);
}

.nota-setup-title {
  margin: 6px 0 0;
  font-family: var(--sp-serif);
  font-size: 26px;
  font-weight: 600;
}

.nota-setup-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.nota-setup-list li {
  padding: 10px 12px;
  border: 1px solid var(--sp-line);
  background: #fffdf8;
  font-size: 14px;
}

.nota-setup-list .is-ok {
  border-color: #b7d0b8;
  background: var(--sp-paid-soft);
}

.nota-setup-list .is-missing {
  border-color: #ebc8b2;
  background: var(--sp-overdue-soft);
}

.nota-setup-list code,
.nota-setup-cta code,
.nota-setup .sp-caption code {
  font-size: 12px;
}

.nota-setup-cta {
  max-width: 220px;
  text-align: right;
}

.nota-ledger-page {
  max-width: 980px;
}

.nota-ledger-head,
.nota-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.nota-ledger-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.nota-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 22px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--sp-line);
  background:
    linear-gradient(90deg, rgba(196, 122, 58, 0.08), transparent 42%),
    var(--sp-cream);
}

.nota-ribbon.is-blocked {
  background: var(--sp-danger-soft);
  border-color: #e8c4c0;
}

.nota-ribbon.is-pro {
  background: var(--sp-accent-soft);
  border-color: #e2c39a;
}

.nota-blotter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--sp-line);
  background: #fffdf8;
}

.nota-blot {
  padding: 18px 20px 16px;
  border-right: 1px solid var(--sp-line-soft);
  border-bottom: 1px solid var(--sp-line-soft);
}

.nota-blot:nth-child(2n) {
  border-right: 0;
}

.nota-blot-label {
  margin: 0;
  font-family: var(--sp-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--sp-copper);
}

.nota-blot-value {
  margin: 6px 0 0;
  font-family: var(--sp-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.nota-blot-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--sp-subtle);
}

.nota-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  border-bottom: 1px solid var(--sp-line);
}

.nota-tab {
  padding: 8px 14px 10px;
  color: var(--sp-muted);
  font-size: 14px;
  font-weight: 600;
}

.nota-tab.is-active {
  color: var(--sp-ink);
  box-shadow: inset 0 -2px 0 var(--sp-copper);
}

.nota-blank {
  margin-top: 0;
  padding: 56px 28px 64px;
  text-align: center;
  background: #fffdf8;
  border: 1px solid var(--sp-line);
  border-top: 0;
}

.nota-blank-rule {
  width: 72px;
  height: 2px;
  margin: 0 auto 18px;
  background: var(--sp-copper);
}

.nota-blank h2 {
  margin: 8px 0 0;
  font-family: var(--sp-serif);
  font-size: 32px;
  font-weight: 600;
}

.nota-blank-action {
  margin-top: 20px;
}

.nota-client-filter {
  margin-top: 18px;
}

.nota-client-filter a {
  font-weight: 700;
  box-shadow: inset 0 -1px 0 var(--sp-copper);
}

.nota-ledger {
  margin-top: 0;
  border: 1px solid var(--sp-line);
  border-top: 0;
  background: #fffdf8;
}

.nota-ledger-cols {
  display: none;
  grid-template-columns: 120px 1fr 110px 120px 110px;
  gap: 12px;
  padding: 10px 20px;
  background: var(--sp-chalk);
  color: var(--sp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nota-ledger-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 16px 20px;
  border-top: 1px dashed var(--sp-line);
  color: inherit;
}

.nota-ledger-row:first-of-type {
  border-top: 0;
}

.nota-ledger-row:hover {
  background: rgba(196, 122, 58, 0.05);
}

.nota-ledger-no {
  font-family: var(--sp-serif);
  font-size: 18px;
  font-weight: 600;
}

.nota-ledger-who {
  display: grid;
  gap: 2px;
}

.nota-ledger-who strong {
  font-weight: 650;
}

.nota-ledger-who em {
  font-style: normal;
  font-size: 12px;
  color: var(--sp-subtle);
}

.nota-ledger-due {
  color: var(--sp-muted);
  font-size: 14px;
}

.nota-ledger-sum {
  font-family: var(--sp-serif);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.nota-desk-mount {
  max-width: 1180px;
}

.nota-desk-loading {
  font-family: var(--sp-serif);
  font-style: italic;
  color: var(--sp-copper);
}

.nota-desk-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sp-line);
}

.nota-back {
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-ink);
  box-shadow: inset 0 -1px 0 var(--sp-copper);
}

.nota-desk-title {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.nota-desk-title h1 {
  margin: 0;
}

.nota-desk-meta {
  margin: 8px 0 0;
  color: var(--sp-muted);
  font-size: 14px;
}

.nota-desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nota-desk-grid {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.nota-sheet {
  display: grid;
  gap: 0;
  background: #fffdf8;
  border: 1px solid var(--sp-line);
  box-shadow: var(--sp-shadow-lg);
}

.nota-sheet-band {
  height: 6px;
  background: linear-gradient(90deg, var(--sp-ink), var(--sp-copper));
}

.nota-sheet-section {
  padding: 22px 24px;
  border-top: 1px dashed var(--sp-line);
}

.nota-sheet-section:first-of-type {
  border-top: 0;
}

.nota-sheet-kicker {
  margin: 0 0 14px;
  font-family: var(--sp-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--sp-copper);
}

.nota-sheet-parties {
  display: grid;
  gap: 20px;
}

.nota-ruled-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.nota-line-cols {
  display: none;
  grid-template-columns: minmax(0, 1fr) 72px 96px 72px;
  gap: 8px;
  padding: 0 0 8px;
  color: var(--sp-subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nota-line {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px dashed var(--sp-line);
  min-width: 0;
}

.nota-line .sp-input {
  min-width: 0;
}

.nota-pay-url {
  margin-top: 12px;
  word-break: break-all;
}

.nota-preview {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.nota-preview .sp-table {
  min-width: 0;
}

.nota-sheet {
  min-width: 0;
}

@media (min-width: 640px) {
  .sp-nav-desktop {
    display: inline;
  }
  .sp-kpis,
  .nota-blotter {
    grid-template-columns: 1fr 1fr;
  }
  .sp-form-grid,
  .nota-sheet-parties {
    grid-template-columns: 1fr 1fr;
  }
  .sp-line-row,
  .nota-line {
    grid-template-columns: minmax(0, 1fr) 72px 96px auto;
  }
  .nota-line-cols {
    display: grid;
  }
  .sp-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .nota-tariff {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .nota-hero {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 48px;
    margin-top: 32px;
    padding-bottom: 56px;
    align-items: start;
  }
  .nota-trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nota-contrast-grid,
  .nota-beat {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .nota-beat-flip {
    direction: rtl;
  }
  .nota-beat-flip > * {
    direction: ltr;
  }
}

@media (min-width: 1024px) {
  .sp-kpis,
  .nota-blotter {
    grid-template-columns: repeat(4, 1fr);
  }
  .nota-blot {
    border-bottom: 0;
  }
  .nota-blot:nth-child(2n) {
    border-right: 1px solid var(--sp-line-soft);
  }
  .nota-blot:last-child {
    border-right: 0;
  }
  .sp-sidebar,
  .nota-rail {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
  }
  .sp-mobile-bar,
  .sp-mobile-nav,
  .nota-topbar,
  .nota-drawer {
    display: none;
  }
  .sp-pay-grid {
    grid-template-columns: 1fr 340px;
  }
  .nota-ledger-cols,
  .nota-ledger-row {
    display: grid;
    grid-template-columns: 120px 1fr 110px 120px 110px;
    align-items: center;
  }
  .nota-client-cols,
  .nota-client-row {
    grid-template-columns: 1.4fr 140px 140px 120px;
  }
}

@media (min-width: 1280px) {
  .sp-editor,
  .nota-desk-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

@media (max-width: 720px) {
  .sp-plan-banner,
  .sp-billing-row,
  .nota-ribbon,
  .nota-ledger-head,
  .nota-desk-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .nota-ledger-actions,
  .nota-desk-actions,
  .nota-setup-cta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .sp-content {
    padding: 24px 16px 40px;
  }
  .sp-cta {
    padding: 36px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nota-rise {
    animation: none;
  }
  .sp-btn,
  .sp-btn-primary,
  .sp-btn-secondary,
  .sp-btn-ghost,
  .sp-btn-google {
    transition: none;
  }
}
