/* "Let's talk" drawer: slides in from the right over a dimmed page. */
.tk { position: fixed; inset: 0 0 0 auto; width: min(480px, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--page); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
/* The page behind the drawer blurs and dims, so the drawer is the only thing in focus. */
.tk::backdrop { background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tk[open] { animation: tk-in 360ms var(--ease-out) both; }
.tk[open]::backdrop { animation: tk-dim 240ms ease both; }
.tk.is-closing { animation: tk-out 220ms ease-in both; }
.tk.is-closing::backdrop { animation: tk-undim 220ms ease both; }
@keyframes tk-in { from { transform: translateX(100%); } }
@keyframes tk-out { to { transform: translateX(100%); } }
@keyframes tk-dim { from { opacity: 0; } }
@keyframes tk-undim { to { opacity: 0; } }

.tk-in { display: flex; flex-direction: column; gap: 28px; min-height: 100%; padding: 28px 28px max(28px, env(safe-area-inset-bottom)); }
.tk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tk-head > div { display: flex; flex-direction: column; gap: 8px; }
.tk-head h2 { font-size: 30px; line-height: 36px; font-weight: 300; letter-spacing: -0.03em; }
.tk-head p { font-size: 15px; line-height: 22px; color: var(--muted); text-wrap: pretty; }
.tk-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -8px 0 0; border-radius: 999px; border: 1px solid var(--line-2); transition: border-color 150ms ease, scale 150ms ease-out; }
.tk-close:active { scale: 0.96; }

.tk-form { display: flex; flex-direction: column; gap: 20px; }
.tk-form[hidden], .tk-done[hidden] { display: none; }
.tk-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.tk-group legend, .tk-field label { padding: 0; font-size: 13px; line-height: 18px; color: var(--label); }
.tk-group legend { margin-bottom: 8px; }
.tk-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-option { position: relative; display: grid; place-items: center; height: 44px; border-radius: 8px; background: var(--row); border: 1px solid var(--line); font-size: 14px; line-height: 18px; font-weight: 500; color: var(--chip-ink); cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, scale 150ms ease-out; }
.tk-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tk-option:has(input:checked) { background: var(--row-2); border-color: var(--ink); font-weight: 600; color: var(--ink); }
.tk-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-option:active { scale: 0.98; }

.tk-field { display: flex; flex-direction: column; gap: 8px; }
.tk-field input, .tk-field textarea { display: block; width: 100%; margin: 0; border: 1.5px solid transparent; border-radius: 8px; background: var(--row-2); color: var(--ink); font-family: var(--sans); font-size: 16px; font-weight: 400; outline: none; }
.tk-field input { height: 48px; padding: 0 14.5px; line-height: 20px; }
.tk-field textarea { height: 104px; padding: 12.5px 14.5px; line-height: 24px; resize: none; }
.tk-field ::placeholder { color: var(--muted); opacity: 1; }
.tk-field input:focus-visible, .tk-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-field [aria-invalid="true"] { border-color: #E07A6B; }
.tk-error { font-size: 13px; line-height: 20px; font-weight: 500; color: #F0A093; }
:root[data-theme="light"] .tk-error { color: #B23B2A; }
.tk-note { font-size: 12px; line-height: 18px; color: var(--muted); text-wrap: pretty; }

.tk-consent-wrap { display: flex; flex-direction: column; gap: 6px; }
.tk-consent { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; line-height: 20px; color: var(--chip-ink); }
.tk-consent input { position: absolute; left: -10px; top: 0; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.tk-box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-3); color: transparent; transition: background-color 150ms ease, border-color 150ms ease; }
.tk-consent input:checked + .tk-box { background: var(--ink); border-color: var(--ink); color: var(--page); }
.tk-consent input:focus-visible + .tk-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-consent input[aria-invalid="true"] + .tk-box { border-color: #E07A6B; }
.tk-consent a { position: relative; color: var(--ink); font-weight: 500; text-decoration: underline 1px transparent; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
.tk-consent a:focus-visible { text-decoration-color: currentColor; }
.tk-send { align-self: stretch; height: 48px; font-size: 15px; }

.tk-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; outline: none; }
.tk-done-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--teal); color: var(--teal-ink); }
.tk-done h3 { font-size: 24px; line-height: 30px; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
.tk-done-row { align-self: stretch; display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 8px; background: var(--row); font-size: 14px; line-height: 20px; }
.tk-done-row span { color: var(--label); }
.tk-done-row b { font-weight: 500; }

.tk-direct { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.tk-direct h3 { padding-bottom: 4px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--label); }
.tk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tk-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 4px 14px; border-radius: 12px; background: var(--row); border: 1px solid var(--line); transition: border-color 150ms ease, scale 150ms ease-out; }
a.tk-tile:active { scale: 0.97; }
.tk-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--row-2); color: var(--ink); }
.tk-tile-name { max-width: 100%; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--chip-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .tk-close:hover { border-color: var(--ink); }
  .tk-consent a:hover { text-decoration-color: currentColor; }
  .tk-tile:hover { border-color: var(--line-3); }
}

/* The four marks: one quiet colour at rest, fading to their own colours under the pointer or keyboard focus. */
.tk-wa .wa-bubble { fill: transparent; stroke: currentColor; transition: fill 250ms ease, stroke 250ms ease; }
.tk-wa .wa-phone { fill: currentColor; transition: fill 250ms ease; }
.tk-gm path { fill: currentColor; transition: fill 250ms ease; }
.tk-fb .fb-disc { fill: transparent; stroke: currentColor; transition: fill 250ms ease, stroke 250ms ease; }
.tk-fb .fb-f { fill: currentColor; transition: fill 250ms ease; }
.tk-ig g { transition: opacity 250ms ease; }
.tk-ig .ig-color { opacity: 0; }
:is(.tk-tile, .tk-social):focus-visible .wa-bubble { fill: #25D366; stroke: #25D366; }
:is(.tk-tile, .tk-social):focus-visible .wa-phone { fill: #FFFFFF; }
:is(.tk-tile, .tk-social):focus-visible .tk-gm path { fill: var(--c); }
:is(.tk-tile, .tk-social):focus-visible .fb-disc { fill: #1877F2; stroke: #1877F2; }
:is(.tk-tile, .tk-social):focus-visible .fb-f { fill: #FFFFFF; }
:is(.tk-tile, .tk-social):focus-visible .ig-mono { opacity: 0; }
:is(.tk-tile, .tk-social):focus-visible .ig-color { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  :is(.tk-tile, .tk-social):hover .wa-bubble { fill: #25D366; stroke: #25D366; }
  :is(.tk-tile, .tk-social):hover .wa-phone { fill: #FFFFFF; }
  :is(.tk-tile, .tk-social):hover .tk-gm path { fill: var(--c); }
  :is(.tk-tile, .tk-social):hover .fb-disc { fill: #1877F2; stroke: #1877F2; }
  :is(.tk-tile, .tk-social):hover .fb-f { fill: #FFFFFF; }
  :is(.tk-tile, .tk-social):hover .ig-mono { opacity: 0; }
  :is(.tk-tile, .tk-social):hover .ig-color { opacity: 1; }
}

/* Footer: the icon row under the brand line. */
.foot2-social { display: flex; align-items: center; gap: 4px; margin: -4px 0 0 -12px; }
.tk-social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--muted); transition: color 150ms ease, scale 150ms ease-out; }
.tk-social:active { scale: 0.94; }
.tk-social svg { width: 20px; height: auto; }
@media (hover: hover) and (pointer: fine) { .tk-social:hover { color: var(--ink); } }
@media (max-width: 700px) { .foot2-social { justify-content: center; margin-left: 0; } }

@media (max-width: 520px) {
  .tk { border-left: 0; }
  .tk-in { padding: 20px 20px max(20px, env(safe-area-inset-bottom)); gap: 24px; }
  .tk-head h2 { font-size: 26px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk[open], .tk[open]::backdrop, .tk.is-closing, .tk.is-closing::backdrop { animation: none; }
}
