/* JK.Creative Web Studio — Rebuild checkout pages
   Voice + palette match web-studio-landing.html. Loaded by all 3 tier pages. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #0E1C3A;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --border: #e2e8f0;
  --accent: #1d4ed8;
  --rush-bg: #fef3c7;
  --rush-fg: #92400e;
  --error: #dc2626;
  --success: #059669;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 32px 24px 64px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}
.brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-sub {
  display: block;
  font-size: 0.65rem;
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topnav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 16px;
}
.topnav a:hover { color: var(--ink); }

h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 400;
}
.tier-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}
.lede {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 0 32px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
}

.preview-card,
.form-card,
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}
.preview-card h2,
.form-card h2,
.spec-card h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 16px;
  font-weight: 400;
}

.preview-frame {
  width: 100%;
  height: 460px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.preview-empty {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.price-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.4rem;
  color: var(--ink);
  font-weight: 400;
}
.price-flat {
  font-size: 0.85rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.window-line {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
}
.spec-list li {
  padding: 6px 0;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.spec-list li::before {
  content: "—";
  color: var(--ink-3);
  flex-shrink: 0;
}

.rush-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--rush-bg);
  color: var(--rush-fg);
  border-radius: 10px;
  font-size: 0.9rem;
  margin: 16px 0;
  cursor: pointer;
  border: 1px solid #fcd34d;
}
.rush-toggle input { margin: 0; }
.rush-toggle strong { font-weight: 600; }

label.field {
  display: block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--ink-2);
}
label.field span { display: block; margin-bottom: 4px; }
label.field input,
label.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
label.field input:focus,
label.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: transparent;
}
label.field textarea { resize: vertical; min-height: 80px; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: #1a2d5a; transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); }
.btn-square {
  background: #1d4ed8;
  font-size: 1rem;
  padding: 16px 32px;
  width: 100%;
  text-align: center;
}

.fine-print {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 12px;
}
.fine-print a { color: var(--accent); }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 0.9rem;
}
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.foot {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-3);
}

.tier-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tier-switcher a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--surface);
}
.tier-switcher a.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
