/* Bob's Webworks — dark, confident design system (Grove) */

:root {
  --bg: #10160f;
  --bg-alt: #151d13;
  --surface: #1b2519;
  --surface-2: #0b0f09;
  --line: #2d3b28;
  --ink: #eff5e8;
  --body: #cdd9c2;
  --muted: #9bad8c;
  --faint: #718065;
  --gold: #7fb85c;
  --gold-deep: #629544;
  --gold-soft: rgba(127, 184, 92, 0.16);
  --danger: #e08462;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px -12px rgba(0, 0, 0, 0.55);

  --silver: #b9c2c9;
  --silver-soft: rgba(185, 194, 201, 0.14);
  --platinum: #d7e0e4;
  --platinum-soft: rgba(215, 224, 228, 0.14);
  --diamond: #b9e9f2;
  --diamond-soft: rgba(185, 233, 242, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  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(--ink);
  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(--line); }
section:last-of-type { border-bottom: none; }
.section-alt { background: var(--bg-alt); }

.measure { max-width: 62ch; }

.dim { color: var(--faint); 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);
  margin-bottom: 14px;
}

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

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

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

.mark { display: inline-flex; flex-shrink: 0; align-items: center; }
.mark img { height: 15px; width: auto; display: block; }
.mark.mark-lg img { height: 30px; }

.hero-logo { width: 320px; height: auto; margin-bottom: 30px; }

.hero-photo {
  width: 180px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 26px;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Sticky nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(15, 12, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transform: translateY(-16px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease,
    border-color 0.35s ease;
}
.site-nav.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  border-bottom-color: var(--line);
}

.site-nav-inner { padding: 12px 28px; display: flex; align-items: center; }

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.site-nav-brand img { height: 26px; width: auto; }
.site-nav-brand img.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

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

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

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

.hero-note { margin-top: 16px; color: var(--faint); 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(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--gold); }

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

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

.split-col {
  background: var(--surface);
  border: 1px solid var(--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(--line);
  position: relative;
  color: var(--body);
}
.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(--body);
  font-size: 0.96rem;
}

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

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

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

.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(--faint);
  background: var(--bg-alt);
}

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

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

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

.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  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(--muted);
  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(--gold); color: #1c1710; }

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

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

.care-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--metal, var(--gold));
  border-radius: 12px;
  padding: 26px 24px;
}

.care-card[data-metal="silver"]   { --metal: var(--silver); }
.care-card[data-metal="gold"]     { --metal: var(--gold); }
.care-card[data-metal="platinum"] { --metal: var(--platinum); }
.care-card[data-metal="diamond"]  { --metal: var(--diamond); }

.tier-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--metal, var(--gold));
  background: color-mix(in srgb, var(--metal, var(--gold)) 16%, transparent);
  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(--ink);
  margin-top: 6px;
}
.tier-price span { font-family: 'IBM Plex Sans', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--faint); }

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

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

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

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

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

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

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

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

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

.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(--body); 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(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  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(--line);
  border-radius: 999px;
  background: var(--bg);
  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;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--gold-deep);
  color: var(--body);
  overflow: hidden;
}
#result-box.show { display: block; }

.result-top {
  padding: 30px 32px 24px;
}

.result-top .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: var(--ink);
  margin: 10px 0 12px;
}

#result-copy { color: var(--body); font-size: 0.96rem; margin-bottom: 0; }

.result-match {
  border-top: 1px solid var(--line);
  padding: 24px 32px 28px;
  background: rgba(0,0,0,0.15);
}

.result-match-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.result-match-name { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.result-match-figure { font-family: 'Fraunces', serif; color: var(--gold); font-size: 1.2rem; font-weight: 600; }
.result-match-scope { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

.result-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-cta-row .btn { padding: 11px 20px; font-size: 0.9rem; }

#submit-status { margin-top: 14px; font-size: 0.88rem; }

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

footer {
  background: var(--surface-2);
  color: var(--muted);
  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: var(--ink);
}

footer .dim { color: var(--faint); line-height: 1.8; }
footer a { color: var(--muted); }
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; }
  .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; }
  .wrap { padding: 0 20px; }
}
