/* Freelance-side blocks shared by every theme: who I help, Panumart trust, how working with me goes,
 * the hello-video frame, the booking link and the pricing view (shared/ag-*.html, shared/ag.js).
 * Themes tune them with variables on any ancestor:
 *   --ag-ink, --ag-muted, --ag-card (card background), --ag-line, --ag-accent, --ag-on-accent,
 *   --ag-accent-ink (accent used as text), --ag-pop (popular card background), --ag-pop-ink,
 *   --ag-display (heading font), --ag-display-weight, --ag-display-case, --ag-mono, --ag-radius, --ag-shadow
 */
.ag, .ag * { box-sizing: border-box; }
.ag {
  --_ink: var(--ag-ink, #0b0b10);
  --_muted: var(--ag-muted, rgba(11, 11, 16, .66));
  --_card: var(--ag-card, #fff);
  --_line: var(--ag-line, rgba(11, 11, 16, .14));
  --_acc: var(--ag-accent, #ff2d87);
  --_on-acc: var(--ag-on-accent, #fff);
  --_acc-ink: var(--ag-accent-ink, var(--_acc));
  --_pop: var(--ag-pop, var(--_ink));
  --_pop-ink: var(--ag-pop-ink, #fff);
  --_r: var(--ag-radius, 22px);
  --_disp: var(--ag-display, inherit);
  --_mono: var(--ag-mono, ui-monospace, monospace);
  color: var(--_ink);
}
.ag h3, .ag h4, .ag p, .ag figure, .ag ul, .ag ol, .ag dl, .ag dd { margin: 0; }
.ag ul, .ag ol { padding: 0; list-style: none; }
.ag a:where(:not(.ag-btn)) { color: inherit; }

/* shared bits */
.ag-h3 { font-family: var(--_disp); font-weight: var(--ag-display-weight, 800); text-transform: var(--ag-display-case, none); font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.ag-h3 em { font-style: inherit; color: var(--_acc-ink); }
.ag-line { margin-top: 12px; color: var(--_muted); font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.5; max-width: 52ch; }
.ag-eyebrow { font-family: var(--_mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--_acc-ink); margin-bottom: 14px !important; }
.ag-fig { position: relative; overflow: hidden; border-radius: var(--_r); background: color-mix(in srgb, var(--_ink) 8%, transparent); aspect-ratio: 3 / 2; }
.ag-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-cap { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(10, 10, 12, .62); color: #fff; font: 500 .68rem/1.2 var(--_mono); letter-spacing: .04em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ag-more { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-weight: 750; text-decoration: underline; text-decoration-color: var(--_acc); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ag-more:hover { color: var(--_acc-ink); }
.ag-more span { transition: transform .25s; }
.ag-more:hover span { transform: translateX(3px); }
.ag-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px !important; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--_ink); background: var(--_ink); color: var(--_card); font-weight: 750; font-size: .98rem; text-decoration: none; transition: transform .25s, background .25s, color .25s, box-shadow .25s; }
.ag-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--_acc) 80%, transparent); }
.ag-btn-2 { background: transparent; color: var(--_ink); }
.ag-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ag a:focus-visible, .ag button:focus-visible { outline: 3px solid var(--_acc); outline-offset: 3px; }

/* who I help */
.ag-head { max-width: 760px; }
.ag-who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(22px, 3vw, 36px) !important; }
.ag-card { display: flex; flex-direction: column; min-width: 0; background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_r); overflow: hidden; box-shadow: var(--ag-shadow, none); }
.ag-card .ag-fig { border-radius: 0; }
.ag-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 14px; flex: 1; }
.ag-card-body h4 { font-family: var(--_disp); font-weight: var(--ag-display-weight, 800); text-transform: var(--ag-display-case, none); font-size: 1.22rem; line-height: 1.15; letter-spacing: -.01em; }
.ag-card-body p { color: var(--_muted); font-size: .95rem; line-height: 1.5; }
.ag-card-body .ag-more { margin-top: auto; font-size: .92rem; }
.ag-fig-fl { display: grid; place-items: center; background: linear-gradient(180deg, #ffb36b 0%, #ff6f91 48%, #3d6bff 100%); }
.ag-fl-pin { position: relative; z-index: 1; font: 900 clamp(3rem, 2rem + 3vw, 5rem)/1 var(--_disp); color: #fff; letter-spacing: -.04em; text-shadow: 0 6px 30px rgba(0, 0, 0, .2); }
.ag-fl-sun { position: absolute; left: 50%; top: 62%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: rgba(255, 236, 170, .55); box-shadow: 0 0 60px 20px rgba(255, 220, 150, .35); }
.ag-fig-fl::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .22) 0 3px, transparent 3px 12px); }

/* trust: Panumart */
.ag-trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 4vw, 64px); align-items: center; }
.ag-trust-fig { aspect-ratio: 4 / 5; }
.ag-trust-copy p { margin-top: 14px; max-width: 54ch; line-height: 1.55; }
.ag-trust-copy .ag-more { margin-top: 12px; }
.ag-stat { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 22px !important; padding: 16px 0; border-top: 1px solid var(--_line); border-bottom: 1px solid var(--_line); }
.ag-stat b { font-family: var(--_disp); font-weight: 900; font-size: clamp(3rem, 2rem + 4vw, 5.6rem); line-height: .9; letter-spacing: -.04em; color: var(--_acc-ink); }
.ag-stat span { max-width: 18ch; font-weight: 700; line-height: 1.3; }
.ag-trust .ag-punch { font-weight: 750; font-size: 1.08rem; }

/* how working with me goes */
.ag-process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 64px); align-items: center; }
.ag-process-fig { aspect-ratio: 4 / 5; }
.ag-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px !important; }
.ag-steps li { display: flex; gap: 14px; padding: 18px; border-radius: calc(var(--_r) - 6px); background: var(--_card); border: 1px solid var(--_line); }
.ag-n { flex: none; font: 600 .8rem/1.6 var(--_mono); color: var(--_acc-ink); }
.ag-steps h4 { font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.ag-steps p { margin-top: 6px; color: var(--_muted); font-size: .93rem; line-height: 1.5; }

/* hello video frame (About) */
.ag-hello { width: 100%; }
.ag-hello-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--_r); background: #111; }
.ag-hello-frame .ag-photo { filter: saturate(.85) brightness(.82); }
.ag-hello-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .22); border: 1.5px solid rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ag-hello-play svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; opacity: .85; }
.ag-hello-badge { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--_acc); color: var(--_on-acc); font: 600 .72rem/1.2 var(--_mono); letter-spacing: .06em; text-transform: uppercase; }
.ag-hello figcaption { margin-top: 12px; font-size: .95rem; line-height: 1.45; color: var(--_muted); }
.ag-hello figcaption b { color: var(--_ink); }

/* booking (contact) */
.ag-book { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ag-book p { color: var(--_muted); font-size: .92rem; max-width: 34ch; }

/* pricing */
.pr { display: grid; gap: clamp(22px, 3vw, 36px); }
.pr-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--_card); border: 1px solid var(--_line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; justify-self: center; }
.pr-tabs::-webkit-scrollbar { display: none; }
.pr-tabs[hidden] { display: none; }
.pr-tab { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--_ink); font: inherit; font-weight: 750; font-size: .95rem; cursor: pointer; transition: background .2s, color .2s; }
.pr-tab:hover { background: color-mix(in srgb, var(--_acc) 12%, transparent); }
.pr-tab[aria-selected="true"] { background: var(--_ink); color: var(--_card); }
.pr-cat { display: grid; gap: clamp(16px, 2vw, 24px); scroll-margin-top: 110px; }
.pr-cat[hidden] { display: none; }
.pr-cat:focus { outline: none; }
.pr:not(.pr-js) .pr-cat + .pr-cat { margin-top: clamp(24px, 4vw, 48px); }
.pr-cat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 32px; align-items: baseline; }
.pr-cat-head h3 { font-family: var(--_disp); font-weight: var(--ag-display-weight, 800); text-transform: var(--ag-display-case, none); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.pr-cat-head p { color: var(--_muted); line-height: 1.5; max-width: 62ch; }
.pr-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.pr-tier { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2vw, 28px); border-radius: var(--_r); background: var(--_card); border: 1px solid var(--_line); box-shadow: var(--ag-shadow, none); min-width: 0; }
.pr-tier.is-pop { background: var(--_pop); color: var(--_pop-ink); border-color: transparent; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--_acc) 60%, transparent); }
.pr-tier.is-pop .pr-for, .pr-tier.is-pop .pr-range, .pr-tier.is-pop .pr-note, .pr-tier.is-pop .pr-thb, .pr-tier.is-pop dt, .pr-tier.is-pop .pr-k { color: color-mix(in srgb, var(--_pop-ink) 72%, transparent); }
.pr-top { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--_line); }
.is-pop .pr-top { border-color: color-mix(in srgb, var(--_pop-ink) 22%, transparent); }
.pr-badge { justify-self: start; padding: 5px 11px; border-radius: 999px; background: var(--_acc); color: var(--_on-acc); font: 600 .7rem/1.2 var(--_mono); letter-spacing: .07em; text-transform: uppercase; }
.pr-name { font-family: var(--_disp); font-weight: var(--ag-display-weight, 800); text-transform: var(--ag-display-case, none); font-size: 1.3rem; line-height: 1.15; }
.pr-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin-top: 4px !important; }
.pr-price b { font-family: var(--_disp); font-weight: 900; font-size: clamp(2.2rem, 1.7rem + 1.4vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.pr-from, .pr-per { font-weight: 650; font-size: .92rem; }
.pr-range { font-weight: 650; font-size: .92rem; color: var(--_muted); }
.pr-note { font-size: .84rem; line-height: 1.4; color: var(--_muted); padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--_acc) 12%, transparent); }
.pr-thb { font: 500 .78rem/1.4 var(--_mono); color: var(--_muted); }
.pr-k { display: block; font: 600 .7rem/1.3 var(--_mono); letter-spacing: .07em; text-transform: uppercase; color: var(--_muted); margin-bottom: 4px; }
.pr-k-inc { margin-bottom: -6px !important; }
.pr-for { font-size: .95rem; line-height: 1.45; color: var(--_muted); }
.pr-inc { display: grid; gap: 7px; }
.pr-inc li { position: relative; padding-left: 24px; font-size: .95rem; line-height: 1.4; }
.pr-inc li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid var(--_acc); border-bottom: 2px solid var(--_acc); rotate: -45deg; }
.pr-meta { display: grid; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--_line); font-size: .9rem; }
.is-pop .pr-meta { border-color: color-mix(in srgb, var(--_pop-ink) 25%, transparent); }
.pr-meta div { display: flex; justify-content: space-between; gap: 12px; }
.pr-meta dt { color: var(--_muted); }
.pr-meta dd { font-weight: 700; text-align: right; }
.pr-ask { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid currentColor; font-weight: 750; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.pr-ask:hover { background: var(--_ink); color: var(--_card); border-color: var(--_ink); }
.is-pop .pr-ask { background: var(--_acc); color: var(--_on-acc); border-color: var(--_acc); }
.is-pop .pr-ask:hover { background: var(--_pop-ink); color: var(--_pop); border-color: var(--_pop-ink); }
.pr-addons { padding: 18px 22px; border-radius: calc(var(--_r) - 4px); border: 1px dashed var(--_line); }
.pr-addons h4 { font: 600 .74rem/1.3 var(--_mono); letter-spacing: .08em; text-transform: uppercase; color: var(--_muted); }
.pr-addons ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin-top: 10px !important; }
.pr-addons li { font-size: .93rem; line-height: 1.45; color: var(--_muted); }
.pr-addons b { display: block; color: var(--_ink); }
.pr-how { padding: clamp(20px, 2.6vw, 34px); border-radius: var(--_r); background: var(--_card); border: 1px solid var(--_line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 32px; align-items: start; }
.pr-how h3 { font-family: var(--_disp); font-weight: var(--ag-display-weight, 800); text-transform: var(--ag-display-case, none); font-size: 1.45rem; line-height: 1.1; }
.pr-how ul { display: grid; gap: 8px; }
.pr-how li { position: relative; padding-left: 20px; line-height: 1.5; }
.pr-how li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--_acc); }
.pr-how .ag-actions { grid-column: 2; margin-top: 8px !important; }

@media (max-width: 1100px) {
  .ag-who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .pr-tiers { grid-template-columns: minmax(0, 1fr); max-width: 560px; width: 100%; justify-self: center; }
  .pr-cat-head, .pr-how { grid-template-columns: minmax(0, 1fr); }
  .pr-how .ag-actions { grid-column: auto; }
  .pr-addons ul { grid-template-columns: minmax(0, 1fr); }
  .pr-tabs { justify-self: stretch; width: auto; }
}
@media (max-width: 860px) {
  .ag-trust, .ag-process { grid-template-columns: minmax(0, 1fr); }
  .ag-trust-fig, .ag-process-fig { aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
  .ag-who-grid { grid-template-columns: minmax(0, 1fr); }
  .ag-steps { grid-template-columns: minmax(0, 1fr); }
  .ag-btn { width: 100%; }
  .pr-tab { padding: 0 14px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-btn, .ag-more span, .pr-tab, .pr-ask { transition: none; }
  .ag-btn:hover { transform: none; }
}

/* Review strip under the Panumart story (renders only when freelance.trust.quotes has real quotes) */
.ag-quotes { grid-column: 1 / -1; display: grid; gap: 14px; }
.ag-quote-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.ag-quote { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--_r); background: var(--_card); border: 1px solid var(--_line); }
.ag-quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.ag-quote-by { color: var(--_muted); font-size: .86rem; }
.ag-quote-by span { font-family: var(--_mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }

/* Footnotes: the asterisk after a bold claim, and the plain note at the end of its section */
.fn-ref { font-size: .7em; line-height: 0; vertical-align: super; }
.fn-ref a { color: inherit; text-decoration: none; font-weight: 800; padding: 0 .12em; }
.fn-ref a:hover, .fn-ref a:focus-visible { text-decoration: underline; }
.fn-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: .8rem; line-height: 1.45; max-width: 78ch; opacity: .86; }
.fn-notes li { display: flex; gap: .5em; }
.fn-notes li:target { opacity: 1; font-weight: 600; }
.fn-mark { flex: none; font-weight: 800; }
