/* ==========================================================================
   CareRune — design system
   Replace the brand name "CareRune" across the HTML files before launch.
   ========================================================================== */

:root {
  --ink: #0a1020;
  --body: #46506b;
  --muted: #6f7c91;
  --line: #e4e9f0;
  --line-strong: #d2dae4;
  --bg: #ffffff;
  --soft: #f6f8fb;
  --accent: #0f6d63;
  --accent-dark: #0b544c;
  --accent-soft: #e9f4f1;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(10, 16, 32, 0.04), 0 10px 30px -16px rgba(10, 16, 32, 0.16);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------- reset -- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.021em;
  margin: 0 0 0.6em;
  font-weight: 650;
}

h1 { font-size: clamp(2.15rem, 1.35rem + 2.6vw, 3.4rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.19rem; letter-spacing: -0.012em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }

strong { color: var(--ink); font-weight: 640; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

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

/* -------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 84px 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 60px 0; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { font-size: 1.06rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 660;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede { font-size: 1.14rem; color: var(--body); }

/* -------------------------------------------------------------- header -- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px -6px rgba(10, 16, 32, 0.2); }

.hdr__in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
}

.logo {
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 0.94rem;
}

.nav a { color: var(--body); font-weight: 520; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); font-weight: 620; }

.nav-btn {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(15, 109, 99, 0.6);
}

.btn--sm { padding: 9px 16px; font-size: 0.9rem; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--soft);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: none;
}

.btn--onDark { background: #fff; color: var(--ink); border-color: #fff; }
.btn--onDark:hover { background: #eef2f6; border-color: #eef2f6; color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link { font-weight: 600; font-size: 0.95rem; }
.text-link::after { content: " \2192"; }

/* ---------------------------------------------------------------- hero -- */
.hero { padding: 92px 0 76px; }
.hero--home { padding: 104px 0 84px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.hero--center { text-align: center; }
.hero--center .hero__body { max-width: 780px; margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }

.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: 1.19rem; max-width: 620px; }
.hero--center .lede { margin-inline: auto; }

/* --------------------------------------------------------- trust strip -- */
.trustbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.trustbar__in {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.trustbar b { color: var(--ink); font-weight: 680; }

/* --------------------------------------------------------------- grids -- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------- cards -- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; margin-bottom: 0; }
.card .text-link { display: inline-block; margin-top: 14px; }

a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

/* ---------------------------------------------------------- pain list -- */
.pain { border-left: 2px solid var(--line-strong); padding-left: 20px; }
.pain li { color: var(--body); }
.pain li::marker { color: var(--accent); }

/* --------------------------------------------------------- check list -- */
.checks { list-style: none; padding: 0; margin: 0; }

.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  font-size: 0.99rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 15px;
  height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}

/* ------------------------------------------------------------ modules -- */
.module { padding: 24px 0; border-top: 1px solid var(--line); }
.module:first-child { border-top: 0; padding-top: 0; }
.module h3 { margin-bottom: 8px; }
.module p { font-size: 0.98rem; margin-bottom: 0; }

/* ---------------------------------------------------------------- faq -- */
.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  position: relative;
  font-weight: 620;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.45;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > p, .faq details > div { padding: 0 60px 26px 0; margin: 0; }

/* ----------------------------------------------------------- cta band -- */
.cta {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 78px 0;
  text-align: center;
}

.cta h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.cta p { max-width: 620px; margin-inline: auto; font-size: 1.06rem; }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* ------------------------------------------------------------ article -- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin-bottom: 1.3em; }

/* ---------------------------------------------------------- page head -- */
.pagehead {
  padding: 68px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.pagehead h1 { max-width: 820px; }
.pagehead .lede { max-width: 700px; }
.pagehead .btn-row { margin-top: 28px; }

.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 7px; opacity: 0.6; }

/* -------------------------------------------------------------- stats -- */
.stat { text-align: left; }
.stat b { display: block; font-size: 1.95rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 0.93rem; color: var(--muted); }

/* ------------------------------------------------------------- notice -- */
.notice {
  background: var(--accent-soft);
  border: 1px solid #cfe5e0;
  border-radius: var(--radius);
  padding: 26px 28px;
}
.notice h3 { margin-bottom: 8px; }
.notice p { margin-bottom: 0; font-size: 0.98rem; }

/* ------------------------------------------------------------- footer -- */
.ftr { background: var(--soft); border-top: 1px solid var(--line); padding: 62px 0 34px; }

.ftr__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 46px;
}

.ftr h4 {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 660;
}

.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 10px; }
.ftr a { color: var(--body); font-size: 0.94rem; }
.ftr a:hover { color: var(--ink); }

.ftr__about p { font-size: 0.94rem; max-width: 320px; margin-top: 14px; }

.ftr__base {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.87rem;
  color: var(--muted);
}

.ftr__base p { margin: 0; }

/* ------------------------------------------------------------ helpers -- */

/* --------------------------------------------------------------- form -- */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.89rem;
  font-weight: 620;
  color: var(--ink);
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { min-height: 132px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 109, 99, 0.14);
}

.field__hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.skip {
  position: absolute; left: -9999px; top: 0; background: #fff;
  padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------- responsive -- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .section { padding: 62px 0; }
  .hero, .hero--home { padding: 62px 0 54px; }
  .nav-btn { display: inline-block; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: 0 18px 30px -20px rgba(10, 16, 32, 0.3);
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .hdr__in { position: relative; }
  .hdr .btn--sm { display: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
}
