/* ============================================
   DESIGN TOKENS — change colors/fonts here,
   they cascade through the whole page.
   ============================================ */
:root {
  --case: #1F2A22;        /* deep instrument-case green */
  --case-light: #2B3A2C;
  --case-dark: #141D17;

  --bone: #EDE6D3;        /* worn paper / case lining */
  --bone-dim: #E1D8BE;

  --brass: #C9A227;
  --brass-bright: #E3BE4B;

  --copper: #B5581F;

  --ink: #161B14;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-stamp: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--case);
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.5;
}

::selection { background: var(--brass); color: var(--ink); }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap-narrow { max-width: 48rem; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 42, 34, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(237, 230, 211, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Logo + wordmark grouped so they behave as one flex item */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0; /* lets it shrink instead of forcing nav to overflow */
}

.logo {
  height: clamp(28px, 6vw, 48px);
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Below 480px, drop the text wordmark and keep just the mark itself —
   the logo artwork already contains "RI", so identity isn't lost. */
@media (max-width: 480px) {
  .brand-lockup .brand {
    display: none;
  }
}

.nav-links {
  display: none;
  gap: 1.25rem;
}

.nav-links a {
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 206, 83, 0.7);
  transition: color 0.15s ease;
}

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

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Very narrow phones: two nav buttons + logo can get tight — shrink
   button padding/text further so nothing wraps or overflows. */
@media (max-width: 400px) {
  .nav-ctas {
    gap: 0.4rem;
  }

  .nav-ctas .btn-small {
    padding: 0.45rem 0.7rem;
    font-size: 0.65rem;
  }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  border-radius: 2px;
  font-family: var(--font-stamp);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.btn-small { padding: 0.5rem 1rem; font-size: 0.7rem; }
.btn-large { padding: 1rem 2rem; font-size: 0.85rem; }

.btn-brass {
  background: var(--brass);
  color: var(--ink);
}
.btn-brass:hover { background: var(--brass-bright); }

.btn-outline {
  border-color: rgba(237, 230, 211, 0.3);
  color: var(--bone);
}
.btn-outline:hover { border-color: var(--bone); }

/* ============================================
   SIGNATURE ELEMENT: the hangtag
   (instrument price/feature tag, punch hole + notch)
   ============================================ */
.hangtag {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-stamp);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border-radius: 2px;
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 10% 100%, 0% 50%);
  margin-bottom: 2rem;
}

.hangtag::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--case);
  box-shadow: 0 0 0 2px var(--bone-dim);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 4rem 0 6rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04), transparent 55%),
    var(--case);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  max-width: 44rem;
  margin: 0 0 1.5rem;
}

.hero-sub {
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(237, 230, 211, 0.8);
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stat {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid rgba(237, 230, 211, 0.15);
  padding-top: 0.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 12vw, 6rem);
  font-weight: 600;
  color: var(--brass-bright);
}

.stat-label {
  max-width: 14rem;
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: rgba(255, 209, 81, 0.6);
}

/* ============================================
   SECTIONS — shared
   ============================================ */
.section { padding: 5rem 0; }

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 4rem; }
}

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

.section-light { background: var(--bone); color: var(--ink); }
.section-dark  { background: var(--case); color: var(--bone); }
.section-mid   { background: var(--case-light); color: var(--bone); }

.eyebrow {
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}
.eyebrow-copper { color: var(--copper); }
.eyebrow-brass { color: var(--brass); }

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  max-width: 42rem;
  margin: 0 0 1rem;
}
.h2-light { color: var(--bone); }

.body-md {
  max-width: 40rem;
  color: inherit;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.body-lg { font-size: 1.125rem; line-height: 1.7; opacity: 0.85; }
.body-muted { opacity: 0.7; }

.grid-split {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .grid-split {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

/* ============================================
   WHY USED — feature grid
   ============================================ */
.feature-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  border-top: 2px solid var(--case);
  padding-top: 1rem;
}

.feature dt {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.feature dd {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.7;
}

/* ============================================
   WHAT THIS IS — card pair
   ============================================ */
.card-pair {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .card-pair { grid-template-columns: 1fr 1fr; }
}

.card {
  border-radius: 2px;
  padding: 2rem;
  border: 1px solid rgba(237, 230, 211, 0.15);
  background: var(--case-light);
}

.card-highlight { border-color: rgba(201, 162, 39, 0.4); }

.card-label {
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-label-muted { color: rgba(237, 230, 211, 0.4); }
.card-label-brass { color: var(--brass-bright); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0 0.75rem;
}

.card-body {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.75;
  margin: 0;
}

/* ============================================
   TIMELINE — genuine sequence, numbered by day
   ============================================ */
.timeline {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 2.5rem 0 0;
  border-top: 1px solid rgba(22, 27, 20, 0.1);
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.timeline-day {
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0 0.5rem;
}

.timeline-detail {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.7;
  margin: 0;
}

.timeline-note {
  max-width: 36rem;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.6;
  margin-top: 3rem;
}

/* ============================================
   PRICING TABLE
   ============================================ */
.table-wrap {
  margin-top: 3rem;
  border: 1px solid rgba(237, 230, 211, 0.15);
  border-radius: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 460px; /* below this, the table scrolls horizontally instead of squishing unreadably */
  border-collapse: collapse;
  text-align: left;
}

thead tr { background: var(--case-light); }

th {
  font-family: var(--font-stamp);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(237, 230, 211, 0.6);
  padding: 1rem 1.5rem;
  font-weight: 500;
  white-space: nowrap;
}

.th-highlight { color: var(--brass-bright); }

td {
  padding: 1rem 1.5rem;
  white-space: nowrap;
}

tbody tr:nth-child(odd) { background: var(--case); }
tbody tr:nth-child(even) { background: var(--case-light); }

@media (max-width: 640px) {
  th, td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

.price-old {
  color: rgba(237, 230, 211, 0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(181, 88, 31, 0.7);
}

.price-new {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brass-bright);
}

.fine-print {
  font-size: 0.75rem;
  opacity: 0.4;
  margin-top: 1rem;
}

/* ============================================
   QUALITY CHECKLIST
   ============================================ */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(22, 27, 20, 0.1);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
}

.check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--case);
  color: var(--brass-bright);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.guarantee {
  margin-top: 2rem;
  background: var(--case);
  color: var(--bone);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
}

/* ============================================
   PULL QUOTE — used in the "handpicked" section
   ============================================ */
.pull-quote {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--brass-bright);
  border-left: 3px solid var(--brass);
  padding-left: 1.25rem;
}

/* ============================================
   CALL SECTION
   ============================================ */
.call-wrap {
  max-width: 42rem;
  text-align: center;
}

.call-wrap .eyebrow,
.call-wrap .h2,
.call-wrap .body-md { margin-left: auto; margin-right: auto; }

.bullet-list {
  list-style: none;
  margin: 2.5rem auto;
  padding: 0;
  max-width: 30rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.bullet-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brass);
  margin-top: 0.5rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(22, 27, 20, 0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(22, 27, 20, 0.1);
  padding: 1.25rem 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-plus {
  color: var(--copper);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-plus { transform: rotate(45deg); }

.faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--case);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid rgba(237, 230, 211, 0.1);
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.footer-note {
  max-width: 28rem;
  font-size: 0.75rem;
  opacity: 0.5;
  margin: 0.25rem 0 0;
}

.footer-email {
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
}
.footer-email:hover { color: var(--brass-bright); }

/* ============================================
   PRICE BREAKDOWN — bar chart comparison
   ============================================ */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 3rem;
}

.bar-group { max-width: 40rem; }

.bar-row-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.bar-row-label .instrument-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.bar-row-label .savings-tag {
  font-family: var(--font-stamp);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brass-bright);
  font-weight: 700;
}

@media (max-width: 480px) {
  .bar-row-label .savings-tag { font-size: 0.8rem; }
}

.bar-track {
  position: relative;
  background: rgba(237, 230, 211, 0.08);
  border-radius: 2px;
  height: 2.25rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  min-width: fit-content;
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 2px;
}

.bar-fill.bigbox {
  background: rgba(237, 230, 211, 0.25);
  color: var(--bone);
}

.bar-fill.revive {
  background: var(--brass-bright);
  color: var(--ink);
}

.bar-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.bar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.bar-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.bar-legend-dot.bigbox { background: rgba(237, 230, 211, 0.35); }
.bar-legend-dot.revive { background: var(--brass-bright); }

/* Two hero-stat blocks side by side */
.stat-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .stat-pair { gap: 2rem; }
}

/* ============================================
   BOOKING FORM
   ============================================ */
.field {
  margin: 0 0 1.75rem;
  border: none;
  padding: 0;
}

.field-label {
  display: block;
  font-family: var(--font-stamp);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 0.6rem;
  padding: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(22, 27, 20, 0.2);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="tel"]:focus,
.field input[type="date"]:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

/* Button-style radio groups (instrument / level / time pickers) */
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.toggle-group input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.toggle-group label {
  cursor: pointer;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(22, 27, 20, 0.25);
  border-radius: 2px;
  font-family: var(--font-stamp);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.toggle-group input:checked + label {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
  font-weight: 700;
}

.toggle-group input:focus-visible + label {
  outline: 2px solid var(--case);
  outline-offset: 2px;
}

.toggle-group label:hover {
  border-color: var(--brass);
}

/* Mobile: turn the wrapped chip row into a full-width stacked list.
   Small, tightly-packed chips are easy to mis-tap with a thumb — a
   full-width row per option is a much bigger, safer target. */
@media (max-width: 480px) {
  .toggle-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .toggle-group label {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
  }
}

.form-success,
.form-error {
  padding: 2rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.form-success {
  background: var(--bone-dim);
  border: 1px solid rgba(22, 27, 20, 0.15);
}

.form-success .btn-outline {
  margin-top: 1rem;
}

.form-error {
  background: rgba(181, 88, 31, 0.12);
  border: 1px solid rgba(181, 88, 31, 0.4);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
