/* RELIFE 瑞來生物科技 — website stylesheet
   Tokens mirror the Relife Design System (tokens.json). Edit values here, not inline. */

:root {
  /* colour */
  --white: #ffffff;
  --mist: #f4f8fc;
  --pale: #e8f0fa;
  --hairline: #d5dfec;
  --ink: #071a3d;
  --ink-2: #1e293b;
  --muted: #4a5a73;
  --brand: #0052ff;
  --brand-deep: #003ccc;
  --cyan: #00c4ff;
  --aqua: #12d8ec;
  --mint: #4bea92;
  --lime: #86f262;
  --navy: #071a3d;
  --navy-2: #0d2552;
  --on-navy: #f4f8fc;
  --on-navy-muted: #a9b8d4;
  --brand-on-navy: #5c95ff;
  --signal: #e5484d;

  /* type */
  --font-display: "Sora", "Noto Sans TC", system-ui, sans-serif;
  --font-sans: "Inter", "Noto Sans TC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-cjk: "Noto Sans TC", "PingFang TC", sans-serif;

  /* space (4px base) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 144px;

  /* radius */
  --radius-xs: 2px; --radius-md: 12px; --radius-lg: 24px; --radius-pill: 999px;

  --shadow-float: 0 24px 60px -24px rgba(7, 26, 61, .28);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--radius-pill); }
.skip:focus { left: 16px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 144px) 0; position: relative; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy a:not(.rl-btn) { color: var(--brand-on-navy); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- type ---------- */
.display-xl, .display-l, h1, h2, h3 { font-family: var(--font-display); color: inherit; margin: 0; letter-spacing: -0.035em; font-weight: 600; }
.display-xl { font-size: clamp(44px, 7.4vw, 108px); line-height: .96; }
.display-l { font-size: clamp(36px, 5.2vw, 72px); line-height: 1.02; }
h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); max-width: 40em; }
.section--navy .lead, .section--navy .muted { color: var(--on-navy-muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.6; }
.cjk { font-family: var(--font-cjk); letter-spacing: .08em; }
.grad-text { background: linear-gradient(100deg, var(--brand) 0%, var(--cyan) 45%, var(--mint) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* eyebrow: mono label with a cell dot */
.rl-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--space-5); }
.rl-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 65% 30%, var(--lime), var(--aqua) 55%, var(--cyan)); box-shadow: 0 0 0 3px rgba(0, 196, 255, .14); }
.section--navy .rl-eyebrow { color: var(--aqua); }
.rl-index { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; color: var(--muted); }
.section--navy .rl-index { color: var(--on-navy-muted); }

/* ---------- buttons ---------- */
.rl-btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px; border-radius: var(--radius-pill); font: 600 15px/1 var(--font-sans); letter-spacing: -.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.rl-btn .arr { transition: transform .3s var(--ease); }
.rl-btn:hover .arr { transform: translateX(4px); }
.rl-btn--primary { background: var(--brand); color: #fff; }
.rl-btn--primary:hover { background: var(--brand-deep); color: #fff; }
.rl-btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.rl-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.rl-btn--light { background: #fff; color: var(--ink); }
.rl-btn--light:hover { background: var(--mist); color: var(--ink); }
.section--navy .rl-btn--ghost { color: var(--on-navy); border-color: rgba(244, 248, 252, .3); }
.section--navy .rl-btn--ghost:hover { border-color: var(--on-navy); }
.rl-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.rl-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.rl-link:hover .arr { transform: translateX(4px); }
.rl-link .arr { transition: transform .3s var(--ease); }

/* ---------- stage tag (never colour alone: shape + text) ---------- */
.rl-stage { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: var(--radius-xs); border: 1px solid var(--hairline); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: var(--white); }
.rl-stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.rl-stage--dev::before { background: var(--brand); border-color: var(--brand); }
.rl-stage--planned::before { background: linear-gradient(90deg, var(--brand) 50%, transparent 50%); border-color: var(--brand); }
.rl-stage--explore::before { border-style: dashed; border-color: var(--muted); }
.section--navy .rl-stage { background: transparent; color: var(--on-navy); border-color: rgba(244, 248, 252, .25); }

/* ---------- header ---------- */
.rl-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.rl-header.is-scrolled { border-bottom-color: var(--hairline); }
.rl-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.rl-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.rl-brand img { height: 26px; width: auto; }
.rl-brand .cjk { font-size: 13px; color: var(--ink-2); padding-left: 14px; border-left: 1px solid var(--hairline); line-height: 1; }
.rl-nav { display: flex; align-items: center; gap: 4px; }
.rl-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 14px; border-radius: var(--radius-pill); transition: background .2s; }
.rl-nav a:hover { background: var(--mist); }
.rl-nav a[aria-current="page"] { color: var(--brand); }
.rl-nav .rl-btn { height: 42px; padding: 0 20px; margin-left: 10px; color: #fff; }
.rl-nav .rl-btn:hover { background: var(--brand-deep); }
.rl-menu { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.rl-menu span, .rl-menu span::before, .rl-menu span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease); }
.rl-menu span::before, .rl-menu span::after { content: ""; position: absolute; left: 0; }
.rl-menu span::before { top: -5px; } .rl-menu span::after { top: 5px; }
.rl-menu[aria-expanded="true"] span { background: transparent; }
.rl-menu[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.rl-menu[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 900px) {
  .rl-brand .cjk { display: none; }
  .rl-menu { display: inline-flex; }
  .rl-nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--hairline); gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .rl-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .rl-nav a { font-size: 20px; font-family: var(--font-display); padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--mist); }
  .rl-nav .rl-btn { margin: 16px 0 0; height: 52px; justify-content: center; font-family: var(--font-sans); font-size: 16px; border-radius: var(--radius-pill); }
}

/* ---------- hero ---------- */
.rl-hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.rl-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--pale) 1px, transparent 1px), linear-gradient(90deg, var(--pale) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%); opacity: .7; pointer-events: none; }
.rl-hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.rl-hero h1 { font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -0.045em; }
.rl-hero .lead { margin: 28px 0 36px; }
.rl-hero__meta { display: flex; gap: 28px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.rl-hero__meta div { font: 500 11px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rl-hero__meta b { display: block; color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .rl-hero .wrap { grid-template-columns: 1fr; } .rl-hero .rl-cell { order: -1; max-width: 440px; margin: 0 auto; } }

/* page hero (inner pages) */
.rl-pagehero { padding: clamp(56px, 9vw, 128px) 0 clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.rl-pagehero .wrap { position: relative; }
.rl-pagehero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.045em; max-width: 14em; }
.rl-pagehero .lead { margin-top: 28px; }
.rl-pagehero .rl-orbit { position: absolute; right: calc(var(--gutter) * -1 - 80px); top: -40px; width: min(46vw, 560px); opacity: .9; pointer-events: none; }
@media (max-width: 760px) { .rl-pagehero .rl-orbit { width: 70vw; right: -30vw; top: -20px; opacity: .45; } }

/* ---------- cell model ---------- */
.rl-cell { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.rl-cell canvas { width: 100%; height: 100%; }
.rl-cell__cap { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; justify-content: space-between; font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rl-cell__cap span:last-child { color: var(--brand); }
.rl-cell__tag { position: absolute; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: rgba(255,255,255,.85); padding: 6px 8px; border: 1px solid var(--hairline); border-radius: var(--radius-xs); white-space: nowrap; }
.rl-cell__tag i { font-style: normal; color: var(--brand); }
@media (max-width: 520px) { .rl-cell__tag { display: none; } }

/* ---------- statement ---------- */
.rl-statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.15; letter-spacing: -0.03em; max-width: 22em; }
.rl-statement em { font-style: normal; color: var(--muted); }
.section--navy .rl-statement em { color: var(--on-navy-muted); }

/* ---------- pillar / card ---------- */
.rl-card { position: relative; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 14px; min-height: 100%; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.rl-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-float); }
.rl-card h3 { margin-top: 18px; }
.rl-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.rl-card__top { display: flex; justify-content: space-between; align-items: center; }
.rl-card__glyph { width: 44px; height: 44px; }
.rl-card .cjk { font-size: 13px; color: var(--muted); letter-spacing: .12em; }
.section--navy .rl-card { background: var(--navy-2); border-color: rgba(244,248,252,.12); }
.section--navy .rl-card p { color: var(--on-navy-muted); }
.section--navy .rl-card:hover { border-color: var(--aqua); }

/* ---------- workflow ---------- */
.rl-flow { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); counter-reset: step; }
.rl-flow__step { padding: 28px 24px 8px 0; position: relative; }
.rl-flow__step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--brand); }
.rl-flow__step:first-child::before { background: var(--brand); }
.rl-flow__step h3 { margin: 14px 0 10px; }
.rl-flow__step p { color: var(--muted); font-size: 15.5px; margin: 0; }
.section--navy .rl-flow { border-color: rgba(244,248,252,.2); }
.section--navy .rl-flow__step::before { background: var(--navy); border-color: var(--aqua); }
.section--navy .rl-flow__step p { color: var(--on-navy-muted); }
@media (max-width: 860px) { .rl-flow { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
@media (max-width: 520px) { .rl-flow { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--hairline); padding-left: 24px; } .rl-flow__step { padding: 0 0 8px; } .rl-flow__step::before { left: -29px; top: 4px; } }

/* ---------- list rows (Moderna-like index list) ---------- */
.rl-rows { border-top: 1px solid var(--hairline); }
.rl-row { display: grid; grid-template-columns: 80px 1.1fr 1.4fr auto; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.rl-row h3 { font-size: clamp(22px, 2.2vw, 30px); }
.rl-row p { color: var(--muted); margin: 0; }
.section--navy .rl-rows, .section--navy .rl-row { border-color: rgba(244,248,252,.16); }
.section--navy .rl-row p { color: var(--on-navy-muted); }
@media (max-width: 860px) { .rl-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- media panel ---------- */
.rl-panel { border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy); padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.rl-panel--mist { background: var(--mist); color: var(--ink); }

/* ---------- CTA band ---------- */
.rl-cta { position: relative; overflow: hidden; }
.rl-cta .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.rl-cta canvas.rl-field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
@media (max-width: 860px) { .rl-cta .wrap { grid-template-columns: 1fr; } }

/* ---------- form ---------- */
.rl-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.rl-form .full { grid-column: 1 / -1; }
.rl-field label { display: block; font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.rl-field label .opt { color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--font-sans); }
.rl-field input, .rl-field select, .rl-field textarea { width: 100%; font: 400 16px/1.4 var(--font-sans); color: var(--ink); background: var(--white); border: 1px solid #b8c6d9; border-radius: var(--radius-md); padding: 14px 16px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.rl-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23071a3d' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.rl-field textarea { min-height: 140px; resize: vertical; }
.rl-field input:focus, .rl-field select:focus, .rl-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 82, 255, .18); }
.rl-field [aria-invalid="true"] { border-color: var(--signal); }
.rl-field .err { color: #b4232a; font-size: 13.5px; margin-top: 6px; display: none; }
.rl-field [aria-invalid="true"] + .err { display: block; }
.rl-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.rl-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.rl-form__done { display: none; padding: 28px; border-radius: var(--radius-md); background: var(--mist); border: 1px solid var(--hairline); }
.rl-form__done.is-shown { display: block; }
@media (max-width: 640px) { .rl-form { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.rl-faq details { border-bottom: 1px solid var(--hairline); }
.rl-faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.015em; }
.rl-faq summary::-webkit-details-marker { display: none; }
.rl-faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center/14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 14px no-repeat; transition: transform .3s var(--ease); }
.rl-faq details[open] summary::after { transform: rotate(45deg); }
.rl-faq details p { color: var(--muted); max-width: 46em; padding-bottom: 20px; }

/* ---------- footer ---------- */
.rl-footer { background: var(--navy); color: var(--on-navy-muted); padding: 88px 0 40px; font-size: 14.5px; }
.rl-footer a { color: var(--on-navy); text-decoration: none; }
.rl-footer a:hover { color: var(--aqua); }
.rl-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(244,248,252,.14); }
.rl-footer__top img { height: 96px; width: auto; margin-bottom: 20px; }
.rl-footer h4 { font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); margin: 6px 0 20px; }
.rl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rl-footer address { font-style: normal; line-height: 1.7; }
.rl-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; }
@media (max-width: 900px) { .rl-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rl-footer__top { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- misc ---------- */
.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.spacer-l { height: clamp(48px, 7vw, 96px); }
.mt-0 { margin-top: 0; } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); } .mt-8 { margin-top: var(--space-8); }
.note { font: 400 12.5px/1.6 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.section--navy .note { color: var(--on-navy-muted); }
.prose h2 { margin: 48px 0 16px; font-size: 28px; }
.prose p, .prose li { color: var(--ink-2); max-width: 44em; }

/* orbit motif (page heroes) */
.rl-orbit .spin { transform-origin: 280px 280px; animation: rl-spin 48s linear infinite; }
.rl-orbit .spin--rev { animation-duration: 64s; animation-direction: reverse; }
@keyframes rl-spin { to { transform: rotate(360deg); } }
.rl-pagehero h1, .rl-pagehero .lead, .rl-pagehero .rl-eyebrow, .rl-pagehero .rl-actions { position: relative; }

/* refinements */
.rl-field input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; width: 18px; height: 18px; padding: 0; border-radius: 4px; }
@media (min-width: 761px) { .rl-pagehero h1 { max-width: min(14em, 70%); } .rl-pagehero .lead { max-width: min(40em, 62%); } }
.rl-statement { font-size: clamp(26px, 3.2vw, 46px); }

/* ================= v2: review round 1 ================= */
/* quieter chrome: labels in sentence case, no hover lifts, no per-section reveals */
.rl-stage, .rl-index, .rl-cell__tag, .rl-cell__cap, .rl-footer h4, .rl-field label { text-transform: none; }
.rl-stage { letter-spacing: .02em; font-size: 12px; height: 28px; }
.rl-index { letter-spacing: .04em; font-size: 13px; }
.rl-cell__tag, .rl-cell__cap { letter-spacing: .02em; font-size: 12px; }
.rl-footer h4 { letter-spacing: .02em; font-family: var(--font-sans); font-size: 14px; font-weight: 600; }
.rl-field label { font: 500 14px/1.2 var(--font-sans); letter-spacing: 0; color: var(--ink-2); }
.rl-check { font: 400 14.5px/1.5 var(--font-sans) !important; color: var(--muted) !important; }
.rl-card:hover { transform: none; box-shadow: none; }

/* language switch */
.rl-lang { display: inline-flex; align-items: center; margin-left: 8px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 3px; font: 500 13px/1 var(--font-sans); }
.rl-lang a, .rl-lang span { padding: 7px 11px !important; border-radius: var(--radius-pill) !important; font-size: 13px !important; font-family: var(--font-sans) !important; border: 0 !important; }
.rl-lang span[aria-current] { background: var(--ink); color: #fff; }
.rl-lang a { color: var(--muted) !important; }
@media (max-width: 900px) { .rl-lang { margin: 16px 0 0; align-self: flex-start; } }

/* hero: the cell is the one bold element */
.rl-hero::before { display: none; }
.rl-hero { padding-top: clamp(24px, 4vw, 56px); }
.rl-hero .wrap { grid-template-columns: 1fr 1.1fr; }
.rl-hero .rl-cell { width: 124%; margin-right: -24%; }
.rl-hero__meta { margin: 48px 0 0; }
.rl-hero__meta div { font: 400 13px/1.5 var(--font-sans); letter-spacing: 0; text-transform: none; }
.rl-hero__meta dt { color: var(--muted); }
.rl-hero__meta dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
@keyframes rl-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rl-bloom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.rl-hero__text > * { animation: rl-rise .9s var(--ease) both; }
.rl-hero__text > :nth-child(2) { animation-delay: .12s; }
.rl-hero__text > :nth-child(3) { animation-delay: .24s; }
.rl-hero__text > :nth-child(4) { animation-delay: .36s; }
.rl-hero .rl-cell { animation: rl-bloom 1.6s var(--ease) both .1s; }
@media (max-width: 900px) { .rl-hero .wrap { grid-template-columns: 1fr; } .rl-hero .rl-cell { width: 100%; margin: 0 auto; max-width: 480px; } }

/* vision band */
.rl-vision { padding-bottom: clamp(56px, 8vw, 112px); border-top: 1px solid var(--hairline); }
.rl-vision__trio { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.04em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .32em; }
.rl-vision__trio .x { color: var(--brand); font-weight: 400; }
.rl-vision__sub { margin: 18px 0 0; font-size: 16px; color: var(--muted); letter-spacing: .04em; }
.rl-vision__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: clamp(40px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--hairline); }
.rl-vision .rl-statement { max-width: 24em; margin: 0; }
@media (max-width: 760px) { .rl-vision__body { grid-template-columns: 1fr; } }

/* headings that span */
.rl-h-wide { max-width: 18em; }

/* four disciplines: an open list, not cards */
.rl-disc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink); }
.rl-disc article { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.rl-disc article + article { padding-left: 28px; border-left: 1px solid var(--hairline); }
.rl-disc .rl-glyph { width: 40px; height: 40px; margin-bottom: 18px; }
.rl-disc h3 { margin: 0; }
.rl-disc .cjk { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.rl-disc p { color: var(--muted); font-size: 15.5px; margin: 6px 0 16px; flex: 1; }
.rl-disc .rl-stage { align-self: flex-start; }
@media (max-width: 960px) { .rl-disc { grid-template-columns: 1fr 1fr; } .rl-disc article:nth-child(3) { padding-left: 0; border-left: 0; } .rl-disc article:nth-child(n+3) { border-top: 1px solid var(--hairline); } }
@media (max-width: 560px) { .rl-disc { grid-template-columns: 1fr; } .rl-disc article, .rl-disc article + article { padding-left: 0; border-left: 0; } .rl-disc article + article { border-top: 1px solid var(--hairline); } }

/* workflow as an ordered list */
ol.rl-flow { list-style: none; margin-left: 0; margin-right: 0; padding-left: 0; }
@media (max-width: 520px) { ol.rl-flow { padding-left: 24px; } }

/* rows without index column */
.rl-row--plain, .rl-row--link { grid-template-columns: 1fr 1.5fr auto; }
.rl-row--link { color: inherit; text-decoration: none; transition: background .2s; }
.rl-row--link:hover h3 { color: var(--brand); }
.grid-2 .rl-row--plain { grid-template-columns: 1fr 1.5fr auto; }
@media (max-width: 860px) { .rl-row--plain, .rl-row--link, .grid-2 .rl-row--plain { grid-template-columns: 1fr; } }

/* company vision pillars */
.rl-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(244,248,252,.24); }
.rl-pillars div { padding: 32px 32px 0 0; }
.rl-pillars div + div { padding-left: 32px; border-left: 1px solid rgba(244,248,252,.14); }
.rl-pillars h3 { font-size: clamp(22px, 2.2vw, 30px); }
.rl-pillars p { color: var(--on-navy-muted); margin-top: 14px; }
.rl-mission { border-top: 1px solid rgba(244,248,252,.24); padding-top: 32px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.rl-mission .lead { color: var(--on-navy); margin: 0; font-size: clamp(20px, 1.8vw, 26px); }
@media (max-width: 860px) { .rl-pillars, .rl-mission { grid-template-columns: 1fr; } .rl-pillars div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(244,248,252,.14); } .rl-pillars div { padding-bottom: 24px; } }

/* plain columns (AI tasks) */
.rl-cols { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.rl-cols div { padding: 28px 24px 0 0; }
.rl-cols div + div { padding-left: 24px; border-left: 1px solid var(--hairline); }
.rl-cols p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
@media (max-width: 960px) { .rl-cols { grid-template-columns: 1fr 1fr; } .rl-cols div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .rl-cols { grid-template-columns: 1fr; } .rl-cols div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); padding-bottom: 20px; } }

/* model passport spec list */
.rl-spec { margin: 0; border-top: 1px solid var(--hairline); }
.rl-spec div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.rl-spec dt { font: 500 14px/1.5 var(--font-sans); color: var(--ink); }
.rl-spec dd { margin: 0; color: var(--muted); font-size: 15px; }

.rl-figure { margin: 0; max-width: 520px; }
.rl-notice { max-width: 52em; margin: 0; padding-left: 20px; border-left: 2px solid var(--brand); color: var(--ink-2); }
.rl-panel h3 { margin: 0; }
.rl-cta h2 { max-width: 12em; }

/* Traditional Chinese typesetting */
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3, :lang(zh-Hant) .display-l, :lang(zh-Hant) .rl-statement, :lang(zh-Hant) .rl-vision__trio, :lang(zh-Hant) .rl-faq summary { letter-spacing: 0.01em; line-height: 1.25; }
:lang(zh-Hant) .rl-hero h1, :lang(zh-Hant) .rl-pagehero h1 { line-height: 1.18; font-weight: 700; }
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) .rl-vision__trio { font-weight: 700; }
:lang(zh-Hant) body, :lang(zh-Hant) .lead, :lang(zh-Hant) p { line-height: 1.85; letter-spacing: .02em; }
:lang(zh-Hant) .rl-hero h1 { font-size: clamp(36px, 4.6vw, 68px); }
:lang(zh-Hant) .rl-pagehero h1 { font-size: clamp(34px, 4.8vw, 68px); }
@media (min-width: 901px) { .rl-hero .wrap { grid-template-columns: 1.3fr 1fr; } .rl-hero .rl-cell { width: 128%; margin-right: -28%; margin-left: -6%; } }
.rl-hero h1 { font-size: clamp(40px, 5.6vw, 84px); max-width: 9.5em; }
.grid-2 .rl-row--plain { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
.grid-2 .rl-row--plain h3 { font-size: 22px; }

/* v3: patient solutions */
.rl-sol .rl-glyph { width: 48px; height: 48px; }
.rl-ticks { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.rl-ticks li { position: relative; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.rl-ticks li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 65% 30%, var(--lime), var(--aqua) 55%, var(--cyan)); }
.rl-row--link .rl-link { white-space: nowrap; }

/* v4: illustrations + social */
.rl-illus { display: block; width: 100%; height: auto; }
.rl-figure--r { max-width: 620px; justify-self: end; width: 100%; }
.rl-sol .rl-figure { max-width: 560px; }
.rl-social { list-style: none; display: flex; gap: 12px; margin: 24px 0 0; padding: 0; }
.rl-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #cfd8e3; color: var(--navy); transition: background .2s, color .2s; }
.rl-social a:hover { background: var(--aqua); color: var(--navy); }
.rl-social svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .rl-figure--r { justify-self: stretch; } }
.rl-footer ul.rl-social { display: flex; gap: 12px; }

/* v5: audience notice (For doctors) */
.rl-audience { display: inline-block; margin: 0 0 28px; padding: 10px 16px; border: 1px solid var(--brand); border-radius: var(--radius-md); background: var(--white); color: var(--ink-2); font-size: 14.5px; max-width: 46em; position: relative; }
