/* ============================================
   GET ON BY — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Sage green system — mirrors app palette */
  --green-50:  hsl(145 25% 95%);
  --green-200: hsl(145 30% 72%);
  --green-600: hsl(150 20% 35%);
  --green-800: hsl(150 20% 25%);
  --green-900: hsl(160 15% 15%);

  --amber-50:  hsl(38 80% 94%);
  --amber-200: hsl(38 80% 70%);
  --amber-600: hsl(38 70% 40%);
  --amber-800: hsl(38 70% 28%);
  --amber-900: hsl(38 65% 20%);

  --red-50:    hsl(0 65% 96%);
  --red-200:   hsl(0 65% 78%);
  --red-600:   hsl(0 70% 50%);
  --red-800:   hsl(0 65% 35%);

  /* Teal aliased to sage accent for brand consistency */
  --teal-50:   hsl(145 25% 95%);
  --teal-600:  hsl(150 20% 35%);
  --teal-800:  hsl(150 20% 25%);

  --purple-50:  hsl(245 85% 96%);
  --purple-600: hsl(245 45% 50%);
  --purple-800: hsl(245 40% 35%);

  --gray-50:  hsl(40 20% 97%);
  --gray-100: hsl(40 15% 93%);
  --gray-200: hsl(140 12% 86%);
  --gray-400: hsl(140 8% 62%);
  --gray-600: hsl(160 8% 38%);
  --gray-900: hsl(160 15% 10%);

  /* Core surface tokens — warm cream matching app */
  --bg:        hsl(40 30% 97%);
  --bg-soft:   hsl(40 20% 94%);
  --bg-card:   hsl(40 30% 99%);
  --border:    hsl(140 15% 84%);
  --border-md: hsl(140 15% 76%);
  --text:      hsl(160 15% 15%);
  --text-2:    hsl(160 10% 40%);
  --text-3:    hsl(160 8% 55%);

  /* Sage accent — primary brand colour */
  --accent:        hsl(150 20% 35%);
  --accent-bg:     hsl(145 25% 88%);
  --accent-border: hsl(145 25% 68%);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: hsl(150 20% 20% / 0.06) 0 1px 4px, hsl(150 20% 20% / 0.03) 0 1px 2px;
  --shadow-md: hsl(150 20% 20% / 0.08) 0 8px 20px -2px, hsl(150 20% 20% / 0.04) 0 3px 6px -1px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --transition: 0.18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ---- Typography ---- */
h1 { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; line-height: 1.2; color: var(--text); }
h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; line-height: 1.3; color: var(--text); }
h3 { font-size: 1rem; font-weight: 500; color: var(--text); }
p  { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: hsl(40 30% 97% / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav__logo { font-family: var(--font-serif); font-size: 1.25rem; color: var(--accent); text-decoration: none; letter-spacing: -0.01em; }
.nav__logo:hover { text-decoration: none; }
.nav__links { display: flex; gap: 2px; align-items: center; }
.nav__link {
  font-size: 0.875rem; font-weight: 400; color: var(--text-2);
  padding: 6px 12px; border-radius: var(--radius-sm);
  text-decoration: none; transition: background var(--transition), color var(--transition);
  border: none; background: none; cursor: pointer; font-family: var(--font-sans);
}
.nav__link:hover { background: var(--accent-bg); color: var(--accent); text-decoration: none; }
.nav__link.active { color: var(--accent); font-weight: 500; background: var(--accent-bg); }
.nav__cta {
  font-size: 0.875rem; font-weight: 500; font-family: var(--font-sans);
  background: var(--accent); color: white;
  padding: 8px 18px; border-radius: var(--radius-md);
  border: none; cursor: pointer; transition: opacity var(--transition);
  text-decoration: none; display: inline-flex; align-items: center;
}
.nav__cta:hover { opacity: 0.88; color: white; text-decoration: none; }
.nav__mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; cursor: pointer; border-radius: var(--radius-md); padding: 11px 24px; transition: all var(--transition); text-decoration: none; border: none; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: white; }
.btn--primary:hover { opacity: 0.88; color: white; }
.btn--secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border-md); }
.btn--secondary:hover { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent); }
.btn--ghost { background: none; color: var(--text-2); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-border); }
.btn--sm { font-size: 0.875rem; padding: 8px 16px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---- Badge ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; }
.badge--teal { background: var(--accent-bg); color: var(--green-800); border: 1px solid var(--accent-border); }
.badge--amber { background: var(--amber-50); color: var(--amber-800); }
.badge--red { background: var(--red-50); color: var(--red-800); }

/* ---- Hero ---- */
.hero { padding: 80px 0 72px; text-align: center; }
.hero h1 { max-width: 760px; margin: 0 auto 20px; }
.hero p { font-size: 1.0625rem; max-width: 520px; margin: 0 auto 32px; color: var(--text-2); }
.hero__sub { font-size: 0.8125rem; color: var(--text-3); margin-top: 16px; }

/* ---- Traffic Light ---- */
.tl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.tl-card { border-radius: var(--radius-lg); padding: 24px; border: 1px solid transparent; }
.tl-card--green { background: hsl(145 40% 93%); border-color: hsl(145 35% 76%); }
.tl-card--amber { background: hsl(38 80% 93%);  border-color: hsl(38 75% 74%); }
.tl-card--red   { background: hsl(0 65% 96%);   border-color: hsl(0 60% 80%); }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; margin-bottom: 14px; }
.tl-dot--g { background: hsl(145 45% 50%); }
.tl-dot--a { background: hsl(38 85% 55%); }
.tl-dot--r { background: hsl(0 70% 58%); }
.tl-card h3 { font-size: 0.9375rem; margin-bottom: 6px; }
.tl-card--green h3 { color: hsl(160 15% 15%); } .tl-card--green p { color: hsl(150 20% 32%); font-size: 0.875rem; }
.tl-card--amber h3 { color: hsl(38 65% 18%); }  .tl-card--amber p { color: hsl(38 55% 35%); font-size: 0.875rem; }
.tl-card--red   h3 { color: hsl(0 60% 28%); }   .tl-card--red   p { color: hsl(0 55% 42%); font-size: 0.875rem; }

/* ---- Feature Grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 32px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card--alert { background: hsl(0 65% 96%); border-color: hsl(0 60% 80%); }
.feature-card__icon { font-size: 1.375rem; color: var(--accent); margin-bottom: 14px; }
.feature-card--alert .feature-card__icon { color: hsl(0 70% 50%); }
.feature-card h3 { margin-bottom: 6px; }
.feature-card--alert h3 { color: hsl(0 60% 28%); }
.feature-card--alert p { color: hsl(0 55% 42%); font-size: 0.875rem; }

/* ---- Coming Soon pill ---- */
.pill-soon { display: inline-block; font-size: 0.6875rem; font-weight: 500; background: var(--amber-50); color: var(--amber-600); padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }

/* ---- Callout / Info Boxes ---- */
.callout { border-radius: var(--radius-lg); padding: 24px; margin-top: 24px; }
.callout--soft { background: var(--bg-soft); border: 1px solid var(--border); }
.callout--red { background: hsl(0 65% 96%); border: 1px solid hsl(0 60% 80%); }
.callout--red h3 { color: hsl(0 60% 28%); margin-bottom: 8px; }
.callout--red p { color: hsl(0 55% 42%); font-size: 0.875rem; }
.callout--teal { background: var(--accent-bg); border: 1px solid var(--accent-border); }

/* ---- How It Works Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 32px; }
.step { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 24px; }
.step__num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 500; margin-bottom: 14px; }
.step__num--1 { background: var(--accent-bg); color: var(--green-800); }
.step__num--2 { background: var(--amber-50); color: var(--amber-800); }
.step__num--3 { background: hsl(0 65% 95%); color: hsl(0 60% 32%); }
.step__num--4 { background: var(--purple-50); color: var(--purple-800); }
.step h3 { margin-bottom: 8px; }

/* ---- Signposters ---- */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 28px; }
.sp-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--bg-card); }
.sp-card--alert { background: hsl(0 65% 96%); border-color: hsl(0 60% 80%); }
.sp-card h3 { margin-bottom: 8px; }
.sp-card--alert h3 { color: hsl(0 60% 28%); }
.sp-card--alert p { color: hsl(0 55% 42%); font-size: 0.875rem; }
.sp-steps { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.sp-step { display: flex; gap: 16px; align-items: flex-start; }
.sp-step__num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-bg); color: var(--green-800); font-size: 0.8125rem; font-weight: 500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 3px; }
.sp-step h3 { margin-bottom: 4px; }

/* ---- Promo Band ---- */
.promo-band { background: var(--bg-soft); border-radius: var(--radius-xl); padding: 40px; border: 1px solid var(--border); }
.promo-band h2 { margin-bottom: 12px; }
.promo-band p { margin-bottom: 24px; max-width: 520px; }

/* ---- Gated CTA box ---- */
.gated-box { border: 1px solid var(--border-md); border-radius: var(--radius-xl); padding: 40px 32px; text-align: center; background: var(--bg-soft); margin-top: 24px; }
.gated-box__icon { font-size: 2rem; color: var(--accent); margin-bottom: 16px; }
.gated-box h3 { font-size: 1.125rem; margin-bottom: 10px; }
.gated-box p { max-width: 400px; margin: 0 auto 24px; }

/* ---- Enquiry Form ---- */
.enq-section { padding: 72px 0; }
.enq-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.enq-tab { padding: 9px 18px; border-radius: var(--radius-md); border: 1px solid var(--border-md); background: none; cursor: pointer; font-size: 0.875rem; color: var(--text-2); font-family: var(--font-sans); transition: all var(--transition); }
.enq-tab:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-border); }
.enq-tab.active { background: var(--accent); color: white; border-color: var(--accent); }
.enq-panel { display: none; }
.enq-panel.active { display: block; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 7px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; font-size: 0.9375rem; font-family: var(--font-sans);
  padding: 10px 14px; border: 1px solid var(--border-md);
  border-radius: var(--radius-md); background: var(--bg-card); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4845' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .hint { font-size: 0.8125rem; color: var(--text-3); margin-top: 5px; }
.field .opt { font-weight: 400; color: var(--text-3); }
.consent-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; }
.consent-box h3 { font-size: 0.9375rem; margin-bottom: 10px; }
.consent-box ul { padding-left: 18px; }
.consent-box li { font-size: 0.875rem; color: var(--text-2); margin-bottom: 7px; line-height: 1.5; }
.consent-box p { font-size: 0.875rem; margin-top: 10px; }
.consent-check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border-md); border-radius: var(--radius-md); background: var(--bg-card); margin-top: 8px; }
.consent-check input[type=checkbox] { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.consent-check label { font-size: 0.875rem; color: var(--text); line-height: 1.55; cursor: pointer; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.check-item { display: flex; align-items: center; gap: 9px; font-size: 0.875rem; color: var(--text-2); }
.check-item input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-note { background: var(--bg-soft); border-radius: var(--radius-md); padding: 14px 16px; margin-top: 8px; }
.form-note p { font-size: 0.8125rem; color: var(--text-3); }

/* ---- Registration Progress ---- */
.reg-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 36px; }
.reg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-md); transition: background var(--transition); }
.reg-dot.done { background: var(--accent); }
.reg-dot.current { background: var(--text); width: 10px; height: 10px; }
.reg-label { font-size: 0.8125rem; color: var(--text-3); margin-left: 6px; }

/* ---- Success Screen ---- */
.success { text-align: center; padding: 72px 24px; }
.success__icon { width: 56px; height: 56px; background: var(--accent-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--accent); font-size: 1.5rem; }
.success h2 { margin-bottom: 10px; }
.success p { max-width: 380px; margin: 0 auto 28px; }

/* ---- Legal pages ---- */
.legal h3 { margin-top: 32px; margin-bottom: 8px; }
.legal p { margin-bottom: 12px; }

/* ---- Footer ---- */
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer__logo { font-family: var(--font-serif); font-size: 1.0625rem; color: var(--accent); }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__links a { font-size: 0.8125rem; color: var(--text-3); text-decoration: none; transition: color var(--transition); }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__copy { font-size: 0.8125rem; color: var(--text-3); }

/* ---- Form submission states ---- */
.field--error input, .field--error select, .field--error textarea {
  border-color: hsl(0 70% 58%); box-shadow: 0 0 0 3px hsl(0 65% 96%);
}
.enq-submit-error { font-size: 0.875rem; color: hsl(0 70% 45%); padding: 12px 16px; background: hsl(0 65% 96%); border-radius: var(--radius-md); border: 1px solid hsl(0 60% 80%); margin-bottom: 16px; }
@keyframes ti-spin { to { transform: rotate(360deg); } }
.ti-spin { display: inline-block; animation: ti-spin 0.75s linear infinite; }

/* ---- Fallback modal ---- */
.fallback-backdrop { position: fixed; inset: 0; z-index: 200; background: hsl(160 15% 10% / 0.5); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.fallback-modal { background: var(--bg-card); border-radius: var(--radius-xl); max-width: 540px; width: 100%; box-shadow: hsl(150 20% 20% / 0.25) 0 24px 64px; margin: auto; }
.fallback-modal__header { padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
.fallback-modal__title { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.fallback-modal__body { padding: 20px 24px; }
.fallback-modal__pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; font-size: 0.8125rem; font-family: monospace; color: var(--text-2); white-space: pre-wrap; max-height: 220px; overflow-y: auto; margin: 0; }
.fallback-modal__footer { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--border); }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .tl-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__mobile-toggle { display: block; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .promo-band { padding: 28px 20px; }
  .checklist { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 44px; }
  .btn-row { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .form-footer { flex-direction: column-reverse; gap: 12px; }
  .form-footer .btn { width: 100%; justify-content: center; }
}
