﻿:root {
  --bg: #f5f1ea;
  --ink: #1d1b16;
  --muted: #6b6258;
  --brand: #f36b4b;
  --brand-dark: #d94f33;
  --accent: #1f6f8b;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(29, 27, 22, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(243, 107, 75, 0.15), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(31, 111, 139, 0.15), transparent 45%),
    radial-gradient(circle at 40% 80%, rgba(243, 107, 75, 0.1), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: rgba(245, 241, 234, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-bottom: 1px solid rgba(29, 27, 22, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-text {
  display: grid;
}

.brand-name {
  font-weight: 600;
}

.brand-tag {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  opacity: 0.8;
}

.nav-link:hover {
  opacity: 1;
}

.btn {
  border: none;
  font-family: inherit;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 12px 25px rgba(243, 107, 75, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(243, 107, 75, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(29, 27, 22, 0.2);
  color: var(--ink);
}

.hero {
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
}

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.metric {
  background: rgba(255, 255, 255, 0.7);
  padding: 14px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.metric-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  padding: 28px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.hero-card-top {
  display: flex;
  gap: 10px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 111, 139, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 8px;
}

.checklist li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--brand);
}

.hero-card-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed rgba(29, 27, 22, 0.15);
  padding-top: 16px;
}

.small-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.small-value {
  font-weight: 600;
}

.section {
  padding: 60px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
}

.save-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.save-panel {
  align-content: center;
  text-align: center;
  gap: 16px;
  min-height: 420px;
}

.save-title {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
}

.login-card {
  background: var(--card);
  padding: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.login-title {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
}

.login-error {
  color: #b23b2a;
  font-size: 0.9rem;
}

.investor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 24px;
}

.investor-list {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
  max-height: 760px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.list-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.list-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 27, 22, 0.2);
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.filter-btn.is-active {
  background: rgba(31, 111, 139, 0.12);
  border-color: rgba(31, 111, 139, 0.4);
  color: var(--accent);
}

.list-items {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 6px;
}

.list-item {
  border: 1px solid rgba(29, 27, 22, 0.12);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: #fffaf5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(29, 27, 22, 0.15);
}

.list-item.is-active {
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(31, 111, 139, 0.2);
}

.list-name {
  font-weight: 600;
}

.list-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.list-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 139, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  width: fit-content;
}

.list-status {
  background: rgba(243, 107, 75, 0.15);
  color: #d4573b;
}

.list-status.is-selected {
  background: rgba(34, 139, 72, 0.15);
  color: #2a7a4a;
}

.list-status.is-rejected {
  background: rgba(178, 59, 42, 0.12);
  color: #b23b2a;
}

.list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-mini {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(29, 27, 22, 0.2);
  background: transparent;
  cursor: pointer;
}

.btn-danger {
  border-color: rgba(178, 59, 42, 0.4);
  color: #b23b2a;
}

.list-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px;
}

.builder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.form {
  background: var(--card);
  padding: 26px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

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

.field-group-title {
  font-weight: 700;
  font-size: 1rem;
  padding-top: 6px;
}

.phone-group {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
  align-items: stretch;
}

.country-select {
  position: relative;
}

.country-select-btn,
.country-option {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Space Grotesk", sans-serif;
}

.country-select-btn {
  width: 100%;
  height: 100%;
  min-height: 46px;
  border: 1px solid rgba(29, 27, 22, 0.15);
  border-radius: 14px;
  padding: 10px 30px 10px 10px;
  font-size: 0.95rem;
  background: #fffaf5;
  cursor: pointer;
  text-align: left;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.country-select-btn::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.country-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 170px;
  max-height: 260px;
  overflow: auto;
  background: #fffaf5;
  border: 1px solid rgba(29, 27, 22, 0.15);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 20;
}

.country-select.is-open .country-select-menu {
  display: grid;
  gap: 4px;
}

.country-option {
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.country-option:hover,
.country-option.is-selected {
  background: rgba(31, 111, 139, 0.12);
}

.country-select-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.country-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea,
select {
  border: 1px solid rgba(29, 27, 22, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fffaf5;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(31, 111, 139, 0.2);
  border-color: var(--accent);
}

.preview {
  background: #11110f;
  color: #f5f1ea;
  padding: 30px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  min-height: 720px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.2);
  padding-bottom: 16px;
}

.preview-title {
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.preview-tagline {
  color: rgba(245, 241, 234, 0.7);
  font-size: 0.95rem;
}

.preview-pill {
  background: rgba(243, 107, 75, 0.2);
  color: #f3d2c7;
  padding: 8px 14px;
  border-radius: 999px;
  height: fit-content;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.preview-item {
  background: rgba(245, 241, 234, 0.08);
  padding: 12px;
  border-radius: 16px;
}

.label {
  color: rgba(245, 241, 234, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.value {
  font-weight: 600;
  margin-top: 4px;
}

.preview-block {
  background: rgba(245, 241, 234, 0.06);
  padding: 14px 16px;
  border-radius: 16px;
}

.block-title {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(245, 241, 234, 0.6);
  margin-bottom: 6px;
}

.ebitda-list {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

.preview-contact {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed rgba(245, 241, 234, 0.2);
  font-size: 0.9rem;
  color: rgba(245, 241, 234, 0.8);
}

.preview-footer {
  text-align: right;
  font-size: 0.75rem;
  color: rgba(245, 241, 234, 0.5);
}

.footer {
  padding: 30px 0 50px;
  border-top: 1px solid rgba(29, 27, 22, 0.1);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .site-header {
    position: static;
  }

  .preview {
    order: -1;
  }

  .investor-grid {
    grid-template-columns: 1fr;
  }

  .phone-group {
    grid-template-columns: 1fr;
  }

}

@media print {
  body {
    background: white;
  }

  .site-header,
  .hero,
  .form,
  .footer,
  .bg-noise {
    display: none !important;
  }

  .preview {
    box-shadow: none;
    border-radius: 0;
    color: #11110f;
    background: white;
  }

  .preview-item,
  .preview-block {
    background: #f7f4ef;
    color: #11110f;
  }

  .preview-pill {
    color: #d94f33;
    background: rgba(243, 107, 75, 0.2);
  }
}
