/* Homepage design system. payment.html continues to use home.css. */
:root {
  --bg: #0b0f0d;
  --surface: #131916;
  --surface-raised: #1a221e;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .24);
  --text: #f3f5f1;
  --muted: #aab5ae;
  --accent: #b8f2a6;
  --accent-strong: #d3f8c7;
  --on-accent: #0c1a10;
  --focus: #f4cf74;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --content: 1200px;
  --display: 'Sora', 'Trebuchet MS', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(60rem 36rem at 88% -8%, rgba(184, 242, 166, .13), transparent 68%),
    radial-gradient(44rem 30rem at -8% 22%, rgba(74, 160, 130, .1), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, p { margin: 0; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 12px 18px; border-radius: var(--radius-sm); color: var(--on-accent); background: var(--accent); font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.page-shell:focus { outline: none; }

/* Arrows are masks so mobile fonts cannot substitute emoji glyphs. */
.arrow, .agent-open, .agent-symbol, .primary-cta > span, .text-cta > span, .header-contact > span, .brand-symbol > span, .portrait-monogram > span { display: inline-flex; flex: none; align-items: center; justify-content: center; font-size: 0 !important; line-height: 1; }
.arrow::after, .agent-open::after, .agent-symbol::after, .primary-cta > span::after, .text-cta > span::after, .header-contact > span::after, .brand-symbol > span::after, .portrait-monogram > span::after { content: ""; display: block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .2s ease; }
.agent-symbol::after, .primary-cta > span::after, .header-contact > span::after, .brand-symbol > span::after, .portrait-monogram > span::after { transform: rotate(-45deg); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(11, 15, 13, .78); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.header-inner { display: flex; width: min(100% - 2 * var(--gutter), var(--content)); min-height: 72px; margin-inline: auto; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; min-height: 44px; min-width: 0; align-items: center; gap: 10px; font-family: var(--display); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.brand-symbol { display: inline-flex; width: 36px; height: 36px; flex: none; align-items: center; justify-content: center; border-radius: 11px; color: var(--on-accent); background: var(--accent); font-size: .875rem; font-weight: 800; letter-spacing: -.04em; }
.brand-symbol > span::after { width: 10px; height: 10px; }
.brand-divider { color: var(--line-strong); font-weight: 400; }
.brand-person { color: var(--muted); font-size: .75rem; font-weight: 500; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav > a:not(.header-contact) { display: inline-flex; min-height: 44px; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: color .2s, background .2s; }
.header-nav > a:not(.header-contact):hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.header-contact { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin-left: 8px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s, border-color .2s; }
.header-contact:hover { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.header-contact > span::after { width: 15px; height: 15px; }

.page-shell { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }

/* Hero */
.profile { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: clamp(40px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.eyebrow { display: block; margin: 0; color: var(--muted); font-family: var(--display); font-size: .75rem; font-weight: 600; letter-spacing: .14em; line-height: 1.5; }
.profile-copy > .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .035); }
.status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(184, 242, 166, .16); }
.profile-copy h1 { margin-top: 26px; font-family: var(--display); font-size: clamp(2.5rem, 5.6vw, 4.75rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.profile-copy h1 em { display: inline-block; margin-top: .12em; color: var(--accent); font-style: normal; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.profile-summary { max-width: 34rem; margin-top: 26px; color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 34px; }
.primary-cta { display: inline-flex; min-height: 54px; align-items: center; gap: 12px; padding: 0 24px; border-radius: 999px; color: var(--on-accent); background: var(--accent); box-shadow: 0 10px 34px rgba(184, 242, 166, .2); font-weight: 650; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.primary-cta:hover { background: var(--accent-strong); box-shadow: 0 14px 40px rgba(184, 242, 166, .3); transform: translateY(-2px); }
.primary-cta:hover > span::after { transform: rotate(-45deg) translateX(2px); }
.text-cta { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-weight: 550; text-decoration: none; }
.text-cta:hover > span::after { transform: translateX(3px); }
.top-values { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.top-values span { display: inline-flex; align-items: center; gap: 9px; }
.top-values span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero-portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 10, 8, .86), transparent 34%); pointer-events: none; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 20%; }
.hero-portrait figcaption { position: absolute; right: 16px; bottom: 16px; left: 16px; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-md); background: rgba(14, 20, 17, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-family: var(--display); font-weight: 600; }
.portrait-monogram { display: inline-flex; width: 42px; height: 42px; flex: none; align-items: center; justify-content: center; border-radius: 12px; color: var(--on-accent); background: var(--accent); font-size: .875rem; font-weight: 800; letter-spacing: -.03em; }
.portrait-monogram > span::after { width: 10px; height: 10px; }

/* Products */
.published-agents { padding-block: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.agents-dropdown summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: var(--radius-sm); cursor: pointer; list-style: none; }
.agents-dropdown summary::-webkit-details-marker { display: none; }
.agents-title, .section-heading h2 { display: block; margin-top: 10px; font-family: var(--display); font-size: clamp(1.75rem, 3.4vw, 2.625rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.agents-toggle { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform .2s, background .2s; }
.agents-dropdown summary:hover .agents-toggle { background: rgba(255, 255, 255, .07); }
.agents-dropdown[open] .agents-toggle { transform: rotate(45deg); }
.agents-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.agent-link { position: relative; display: flex; min-width: 0; grid-column: span 2; flex-direction: column; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.agent-link:nth-child(-n + 2) { grid-column: span 3; padding: 28px; background: linear-gradient(150deg, rgba(184, 242, 166, .1), transparent 62%), var(--surface); }
.agent-link:hover { border-color: rgba(184, 242, 166, .55); background-color: var(--surface-raised); transform: translateY(-3px); }
.agent-symbol { width: 44px; height: 44px; border-radius: 12px; color: var(--accent); background: rgba(184, 242, 166, .1); }
.agent-open { position: absolute; top: 28px; right: 26px; color: var(--muted); }
.agent-link:hover .agent-open { color: var(--accent); }
.agent-link:hover .agent-open::after { transform: translateX(3px); }
.agent-link strong { display: block; font-family: var(--display); font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.agent-link strong + span { display: block; margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }

/* Connect */
.connect { padding-block: clamp(48px, 6vw, 72px) clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading > p { color: var(--muted); text-align: right; }
.link-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.link-card { display: grid; min-width: 0; grid-column: span 2; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--text); background: var(--surface); text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
a.link-card:hover { border-color: rgba(184, 242, 166, .55); background: var(--surface-raised); transform: translateY(-3px); }
a.link-card:hover .arrow { color: var(--accent); }
a.link-card:hover .arrow::after { transform: translateX(3px); }
.link-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: var(--accent); background: rgba(184, 242, 166, .1); }
.link-icon svg { width: 21px; height: 21px; stroke-width: 1.7; }
.link-copy { display: block; min-width: 0; color: inherit; text-decoration: none; }
.link-copy strong { display: block; font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.link-copy > span { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.arrow { color: var(--muted); }

.link-card--featured { grid-column: span 3; grid-row: span 2; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: start; gap: 40px 16px; padding: clamp(24px, 3vw, 36px); border-color: transparent; color: var(--on-accent); background: var(--accent); }
a.link-card--featured:hover { border-color: transparent; background: var(--accent-strong); }
.link-card--featured .link-icon { width: 52px; height: 52px; border-radius: 14px; color: var(--on-accent); background: rgba(12, 26, 16, .1); }
.link-card--featured .link-icon svg { width: 25px; height: 25px; }
.link-card--featured .arrow, a.link-card--featured:hover .arrow { grid-column: 2; grid-row: 1; color: var(--on-accent); }
.link-card--featured .arrow::after { width: 28px; height: 28px; }
.link-card--featured .link-copy { grid-column: 1 / -1; grid-row: 2; align-self: end; }
.link-card--featured .link-copy strong { max-width: 13em; font-size: clamp(1.625rem, 3vw, 2.5rem); letter-spacing: -.035em; line-height: 1.1; }
.link-card--featured .link-copy > span { margin-top: 10px; color: #29422f; font-size: 1.0625rem; }

.phone-card, .email-card { grid-column: span 3; grid-template-columns: 44px minmax(0, 1fr); }
.phone-actions, .email-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
.save-contact-note { grid-column: 1 / -1; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.send-button, .call-button, .save-contact-button, .copy-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, .04); font: inherit; font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.send-button, .call-button { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.send-button:hover, .call-button:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.save-contact-button:hover, .copy-button:hover { border-color: var(--accent); color: var(--accent); background: rgba(184, 242, 166, .08); }
.send-button svg, .call-button svg, .save-contact-button svg, .copy-button svg { width: 15px; height: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.7; }
.footer-inner { display: flex; width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px 32px; }
.footer-brand { color: var(--text); font-family: var(--display); font-weight: 700; letter-spacing: .08em; }
.footer-brand span { display: block; color: var(--muted); font-family: var(--body); font-weight: 400; letter-spacing: 0; }
.footer-inner > span:last-child { text-align: right; }
.footer-inner a { display: inline-block; text-underline-offset: 3px; }
.footer-inner a:hover { color: var(--accent); }

/* Contact dialog */
.contact-dialog { width: min(calc(100% - 32px), 430px); max-width: calc(100vw - 32px); max-height: min(90vh, 620px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); color: var(--text); background: var(--surface-raised); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.contact-dialog::backdrop { background: rgba(4, 7, 5, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.contact-dialog form { width: 100%; min-width: 0; padding: 28px; }
.contact-dialog h2 { margin-bottom: 10px; font-family: var(--display); font-size: 1.375rem; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.contact-dialog label { display: block; margin-top: 14px; font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-dialog input { display: block; width: 100%; min-width: 0; min-height: 46px; margin-top: 6px; padding: 10px 13px; border: 1px solid #8a968f; border-radius: var(--radius-sm); color: #000 !important; -webkit-text-fill-color: #000 !important; caret-color: #000; background: #fff; color-scheme: light; font: inherit; font-size: 16px; }
.contact-dialog input:-webkit-autofill, .contact-dialog input:-webkit-autofill:hover, .contact-dialog input:-webkit-autofill:focus { color: #000 !important; -webkit-text-fill-color: #000 !important; box-shadow: 0 0 0 1000px #fff inset; }
.contact-dialog input:focus { border-color: var(--accent); outline: 3px solid var(--focus); outline-offset: 1px; }
.contact-dialog .dialog-status { min-height: 1.4em; margin-top: 10px; color: #ffb9ac; font-size: .875rem; }
.contact-dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.contact-dialog button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.contact-dialog .cancel-contact { color: var(--text); background: transparent; }
.contact-dialog .cancel-contact:hover { background: rgba(255, 255, 255, .08); }
.contact-dialog .submit-contact { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.contact-dialog .submit-contact:hover { background: var(--accent-strong); }

/* Entrance */
@media (min-width: 681px) {
  .profile-copy, .hero-portrait { animation: arrive .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-portrait { animation-delay: .08s; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1020px) {
  .brand-divider, .brand-person { display: none; }
  .profile { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 36px; }
  .agent-link, .agent-link:nth-child(-n + 2) { grid-column: span 3; }
  .agent-link:last-child { grid-column: 1 / -1; }
  .link-card { grid-column: span 3; }
  .link-card--featured { grid-column: 1 / -1; grid-row: auto; min-height: 240px; }
}
@media (max-width: 760px) {
  .header-nav > a:not(.header-contact) { display: none; }
  .header-contact { margin-left: 0; }
  .profile { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; }
  .hero-portrait { width: 100%; max-width: 460px; aspect-ratio: 1 / 1.05; margin-inline: auto; }
  .agent-link, .agent-link:nth-child(-n + 2), .agent-link:last-child, .link-card, .phone-card, .email-card { grid-column: 1 / -1; }
  .section-heading > p { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner > span:last-child { text-align: left; }
}
@media (max-width: 480px) {
  .wordmark { font-size: .8125rem; }
  .header-contact { padding: 0 14px; font-size: .875rem; }
  .primary-cta { width: 100%; justify-content: center; padding-inline: 16px; }
  .contact-dialog form { padding: 22px; }
  .contact-dialog .dialog-actions { flex-direction: column-reverse; }
  .contact-dialog button { width: 100%; }
}
@media (max-width: 370px) {
  .wordmark { gap: 0; font-size: 0; }
  .brand-symbol { font-size: .875rem; }
}

@media (forced-colors: active) {
  .link-card, .agent-link, .send-button, .call-button, .save-contact-button, .copy-button, .primary-cta, .header-contact { border: 1px solid ButtonText; }
  .arrow::after, .agent-open::after, .agent-symbol::after, .primary-cta > span::after, .text-cta > span::after, .header-contact > span::after { background: LinkText; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a.link-card:hover, .agent-link:hover, .primary-cta:hover { transform: none; }
}
