/* Red Nose HCA preview-full-v2 — expand from preview-v1 visual system */
@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/NotoSansTC-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/NotoSansTC-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/NotoSansTC-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/NotoSansTC-Bold.woff2") format("woff2");
}

:root {
  --red: #c62828;
  --red-dark: #9b1c1c;
  --purple: #6a1b9a;
  --purple-soft: #f3e5f5;
  --yellow: #f9a825;
  --yellow-soft: #fff8e1;
  --ink: #2c2c2c;
  --muted: #5c5c5c;
  --line: #e8e0e0;
  --bg: #fffdfb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(80, 20, 40, 0.08);
  --max: 1080px;
  --font: "Noto Sans TC", "PingFang HK", "蘋方-港", "Microsoft JhengHei", "微軟正黑體", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: .75rem;
  top: -4rem;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: .75rem; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { color: var(--red); font-size: 1rem; }
.brand-text span { color: var(--muted); font-size: .72rem; letter-spacing: .01em; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--red);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav { display: flex; flex-wrap: wrap; gap: .2rem .3rem; align-items: center; justify-content: flex-end; }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  padding: .4rem .58rem;
  border-radius: 999px;
}
.nav a:hover { background: var(--yellow-soft); text-decoration: none; color: var(--red-dark); }
.nav a.is-active { background: var(--red); color: var(--white); }
.nav a.is-active:hover { color: var(--white); background: var(--red-dark); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-secondary { background: var(--purple); color: var(--white); }
.btn-secondary:hover { background: #4a148c; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn-yellow:hover { background: #f57f17; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(249,168,37,.25), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(106,27,154,.12), transparent 45%),
    linear-gradient(180deg, #fff 0%, #fff8f5 100%);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.35;
  margin: 0 0 .75rem;
  color: var(--red-dark);
}
.hero .lead {
  font-size: 1.1rem;
  color: var(--purple);
  font-weight: 600;
  margin: 0 0 1rem;
}
.hero p { margin: 0; color: var(--muted); max-width: 42rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
.hero-grid .hero-copy p { max-width: none; }
.hero-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  outline: 2px solid rgba(249,168,37,.55);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.hero-photo figcaption {
  font-size: .8rem;
  color: var(--muted);
  padding: .55rem .75rem .7rem;
  background: var(--white);
}

/* Sections */
.section { padding: 2.25rem 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--ink);
  border-left: 5px solid var(--yellow);
  padding-left: .75rem;
}
.section h3 { font-size: 1.08rem; margin: 1.4rem 0 .5rem; color: var(--purple); }
.muted { color: var(--muted); }
.badge {
  display: inline-block;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

/* Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; color: var(--red-dark); }
.card.care {
  border-top: 4px solid var(--purple);
  background: linear-gradient(180deg, #faf5fc, #fff);
}
.card.visit { border-top: 4px solid var(--red); }
.card.partner { border-top: 4px solid var(--yellow); }

/* Trust bar */
.trust {
  background: var(--yellow-soft);
  border: 1px dashed var(--yellow);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.trust-label {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
  font-size: .95rem;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.trust-list span {
  background: var(--white);
  border: 1px solid var(--line);
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}

/* Quote */
.quote {
  background: var(--white);
  border-left: 4px solid var(--purple);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}
.quote + .quote-link { margin-top: .85rem; }

/* Lists */
.clean-list { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.clean-list li { margin: .35rem 0; }
.visits-list {
  display: grid;
  gap: .65rem;
  padding: 0;
  list-style: none;
}
.visits-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.visits-list strong { color: var(--red-dark); display: block; }
.visits-list span { color: var(--muted); font-size: .92rem; }

/* Result cards */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .85rem;
}
.result-card {
  background: var(--purple-soft);
  border-radius: var(--radius);
  padding: 1rem;
}
.result-card strong { display: block; color: var(--purple); margin-bottom: .35rem; }

/* Care plan box */
.plan-box {
  background: linear-gradient(135deg, #fff8e1, #fce4ec 60%, #f3e5f5);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin: 1.25rem 0;
}
.plan-box .slogan {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red-dark);
  margin: 0 0 .75rem;
}
.plan-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .65rem;
  margin-top: 1rem;
}
.plan-tiers div {
  background: var(--white);
  border-radius: 10px;
  padding: .85rem .75rem;
  text-align: center;
  font-weight: 700;
  color: var(--purple);
  border: 1px solid var(--line);
}
.plan-tiers .is-featured {
  border: 2px solid var(--purple);
  box-shadow: 0 0 0 3px rgba(106,27,154,.12);
  position: relative;
}
.plan-tiers .is-featured::after {
  content: "主推年約";
  display: inline-block;
  margin-top: .4rem;
  background: var(--purple);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
}
.plan-tiers small { display: block; font-weight: 500; color: var(--muted); margin-top: .25rem; }

/* Disclaimer */
.disclaimer {
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  color: var(--red-dark);
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: .95rem;
  font-weight: 600;
  margin-top: 1.5rem;
}
.disclaimer-soft {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 1rem;
}

/* Evidence notice — unmistakable, not warning-red */
.evidence-notice {
  background: var(--purple-soft);
  border: 2px solid var(--purple);
  border-left-width: 8px;
  color: var(--ink);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
  font-size: .98rem;
}
.evidence-notice strong { color: var(--purple); }
.evidence-teaser {
  background: #faf6fb;
  border: 1px solid #e1d0ea;
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin: 1.5rem 0;
}
.evidence-teaser h2 { margin-top: 0; }
.evidence-teaser p:last-child { margin-bottom: 0; }
.evidence-meta {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}
.evidence-inline {
  font-size: .92rem;
  color: var(--muted);
  margin: 1rem 0 0;
}
.citation-group { margin: 1.25rem 0 1.75rem; }
.citation-group h3 {
  font-size: 1.05rem;
  color: var(--purple);
  margin: 0 0 .75rem;
  border: 0;
  padding: 0;
}
.citation-list { list-style: none; padding: 0; margin: 0; }
.citation-list > li {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.citation-list > li:last-child { border-bottom: 1px solid var(--line); }
.citation-list .cite-title { margin: 0 0 .5rem; font-weight: 600; }
.citation-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  font-size: .92rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Contact form */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.form label {
  display: block;
  font-weight: 600;
  margin: .85rem 0 .3rem;
  font-size: .92rem;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(106,27,154,.15);
  outline: none;
}
.form textarea { min-height: 110px; resize: vertical; }
.form .hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.form .visit-extra {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.form .visit-extra[hidden],
.form[hidden],
#form-thanks[hidden] { display: none; }
.form-thanks {
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}
.form-thanks h2 { border: 0; padding: 0; margin: 0 0 .75rem; color: var(--red-dark); }
.placeholder-box {
  background: var(--yellow-soft);
  border: 1px dashed var(--yellow);
  border-radius: 10px;
  padding: .85rem 1rem;
  color: var(--ink);
  font-weight: 600;
}

/* Founder */
.founder {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.founder-mark {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.founder-layout {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1.5rem;
  align-items: start;
}
.media-aside {
  background: #faf7fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.media-aside h2 {
  font-size: 1.05rem;
  margin-bottom: .75rem;
}
.media-aside .note { font-size: .88rem; color: var(--muted); margin: 0 0 .75rem; }

/* Photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.photo-grid figure {
  margin: 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f3eee8;
}
.photo-grid figcaption,
.figure-cap {
  font-size: .8rem;
  color: var(--muted);
  padding: .5rem .7rem .7rem;
}
.media-figure {
  margin: 0 0 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}
.media-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.media-figure figcaption {
  font-size: .85rem;
  color: var(--muted);
  padding: .6rem .85rem .8rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  padding: 0;
  list-style: none;
  margin: .5rem 0 1.25rem;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  counter-increment: step;
}
.steps { counter-reset: step; }
.steps li strong {
  display: block;
  color: var(--red-dark);
  margin-bottom: .25rem;
}
.steps li strong::before {
  content: counter(step) ". ";
  color: var(--yellow);
  font-weight: 800;
}

/* Articles / media */
.article-list {
  display: grid;
  gap: .75rem;
  padding: 0;
  list-style: none;
}
.article-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.article-list a { font-weight: 700; }
.article-list .meta { display: block; color: var(--muted); font-size: .88rem; margin-top: .2rem; }

/* FAQ */
.faq-list { display: grid; gap: .55rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--red-dark);
  padding: .9rem 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-q:hover { background: var(--yellow-soft); }
.faq-q::after {
  content: "+";
  font-weight: 800;
  color: var(--purple);
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"]::after { content: "–"; }
.faq-a {
  padding: 0 1.1rem 1rem;
  color: var(--ink);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: .85rem;
}
.faq-a[hidden] { display: none; }

/* Notice */
.notice {
  background: var(--yellow-soft);
  border-left: 4px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  padding: .85rem 1rem;
  margin: 0 0 1.25rem;
}

/* Footer */
.site-footer {
  background: #2a1520;
  color: #f5eef1;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer a { color: #ffd54f; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.footer-legal {
  font-weight: 700;
  margin-bottom: .5rem;
}
.footer-meta { font-size: .9rem; color: #d7c6cc; margin: .35rem 0; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { font-weight: 600; font-size: .88rem; }
.footer-disclaim {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .88rem;
  color: #e8d5db;
}
.preview-banner {
  background: var(--purple);
  color: white;
  text-align: center;
  font-size: .82rem;
  padding: .4rem .75rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    padding: .6rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1rem; padding: .7rem .8rem; }
}

@media (max-width: 800px) {
  .hero-grid,
  .founder-layout,
  .footer-grid,
  .photo-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .photo-grid.two-up { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .brand img { width: 46px; height: 46px; }
  .brand-text strong { font-size: .9rem; }
  .hero { padding: 1.75rem 0 1.5rem; }
  .founder { flex-direction: column; }
  .photo-grid.two-up { grid-template-columns: 1fr; }
}
