:root {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #ffffff;
}

body {
  margin: 0;
  background: #ffffff;
  color: #0f172a;
}

h1 {
  color: #081a3b;
}

h2 {
  color: #0b2350;
}

h4 {
  color: #0b2a5f;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover {
  color: #1e40af;
  text-decoration: underline;
}

main {
  padding-bottom: 40px;
}

section {
  margin: 32px 0;
}

.section-gap {
  margin: 32px 0;
}

.home-section {
  padding: 32px 0;
}

@media (min-width: 992px) {
  .home-section {
    padding: 48px 0;
  }
}

.settings-hero {
  margin-bottom: 24px;
}

.settings-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.settings-header h2 {
  margin: 0 0 6px;
}

.settings-header p {
  margin: 0 0 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-grid-tight {
  margin-bottom: 8px;
}

.form-grid-spaced {
  margin-top: 12px;
}

.field-required {
  color: #b42318;
  font-weight: 600;
  font-size: 0.85rem;
}

.field-optional {
  color: #64748b;
  font-weight: 500;
  font-size: 0.85rem;
}

.form-field label {
  font-weight: 600;
  color: #1f2937;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid #d0d7de;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #f8fafc;
}

.form-field.new-option-field label {
  color: #b45309;
}

.form-field.new-option-field select {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fff7ed 0%, #fffdf7 100%);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.field-help {
  font-size: 12px;
  color: #6b7280;
  margin-top: -2px;
}

.toggle-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 16px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.9rem;
}

.toggle-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
  margin-top: 16px;
}

.danger-zone {
  border-color: #fecaca;
  background: #fff7f7;
}

.danger-zone .settings-header h2 {
  color: #b42318;
}

.danger-form {
  border-top: 1px solid #fee2e2;
  padding-top: 16px;
  margin-top: 16px;
}

.danger-actions {
  margin-top: 16px;
}

.settings-link-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-link-stack {
  display: grid;
  gap: 10px;
}

.settings-link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #0f172a;
}

.settings-link-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-link-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.settings-link-card p {
  margin: 0;
}

.settings-link-card:hover {
  text-decoration: none;
  border-color: #cbd5f5;
  background: #eef2ff;
}

.news-card {
  display: grid;
  gap: 8px;
}

.news-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.news-title {
  font-weight: 600;
  color: #0b2350;
}

.news-link {
  color: #0b3a8f;
}

.news-link:hover {
  color: #092f74;
  text-decoration: underline;
}

.news-snippet {
  line-height: 1.4;
}

.settings-link-card.upgrade:hover {
  border-color: #fecaca;
  background: #fff1f2;
}

.settings-link-card.upgrade:hover h3,
.settings-link-card.upgrade:hover p {
  color: #b42318;
}

.settings-link-details {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 14px;
  background: #ffffff;
}

.settings-link-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-link-details summary::-webkit-details-marker {
  display: none;
}

.settings-link-details summary::after {
  content: "▾";
  font-size: 0.9rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.settings-link-details[open] summary::after {
  transform: rotate(180deg);
}

.settings-link-details p {
  margin: 8px 0 0;
}

.divider {
  border-top: 1px solid #e5e7eb;
  margin: 20px 0;
}

.inline-form {
  display: inline;
}

.tray-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

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

.nav-link {
  color: #1f2937;
  font-weight: 500;
}

.nav-link:hover {
  color: #0f172a;
}

.flex-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.space-between {
  justify-content: space-between;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.card.soft {
  background: #f8fafc;
}

.card h3 {
  color: #0b2a5f;
}

.card h4 {
  color: #0b2a5f;
}

.workflow-card {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  height: 100%;
}

.legal-copy {
  max-width: 860px;
  margin: 0 auto;
}

.legal-copy h2 {
  margin-top: 26px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d0d7de;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.small {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 12px;
}

.btn.primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.btn.danger {
  background: #b42318;
  border-color: #b42318;
  color: #ffffff;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.muted {
  color: #64748b;
}

.small {
  font-size: 12px;
}

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

.highlight-orange {
  color: #c05621;
  font-weight: 600;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 13px;
  width: 100%;
  margin-bottom: 6px;
}

.checkbox-pill input[type="checkbox"] {
  margin: 0;
}

.manual-news-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.manual-news-list .checkbox-pill {
  width: 100%;
}

.manual-news-item {
  width: 100%;
}

/* App-only theme overrides */
.app-shell {
  --app-ink: #0b1220;
  --app-muted: #54627b;
  --app-accent: #0b5f8f;
  --app-accent-strong: #08486b;
  --app-border: #d6e0ec;
  --app-surface: #ffffff;
  --app-surface-2: #f3f6fb;
  --app-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--app-ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(14, 116, 144, 0.16), transparent 70%),
    radial-gradient(900px 400px at 10% -20%, rgba(15, 118, 110, 0.14), transparent 65%),
    #eef3fb;
  min-height: 100vh;
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell h4 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.02em;
  color: #0a1426;
}

.app-shell a {
  color: var(--app-accent);
}

.app-shell a:hover {
  color: var(--app-accent-strong);
}

.app-shell .app-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214, 224, 236, 0.8);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.app-shell .brand {
  font-weight: 700;
}

.app-shell .nav-link {
  font-weight: 600;
  color: #1a2433;
}

.app-shell .nav-link:hover {
  color: var(--app-accent-strong);
}

.app-shell .app-main > * {
  animation: app-fade-up 0.5s ease both;
}

.app-shell .app-main > *:nth-child(2) { animation-delay: 0.05s; }
.app-shell .app-main > *:nth-child(3) { animation-delay: 0.1s; }
.app-shell .app-main > *:nth-child(4) { animation-delay: 0.15s; }

@keyframes app-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell .app-main > * {
    animation: none;
  }
}

.app-shell .settings-card,
.app-shell .card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 20px;
  box-shadow: var(--app-shadow);
}

.app-shell .card.soft {
  background: var(--app-surface-2);
}

.app-shell .pill {
  background: #e7eef8;
  color: #34435a;
  font-weight: 700;
}

.app-shell .btn {
  border-radius: 12px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  color: var(--app-ink);
  padding: 10px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.app-shell .btn.primary {
  background: linear-gradient(135deg, #0b5f8f 0%, #0a7f6f 100%);
  border-color: transparent;
  color: #ffffff;
}

.app-shell .btn.danger {
  background: #b42318;
  border-color: #b42318;
  color: #ffffff;
}

.app-shell .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}

.app-shell .form-field input,
.app-shell .form-field select,
.app-shell .form-field textarea {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}

.app-shell .form-field input:focus,
.app-shell .form-field select:focus,
.app-shell .form-field textarea:focus {
  outline: none;
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(11, 95, 143, 0.18);
}

.app-shell .settings-link-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
}

.app-shell .news-link {
  color: var(--app-accent-strong);
}

.app-shell .eyebrow {
  background: rgba(11, 95, 143, 0.12);
  color: var(--app-accent-strong);
}

.app-shell .panel {
  background: var(--app-surface-2);
  border: 1px solid var(--app-border);
}

.app-shell .tray li {
  border-bottom: 1px dashed rgba(11, 18, 32, 0.14);
}

.app-shell .divider,
.app-shell hr {
  border-top: 1px solid rgba(214, 224, 236, 0.9);
}

.app-shell .flash {
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.app-shell .range-toggle {
  background: #e6edf7;
  border: 1px solid var(--app-border);
}

.app-shell .range-toggle-btn.is-active {
  background: var(--app-accent-strong);
  border-color: var(--app-accent-strong);
}

@media (max-width: 992px) {
  .app-shell .container {
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .app-shell .container {
    padding: 14px;
  }
  .app-shell .table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  .app-shell .settings-link-grid {
    grid-template-columns: 1fr;
  }
  .app-shell .grid-2,
  .app-shell .grid-3 {
    grid-template-columns: 1fr;
  }
  .app-shell .app-main .btn {
    width: 100%;
    justify-content: center;
  }
  .app-shell .flex-row {
    gap: 10px;
  }
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.flash.success {
  border-color: #22c55e;
  background: #ecfdf3;
}

.flash.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  white-space: pre-wrap;
}

.output {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}

.output-view {
  margin-top: 16px;
}

.output-view.is-hidden {
  display: none;
}

.output-toggles {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.output-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin: 12px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.output-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px;
}

.copy-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}

.copy-btn:hover {
  background: #f1f5f9;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin-top: 0.6em;
  margin-bottom: 0.4em;
}

.markdown-body p {
  margin: 0 0 0.9em;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.2em;
}

.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  background: #eef2ff;
  border-radius: 6px;
  padding: 2px 6px;
}

.notes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.note-actions {
  margin-top: 8px;
}

.panel {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.tray {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tray li {
  padding: 8px 0;
  border-bottom: 1px dashed #d0d7de;
}

.footer {
  opacity: 0.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  padding: 40px 0;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 16px 0 12px;
  color: #b45309;
}

.hero-lead {
  font-size: 1.1rem;
}

.hero-media {
  display: block;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
}

.image-stack {
  position: relative;
}

.floating-card {
  position: absolute;
  bottom: -24px;
  left: 18px;
  right: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-lead {
  max-width: 720px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 12px;
}

.stat {
  padding: 14px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  min-width: 140px;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
}

.soft-section {
  background: #f1f5f9;
  border-radius: 24px;
  padding: 32px;
}

.logo-strip {
  padding: 24px 0 12px;
}

.logo-title {
  font-size: 1.15rem;
  color: #111827;
  margin-bottom: 0;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo-row img {
  max-height: 150px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
}

.pricing-card {
  position: relative;
  padding-top: 36px;
  border-color: #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.pricing-card.featured {
  border-color: #1d4ed8;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.pricing-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: 16px;
  right: 16px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-header {
  display: grid;
  gap: 10px;
}

.pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.pricing-tag::before,
.pricing-tag::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.pricing-card ul {
  padding-left: 18px;
  margin-bottom: 14px;
}

.pricing-card ul li {
  margin-bottom: 8px;
}

.pricing-toggle {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 24px;
  width: fit-content;
}

.pricing-toggle-btn {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.pricing-toggle-btn.is-active {
  background: #0f172a;
  color: #ffffff;
}

.pricing-amount {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 14px;
}

.pricing-period {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.range-toggle {
  display: inline-flex;
  gap: 6px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px;
  margin-top: 12px;
  width: fit-content;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.range-toggle-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
}

.range-toggle-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.range-toggle-btn:not(.is-active):hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.clean-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 14px;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.clean-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #0b2a5f;
}

.pricing-guidance h3 {
  margin-top: 0;
}

.cta-banner {
  background: #0f172a;
  color: #ffffff;
  border-radius: 24px;
  padding: 28px;
}

.cta-banner h2,
.cta-banner h3 {
  color: #ffffff;
}

.cta-banner .muted {
  color: rgba(255, 255, 255, 0.75);
}

.cta-banner .btn {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.cta-banner .btn.primary {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.step-card {
  overflow: hidden;
  padding: 0;
}

.step-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.step-body {
  padding: 20px;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 36px 0 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.verification-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.verification-form {
  margin-top: 20px;
}

.verification-field input {
  width: 100%;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.35em;
  margin-bottom: 12px;
}

.verification-field input:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.verification-field input#id_email {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .hero {
    padding: 24px 0;
  }

  .floating-card {
    position: static;
    margin-top: 16px;
  }
}

:root {
  --pp-bg: #f7f0e4;
  --pp-bg-alt: #fffaf1;
  --pp-surface: rgba(255, 249, 239, 0.92);
  --pp-surface-strong: #fffdf8;
  --pp-border: rgba(26, 36, 45, 0.12);
  --pp-border-strong: rgba(26, 36, 45, 0.22);
  --pp-text: #17212b;
  --pp-text-soft: #5d6773;
  --pp-text-faint: #7f8a97;
  --pp-accent: #bf5c2f;
  --pp-accent-strong: #99411a;
  --pp-accent-soft: #f0ceb4;
  --pp-shadow: 0 22px 60px rgba(33, 29, 18, 0.14);
  --pp-radius-lg: 28px;
  --pp-radius-md: 18px;
}

body,
body.app-shell {
  background:
    radial-gradient(circle at top left, rgba(240, 206, 180, 0.48), transparent 34%),
    radial-gradient(circle at top right, rgba(191, 92, 47, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f0e4 0%, #f5efe6 38%, #efe6d7 100%);
  color: var(--pp-text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
.hero-title,
.section-title,
.pp-display,
.pp-section-head h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.03em;
  color: #182532;
}

code,
pre,
.mono,
.pp-pre,
.pp-mini-label {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
}

.topbar,
.app-topbar {
  background: transparent;
  border-bottom: 0;
}

.navbar {
  background: rgba(255, 252, 245, 0.76);
  border: 1px solid rgba(26, 36, 45, 0.08);
  border-radius: 999px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(33, 29, 18, 0.08);
}

.brand {
  color: #182532;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--pp-accent-strong);
  text-decoration: none;
}

.nav-link {
  color: var(--pp-text-soft);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--pp-accent-strong);
}

.app-main,
main.container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--pp-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--pp-text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.btn:hover,
.btn:focus {
  color: var(--pp-text);
  border-color: var(--pp-border-strong);
  background: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--pp-accent) 0%, #d27b4a 100%);
  color: #fff8f3;
  border-color: rgba(0, 0, 0, 0.02);
  box-shadow: 0 12px 30px rgba(153, 65, 26, 0.24);
}

.btn.primary:hover,
.btn.primary:focus {
  color: #ffffff;
  background: linear-gradient(135deg, #ad4c20 0%, #bf5c2f 100%);
}

.btn.danger {
  background: #fff1ec;
  color: #9f2e12;
  border-color: rgba(159, 46, 18, 0.18);
}

.pill,
.pp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: rgba(191, 92, 47, 0.1);
  color: var(--pp-accent-strong);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pp-pill.subtle {
  background: rgba(23, 33, 43, 0.06);
  color: var(--pp-text-soft);
}

.flash {
  border-radius: 18px;
  border: 1px solid var(--pp-border);
  background: rgba(255, 251, 243, 0.92);
  box-shadow: var(--pp-shadow);
}

.muted,
.field-help,
.small,
small {
  color: var(--pp-text-soft) !important;
}

.settings-card,
.card,
.soft-section,
.site-footer {
  background: var(--pp-surface);
  border-color: rgba(26, 36, 45, 0.08);
}

.pp-hero,
.pp-section,
.pp-cta {
  margin: 1.6rem 0 2rem;
}

.pp-grid {
  display: grid;
  gap: 1.5rem;
}

.pp-grid-hero,
.pp-grid-dashboard {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  align-items: start;
}

.pp-grid-flow {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.pp-copy,
.pp-panel,
.pp-card,
.pp-orbit-card,
.pp-cta {
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-lg);
  background: var(--pp-surface);
  box-shadow: var(--pp-shadow);
}

.pp-copy {
  padding: 2.1rem;
}

.pp-panel,
.pp-card,
.pp-cta {
  padding: 1.5rem;
}

.pp-orbit-card {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(248, 236, 220, 0.98)),
    var(--pp-surface);
}

.pp-kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--pp-accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pp-display {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 0.94;
}

.pp-lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--pp-text-soft);
  max-width: 60ch;
}

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.pp-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.pp-stat {
  padding: 1rem;
  border-radius: var(--pp-radius-md);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(26, 36, 45, 0.08);
}

.pp-stat strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.pp-stat span {
  display: block;
  color: var(--pp-text-soft);
  font-size: 0.9rem;
}

.pp-orbit-header,
.pp-card-meta,
.pp-copy-head,
.pp-panel-head,
.pp-workspace-header,
.pp-section-head {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.pp-panel-head,
.pp-section-head {
  flex-direction: column;
}

.pp-section-head.compact {
  margin-bottom: 1rem;
}

.pp-section-head h2,
.pp-panel-head h2,
.pp-card h3,
.pp-workspace-header h1 {
  margin: 0;
}

.pp-orbit-stack,
.pp-stack {
  display: grid;
  gap: 1rem;
}

.pp-orbit-note,
.pp-note-card,
.pp-selector-card,
.pp-empty-state,
.pp-mono-panel {
  padding: 1rem 1.05rem;
  border-radius: var(--pp-radius-md);
  border: 1px solid rgba(26, 36, 45, 0.09);
  background: rgba(255, 255, 255, 0.68);
}

.pp-orbit-note.accent {
  background: linear-gradient(180deg, rgba(240, 206, 180, 0.4), rgba(255, 250, 243, 0.9));
}

.pp-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #21303d;
  background: transparent;
  font-size: 0.84rem;
  line-height: 1.7;
}

.pp-pre-lg {
  max-height: 36rem;
  overflow: auto;
}

.pp-pre.note {
  max-height: 18rem;
  overflow: auto;
}

.pp-mini-label {
  color: var(--pp-text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pp-card-grid,
.pp-list-grid,
.pp-artifact-grid,
.pp-selector-grid,
.pp-workspace-grid {
  display: grid;
  gap: 1rem;
}

.pp-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pp-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-artifact-grid {
  grid-template-columns: 1.35fr 0.85fr;
}

.pp-workspace-grid {
  grid-template-columns: 1.15fr 0.95fr;
  align-items: start;
}

.pp-column {
  display: grid;
  gap: 1rem;
}

.pp-selector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-selector-card.standalone {
  padding: 0;
  border: 0;
  background: transparent;
}

.pp-check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(26, 36, 45, 0.08);
}

.pp-check-item:last-child {
  border-bottom: 0;
}

.pp-check-item span {
  display: grid;
  gap: 0.28rem;
}

.pp-check-item strong {
  font-size: 0.96rem;
}

.pp-check-item em,
.pp-inline-link {
  color: var(--pp-accent-strong);
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
}

.pp-check-item small {
  color: var(--pp-text-soft);
  font-size: 0.84rem;
}

.pp-inline-link:hover {
  text-decoration: underline;
}

.pp-chip-row,
.pp-flow,
.pp-list-plain {
  display: grid;
  gap: 0.75rem;
}

.pp-flow-step {
  padding: 1rem 1.1rem;
  border-radius: var(--pp-radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(26, 36, 45, 0.08);
}

.pp-flow-step strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.pp-list-plain {
  margin: 0;
  padding-left: 1.1rem;
}

.pp-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.pp-meta-grid strong {
  display: block;
  margin-top: 0.18rem;
}

.pp-card-link {
  color: var(--pp-text);
  text-decoration: none;
}

.pp-card-link:hover {
  color: var(--pp-text);
  text-decoration: none;
  transform: translateY(-1px);
}

.pp-empty-state {
  padding: 1.25rem;
}

.pp-empty-state h3 {
  margin-bottom: 0.45rem;
}

.pp-band {
  padding: 0.2rem 0;
}

.pp-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at left center, rgba(240, 206, 180, 0.45), transparent 26%),
    linear-gradient(135deg, rgba(255, 251, 244, 0.96), rgba(249, 237, 223, 0.98));
}

.pp-form-stack {
  display: grid;
  gap: 1rem;
}

.pp-hero-tight {
  margin-top: 0;
}

.pp-copy-head .btn,
.pp-actions form {
  margin: 0;
}

.pp-actions form {
  display: inline-flex;
}

.narrow {
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(26, 36, 45, 0.08);
}

@media (max-width: 1100px) {
  .pp-grid-hero,
  .pp-grid-dashboard,
  .pp-grid-flow,
  .pp-workspace-grid,
  .pp-artifact-grid {
    grid-template-columns: 1fr;
  }

  .pp-card-grid,
  .pp-list-grid,
  .pp-selector-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    border-radius: 26px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .pp-copy,
  .pp-panel,
  .pp-card,
  .pp-orbit-card,
  .pp-cta {
    padding: 1.2rem;
  }

  .pp-display {
    font-size: 2.4rem;
  }

  .pp-stat-grid {
    grid-template-columns: 1fr;
  }

  .pp-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
