/* Bob's Billets — parchment & forge design system */

:root {
  --parchment: #f7f0e2;
  --parchment-alt: #efe3cd;
  --parchment-line: #ddccac;
  --card: #fffaf0;
  --iron: #211d1a;
  --wood: #3a3128;
  --slate: #5a5147;
  --dim: #6b6259;
  --gold: #c99a3d;
  --gold-deep: #a97e2c;
  --gold-soft: rgba(201, 154, 61, 0.14);
  --shadow: 0 1px 2px rgba(33, 29, 26, 0.05), 0 8px 24px -12px rgba(33, 29, 26, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--wood);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--iron);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

p { margin: 0 0 14px; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 88px 0; border-bottom: 1px solid var(--parchment-line); }
section:last-of-type { border-bottom: none; }

.measure { max-width: 62ch; }

.dim { color: var(--dim); font-size: 0.92rem; }

/* ---------- Section head ---------- */

.section-head { margin-bottom: 34px; }

.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 130px 0 96px;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, var(--gold-soft), transparent),
    var(--parchment);
  border-bottom: 1px solid var(--parchment-line);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--parchment-line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--wood);
  margin-bottom: 26px;
}

.mark { display: inline-flex; flex-shrink: 0; }

.hero h1 { max-width: 18ch; }

.sub {
  max-width: 56ch;
  font-size: 1.14rem;
  color: var(--slate);
  margin-top: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note { margin-top: 16px; color: var(--dim); font-size: 0.86rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #1c1710;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--iron);
  color: var(--iron);
}
.btn-ghost:hover { background: var(--iron); color: var(--parchment); }

/* ---------- Split (website vs application) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.split-col {
  background: var(--card);
  border: 1px solid var(--parchment-line);
  border-radius: 12px;
  padding: 30px 32px;
}

.split-col ul { margin-top: 4px; }

.split-col li {
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--parchment-line);
  position: relative;
  color: var(--wood);
}
.split-col li:last-child { border-bottom: none; }
.split-col li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.rule-note {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 8px 8px 0;
  color: var(--wood);
  font-size: 0.96rem;
}

/* ---------- Currently building ---------- */

#currently-building { background: var(--parchment); }

/* ---------- Pricing ---------- */

.price-table {
  border: 1px solid var(--parchment-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.price-head, .price-row {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 26px;
}

.price-head {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dim);
  background: var(--parchment-alt);
}

.price-row { border-top: 1px solid var(--parchment-line); }

.price-row .name { font-weight: 600; color: var(--iron); }
.price-row .scope { color: var(--slate); font-size: 0.94rem; }
.price-row .figure {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gold-deep);
  text-align: right;
}

/* ---------- Care plans ---------- */

.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--parchment-line);
  border-radius: 999px;
  background: var(--card);
  padding: 4px;
  margin-bottom: 34px;
  gap: 4px;
}

.billing-toggle button {
  border: none;
  background: transparent;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.billing-toggle button.active { background: var(--iron); color: var(--parchment); }

.save-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #1c1710;
}
.billing-toggle button.active .save-badge { background: var(--gold); color: #1c1710; }

.care-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.care-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--parchment-line);
  border-radius: 12px;
  padding: 26px 24px;
}

.tier-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  order: -1;
}

.tier-name { font-size: 1.15rem; margin-bottom: 2px; }

.tier-price {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--iron);
  margin-top: 6px;
}
.tier-price span { font-family: 'IBM Plex Sans', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--dim); }

.tier-note { min-height: 18px; font-size: 0.8rem; color: var(--gold-deep); font-style: italic; margin-top: 2px; }

.tier-hours {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin: 12px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--parchment-line);
}

.tier-includes { flex-grow: 1; }

.tier-includes li {
  padding: 6px 0 6px 24px;
  font-size: 0.92rem;
  color: var(--wood);
  position: relative;
}
.tier-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.85rem;
}
.tier-includes li.inherit {
  font-style: italic;
  color: var(--dim);
  font-weight: 500;
}
.tier-includes li.inherit::before { content: "+"; }

.tier-for {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--parchment-line);
  font-size: 0.84rem;
  color: var(--dim);
}

/* ---------- Assessment ---------- */

.assessment { background: var(--parchment-alt); }

.assessment-inner {
  background: var(--card);
  border: 1px solid var(--parchment-line);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  padding: 48px 52px 52px;
  box-shadow: var(--shadow);
}

.lead { color: var(--slate); font-size: 1.02rem; margin-top: 8px; margin-bottom: 34px; }

.picker-intro { font-weight: 600; color: var(--iron); margin-bottom: 2px; }
.picker-sub { color: var(--dim); font-size: 0.88rem; margin-bottom: 20px; }

.build-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.build-card {
  border: 1.5px solid var(--parchment-line);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  background: var(--parchment);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.build-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.build-card.selected { border-color: var(--gold); background: var(--gold-soft); }

.picker-mock-note { font-size: 0.74rem; color: var(--dim); font-style: italic; margin: -10px 0 16px; }

.build-card svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 160 / 100;
  margin-bottom: 10px;
}

.build-mock { border-radius: 8px; }

.build-name { display: block; font-weight: 600; font-size: 0.88rem; color: var(--iron); margin-bottom: 4px; }
.build-blurb { display: block; font-size: 0.76rem; color: var(--dim); line-height: 1.3; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}

.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }

label { font-size: 0.86rem; font-weight: 600; color: var(--wood); margin-bottom: 8px; }

input[type="text"], input[type="email"], select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--parchment-line);
  border-radius: 8px;
  background: var(--parchment);
  color: var(--iron);
  outline: none;
  transition: border-color 0.15s ease;
}
input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}

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

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 10px 16px;
  border: 1.5px solid var(--parchment-line);
  border-radius: 999px;
  background: var(--parchment);
  cursor: pointer;
  margin-bottom: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-group label:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.radio-group input { accent-color: var(--gold-deep); }

.form-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn-fb {
  border: none;
  background: var(--gold);
  color: #1c1710;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-fb:hover { background: var(--gold-deep); transform: translateY(-1px); }

#result-box {
  display: none;
  margin-top: 30px;
  padding: 30px 32px;
  border-radius: 10px;
  background: var(--iron);
  color: var(--parchment);
}
#result-box.show { display: block; }
#result-box .dim { color: var(--gold); font-weight: 600; letter-spacing: 0.06em; font-size: 0.74rem; text-transform: uppercase; }

.tier-call {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: #fffaf0;
  margin: 10px 0 12px;
}

#result-box #result-copy { color: #d8cfc0; }

/* ---------- Footer ---------- */

footer {
  background: var(--iron);
  color: #cbbfab;
  padding: 56px 0;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fffaf0;
}

footer .dim { color: #9c8f78; line-height: 1.8; }
footer a { color: #cbbfab; }
footer a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: 1fr 1fr; }
  .build-picker { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .assessment-inner { padding: 36px 26px 40px; }
  .price-head { display: none; }
  .price-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; }
  .price-row .figure { text-align: left; margin-top: 4px; }
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 70px; }
  .hero h1 { max-width: none; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .care-grid { grid-template-columns: 1fr; }
  .build-picker { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 20px; }
}
