/* Components: header, buttons, pills, cards, phone mock-ups, forms, accordion, tabs, footer */

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--on-dark);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform 420ms var(--ease-out), box-shadow var(--dur-base);
  view-transition-name: site-header;
}
.site-header.is-solid { background: rgba(250, 246, 240, 0.9); color: var(--ink); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--border); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; letter-spacing: -0.01em; view-transition-name: brand; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.nav { margin-left: auto; display: none; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav a:not(.btn) { position: relative; font-size: 0.875rem; font-weight: 600; color: inherit; opacity: 0.78; padding-block: 6px; transition: opacity var(--dur-fast); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.site-header.is-solid .nav a:not(.btn)::after { background: var(--bronze); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-btn); border: 1px solid currentColor; font-size: 0.875rem; font-weight: 700; }
.menu-btn .icon { width: 18px; height: 18px; }
@media (min-width: 1100px) { .nav { display: flex; } .menu-btn { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--ink-deep); color: var(--on-dark);
  display: flex; flex-direction: column; padding: 20px var(--gutter) 28px;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.mobile-menu::before { content: none; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 44px; position: relative; }
.mobile-menu__links { position: relative; margin-top: 40px; display: grid; gap: 4px; }
.mobile-menu__links a { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.2; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu__links a .icon { width: 22px; height: 22px; opacity: 0.5; }
.mobile-menu__links a[aria-current="page"] { color: var(--gold); }
.mobile-menu__foot { position: relative; margin-top: auto; display: grid; gap: 14px; }
.mobile-menu__foot .small { color: var(--on-dark-3); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; --btn-fill: var(--ink); --btn-fill-fg: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 15px 24px; border-radius: var(--r-btn);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-size: var(--fs-button); font-weight: 700; letter-spacing: 0; line-height: 1;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base), transform var(--dur-base) var(--ease-out);
  will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill); border-radius: inherit; transform: translateX(-101%); transition: transform 420ms var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); border-color: var(--btn-fill); }
.btn:active { transform: scale(0.98); }
.btn .icon { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .icon, .btn:focus-visible .icon { transform: translateX(4px); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--ink); --btn-bd: var(--cream); --btn-fill: var(--gold-soft); --btn-fill-fg: var(--ink); }
.btn--ghost-light { --btn-fg: var(--cream); --btn-bd: rgba(251, 249, 245, 0.4); --btn-fill: var(--cream); --btn-fill-fg: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: var(--ink); --btn-fill: var(--bronze); --btn-fill-fg: var(--cream); }
.btn--ghost-dark { --btn-fg: var(--ink); --btn-bd: var(--ink); --btn-fill: var(--ink); --btn-fill-fg: var(--cream); }
.btn--bronze { --btn-bg: var(--bronze); --btn-fg: var(--cream); --btn-bd: var(--bronze); --btn-fill: var(--bronze-900); --btn-fill-fg: var(--cream); }
.btn--sm { min-height: 42px; padding: 11px 18px; font-size: 0.875rem; }
.site-header .btn { min-height: 42px; padding: 11px 18px; font-size: 0.875rem; }
.site-header:not(.is-solid) .btn--ghost-dark { --btn-fg: var(--cream); --btn-bd: rgba(251,249,245,.5); --btn-fill: var(--cream); --btn-fill-fg: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row, .btn-row.center { justify-content: center; }
@media (max-width: 520px) { .btn-row--stack { flex-direction: column; align-items: stretch; } .btn-row--stack .btn { width: 100%; } }

/* Text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 700; color: var(--bronze); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 3px; transition: background-size var(--dur-base) var(--ease-out); }
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1.5px; }
.link-arrow .icon { width: 15px; height: 15px; transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.theme-ink .link-arrow, .theme-deep .link-arrow, .on-dark .link-arrow { color: var(--gold); }
.text-link { color: var(--bronze); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.theme-ink .text-link, .theme-deep .text-link, .on-dark .text-link { color: var(--gold); }

/* ---------- Pills and chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); font-size: 0.65625rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; }
.pill--soon::before, .pill--planned::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--live { background: var(--bronze); color: var(--cream); border-color: var(--bronze); }
.pill--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pill--soon, .pill--planned { color: var(--muted); border-color: var(--border-strong); }
.theme-ink .pill--soon, .theme-ink .pill--planned, .theme-deep .pill--soon, .theme-deep .pill--planned, .on-dark .pill--planned, .on-dark .pill--soon, .card--dark .pill--soon { color: var(--cream); background: rgba(250, 246, 240, 0.14); border-color: transparent; }
.card--dark .pill--soon::before, .theme-deep .pill--soon::before, .theme-ink .pill--soon::before { background: var(--gold); }
.pill--core { color: var(--bronze); border-color: rgba(138, 90, 43, 0.4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--sand); border: 1px solid var(--border); font-size: 0.875rem; font-weight: 500; color: var(--text-2); transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.chip:hover { background: var(--selection); }
.theme-ink .chip, .theme-deep .chip, .on-dark .chip { background: rgba(251, 249, 245, 0.06); border-color: var(--line-dark); color: var(--on-dark); }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: clamp(22px, 2.4vw, 32px); box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.card--dark { background: var(--panel-dark); border-color: var(--line-dark); color: var(--on-dark); box-shadow: none; }
.card--tint { background: var(--tint); border-color: var(--tint); }
.card--outline { border: 1.5px solid var(--ink); }
.card--flat { box-shadow: none; }
.card--hover:hover, .card--hover:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(138, 90, 43, 0.45); }
.card--dark.card--hover:hover { border-color: rgba(221, 181, 132, 0.4); }
/* Cursor spotlight (fine pointers only, set by JS) */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur-base); background: radial-gradient(420px circle at var(--mx) var(--my), rgba(138, 90, 43, 0.10), transparent 60%); }
.card--dark.spotlight::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(221, 181, 132, 0.12), transparent 60%); }
.spotlight:hover::after { opacity: 1; }
.card .icon-badge { margin-bottom: var(--s-5); }
.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); border: 1px solid var(--border); color: var(--bronze); }
.icon-badge .icon { width: 24px; height: 24px; }
.card--dark .icon-badge, .theme-ink .icon-badge, .theme-deep .icon-badge { background: rgba(221, 181, 132, 0.08); border-color: rgba(221, 181, 132, 0.25); color: var(--gold); }
.card h3 + p, .card .h-3 + p, .card .h-4 + p { margin-top: 10px; }
.card p { color: var(--text-2); }
.card--dark p { color: var(--on-dark-2); }

/* Check list */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A5A2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border: 1px solid var(--border); }
.theme-ink .ticks li::before, .theme-deep .ticks li::before, .on-dark .ticks li::before { background-color: rgba(221,181,132,.1); border-color: rgba(221,181,132,.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DDB584' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* Note / callout */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--tint); border: 1px solid var(--tint); font-size: var(--fs-small); color: var(--text-2); }
.note .icon { color: var(--bronze); margin-top: 3px; }
.on-dark .note, .theme-ink .note, .theme-deep .note { background: rgba(251,249,245,.05); border-color: var(--line-dark); color: var(--on-dark-2); }
.on-dark .note .icon, .theme-ink .note .icon { color: var(--gold); }
.draft-banner { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--tint); border: 1px dashed var(--bronze-300); color: var(--bronze-700); font-weight: 600; font-size: var(--fs-small); }

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px; border-radius: var(--r-badge); border: 1px solid rgba(251, 249, 245, 0.4); color: var(--cream); line-height: 1.1; transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.store small { display: block; font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.store--light small { opacity: 1; color: #5a534b; }
.theme-cream .store--light small, .theme-sand .store--light small, .ia-band:not(.ia-dark) .store--light small { color: inherit; opacity: 0.75; }
.store strong { font-size: 0.9375rem; font-weight: 600; }
.store svg { width: 20px; height: 20px; }
.store--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
a.store:hover { transform: translateY(-2px); }
.store[aria-disabled="true"] { cursor: default; }
.stores__note { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800; color: var(--gold); }
.theme-cream .store, .theme-sand .store { color: var(--ink); border-color: var(--border-strong); }
.theme-cream .store--light, .theme-sand .store--light { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.theme-cream .stores__note, .theme-sand .stores__note { color: var(--bronze); }

/* ---------- Phone mock-up (styled after the Saarthi app screen set) ---------- */
.phone {
  --pw: 290px;
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.2; flex: none;
  border-radius: calc(var(--pw) * 0.14); padding: calc(var(--pw) * 0.028); background: #262626;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px #3a3632;
  font-size: calc(var(--pw) / 290 * 12px);
}
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--pw) * 0.115); overflow: hidden; background: var(--cream); color: var(--ink); line-height: 1.4; font-family: var(--font-sans); }
.phone__tag { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.on-dark .phone__tag, .theme-ink .phone__tag, .theme-deep .phone__tag { color: var(--on-dark-3); }
.phone--sm { --pw: 220px; }
.phone--md { --pw: 262px; }
.screen { position: absolute; inset: 0; padding: 2.9em 1.15em 0; display: flex; flex-direction: column; gap: 0.8em; transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }
.screen.is-off { opacity: 0; transform: translateY(12px); pointer-events: none; }
.screen--dark { background: var(--ink); color: var(--cream); }
.sb { position: absolute; top: 0.85em; left: 1.5em; right: 1.4em; display: flex; justify-content: space-between; align-items: center; font-size: 0.85em; font-weight: 700; z-index: 2; }
.sb svg { width: 3.4em; height: auto; fill: currentColor; }
.ap-label { font-size: 0.72em; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze); }
.screen--dark > div > .ap-label, .screen--dark > .ap-head .ap-label { color: var(--gold); }
.ap-title { font-family: var(--font-display); font-size: 1.75em; line-height: 1.12; letter-spacing: -0.01em; }
.ap-h { font-family: var(--font-display); font-size: 1.25em; line-height: 1.2; margin-top: 0.2em; }
.ap-sub { font-size: 0.9em; color: var(--muted); }
.screen--dark > .ap-head .ap-sub { color: rgba(250, 246, 240, 0.6); }
.ap-head { display: flex; align-items: center; gap: 0.7em; }
.ap-head > div { flex: 1; min-width: 0; }
.ap-back { width: 2.2em; height: 2.2em; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: grid; place-items: center; flex: none; }
.ap-back::before { content: ""; width: 0.5em; height: 0.5em; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateX(0.1em) rotate(45deg); }
.ap-avatar { width: 2.6em; height: 2.6em; border-radius: 0.7em; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.05em; flex: none; }
.ap-avatar--tint { background: var(--tint); color: var(--bronze-700); }
.ap-card { background: var(--white); border: 1px solid var(--border); border-radius: 1.05em; padding: 0.85em 0.95em; display: grid; gap: 0.2em; }
.ap-card--em { border: 1.2px solid var(--ink); }
.ap-card--tint { background: var(--tint); border-color: var(--tint); }
.ap-card--dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.ap-card--dark .ap-meta { color: rgba(250, 246, 240, 0.62); }
.ap-card--notice { border-left: 3px solid var(--bronze); }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.ap-name { font-weight: 700; font-size: 1em; }
.ap-meta { font-size: 0.85em; color: var(--muted); }
.ap-time { display: grid; grid-template-columns: 3.4em 1fr; gap: 0.7em; align-items: center; }
.ap-time > b { font-family: var(--font-display); font-weight: 400; font-size: 1.25em; line-height: 1; border-right: 2px solid var(--bronze); padding-right: 0.5em; }
.ap-time > b small { display: block; font-family: var(--font-sans); font-size: 0.5em; font-weight: 700; color: var(--muted); margin-top: 2px; }
.ap-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em; }
.ap-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-stat span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-stat { background: var(--white); border: 1px solid var(--border); border-radius: 0.95em; padding: 0.7em 0.8em; }
.ap-stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6em; line-height: 1.1; }
.ap-stat span { font-size: 0.78em; color: var(--muted); }
.ap-stat--tint { background: var(--tint); border-color: var(--tint); }
.screen--dark > .ap-stats .ap-stat, .ap-card--dark .ap-stat { background: transparent; border-color: rgba(250, 246, 240, 0.18); color: var(--cream); }
.screen--dark > .ap-stats .ap-stat span, .ap-card--dark .ap-stat span { color: rgba(250, 246, 240, 0.6); }
.ap-pill { display: inline-flex; align-items: center; gap: 0.4em; align-self: start; justify-self: start; padding: 0.3em 0.75em; border-radius: 99px; font-size: 0.7em; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(250, 246, 240, 0.14); color: var(--cream); }
.ap-pill::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--gold); }
.ap-chip { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.2em 0.65em; border-radius: 99px; background: var(--sand); font-size: 0.72em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--bronze-700); white-space: nowrap; }
.ap-chip--ok { background: #e7eee2; color: #3e6141; }
.ap-chip--warn { background: var(--tint); color: var(--bronze-900); }
.ap-chip--dark { background: var(--ink); color: var(--cream); }
.ap-btn { display: flex; justify-content: center; align-items: center; height: 3.2em; border-radius: 0.95em; background: var(--ink); color: var(--cream); font-size: 0.95em; font-weight: 700; }
.ap-btn--light { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.ap-btn--bronze { background: var(--bronze); }
.ap-note { background: var(--tint); border-radius: 0.95em; padding: 0.75em 0.9em; font-size: 0.85em; color: var(--text-2); }
.ap-section { font-family: var(--font-display); font-size: 1.12em; margin-top: 0.2em; }
.ap-progress { height: 0.45em; border-radius: 99px; background: var(--sand); overflow: hidden; }
.ap-progress span { display: block; height: 100%; background: var(--bronze); border-radius: inherit; }
.ap-bubble { background: var(--white); border: 1px solid var(--border); border-radius: 1em 1em 1em 0.3em; padding: 0.75em 0.9em; font-size: 1em; }
.ap-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.35em; text-align: center; font-size: 0.8em; }
.ap-days span { border: 1px solid var(--border); background: var(--white); border-radius: 0.7em; padding: 0.35em 0; line-height: 1.25; color: var(--muted); }
.ap-days span b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25em; color: var(--ink); }
.ap-days span.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.ap-days span.is-on b { color: var(--cream); }
.ap-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3em; text-align: center; font-size: 0.78em; }
.ap-cal i { font-style: normal; aspect-ratio: 1; display: grid; place-items: center; border-radius: 0.45em; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.ap-cal i.p { background: var(--ink); color: var(--cream); }
.ap-cal i.a { background: var(--bronze); color: var(--cream); }
.ap-cal i.h { color: var(--muted); font-weight: 700; }
.ap-big { font-family: var(--font-display); font-size: 2.6em; line-height: 1; }
.ap-bar { margin-top: auto; margin-inline: -1.15em; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 0.55em 0.4em 1.1em; border-top: 1px solid var(--border); background: var(--cream-2); font-size: 0.68em; color: var(--muted); text-align: center; }
.ap-bar span { display: grid; justify-items: center; gap: 0.25em; }
.ap-bar span::before { content: ""; width: 1.4em; height: 1.4em; border: 1.5px solid currentColor; border-radius: 0.4em; opacity: 0.7; }
.ap-bar span.is-on { color: var(--ink); font-weight: 800; }
.ap-bar span.fab { color: var(--bronze); font-weight: 800; }
.ap-bar span.fab::before { width: 3.4em; height: 3.4em; margin-top: -2.1em; border: 3px solid var(--cream); border-radius: 50%; opacity: 1; background: var(--bronze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAF6F0' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 5l8 5.5V19H4z'/%3E%3Cpath d='M10 19v-4h4v4'/%3E%3C/svg%3E") center / 50% no-repeat; box-shadow: 0 6px 14px -6px rgba(138, 90, 43, 0.6); }
.app-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(250,246,240,.1), 0 18px 40px -16px rgba(0,0,0,.6); }
.app-icon svg { width: 60%; height: 60%; }
/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: var(--r-input);
  background: var(--white); border: 1px solid var(--border-strong); color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F564C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(138, 90, 43, 0.18); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #a1371f; }
.field__error { font-size: 0.8125rem; color: #a1371f; font-weight: 600; }
.field__help { font-size: 0.8125rem; color: var(--muted); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; color: var(--text-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bronze); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: var(--fs-small); }
.form-status[data-state="ok"] { background: #e6efe5; color: #2f5135; }
.form-status[data-state="error"] { background: #f8e2db; color: #8a2f19; }
.form-status[data-state="offline"] { background: #f3e8da; color: var(--bronze-700); }
.form-status[data-state="sending"] { background: var(--sand); color: var(--text-2); }

/* ---------- Accordion (details) ---------- */
.accordion { display: grid; gap: 12px; }
.acc { background: var(--white); border: 1px solid var(--border); border-radius: 18px; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.acc[open] { border-color: rgba(138, 90, 43, 0.4); box-shadow: var(--shadow-card); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform var(--dur-base) var(--ease-out); color: var(--bronze); }
.acc[open] summary .icon { transform: rotate(45deg); }
.acc__body { padding: 0 22px 22px; color: var(--text-2); max-width: 70ch; }
.acc__link { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; display: inline-block; }

/* ---------- Tabs (role switch, feature tabs) ---------- */
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-card); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; flex: none; min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color var(--dur-base); }
.tab[aria-selected="true"] { color: var(--cream); }
.tab:hover:not([aria-selected="true"]) { color: var(--ink); }
.tabs__indicator { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: var(--r-pill); background: var(--ink); }
.no-js .tabs__indicator { display: none; }
.tabs--dark { background: rgba(251,249,245,.06); border-color: var(--line-dark); box-shadow: none; }
.tabs--dark .tab { color: var(--on-dark-2); }
.tabs--dark .tab[aria-selected="true"] { color: var(--ink); }
.tabs--dark .tabs__indicator { background: var(--cream); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--on-dark); padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(64px, 8vw, 120px); min-height: min(68vh, 720px); display: flex; align-items: flex-end; }
.page-hero .ghost { right: -2vw; bottom: -2vw; color: var(--cream); opacity: 0.045; }
.page-hero__inner { position: relative; z-index: 2; max-width: 900px; }
.page-hero .h-1 { margin-top: var(--s-5); }
.page-hero .lead { margin-top: var(--s-5); }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero--split .page-hero__grid { display: grid; gap: 48px; align-items: end; position: relative; z-index: 2; width: 100%; }
@media (min-width: 1024px) { .page-hero--split .page-hero__grid { grid-template-columns: 1.25fr 0.75fr; } }

/* Ribbon edge between dark and light sections */
.ribbon-edge { position: absolute; left: 0; right: 0; top: -1px; height: clamp(40px, 6vw, 90px); pointer-events: none; z-index: 1; }
.ribbon-edge svg { width: 100%; height: 100%; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-panel); padding: clamp(36px, 6vw, 80px); background: var(--ink); color: var(--on-dark); }
.cta-band::before { content: none; }
.cta-band > * { position: relative; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink-deep); color: var(--on-dark-2); padding-top: clamp(64px, 8vw, 110px); }
.site-footer::before { content: none; }
.footer-top { display: grid; gap: 40px; position: relative; z-index: 2; }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.3fr 2.7fr; gap: 64px; } }
.footer-brand p { max-width: 34ch; margin-top: 18px; }
.footer-brand .quote { color: var(--on-dark); font-size: 1.375rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.footer-col h2 { font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 0.9375rem; color: var(--on-dark-2); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color var(--dur-fast), background-size var(--dur-base) var(--ease-out); }
.footer-col a:hover { color: var(--on-dark); background-size: 100% 1px; }
.footer-contact { display: grid; gap: 8px; margin-top: 22px; font-size: 0.9375rem; }
.footer-contact a { color: var(--on-dark); }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--on-dark); transition: border-color var(--dur-fast), background var(--dur-fast); }
.socials a:hover { border-color: var(--gold); background: rgba(221,181,132,.08); }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom { position: relative; z-index: 2; margin-top: 56px; padding-block: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-size: 0.8125rem; color: var(--on-dark-3); }
.footer-bottom__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: 0.8125rem; font-weight: 700; }
.motion-toggle__dot { width: 30px; height: 18px; border-radius: 99px; background: rgba(251,249,245,.15); position: relative; transition: background var(--dur-base); }
.motion-toggle__dot::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); transition: transform var(--dur-base) var(--ease-out); }
.motion-toggle[aria-pressed="true"] .motion-toggle__dot { background: var(--bronze); }
.motion-toggle[aria-pressed="true"] .motion-toggle__dot::after { transform: translateX(12px); }
.wordmark { position: relative; z-index: 1; margin-top: 24px; font-family: var(--font-display); font-weight: 400; font-size: clamp(3.5rem, 15vw, 14.5rem); line-height: 0.9; letter-spacing: -0.03em; white-space: nowrap; text-align: center; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(212, 169, 122, 0.35);
  background: linear-gradient(90deg, var(--bronze) 0%, var(--gold) 50%, var(--bronze) 100%) 0 0 / var(--fill, 0%) 100% no-repeat; -webkit-background-clip: text; background-clip: text;
  transition: background-size 900ms var(--ease-out); padding-bottom: .06em; }
.wordmark:hover { --fill: 100%; }
