/* Our additions to Claude Design's greetdale.css. Kept apart so a new handoff can replace greetdale.css whole.
   Everything here is either glue the real pages need (the phone shell is fixed to the screen, not drawn in a
   mock phone) or a piece the handoff describes in words but does not ship CSS for. */

html { -webkit-text-size-adjust: 100%; }
body.rw { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); }
.rw img { max-width: 100%; }
.rw h1, .rw h2, .rw h3, .rw p, .rw ul, .rw ol, .rw dl, .rw dd, .rw figure { margin: 0; }
.rw ul, .rw ol { padding: 0; }
.rw a { color: var(--brand); }
.rw .rw-btn, .rw .sc-nav, .rw .rw-seg a, .rw .chips a, .rw .rail a, .rw .rw-row, .rw .rw-step, .rw .sc-tabbar a, .rw .mk-nav a, .rw .em-btn { text-decoration: none; }
.rw .rw-btn { color: var(--on-brand); }
.rw .rw-btn.ghost { color: var(--ink); }
.rw .rw-btn.quiet { color: var(--brand); }
.rw .rw-btn.danger { color: #fff; }
.rw .rw-seg a { color: var(--ink-muted); }
.rw .rw-seg a[aria-current=page] { color: var(--ink); }
.rw .chips a { color: var(--ink-muted); }
.rw .chips a[aria-current=page] { color: var(--canvas); }
.rw .sc-nav { color: var(--ink-muted); }
.rw .sc-nav:hover, .rw .sc-nav[aria-current=page] { color: var(--ink); }
.rw .sc-tabbar a { color: var(--ink-muted); }
.rw .sc-tabbar a[aria-current=page] { color: var(--brand); }
.rw .rail a { color: var(--ink-muted); }
.rw .rail a.done, .rw .rail a.cur, .rw .rail a.next { color: var(--ink); }
.rw .rw-row { color: inherit; }
.rw .rw-step { color: inherit; }
.rw button { font-family: inherit; }
.rw .rw-btn { font-family: var(--font-sans); }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 60; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-raised); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* the signed-in frame */
.sc-app { min-height: 100vh; }
.sc-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sc-ptop, .sc-tabbar { display: none; }
.sc-main { width: 100%; }
.sc-head h1 { font: 700 28px/34px var(--font-display); letter-spacing: -0.02em; }
.sc-support { text-align: center; }
.wz-main { max-width: 1080px; margin: 0 auto; padding: 24px 32px 80px; }
@media (max-width: 860px) {
  .sc-side { display: none; }
  .sc-ptop { display: flex; }
  .sc-tabbar { display: grid; position: fixed; z-index: 5; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .sc-main { padding-bottom: 120px; }
  .sc-actionbar { position: fixed; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 4; }
  .sc-support { padding: 10px 16px; }
  .wz-main { padding: 16px 16px 64px; }
  .sc-head h1 { font-size: 24px; line-height: 30px; }
}
@media (min-width: 861px) { .sc-actionbar { display: none; } }

/* page building blocks the screens share */
.stack-4 { display: flex; flex-direction: column; gap: 16px; }
.stack-5 { display: flex; flex-direction: column; gap: 24px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rw-card .rw-card-title { margin-bottom: 12px; }
.rw-card h2 { font: 650 19px/26px var(--font-display); letter-spacing: -0.01em; margin: 0 0 12px; }
.rw-card h3 { font: 650 16px/22px var(--font-display); margin: 0 0 8px; }
.rw-card + .rw-card { margin-top: 0; }
.tbl-wrap { overflow-x: auto; }
.rw table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rw th { text-align: left; color: var(--ink-muted); font-weight: 600; font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rw td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rw dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.rw dt { color: var(--ink-muted); }
.rw dd { overflow-wrap: anywhere; }
.rw details > summary { cursor: pointer; font-weight: 600; color: var(--ink-muted); }
.rw .rw-card details > summary { margin-top: 4px; }
.rw input[type=text], .rw input[type=email], .rw input[type=tel], .rw input[type=number], .rw input[type=time], .rw input[type=url], .rw input[type=search], .rw input:not([type]), .rw select, .rw textarea {
  min-height: 44px; padding: 10px 12px; font: 400 16px/22px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); max-width: 100%;
}
.rw textarea { width: 100%; resize: vertical; }
.rw input[type=checkbox], .rw input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); }
.rw input:focus, .rw select:focus, .rw textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.rw label { font: 600 13px/16px var(--font-sans); }
.fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.fields > div { min-width: 0; display: grid; gap: 6px; }
.checks { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.checks label { font-weight: 500; font-size: 15px; display: flex; gap: 8px; align-items: center; margin: 0; }
.rw .rw-btn { appearance: none; -webkit-appearance: none; }
.rw .rw-btn.block { width: 100%; }

/* lead and call rows */
.rw-row .meta .rw-badge { flex: none; }
.rw-row .when { color: var(--ink-muted); font-size: 13px; white-space: nowrap; }
.lead .who { font-weight: 600; }
.lead.urgent .rw-btn.call { background: var(--bad); border-color: var(--bad); color: #fff; }
.status-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.status-buttons form { margin: 0; }
.avatar-lg { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunk); font: 650 20px/1 var(--font-display); flex: none; }
.avatar-lg.night { background: var(--ring-tint); color: var(--ring-ink); }
.avatar-lg.bad { background: var(--bad-bg); color: var(--bad); }

/* sign in and other stand-alone pages */
.si { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); }
.si-band { position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); padding: 56px 24px 72px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.si-band::before, .si-band::after { content: ""; position: absolute; left: 50%; top: 42%; border-radius: 50%; border: 1.5px solid currentColor; opacity: .12; transform: translate(-50%, -50%); }
.si-band::before { width: 280px; height: 280px; }
.si-band::after { width: 460px; height: 460px; opacity: .08; }
.si-band > * { position: relative; }
.si-band b { font: 700 22px/28px var(--font-display); }
.si-tile { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-raised); }
.si-tile img { max-width: 80%; max-height: 80%; object-fit: contain; }
.si-sheet { flex: 1; background: var(--canvas); border-radius: 28px 28px 0 0; margin-top: -28px; padding: 28px 20px 40px; position: relative; }
.si-card { max-width: 420px; margin: 0 auto; display: grid; gap: 18px; }
.si-card h1 { font: 700 26px/32px var(--font-display); letter-spacing: -0.02em; }
.si-foot { text-align: center; color: var(--ink-muted); font-size: 13px; margin-top: 8px; }
@media (min-width: 861px) {
  .si-band { padding: 64px 24px 88px; }
  .si-sheet { background: var(--canvas); }
}
.illus { width: 120px; height: 120px; margin: 0 auto; }

@media print { .sc-side, .sc-ptop, .sc-tabbar, .sc-actionbar { display: none !important; } }

/* ---------- forms and wizard pieces */
fieldset { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px 16px; margin: 0 0 16px; min-width: 0; }
fieldset.plain { border: 0; padding: 0; margin-bottom: 8px; }
legend { font: 650 15px/22px var(--font-display); padding: 0 6px; }
fieldset.plain legend { padding: 0; margin-bottom: 10px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.rowcard { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; margin-bottom: 10px; background: var(--surface); }
.rowcard.empty { border-style: dashed; background: transparent; }
.choice { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 2px 0; }
.choice input[type=radio], .choice input[type=checkbox]:not(.sw) { margin-top: 3px; flex: none; }
/* the form switch: a checkbox drawn as a toggle */
.rw input.sw { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line-strong); position: relative; cursor: pointer; margin-top: 2px; transition: background var(--duration-fast); }
.rw input.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: transform var(--duration-fast); }
.rw input.sw:checked { background: var(--brand); }
.rw input.sw:checked::after { transform: translateX(18px); background: var(--on-brand); }
mark.hear { background: var(--ring-tint); color: var(--ink); padding: 1px 4px; border-radius: 4px; }
.pill-check { cursor: pointer; }
.switch:focus-visible, .pill-check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.test-hero { position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); border-radius: var(--radius-lg); padding: 28px; }
.test-hero .ring { position: absolute; right: 56px; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: rw-ring var(--duration-pulse) cubic-bezier(.2, .6, .3, 1) infinite; }
.test-hero .ring.r2 { animation-delay: .6s; }
.test-hero .ring.r3 { animation-delay: 1.2s; }
.rw-card:has(.burst) { position: relative; overflow: hidden; }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i { position: absolute; left: 50%; top: 96px; width: 24px; height: 24px; margin: -12px; border-radius: 50%; border: 3px solid var(--ring); opacity: 0; animation: rw-ring 1.4s ease-out 1 forwards; }
.burst i:nth-child(2) { animation-delay: .15s; border-color: var(--brand); }
.burst i:nth-child(3) { animation-delay: .3s; }

.sc-actionbar form { flex: 1; display: flex; margin: 0; }
.sc-actionbar form .rw-btn { flex: 1; }
.rw-kpi-label .ico { width: 18px; height: 18px; opacity: .8; }
.rw-step .n .ico { width: 18px; height: 18px; stroke-width: 2.5; }
.rw-row .av .ico { width: 18px; height: 18px; }
.tl .d .ico { width: 16px; height: 16px; }
.sc-nav .ico { width: 20px; height: 20px; }
.sc-tabbar .ico { width: 22px; height: 22px; }
.chips a { white-space: nowrap; }

/* the agency's branding preview */
.preview-sign { display: flex; align-items: center; gap: 10px; background: var(--brand); color: var(--on-brand); padding: 16px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.preview-sheet { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.preview-mail { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }

.rw audio { width: 100%; }

/* A row's badges go under the name, so a long name or several badges never squeeze each other; wide lists put them beside it. */
.rw-row { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
.rw-row .av { grid-row: 1 / span 3; }
.rw-row .who, .rw-row .meta, .rw-row .what { grid-column: 2; }
.rw-row .meta { justify-content: flex-start; margin-top: 2px; }
.rw-row .what { margin-top: 2px; }
.rw-row.flat { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; }
.rw-row.flat .av { grid-row: auto; }
.rw-row.flat .who { grid-column: 2; }
.rw-row.flat .meta { grid-column: 3; justify-content: flex-end; margin: 0; max-width: 50vw; }
.rw-row.flat .what { grid-column: 2 / -1; }
@media (min-width: 900px) {
  .rw-list.wide .rw-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .rw-list.wide .rw-row .av { grid-row: auto; align-self: center; }
  .rw-list.wide .rw-row .meta { grid-column: 3; grid-row: 1; justify-content: flex-end; margin: 0; max-width: 45%; }
  .rw-list.wide .rw-row .what { grid-column: 2 / -1; }
}

/* ---------- the public site */
.mk { min-height: 100vh; }
.mk a { color: var(--brand); }
.mk .rw-btn { color: var(--on-brand); }
.mk .rw-btn.ghost { color: var(--ink); }
.mk-cta .rw-btn { color: var(--on-ring); }
.mk-nav a.signin { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.mk-nav a[aria-current=page] { color: var(--brand); }
.mk-nav .links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.mk-two { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr) minmax(0, 1fr)); gap: 56px; align-items: center; }
.mk-sec.night { background: #101A2C; color: #EEF2EF; }
.mk-sec.night a { color: var(--ring); }
.mk-foot a { color: var(--ink-muted); text-decoration: none; }
.mk-foot a:hover { color: var(--ink); }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.mk-hero-art .mk-float { z-index: 1; }
.mk-feat .ic, .mk-float .ic { flex: none; }
.mk-float .ic .ico { width: 24px; height: 24px; }
.mk-faq details > summary { color: var(--ink); margin: 0; }
@media (max-width: 860px) {
  .mk-two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .mk-device { width: min(340px, 100%); }
  .mk-hero-art .mk-float { position: static; margin: 12px auto 0; max-width: 340px; animation: none; }
  .mk-nav { gap: 14px; }
  .mk-nav .signin { display: none; }
  .mk-hero { padding: 24px 0 56px; }
  .mk-foot .between { flex-direction: column; }
  .mk-in.mk-two { padding-left: 16px; padding-right: 16px; }
}

/* the legal pages: contents on the left, the text on the right */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.legal-toc b { font: 700 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.legal-toc a { color: var(--ink-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); }
.legal-body { max-width: 720px; }
.legal-body h2 { font: 650 24px/30px var(--font-display); margin: 36px 0 12px; }
.legal-body h3 { font: 650 18px/24px var(--font-display); margin: 24px 0 8px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 26px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 14px; padding-left: 22px; }
.legal-body blockquote { border-left: 3px solid var(--ring); margin: 0 0 14px; padding: 4px 16px; color: var(--ink-muted); }
@media (max-width: 860px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; } .legal-toc { position: static; } }

/* ---------- the optional script's pieces (static/enhance.js) */
.rw-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 14px; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(2px); font: 600 17px/24px var(--font-display); color: var(--ink); }
.rw-overlay p { margin: 0; }
.rw-toast.is-toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: min(92vw, 420px); margin: 0 !important; }
.rw-toast.is-toast .rw-btn.quiet { color: var(--ring); }
.rw-toast.is-toast form { margin: 0; }
.rw-toast.is-toast.gone { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; box-shadow: none; animation: none; }
@media (max-width: 860px) { .rw-toast.is-toast { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* the public site's sections always keep their side margins, whatever vertical padding a section sets for itself */
.mk-in { padding-left: 32px !important; padding-right: 32px !important; }
@media (max-width: 860px) { .mk-in { padding-left: 16px !important; padding-right: 16px !important; } }
.mk-hero-art { min-width: 0; }

.mk-nav .links { display: none; }
@media (min-width: 861px) { .mk-nav .links { display: flex; gap: 28px; margin-left: 12px; } }
