/* NESTMEDI site styles — original; not derived from any Framer template. */
:root {
  --ink: #0b0b0b;
  --ink-soft: #2a3140;
  --muted: #5c6370;
  --navy: #0c2c58;
  --navy-deep: #081e3c;
  --blue: #2a68b2;
  --blue-hover: #1e5a9c;
  --gold: #c9a227;
  --gold-soft: #e8d7a0;
  --paper: #f6f5f1;
  --paper-2: #eceae4;
  --white: #ffffff;
  --line: #d9d6ce;
  --danger: #8a2b2b;
  --radius: 2px;
  --header-h: 4.5rem;
  --max: 70rem;
  --font-sans: Inter, "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-serif: "Source Serif Pro", "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "Songti TC", serif;
  --shadow: 0 12px 40px rgba(12, 44, 88, 0.08);
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-semibold.woff") format("woff");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("/assets/fonts/source-serif-pro-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("/assets/fonts/source-serif-pro-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans TC";
  src: url("/assets/fonts/noto-sans-tc.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans TC";
  src: url("/assets/fonts/noto-sans-tc-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif TC";
  src: url("/assets/fonts/noto-serif-tc.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif TC";
  src: url("/assets/fonts/noto-serif-tc-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
html[lang="zh-Hant"] body {
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img, .logo svg {
  height: 2.7rem;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border-left: 1px solid var(--line);
  padding-left: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-switch a, .lang-switch span {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch [aria-current="true"] {
  color: var(--navy);
  font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.88rem; }
.header-cta { margin-left: 0.25rem; flex-shrink: 0; white-space: nowrap; }
.nav { flex-shrink: 0; }
.price-card.featured a { color: #e8d7a0; }
.price-card.featured a:hover { color: #fff; }
.lang-switch { flex-shrink: 0; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  transition: transform 0.15s ease, top 0.15s ease, background-color 0.15s ease;
}
.is-open .menu-toggle span { background: transparent; }
.is-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.is-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1.1rem;
}
.hero-kicker::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
  margin-top: 0.7rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1.25rem;
  max-width: 32ch;
}
html[lang="zh-Hant"] .hero h1 { max-width: 16em; letter-spacing: 0; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 0.85rem;
}
.hero-channel {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-fineprint {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
  margin: 1.1rem 0 0;
}
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.trust-item {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-right: 0.75rem;
}
.trust-item strong {
  display: block;
  color: var(--navy);
  font-weight: 650;
  margin-bottom: 0.15rem;
}

/* Sections */
section { padding: 4.25rem 0; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.65rem;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.section-intro {
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 2.25rem;
}
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.bg-navy {
  background: var(--navy);
  color: #e8eef6;
}
.bg-navy h2, .bg-navy h3, .bg-navy .section-label { color: var(--white); }
.bg-navy .section-label { color: var(--gold-soft); }
.bg-navy .section-intro, .bg-navy p { color: #d5deea; }
.bg-navy a { color: var(--gold-soft); }
.bg-navy a:hover { color: var(--white); }

/* Need / market cards */
.grid-4, .grid-2, .grid-3 {
  display: grid;
  gap: 1.25rem;
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 > *, .grid-3 > *, .grid-2 > *,
.card, .price-card, .trust-item, .process-step {
  min-width: 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: none;
}
.bg-white .card { background: var(--paper); }
.card p { margin: 0 0 1rem; color: var(--ink-soft); }
.card a { font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.offer-card {
  max-width: 40rem;
}
.price-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.75rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: var(--navy);
  color: #e8eef6;
  border-color: var(--navy);
}
.price-card.featured h3,
.price-card.featured .price { color: var(--white); }
.price-card.featured p, .price-card.featured li { color: #d5deea; }
.price-card .offer {
  font-size: 0.85rem;
  background: rgba(201, 162, 39, 0.16);
  color: var(--navy-deep);
  border-left: 3px solid var(--gold);
  padding: 0.55rem 0.7rem;
  margin: 0 0 1rem;
}
.price-card.featured .offer {
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold-soft);
}
.price {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0.15rem 0 0.85rem;
}
.price-card ul {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  flex: 1;
}
.price-card li { margin: 0.3rem 0; }
.price-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.muted { color: var(--muted); font-size: 0.92rem; }

/* Process */
.process { counter-reset: step; display: grid; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.bg-navy .process-step { border-color: rgba(255,255,255,0.15); }
.process-num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold);
  font-weight: 600;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0.75rem 0 0.4rem;
  color: var(--ink-soft);
  max-width: 48rem;
}

/* CTA band */
.cta-band { padding: 4.5rem 0; text-align: left; }
.cta-band .hero-actions { margin-top: 1.5rem; }

/* Page header (inner pages) */
.page-hero { padding: 3.25rem 0 2.25rem; }
.crumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--navy); }

/* Glance / two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.glance {
  background: var(--paper);
  border-top: 3px solid var(--gold);
  padding: 1.4rem 1.4rem 1.2rem;
}
.glance dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.85rem 0 0.2rem;
  font-weight: 600;
}
.glance dt:first-child { margin-top: 0; }
.glance dd { margin: 0; color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.85rem;
}

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.not-fit h3 { color: var(--danger); }

/* Privacy */
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal p { color: var(--ink-soft); max-width: 46rem; }
.legal-date { color: var(--muted); font-size: 0.92rem; }

/* Contact email block */
.email-block {
  font-size: 1.45rem;
  font-weight: 600;
}
.email-block a { color: var(--navy); text-decoration: none; }
.email-block a:hover { color: var(--blue); text-decoration: underline; }

/* Mailto form (no backend) */
.mail-form {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
}
.mail-form label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.mail-form input,
.mail-form textarea,
.mail-form select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
}
.mail-form textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* Checkout options */
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pay-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pay-card p { margin: 0; color: var(--ink-soft); }

/* Language gate */
.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  background: var(--paper);
}
.gate-inner { width: min(36rem, calc(100% - 2.5rem)); margin: auto; text-align: left; }
.gate-inner .logo img { height: 3.6rem; margin-bottom: 2rem; }
.lang-list { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.lang-list a {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.lang-list a:hover { border-color: var(--navy); background: var(--white); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c9d3e0;
  padding: 3rem 0 1.5rem;
}
.site-footer a { color: #e8eef6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer .logo img { height: 2.5rem; }
.footer-tag { margin: 1rem 0 0.5rem; max-width: 22rem; }
.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.8rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.35rem 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.15rem;
  font-size: 0.85rem;
}
.disclaimer {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #9aabbf;
  max-width: 58rem;
}

/* 404 */
.not-found { padding: 5rem 0 6rem; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .price-grid, .split, .fit-grid, .pay-options, .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Collapse the desktop nav on tablets as well as phones.
     Spanish and Chinese header labels overflow a 768px viewport when shown inline. */
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    z-index: 60;
  }
  .is-open .nav { display: flex; }
  .nav a, .header-cta { padding: 0.7rem 0; }
  .header-cta { margin: 0.4rem 0 0; width: 100%; white-space: normal; }
  .lang-switch {
    border: 0;
    padding-left: 0;
    margin-left: auto;
  }
  .hero { padding: 2.75rem 0 2.5rem; }
  section { padding: 3rem 0; }
  .logo img, .logo svg { height: 2.25rem; }
}
@media (max-width: 600px) {
  .grid-4,
  .trust { grid-template-columns: minmax(0, 1fr); }
  .trust { margin-top: 2rem; }
}


.nav a.btn,
.nav a.btn-primary,
.nav a.btn-primary:hover {
  color: #fff;
}
html[lang="zh-Hant"] .hero h1 { max-width: 16em; }
