:root {
  --bg: #f6f1e7;
  --bg-deep: #102726;
  --panel: rgba(255, 250, 243, 0.76);
  --panel-strong: rgba(255, 250, 243, 0.92);
  --border: rgba(16, 39, 38, 0.12);
  --text: #102221;
  --muted: #586665;
  --teal: #0f766e;
  --gold: #b98231;
  --ink: #16213a;
  --rose: #cc6a54;
  --shadow: 0 24px 60px rgba(16, 34, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(185, 130, 49, 0.18), transparent 22%),
    linear-gradient(180deg, #fbf6ef 0%, #f0e6d8 48%, #f7f2e8 100%);
  font-family: "Instrument Sans", sans-serif;
}

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

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

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

.page-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  padding: 22px 0 44px;
}

.topbar,
.hero-grid,
.dashboard-grid,
.insight-grid,
.field-row,
.pricing-grid,
.proof-grid,
.sheet-grid {
  display: grid;
  gap: 20px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 8px 0 28px;
}

.brand,
.topbar-links,
.hero-actions,
.hero-metrics,
.panel-header,
.history-head,
.mini-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fffaf3;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: var(--shadow);
}

.topbar-links {
  color: var(--muted);
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.95;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 10.5ch;
}

.hero-text,
.section-heading p,
.proof-card p,
.price-card p,
.price-note,
label,
.history-summary,
.pack-label,
.sheet-summary p,
.reminder-item span {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--ink), #21365c);
  color: #fffaf3;
  box-shadow: var(--shadow);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--border);
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.hero-metrics li {
  min-width: 132px;
}

.hero-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 2rem;
}

.hero-preview,
.panel,
.proof-card,
.price-card,
.history-item,
.reminder-item {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.hero-preview,
.panel,
.proof-card,
.price-card {
  padding: 24px;
}

.hero-chip,
.status-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--ink);
  font-size: 0.82rem;
}

.status-pill.subtle {
  background: rgba(185, 130, 49, 0.12);
}

.preview-card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 24px;
}

.primary-card {
  color: #fffaf3;
  background: linear-gradient(135deg, var(--ink), #29456e);
}

.secondary-card {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(185, 130, 49, 0.12));
}

.secondary-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.stack-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

.section {
  padding-top: 36px;
}

.section-heading {
  margin-bottom: 22px;
}

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

.proof-card span {
  color: var(--teal);
  font-weight: 800;
}

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

.panel-form,
.panel-result {
  min-height: 100%;
}

form label,
.sheet-grid article,
.sheet-summary,
.price-card,
.proof-card {
  display: grid;
  gap: 8px;
}

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

.field-row:first-of-type,
.field-row:nth-of-type(2) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

input,
textarea,
select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  padding: 14px 16px;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.invoice-sheet {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.82));
}

.sheet-top,
.sheet-grid {
  display: grid;
  gap: 16px;
}

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

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

.pack-label,
.price-name {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.sheet-top h4,
.price-card h3 {
  margin: 0;
  font-size: 2rem;
}

.sheet-summary {
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

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

.history-item,
.reminder-item {
  padding: 16px 18px;
}

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

.history-empty {
  margin: 0;
  color: var(--muted);
}

.featured {
  background: linear-gradient(180deg, rgba(22, 33, 58, 0.92), rgba(41, 69, 110, 0.92));
  color: #fffaf3;
}

.featured .price-name,
.featured p,
.featured .price-note {
  color: rgba(255, 250, 243, 0.8);
}

.price-card span {
  font-size: 1rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .dashboard-grid,
  .insight-grid,
  .proof-grid,
  .pricing-grid,
  .field-row,
  .field-row:first-of-type,
  .field-row:nth-of-type(2),
  .sheet-top,
  .sheet-grid {
    grid-template-columns: 1fr;
  }

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