:root {
  --bg: #f3efe7;
  --bg-accent: #ebe3d4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(45, 44, 41, 0.1);
  --text: #1e1d1a;
  --muted: #666155;
  --accent: #1f6d5a;
  --shadow: 0 24px 80px rgba(56, 47, 33, 0.12);
  --radius-lg: 28px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 36%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 100%);
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layout {
  display: grid;
  gap: 24px;
}

.hero-card,
.panel,
.pricing-panel {
  background: var(--surface);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 10px 6px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.hero-text,
.muted-text,
.proposal-output,
label,
li,
.status-text {
  color: var(--muted);
}

.hero-text {
  max-width: 54ch;
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span,
.small-pill,
.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text);
}

.account-card,
.pricing-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.proposal-panel {
  min-height: 100%;
}

.stack {
  display: grid;
  gap: 16px;
}

label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 14px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(31, 109, 90, 0.4);
  box-shadow: 0 0 0 4px rgba(31, 109, 90, 0.12);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  border: 0;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-button {
  background: var(--text);
  color: #fff;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  text-align: left;
}

.button-link {
  text-decoration: none;
}

.proposal-output {
  min-height: 360px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  line-height: 1.8;
  white-space: pre-wrap;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
}

.pricing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
}

.pricing-name {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-price {
  margin-bottom: 18px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.feature-list {
  margin: 0 0 18px;
  padding-left: 18px;
  line-height: 1.9;
}

.plan-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.history-list {
  display: grid;
  gap: 14px;
}

.history-item {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.history-item p {
  margin-bottom: 0;
}

.history-title {
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.status-text {
  min-height: 20px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 21, 16, 0.42);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(100%, 460px);
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  margin-left: auto;
  display: block;
  margin-bottom: 16px;
}

.billing-summary {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

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

.billing-row:last-child {
  margin-bottom: 0;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-copy {
  margin: 0;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--accent);
}

@media (max-width: 920px) {
  .hero-card,
  .content-grid,
  .pricing-panel,
  .input-row {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 18px;
  }

  .topbar,
  .panel-header,
  .card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-card,
  .panel,
  .pricing-panel {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-points,
  .plan-pill-row,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
