/* Agent Hunter prototype base — warm coral/gold, README interaction tokens */
:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --color-bg: #fdf8f4;
  --color-surface: #ffffff;
  --color-text: #1a1412;
  --color-text-muted: #6b5e56;
  --color-primary: #c94a42;
  --color-primary-light: #ffe8e4;
  --color-border: #e8ddd6;
  --color-success: #2d8a5c;
  --gradient-primary: linear-gradient(135deg, #ff6f61 0%, #ffd5a1 100%);
  --gradient-hero: linear-gradient(135deg, #ff6f61 0%, #f4a261 55%, #ffd5a1 100%);
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #fff5f0 100%);
  --font-display: "Chillax", "PingFang TC", "PingFang SC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-body: "General Sans", "PingFang TC", "PingFang SC", "Microsoft JhengHei", system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(2rem, 4.5vw, 2.75rem);
  --radius-full: 9999px;
  --radius-xl: 1rem;
  --radius-2xl: 1.35rem;
  --shadow-md: 0 10px 28px rgba(26, 20, 18, 0.08);
  --shadow-sm: 0 2px 10px rgba(26, 20, 18, 0.06);
  --shadow-nav: 0 1px 0 rgba(26, 20, 18, 0.04);
  --max: 1120px;
  --color-surface-offset: #faf6f2;
  --radius-lg: 0.75rem;
  --text-base: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
}

a:hover {
  color: #a63a34;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 0.75rem;
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.muted {
  color: var(--color-text-muted);
}

.proto-banner {
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: var(--text-xs);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.proto-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0d4f4a;
  color: #ecfdf8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(13, 79, 74, 0.22);
}

.proto-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.proto-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ecfdf8;
  text-decoration: none;
  font-weight: 600;
}

.proto-nav__logo:hover {
  color: #ecfdf8;
  opacity: 0.9;
}

.proto-nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.proto-nav__links {
  display: none;
  gap: 1.35rem;
  font-weight: 500;
}

@media (min-width: 720px) {
  .proto-nav__links {
    display: flex;
  }
}

.proto-nav__links a {
  color: #ecfdf8;
  text-decoration: none;
}

.proto-nav__links a:hover {
  color: #ffd5a1;
}

.proto-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.proto-lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-surface);
}

.proto-lang-switch a {
  padding: 0.35rem 0.55rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  min-width: 2.75rem;
  text-align: center;
}

.proto-lang-switch a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.proto-lang-switch a[aria-current="page"] {
  background: var(--gradient-primary);
  color: #fff;
}

.proto-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.1s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
  min-height: 44px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: var(--text-xs);
  min-height: 40px;
}

.btn--gradient {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 111, 97, 0.35);
}

.btn--gradient:hover {
  color: #fff;
  box-shadow: 0 6px 22px rgba(255, 111, 97, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--white {
  background: #fff;
  color: var(--color-primary);
}

.btn--white:hover {
  color: #a63a34;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--tint {
  background: linear-gradient(180deg, #fff9f5 0%, var(--color-bg) 100%);
}

.section--subtle {
  background: #faf6f2;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
}

.section__lede {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 42rem;
}

.soft-blob-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 85%;
  background: radial-gradient(ellipse 70% 55% at 70% 20%, rgba(255, 213, 161, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(255, 111, 97, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-arcs {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255, 213, 161, 0.2), transparent 45%);
  pointer-events: none;
}

.photo-frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.photo-frame--blob {
  border-radius: 45% 55% 48% 52% / 52% 48% 55% 45%;
}

.photo-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.photo-frame {
  position: relative;
}

.img-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f0e8e2 0%, #e8dfd8 100%);
  color: #9a8b82;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.img-placeholder--16-10 {
  aspect-ratio: 16 / 10;
}

.img-placeholder--1-1 {
  aspect-ratio: 1 / 1;
}

.img-placeholder--4-3 {
  aspect-ratio: 4 / 3;
}

.img-placeholder--3-4 {
  aspect-ratio: 3 / 4;
  min-height: 160px;
}

.img-placeholder--cover {
  position: absolute;
  inset: 0;
  min-height: 200px;
  border: none;
  border-radius: 0;
}

.phone {
  background: #e8f5e9;
  border-radius: 1.25rem;
  border: 1px solid #c8e6c9;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 280px;
}

.phone__header {
  padding: 0.5rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: #075e54;
  color: #fff;
}

.phone__chat {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 140px;
  background: #ece5dd;
}

.bubble {
  align-self: flex-end;
  max-width: 92%;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem 0.5rem 0.15rem 0.5rem;
  background: #dcf8c6;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #111;
}

.bubble--ai {
  align-self: flex-start;
  background: #fff;
  border-radius: 0.5rem 0.5rem 0.5rem 0.15rem;
}

.benefit-tile {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.benefit-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-tile__body {
  padding: 1rem 1.1rem 1.15rem;
}

.benefit-tile__stat {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.benefit-tile__label {
  margin: 0.35rem 0 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.price {
  margin: 0;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  padding: 1.35rem;
  background: var(--color-surface);
}

/* Pricing: README Sidekick / Partner (featured) / Squad */
.pricing-tier--featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    var(--gradient-primary) border-box;
  box-shadow: 0 12px 32px rgba(255, 111, 97, 0.12);
}

.pricing-popular {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.email-row input[type="email"] {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  font: inherit;
  background: var(--color-surface);
}

.email-row input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.newsletter-band {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
}

.newsletter-band a {
  color: #fff;
}

.newsletter-band__panel {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  max-width: 480px;
}

.newsletter-band__panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}

.newsletter-band__panel p {
  margin: 0 0 1rem;
  opacity: 0.9;
}

.newsletter-band__panel .form-status {
  color: #fff;
}

.footer-dark {
  background: #1f1815;
  color: #d4c9c2;
  padding: 2.5rem 0;
  font-size: var(--text-sm);
}

.footer-dark a {
  color: #f0e6df;
  text-decoration: none;
}

.footer-dark a:hover {
  color: #ffd5a1;
}

.footer-dark__grid {
  display: grid;
  gap: 2rem;
}

.footer-dark__menus {
  display: grid;
  grid-template-columns: repeat(2, minmax(7rem, max-content));
  gap: 0.65rem 2.5rem;
  align-content: start;
}

@media (min-width: 720px) {
  .footer-dark__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 2.5rem;
  }

  .footer-dark__menus {
    justify-self: end;
    padding-top: 0.15rem;
  }
}

.footer-dark__menu-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-dark__menu-col a {
  display: inline-block;
  line-height: 1.4;
}

.inspo-note {
  font-size: var(--text-xs);
}

.inspo-note a {
  color: #c4a896;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Direction 3: editorial hub + clinic-style trust (UI_reference) —— */
.d3-main {
  background: var(--color-bg);
}

.d3-section {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}

.d3-section--surface {
  background: var(--color-surface-offset);
}

.d3-hub {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .d3-hub {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 2rem;
  }
}

.d3-hub__main {
  min-width: 0;
}

.d3-hub__aside {
  display: grid;
  gap: 1rem;
}

.d3-sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.service-row {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-row:last-child {
  border-bottom: none;
}

@media (min-width: 880px) {
  .service-row {
    grid-template-columns: minmax(140px, 200px) 1fr auto;
    gap: 1.5rem;
  }
}

.service-row__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 9.5rem;
}

.service-row__img {
  max-width: 220px;
  margin-inline: auto;
  position: relative;
}

@media (min-width: 880px) {
  .service-row__img {
    margin-inline: 0;
    max-width: none;
  }
}

.article-card__img {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.feature-hero__visual {
  position: relative;
  min-height: 200px;
  background: var(--color-surface-offset);
}

.top-strip {
  background: #0d4f4a;
  color: #ecfdf8;
  font-size: var(--text-xs);
  padding: 0.5rem 0;
}

.top-strip strong {
  color: #ffd5a1;
}

.top-strip a {
  color: inherit;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-cell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  font-size: var(--text-sm);
}

.stat-cell .num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.stat-cell__txt {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.feature-hero {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  display: grid;
}

@media (min-width: 800px) {
  .feature-hero {
    grid-template-columns: 1.15fr 1fr;
    min-height: 280px;
  }
}

.feature-hero__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-surface);
}

.article-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.article-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.read-column {
  max-width: 38rem;
}

.toc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.toc a {
  display: block;
  padding: 0.2rem 0;
  color: inherit;
  text-decoration: none;
  border-left: 2px solid var(--color-border);
  padding-left: 0.65rem;
  margin-bottom: 0.25rem;
}

.toc a:hover {
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}

.mini-agent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--color-border);
}

.section-head {
  margin-bottom: 1.25rem;
}

.newsletter-band .d3-nl-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .newsletter-band .d3-nl-grid {
    grid-template-columns: 1fr minmax(200px, 260px);
  }
}
