@font-face {
  font-family: "Sao Chingcha";
  src: url("assets/fonts/SaoChingcha-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sao Chingcha";
  src: url("assets/fonts/SaoChingcha-Regular.otf") format("opentype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sao Chingcha";
  src: url("assets/fonts/SaoChingcha-Bold.otf") format("opentype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --emerald: #00744b;
  --emerald-dark: #004b36;
  --emerald-deep: #003d2f;
  --emerald-soft: #dceee6;
  --lime: #d8f38a;
  --coral: #f06f54;
  --coral-soft: #ffd5cb;
  --sky: #9bd7e6;
  --sky-soft: #dff3f7;
  --cream: #f4f1e7;
  --paper: #fffef8;
  --ink: #18352c;
  --muted: #5f716b;
  --line: rgba(24, 53, 44, 0.16);
  --shadow: 0 18px 48px rgba(0, 61, 47, 0.12);
  --header-height: 76px;
  --radius-lg: 32px;
  --radius-md: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--cream);
  font-family: "Sao Chingcha", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

:focus-visible { outline: 3px solid #ffbf47; outline-offset: 4px; }

.container { width: min(calc(100% - 40px), 1180px); margin-inline: auto; }
.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; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  color: white;
  background: var(--emerald-deep);
  border-radius: 12px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255, 254, 248, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { font-size: 1.25rem; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; color: var(--emerald-dark); border-radius: 999px; font-weight: 700; transition: background 180ms ease, color 180ms ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: white; background: var(--emerald); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: min(690px, calc(100svh - var(--header-height)));
  overflow: hidden;
  padding: 54px 20px 46px;
  color: white;
  background: var(--emerald);
}

.hero-inner { position: relative; width: 100%; max-width: 900px; min-width: 0; text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: .88rem; font-weight: 700; letter-spacing: .07em; }
.eyebrow.green { color: var(--emerald); }
.hero h1 { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .22em; max-width: 100%; min-height: 1.18em; margin: 0; font-size: clamp(3.4rem, 7.4vw, 6.6rem); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.title-prefix, .rotating-title { max-width: 100%; overflow-wrap: anywhere; }
.rotating-title { display: inline-block; color: var(--lime); transition: opacity 320ms ease, transform 320ms cubic-bezier(.2,.8,.2,1); }
.rotating-title.is-changing { opacity: 0; transform: translateY(16px); }
.hero-jump-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: 100%; min-width: 0; margin: 22px auto 0; }
.hero-jump-links button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px 16px; color: white; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-weight: 700; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.hero-jump-links button:hover, .hero-jump-links button:focus-visible { color: var(--emerald-deep); background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.hero-jump-links button span { font-size: 1.1rem; }

.search-form {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 700px;
  min-width: 0;
  min-height: 62px;
  margin: 20px auto 0;
  padding: 8px 9px 8px 22px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 18px;
  box-shadow: 0 24px 65px rgba(0, 54, 39, .28);
  transition: border-color 180ms ease, transform 180ms ease;
}
.search-form:focus-within { border-color: var(--lime); transform: translateY(-2px); }
.search-form svg { width: 25px; }
.search-form input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search-form input::placeholder { color: #71857e; }
.search-form button, .empty-state button { min-height: 46px; padding: 8px 22px; color: white; background: var(--emerald-dark); border: 0; border-radius: 12px; font-weight: 700; cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.search-form button { min-width: 0; }
.search-form button:hover, .empty-state button:hover { background: var(--emerald-deep); transform: translateY(-1px); }
.search-form button:disabled { opacity: .72; cursor: wait; transform: none; }

.search-starters { width: 100%; max-width: 840px; min-width: 0; overflow: hidden; margin: 14px auto 0; padding: 10px; background: rgba(255, 254, 248, 0.97); border: 1px solid rgba(216, 243, 138, 0.78); border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 54, 39, .2); }
.search-starter-track { display: grid; grid-auto-columns: 108px; grid-auto-flow: column; gap: 8px; width: 100%; min-width: 0; overflow-x: auto; padding: 2px 2px 8px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--emerald) var(--emerald-soft); overscroll-behavior-inline: contain; }
.search-starter-track button { display: grid; place-items: center; gap: 5px; min-height: 82px; padding: 9px 6px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 11px; scroll-snap-align: start; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.search-starter-track button:hover, .search-starter-track button:focus-visible { color: white; background: var(--emerald); border-color: var(--emerald); transform: translateY(-2px); }
.search-starter-track button span { font-size: 1.55rem; line-height: 1; }
.search-starter-track button strong { font-size: .8rem; line-height: 1.2; }

.browse-section { padding: 72px 0 96px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 48px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { max-width: 780px; margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.section-heading > p { max-width: 420px; margin: 0 0 7px; color: var(--muted); text-wrap: pretty; }

.marketplace-shell { padding: 24px 28px 30px; background: var(--paper); border: 1px solid rgba(24,53,44,.08); border-radius: 28px; box-shadow: 0 16px 52px rgba(0,61,47,.09); }
.quick-scroll { overflow-x: auto; padding: 0 0 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--emerald) transparent; }
.quick-menu { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 8px; min-width: 590px; }
.quick-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 132px; padding: 15px 14px 18px; text-align: center; background: transparent; border: 0; border-radius: 18px; cursor: pointer; scroll-snap-align: start; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.quick-card::after { position: absolute; right: 22%; bottom: 0; left: 22%; height: 4px; content: ""; background: currentColor; border-radius: 99px; opacity: 0; transform: scaleX(.35); transition: opacity 180ms ease, transform 180ms ease; }
.quick-card:hover { background: rgba(24,53,44,.045); transform: translateY(-2px); }
.quick-card.active { background: rgba(0,116,75,.06); }
.quick-card.active::after { opacity: 1; transform: scaleX(1); }
.quick-card.coral { color: #a44634; }
.quick-card.emerald { color: var(--emerald); }
.quick-card.sky { color: #26798b; }
.quick-icon { display: grid; place-items: center; width: 56px; height: 56px; background: rgba(255,255,255,.7); border: 1px solid currentColor; border-radius: 16px; box-shadow: 0 5px 18px rgba(24,53,44,.06); }
.quick-icon svg { width: 32px; stroke-width: 2.2; }
.quick-label { color: var(--ink); font-size: 1.08rem; font-weight: 700; line-height: 1.1; text-wrap: balance; }

.category-area { margin-top: 28px; scroll-margin-top: calc(var(--header-height) + 24px); }
.category-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 20px 0 18px; border-top: 1px solid var(--line); }
.category-kicker { margin: 0 0 5px; color: var(--emerald); font-size: .84rem; font-weight: 700; }
.category-heading h3 { margin: 0; font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.05; }
.category-heading #result-count:not(.visually-hidden) { margin: 0 0 5px auto; color: var(--muted); font-size: .82rem; font-weight: 700; text-align: right; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--emerald-dark); background: white; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.carousel-controls button:hover:not(:disabled) { color: white; background: var(--emerald); border-color: var(--emerald); transform: translateY(-2px); }
.carousel-controls button:disabled { opacity: .3; cursor: not-allowed; }
.carousel-controls svg { width: 20px; }

.category-grid { --card-size: 220px; display: grid; grid-template-rows: repeat(2, var(--card-size)); grid-auto-columns: var(--card-size); grid-auto-flow: column; gap: 14px; overflow-x: auto; padding: 3px 3px 18px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--emerald) var(--emerald-soft); overscroll-behavior-inline: contain; }
.category-card { position: relative; display: flex; aspect-ratio: 1; min-width: 0; overflow: hidden; padding: 20px; color: var(--ink); background: #fbfaf5; border: 1px solid var(--line); border-radius: 20px; scroll-snap-align: start; transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease; }
.category-card:hover, .category-card:focus-visible { color: white; background: var(--emerald); border-color: var(--emerald); transform: translateY(-5px); box-shadow: var(--shadow); }
.category-card-budget { position: absolute; top: 20px; left: 20px; z-index: 1; display: flex; align-items: flex-start; flex-direction: column; color: white; opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1); }
.category-card-budget strong { font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 700; line-height: .92; letter-spacing: -.035em; }
.category-card-budget small { margin-top: 9px; font-size: 1rem; font-weight: 700; line-height: 1; }
.category-card:hover .category-card-budget, .category-card:focus-visible .category-card-budget, .category-card.is-revealed .category-card-budget { opacity: 1; transform: translateY(0); }
.category-card.is-revealed { color: white; background: var(--emerald); border-color: var(--emerald); transform: translateY(-5px); box-shadow: var(--shadow); }
.category-card h4 { position: relative; z-index: 1; align-self: flex-end; max-width: 13ch; margin: 0; font-size: 1.45rem; line-height: 1.13; text-wrap: pretty; overflow-wrap: anywhere; }
.category-card mark { color: inherit; background: var(--lime); border-radius: 4px; }
.category-grid.is-search-results { display: block; overflow: visible; padding: 3px 3px 18px; scroll-snap-type: none; }
.search-result-group + .search-result-group { margin-top: 28px; }
.search-result-group > h4 { margin: 0 0 12px; color: var(--emerald-dark); font-size: 1rem; }
.agency-search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.agency-search-card { display: flex; align-items: flex-start; flex-direction: column; aspect-ratio: 1; min-width: 0; padding: 16px; color: var(--ink); background: #fbfaf5; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 rgba(24,53,44,.07); transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.agency-search-card:hover, .agency-search-card:focus-visible { color: white; background: var(--emerald); border-color: var(--emerald); transform: translateY(-3px); }
.agency-search-emoji { font-size: 1.65rem; line-height: 1; }
.agency-search-card small { margin-top: 9px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.agency-search-card:hover small, .agency-search-card:focus-visible small { color: rgba(255,255,255,.78); }
.agency-search-card h4 { margin: auto 0 0; font-size: 1.02rem; line-height: 1.28; text-wrap: pretty; overflow-wrap: anywhere; }
.agency-search-card mark { color: inherit; background: var(--lime); border-radius: 3px; }
.search-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.search-result-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 9px; min-width: 0; min-height: 190px; padding: 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.search-result-card:hover, .search-result-card:focus-visible { border-color: var(--emerald); box-shadow: 0 10px 30px rgba(0, 84, 60, .1); transform: translateY(-2px); }
.search-result-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.search-result-topline span { flex: 0 0 auto; color: var(--emerald); font-size: .72rem; font-weight: 700; }
.search-result-topline small { color: var(--muted); font-size: .7rem; line-height: 1.35; text-align: right; }
.search-result-card h4 { margin: 0; font-size: 1.12rem; line-height: 1.35; text-wrap: pretty; overflow-wrap: anywhere; }
.search-result-card h4 mark { color: inherit; background: var(--lime); border-radius: 3px; }
.search-result-card > p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.search-result-footer { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.search-result-footer code { color: var(--emerald-dark); font-family: inherit; font-size: .76rem; font-weight: 700; }
.search-result-footer strong { color: var(--emerald-deep); font-size: .94rem; text-align: right; }

.empty-state { padding: 74px 20px 30px; text-align: center; }
.empty-state span { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; color: white; background: var(--emerald); border-radius: 50%; font-size: 2.2rem; font-weight: 700; }
.empty-state h3 { margin: 0; font-size: 2rem; }
.empty-state p { margin: 8px 0 22px; color: var(--muted); }

.seo-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(26px, 5vw, 68px); padding: 0 0 96px; }
.seo-content-intro { min-width: 0; }
.seo-content h2 { max-width: 19ch; margin: 0; color: var(--emerald-deep); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.18; text-wrap: balance; }
.seo-content p { color: var(--muted); line-height: 1.7; text-wrap: pretty; }
.seo-content-intro > p:not(.eyebrow) { max-width: 62ch; margin: 16px 0 0; }
.seo-faq { display: grid; gap: 9px; align-content: start; }
.seo-faq details { padding: 0 18px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 15px; }
.seo-faq summary { padding: 15px 26px 15px 0; color: var(--emerald-dark); font-weight: 700; cursor: pointer; }
.seo-faq details > p { margin: 0 0 16px; font-size: .94rem; }
.seo-faq summary::marker { color: var(--emerald); }

.site-footer { padding: 42px 0; color: rgba(255,255,255,.76); background: var(--emerald-deep); }
.footer-inner { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.45fr); align-items: start; gap: clamp(34px, 6vw, 84px); }
.footer-identity, .footer-content { min-width: 0; }
.footer-logos { display: flex; align-items: center; gap: 15px; }
.footer-logo-link { display: inline-flex; flex: 0 0 auto; border-radius: 8px; }
.footer-logo-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.footer-logo { width: auto; height: auto; object-fit: contain; }
.footer-logo-budget { width: clamp(92px, 9vw, 116px); }
.footer-logo-flashthink { width: clamp(74px, 7vw, 94px); }
.footer-logo-divider { width: 1px; height: 48px; flex: 0 0 auto; background: rgba(255,255,255,.28); }
.footer-inner p { margin: 0; }
.footer-copyright { margin-top: 15px !important; color: rgba(255,255,255,.64); font-size: .8rem; }
.footer-content { max-width: 720px; margin-left: auto; text-align: right; }
.footer-disclaimer { color: rgba(255,255,255,.9); font-size: .9rem; line-height: 1.7; text-wrap: pretty; }
.footer-phrase { display: inline-block; }
.footer-contact { margin-top: 12px !important; font-size: .84rem; line-height: 1.6; }
.footer-contact a { color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 28px), 1180px); }
  .site-header { padding-inline: 14px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 1.1rem; }
  .primary-nav a { padding-inline: 14px; }
  .hero { min-height: 540px; padding: 54px 14px 48px; }
  .hero h1 { display: grid; gap: 0; font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .title-prefix, .rotating-title { display: block; }
  .desktop-break { display: none; }
  .search-form { grid-template-columns: 22px minmax(0, 1fr); min-height: 62px; padding: 9px 15px; border-radius: 16px; }
  .search-form svg { width: 22px; }
  .search-form button { grid-column: 1 / -1; min-height: 46px; margin-top: 2px; }
  .hero-jump-links { margin-top: 18px; }
  .hero-jump-links button { min-height: 40px; padding-inline: 13px; }
  .search-starters { padding: 8px; }
  .search-starter-track { grid-auto-columns: 100px; }
  .search-starter-track button { min-height: 76px; }
  .browse-section { padding: 58px 0 74px; }
  .seo-content { grid-template-columns: 1fr; gap: 30px; padding-bottom: 64px; }
  .seo-content h2 { max-width: none; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .section-heading > p { margin: 0; }
  .marketplace-shell { margin-inline: -2px; padding: 18px 16px 22px; border-radius: 24px; }
  .quick-menu { grid-template-columns: repeat(3, 150px); min-width: 466px; gap: 4px; }
  .quick-card { min-height: 118px; padding: 12px 8px 16px; border-radius: 15px; }
  .quick-icon { width: 48px; height: 48px; border-radius: 14px; }
  .quick-icon svg { width: 28px; }
  .quick-label { font-size: .94rem; }
  .category-area { margin-top: 20px; }
  .category-heading { align-items: center; gap: 16px; }
  .category-heading #result-count:not(.visually-hidden) { max-width: 15ch; }
  .carousel-controls button { width: 40px; height: 40px; }
  .category-grid { --card-size: min(42vw, 182px); gap: 11px; margin-right: -16px; padding-right: 16px; }
  .category-card { padding: 15px; border-radius: 18px; }
  .category-card-budget { top: 15px; left: 15px; }
  .category-card-budget strong { font-size: clamp(1.55rem, 7vw, 2.15rem); }
  .category-card-budget small { margin-top: 7px; font-size: .9rem; }
  .category-card h4 { font-size: clamp(1.05rem, 4.6vw, 1.28rem); }
  .category-grid.is-search-results { margin-right: 0; padding-right: 3px; }
  .agency-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .agency-search-card { padding: 13px; }
  .search-result-grid { grid-template-columns: 1fr; }
  .search-result-card { min-height: 170px; padding: 16px; }
  .search-result-topline { flex-direction: column; gap: 4px; }
  .search-result-topline small { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-content { max-width: none; margin-left: 0; text-align: left; }
}

@media (max-width: 420px) {
  .site-header { padding-inline: 10px; }
  .brand { gap: 7px; }
  .brand span { font-size: 1rem; }
  .primary-nav a { padding-inline: 8px; font-size: .92rem; }
  .hero { padding-inline: 12px; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 3.7rem); }
  .hero-jump-links button { padding-inline: 11px; }
}

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