:root {
  --white: #fcfbf7;
  --bone: #f5f1e4;
  --stone: #3c3a33;
  --muted: #7c7462;
  --gold: #c7a048;
  --gold-soft: #e7cf94;
  font-family: 'Prompt', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--white), var(--bone));
  color: var(--stone);
  font-family: inherit;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 4rem;
}

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(252, 251, 247, 0.9);
  padding: 1rem 0;
  backdrop-filter: saturate(150%) blur(18px);
  z-index: 5;
  box-shadow: 0 15px 35px rgba(60, 58, 51, 0.08);
}

.logo {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--stone);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-family: inherit;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 0 2rem;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 1rem 0;
}

.hero p {
  line-height: 1.8;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--stone);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--stone);
  color: var(--white);
  border-color: var(--stone);
}

.btn.secondary {
  border-color: var(--gold);
  color: var(--stone);
}

.btn.ghost {
  border-color: transparent;
  color: var(--stone);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(60, 58, 51, 0.12);
}

.btn:focus-visible {
  outline: 3px solid rgba(199, 160, 72, 0.4);
  outline-offset: 3px;
}

.meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  position: relative;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 30%, rgba(199, 160, 72, 0.25), #fff);
  border: 1px solid rgba(199, 160, 72, 0.4);
  padding: 2rem;
  min-height: 360px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile span {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gold);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.mock-block {
  margin-top: 2rem;
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--white);
}

.short-lines {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 1.2rem;
}

.short-lines span {
  height: 6px;
  border-radius: 999px;
  background: rgba(60, 58, 51, 0.15);
}

.link-pill {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 160, 72, 0.3);
  margin-right: 0.5rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--stone);
}

.curve {
  position: absolute;
  inset: auto 1.4rem 1.4rem auto;
  width: 120px;
  height: 120px;
  border-radius: 50% 50% 0 50%;
  border: 1px solid rgba(199, 160, 72, 0.4);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.feature-grid article {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #fff;
}

.section-heading {
  max-width: 520px;
}

.templates,
.pricing {
  padding: 3rem 0;
}

.template-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.template-card {
  border-radius: 22px;
  border: 1px solid rgba(199, 160, 72, 0.25);
  padding: 1.6rem;
  background: linear-gradient(180deg, #fff, var(--bone));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(60, 58, 51, 0.12);
}

body.surface {
  background: radial-gradient(circle at top, rgba(231, 207, 148, 0.35), transparent 55%), var(--bone);
  min-height: 100vh;
  position: relative;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.form-card {
  width: min(540px, 100%);
  background: #fff;
  border-radius: 32px;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 25px 65px rgba(60, 58, 51, 0.08);
}

.form-card h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-card p {
  margin-top: 0;
  color: var(--muted);
}

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

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-form input {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 160, 72, 0.15);
}

.auth-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-message {
  min-height: 1.2rem;
  font-weight: 500;
}

.login-success {
  color: #1a7d4d;
}

.login-error {
  color: #b6463b;
}

.muted-text {
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.auth-links {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-links a {
  color: var(--stone);
  text-decoration: none;
  font-weight: 500;
}

.dashboard-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.dash-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 15px 30px rgba(60, 58, 51, 0.08);
}

.dash-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.dash-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.dash-card li + li {
  margin-top: 0.35rem;
}

.status-chip {
  display: inline-flex;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(199, 160, 72, 0.12);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.logout-btn {
  align-self: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing .plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan-grid article {
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-grid .featured {
  border-color: var(--gold);
  box-shadow: 0 15px 45px rgba(51, 38, 14, 0.08);
}

.plan-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(60, 58, 51, 0.12);
  border-color: rgba(199, 160, 72, 0.5);
}

.price {
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}

.plan-grid ul {
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
  color: var(--muted);
}

.plan-grid li + li {
  margin-top: 0.5rem;
}

.cta-band {
  margin: 3rem 0;
  padding: 2rem 2.5rem;
  border-radius: 28px;
  border: 1px solid rgba(199, 160, 72, 0.4);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer a {
  text-decoration: none;
  color: var(--stone);
}

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

@media (max-width: 720px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    top: 64px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

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