:root {
  --paper: #fbf8f1;
  --surface: #fffdf8;
  --ink: #161713;
  --muted: #606356;
  --line: #deddd1;
  --sage: #dde2d0;
  --sage-dark: #506346;
  --terracotta: #b94720;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --motion-fast: .18s;
}

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

body {
  font-family: "Times New Roman", Times, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-out);
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease-out);
}

.btn-primary {
  background: var(--sage-dark);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-danger {
  background: var(--terracotta);
  color: white;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

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

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--sage-dark);
  margin: 1rem 0;
}

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

.balance-display {
  font-size: 2rem;
  font-weight: bold;
  color: var(--sage-dark);
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

table th,
table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table th {
  background: var(--sage);
  font-weight: bold;
}

.code {
  font-family: "Courier New", monospace;
  background: var(--sage);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
}

.alert {
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid var(--sage-dark);
  color: var(--sage-dark);
}

form .form-group {
  margin-bottom: 1rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

form input,
form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

form input:focus,
form select:focus {
  outline: none;
  border-color: var(--sage-dark);
}
