/* Ruby Health — simple one-page template (no-code friendly)
   Palette:
   Primary: #2F6FED
   Accent:  #5B6CFF
   Teal:    #2CB1A6
   Text:    #0F172A
   Muted:   #475569
   Border:  #E2E8F0
   BG Alt:  #F8FAFC
*/

:root{
  --bg:#fff;
  --alt:#F8FAFC;
  --border:#E2E8F0;
  --text:#0F172A;
  --muted:#475569;
  --muted2:#94A3B8;

  --primary:#2F6FED;
  --primarySoft:#EAF1FF;
  --accent:#5B6CFF;
  --teal:#2CB1A6;
  --tealSoft:#E8F7F5;

  --radius:16px;
  --shadow:0 10px 24px rgba(15,23,42,.08);
}
.brand__logo {
  height: 80px;
  width: auto;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;color:var(--text);background:var(--bg)}
a{color:inherit;text-decoration:none}
.container{width:min(1120px,92vw);margin:0 auto}

.header{
  position:sticky;top:0;z-index:10;
  background:rgba(255,255,255,.85);
  border-bottom:1px solid var(--border);
  backdrop-filter:saturate(180%) blur(10px);
}
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.brand{display:flex;align-items:center;gap:10px}
.brand__mark{width:14px;height:14px;border-radius:6px;background:linear-gradient(135deg,var(--primary),var(--accent))}
.brand__name{font-weight:700}
.nav{display:flex;gap:16px;align-items:center;color:var(--muted);font-weight:600}
.nav a:hover{color:var(--text)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--border);background:#fff;color:var(--text);
  padding:12px 16px;border-radius:14px;font-weight:700;
  transition:transform .15s ease-out, box-shadow .15s ease-out, background .15s ease-out;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(15,23,42,.08)}
.btn--primary{background:var(--primary);border-color:transparent;color:#fff}
.btn--primary:hover{background:#2A63D9}
.btn--small{padding:10px 14px;border-radius:12px}

.hero{padding:56px 0 34px}
.hero__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:start}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.6px;
  font-weight: 700;

  background: linear-gradient(
    90deg,
    #2F6FED 0%,
    #5B6CFF 45%,
    #2CB1A6 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
    line-height: 1.1;
  }
}
.hero__subhead{margin:0 0 18px;color:var(--muted);font-size:clamp(16px,1.35vw,19px);line-height:1.45;max-width:56ch}
.hero__cta{display:flex;flex-direction:column;gap:8px;margin:14px 0 18px}
.hero__micro{color:var(--muted2);font-size:13px}

.pills{display:flex;flex-wrap:wrap;gap:10px}
.pill{padding:8px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--muted);font-size:13px}

.card{border:1px solid var(--border);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);padding:14px}
.card__title{display:flex;align-items:center;gap:10px;font-weight:800;padding:6px 6px 10px}
.card__subtitle{margin-left:auto;color:var(--muted2);font-size:12px;font-weight:600}
.dot{width:8px;height:8px;border-radius:999px;background:var(--teal)}
.card__foot{color:var(--muted2);font-size:12px;margin-top:10px;padding:0 6px 2px}

.journey{width:100%;overflow:hidden;border-radius:14px;border:1px solid var(--border);background:linear-gradient(180deg,#fff,#fbfdff)}
.journey svg{width:100%;height:auto;display:block}

/* -----------------------------
   Connected Journey (Figure 8)
------------------------------ */

.path {
  stroke: var(--border);
  stroke-width: 3.5;
}

.node circle {
  fill: #ffffff;
  stroke: var(--border);
  stroke-width: 2.5;
}

.node--primary circle {
  stroke: rgba(47, 111, 237, 0.55);
}

.node--teal circle {
  stroke: rgba(44, 177, 166, 0.55);
}

.node--accent circle {
  stroke: rgba(91, 108, 255, 0.6);
}

.node text {
  fill: var(--text);
  font-size: 12px;
  font-weight: 700;
  dominant-baseline: middle;
  text-anchor: middle;
}

.center rect {
  fill: var(--primarySoft);
  stroke: rgba(47, 111, 237, 0.22);
}

.center text {
  fill: var(--text);
  font-size: 14px;
  font-weight: 800;
  dominant-baseline: middle;
}

/* Figure-8 visual styling to match mockups */
.path { stroke: var(--border); stroke-width: 3.5; }

.node circle { fill:#fff; stroke: var(--border); stroke-width: 2.5; }
.node--primary circle { stroke: rgba(47,111,237,.55); }
.node--teal circle { stroke: rgba(44,177,166,.55); }
.node--accent circle { stroke: rgba(91,108,255,.60); }

.node-icon {
  font-size: 16px;
  dominant-baseline: middle;
  text-anchor: middle;
}

.node-label {
  fill: var(--muted2);
  font-size: 12px;
  font-weight: 700;
}

.infinity-ribbon {
  /* nothing required; fill is set in the SVG */
}node use {
  color: #0f172a; /* dark neutral */
}

.node--primary use {
  color: #2F6FED;
}

.node--teal use {
  color: #2CB1A6;
}

.node--accent use {
  color: #5B6CFF;
}

.center rect { fill: var(--primarySoft); stroke: rgba(47,111,237,.22); }
.center text { fill: var(--text); font-size: 14px; font-weight: 800; dominant-baseline: middle; }

.path{stroke:var(--border);stroke-width:3.5}

.center rect{fill:var(--primarySoft);stroke:rgba(47,111,237,.22)}
.center text{fill:var(--text);font-size:14px;font-weight:800;dominant-baseline:middle}

.node circle{fill:#fff;stroke:var(--border);stroke-width:2.5}
.node text{fill:var(--text);font-size:12px;font-weight:800;dominant-baseline:middle}
.node--primary circle{stroke:rgba(47,111,237,.45)}
.node--teal circle{stroke:rgba(44,177,166,.45)}
.node--accent circle{stroke:rgba(91,108,255,.45)}

.label{fill:var(--muted2);font-size:12px;font-weight:700}

.section{padding:54px 0}
.section--alt{background:var(--alt);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section__head{max-width:78ch}
.section__head h2{margin:0 0 10px;font-size:clamp(22px,2.2vw,30px);letter-spacing:-.2px}
.section__head p{margin:0 0 10px;color:var(--muted);line-height:1.55}
.one-truth{color:var(--text)!important;font-weight:800}

.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mini{border:1px solid var(--border);border-radius:var(--radius);background:#fff;padding:16px}
.mini h3{margin:0 0 8px;font-size:16px}
.mini p{margin:0;color:var(--muted);line-height:1.55}

.demo{display:grid;grid-template-columns:.95fr 1.05fr;gap:22px;align-items:start}
.demo ul{margin:12px 0 0;padding-left:18px;color:var(--muted)}
.demo li{margin:6px 0}

.form{border:1px solid var(--border);border-radius:var(--radius);background:#fff;padding:16px;box-shadow:var(--shadow)}
.form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:800;margin-bottom:12px}
.form input,.form select{
  padding:12px 12px;border:1px solid var(--border);border-radius:12px;font-size:14px;outline:none
}
.form input:focus,.form select:focus{
  border-color:rgba(47,111,237,.5);
  box-shadow:0 0 0 4px rgba(47,111,237,.12)
}
fieldset{border:1px solid var(--border);border-radius:12px;padding:12px;margin:10px 0 12px}
legend{padding:0 8px;font-weight:800;font-size:13px}
legend span{color:var(--muted2);font-weight:600}
.check{display:flex;gap:10px;align-items:center;margin:8px 0;color:var(--muted);font-weight:700}
.check input{width:16px;height:16px}
.note{margin-top:10px;color:var(--muted2);font-size:12px}

.footer{padding:26px 0;border-top:1px solid var(--border);background:#fff}
.footer__inner{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.footer__links{display:flex;gap:16px;color:var(--muted);font-weight:700}
.footer__links a:hover{color:var(--text)}
.muted{margin-top:8px;color:var(--muted2);font-size:13px}

@media (max-width: 960px){
  .hero__grid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .demo{grid-template-columns:1fr}
  .nav{gap:10px}
}
