/* ============================================================
   RubySDK Investor Updates — styles
   RubySDK brand applied. Palette lifted from rubysdk.com:
   ruby gradient #420F14 -> #C5545E, solid ruby accent
   #C5545E (hover #A23B45), white page, near-black text,
   clean sans throughout. Tokens live in :root so future
   tweaks stay a one-file change.
   ============================================================ */

:root {
  --ruby-deep:  #420F14;  /* darkest ruby — gradient start */
  --ruby:       #C5545E;  /* solid ruby accent            */
  --ruby-hover: #A23B45;  /* deeper ruby — hover           */
  --ink:        #1A1516;  /* near-black body text          */
  --paper:      #ffffff;  /* white page background         */
  --wash:       #FCF6F6;  /* soft ruby-tinted band wash    */
  --card:       #ffffff;  /* card surface                  */
  --line:       #ece2e3;  /* hairlines / borders           */
  --muted:      #6e6e73;  /* secondary text                */
  --on-dark:    #fdf7f7;  /* text on ruby/dark surfaces    */
  --on-dark-dim:#d8b9bd;  /* dim text on dark              */

  --ruby-grad:  linear-gradient(115deg, var(--ruby-deep) 0%, var(--ruby) 100%);

  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 760px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(66, 15, 20, 0.04), 0 8px 28px rgba(66, 15, 20, 0.07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--sans); font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
a { color: var(--ruby); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.wordmark img { height: 34px; width: auto; display: block; }
.ask-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.ask-link:hover { color: var(--ruby); border-color: var(--ruby); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 100% at 100% 0%, var(--wash) 0%, var(--paper) 60%);
  color: var(--ink);
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ruby);
  margin: 0 0 14px;
}
.hero h1 {
  color: var(--ink);
  font-size: 44px;
  margin: 0 0 16px;
}
.hero .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 28px;
}
.confidential {
  font-size: 14px;
  color: var(--muted);
  border-left: 3px solid var(--ruby);
  padding: 8px 0 8px 14px;
  margin: 0;
}

/* ---------- Update card ---------- */
.update { padding: 56px 0; }
.update-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ruby-hover);
  background: rgba(197, 84, 94, 0.10);
  border: 1px solid rgba(197, 84, 94, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.update-month {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 6px;
}
.update-card h2 { font-size: 30px; margin: 0 0 8px; }

.update-body { margin-top: 28px; }
.block { padding: 22px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block h3 { font-size: 19px; margin: 0 0 12px; }
.block ul { margin: 0; padding-left: 20px; }
.block li { margin: 0 0 8px; color: var(--ink); }
.block p { margin: 0 0 12px; color: var(--ink); }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}
.metric {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.metric-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.metric-value {
  display: block;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--ruby-deep);
}
.metric-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.update-sign {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Signup ---------- */
.signup { padding: 8px 0 56px; }
.signup-card {
  background: var(--ruby-grad);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.signup-card h2 { color: var(--on-dark); font-size: 26px; margin: 0 0 8px; }
.signup-lede { color: var(--on-dark-dim); margin: 0 0 24px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--on-dark);
}
.field .optional { color: var(--on-dark-dim); font-weight: 400; }
.field input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(253, 247, 247, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: var(--on-dark);
}
.field input::placeholder { color: rgba(216, 185, 189, 0.75); }
.field input:focus {
  outline: none;
  border-color: var(--on-dark);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.btn-primary {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  background: #ffffff;
  color: var(--ruby-deep);
  transition: background .15s ease, color .15s ease;
}
.btn-primary:hover { background: var(--wash); }

.form-error { color: #ffd6d6; font-size: 14px; margin: 12px 0 0; }

.signup-done { text-align: center; padding: 12px 0 4px; }
.done-tick {
  width: 52px; height: 52px; line-height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ruby);
  font-size: 26px;
  font-weight: 700;
}
.signup-done h3 { color: var(--on-dark); font-size: 22px; margin: 0 0 6px; }
.signup-done p { color: var(--on-dark-dim); margin: 0; }

/* ---------- Ask CTA ---------- */
.ask-cta { padding: 0 0 64px; text-align: center; }
.ask-cta p { color: var(--muted); margin: 0 0 16px; }
.btn-outline {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--ruby);
  border: 1.5px solid var(--ruby);
  border-radius: 10px;
  padding: 12px 22px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-outline:hover { background: var(--ruby); color: #ffffff; border-color: var(--ruby); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-dim);
  padding: 40px 0;
}
.foot-mark {
  font-weight: 600;
  font-size: 18px;
  color: var(--on-dark);
  margin: 0 0 8px;
}
.foot-note { font-size: 14px; margin: 0 0 10px; max-width: 60ch; }
.foot-copy { font-size: 13px; margin: 0; color: rgba(216, 185, 189, 0.6); }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 17px; }
  .update-card, .signup-card { padding: 28px 22px; }
  .update-card h2 { font-size: 25px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ask-link { align-self: stretch; text-align: center; }
}


/* ---------- Leading opportunities ---------- */
.leads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}
.lead {
  background: var(--wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ruby);
  border-radius: 10px;
  padding: 16px 18px;
}
.lead-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.lead-top h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.lead-line { font-size: 14px; line-height: 1.45; color: var(--ink); margin: 0 0 10px; }
.lead-sector {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0;
}

/* ---------- Status tags ---------- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--ruby {
  color: var(--ruby-hover);
  background: rgba(197, 84, 94, 0.10);
  border: 1px solid rgba(197, 84, 94, 0.30);
}
.tag--solid {
  color: #ffffff;
  background: var(--ruby);
  border: 1px solid var(--ruby);
}
.tag--muted {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

/* ---------- Metric tiles: a touch more prominent ---------- */
.metrics--lead { gap: 16px; }
.metrics--lead .metric { padding: 18px; border-top: 3px solid var(--ruby); }
.metrics--lead .metric-value { font-size: 27px; }

/* ---------- Pipeline list ---------- */
.pipe { list-style: none; margin: 0; padding: 0; }
.pipe-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pipe-row:first-child { border-top: 0; padding-top: 0; }
.pipe-main { min-width: 0; }
.pipe-name { font-weight: 600; color: var(--ink); }
.pipe-sector {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-left: 10px;
}
.pipe-note { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.pipe-row .tag { justify-self: end; }

/* ---------- What's next ---------- */
.next { margin: 0; padding-left: 20px; }
.next li { margin: 0 0 8px; color: var(--ink); }

/* ---------- Update section responsive ---------- */
@media (max-width: 560px) {
  .pipe-row { grid-template-columns: 1fr; gap: 8px; }
  .pipe-row .tag { justify-self: start; }
}

/* ==== UPDATE SECTION REFINEMENT (July 2026 investor-grade pass) ==== */
/* Sharpens hierarchy, spacing, typography and ruby accents across the whole
   monthly-update card. Same brand tokens only. These rules come after the
   base ones on purpose so the refined values win the cascade. */

/* ---- Update card: ruby crown bar + refined header ---- */
.update-card {
  position: relative;
  overflow: hidden;
  padding: 46px 42px;
}
.update-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ruby-grad);
}
.update-month {
  display: inline-block;
  color: var(--ruby-hover);
  background: rgba(197, 84, 94, 0.09);
  border: 1px solid rgba(197, 84, 94, 0.24);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.13em;
  margin: 0 0 16px;
}
.update-card h2 { font-size: 33px; letter-spacing: -0.022em; margin: 0; }

.update-body {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ---- Blocks: more breathing room, refined section labels ---- */
.block { padding: 32px 0; }
.block:first-child { padding-top: 0; }

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.block h3 {
  position: relative;
  margin: 0;
  padding-left: 15px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.block h3::before {
  content: "";
  position: absolute;
  left: 0; top: 0.05em;
  width: 4px; height: 1em;
  border-radius: 2px;
  background: var(--ruby-grad);
}
.block-tally {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ruby-hover);
  background: rgba(197, 84, 94, 0.08);
  border: 1px solid rgba(197, 84, 94, 0.22);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- Leading opportunity cards ---- */
.leads {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.lead {
  padding: 18px 20px;
  border-left-width: 4px;
  background: linear-gradient(180deg, var(--wash) 0%, #ffffff 82%);
  transition: box-shadow .16s ease, border-color .16s ease;
}
.lead:hover {
  box-shadow: 0 8px 24px rgba(66, 15, 20, 0.09);
  border-color: rgba(197, 84, 94, 0.4);
}
.lead-top { align-items: center; margin-bottom: 6px; }
.lead-top h4 { font-size: 17px; }
.lead-sector {
  order: 0;
  margin: 0 0 10px;
  color: var(--ruby-hover);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.lead-line { margin: 0; font-size: 14px; line-height: 1.5; }

/* ---- Status tags: crisper, clearly separated from copy ---- */
.tag {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
}

/* ---- Metric tiles ---- */
.metrics--lead { gap: 16px; }
.metrics--lead .metric {
  padding: 20px 18px;
  border-top: 3px solid var(--ruby);
  background: linear-gradient(180deg, var(--wash) 0%, #ffffff 100%);
  box-shadow: 0 1px 2px rgba(66, 15, 20, 0.03);
}
.metrics--lead .metric-value {
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ruby-deep);
}
.metric-value { overflow-wrap: anywhere; }
.metrics--lead .metric-value--text {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
}

/* ---- Pipeline: structured cards ---- */
.pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pipe-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 19px;
  transition: box-shadow .16s ease, border-color .16s ease;
}
.pipe-item:hover {
  border-color: rgba(197, 84, 94, 0.38);
  box-shadow: 0 8px 22px rgba(66, 15, 20, 0.07);
}
.pipe-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 9px;
}
.pipe-id {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 11px;
}
.pipe-name { font-weight: 600; font-size: 16px; color: var(--ink); }
.pipe-sector {
  margin: 0;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pipe-item .tag { flex: 0 0 auto; }
.pipe-summary {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.pipe-meta {
  margin: 9px 0 0;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ruby-hover);
}

/* ---- Commentary callout ---- */
.callout {
  background: linear-gradient(180deg, var(--wash) 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ruby);
  border-radius: 12px;
  padding: 19px 22px;
}
.callout p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }

/* ---- What's next: ruby dot markers ---- */
.next {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}
.next li {
  position: relative;
  margin: 0;
  padding-left: 26px;
  color: var(--ink);
}
.next li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.56em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ruby-grad);
}

/* ---- Sign-off ---- */
.update-sign { font-size: 15px; margin-top: 30px; padding-top: 24px; }

/* ---- Refinement responsive ---- */
@media (max-width: 560px) {
  .update-card { padding: 30px 22px; }
  .update-card h2 { font-size: 26px; }
  .pipe-head { flex-direction: column; }
  .pipe-item .tag { align-self: flex-start; }
  .block-head { flex-wrap: wrap; }
}


/* Enquiry textarea — mirrors .field input styling */
.field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(253, 247, 247, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: var(--on-dark);
  resize: vertical;
  min-height: 92px;
}
.field textarea::placeholder { color: rgba(216, 185, 189, 0.75); }
.field textarea:focus {
  outline: none;
  border-color: var(--on-dark);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}
.enquiry { padding-top: 0; }
.opt-note { color: var(--on-dark-dim); font-size: 12px; margin: 12px 0 0; }

/* Honeypot: an anti-spam field kept out of sight and out of the tab order for
   real visitors, so only automated bots ever fill it. Positioned off-screen
   rather than display:none, since some bots skip display:none fields. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
