/* ServiceFast: the servicelinked.net look (cream, gold, high contrast), large type and big buttons for every age. */
:root {
  --paper: #fbf8f1; --card: #fff; --ink: #14161b; --ink-2: #353a45; --muted: #555b67;
  --line: #e6dfcd; --line-2: #d8ceb6; --gold: #c9a23a; --gold-ink: #6e540c; --gold-wash: #f7eed6;
  --blue: #2d5b9a; --good: #1f6b3d; --good-wash: #e5f3ea; --bad: #9e2a1f; --bad-wash: #fbe9e6;
  --shadow: 0 1px 2px rgba(20,22,27,.05), 0 10px 30px rgba(20,22,27,.07);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
#app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(32px + env(safe-area-inset-bottom)); }

/* top bar */
.top { display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top)) 0 14px; }
.top .mark { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); }
.wm { font-weight: 800; font-size: 21px; line-height: 1.1; }
.wm small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.top .spacer { flex: 1; }
.iconbtn { background: none; border: 1px solid var(--line-2); border-radius: 12px; width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.iconbtn svg { width: 22px; height: 22px; }

/* type + layout */
.hello { font-size: 28px; font-weight: 800; margin: 6px 0 4px; }
.lede { color: var(--ink-2); font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.sec-h { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin: 26px 2px 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card.gold { border-top: 4px solid var(--gold); }
.card h3 { font-size: 21px; }
.meta { color: var(--muted); font-size: 15px; margin: 2px 0 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.err { color: var(--bad); background: var(--bad-wash); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 16px; }
.ok-note { color: var(--good); background: var(--good-wash); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 16px; }

/* buttons: at least 52px tall */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 14px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 700 17px var(--font); text-decoration: none; cursor: pointer; }
.btn svg { width: 20px; height: 20px; }
.btn.gold { background: linear-gradient(180deg, #d9b54e, #c49a2c); border-color: #b48b22; color: #1b1406; box-shadow: 0 6px 16px rgba(180,139,34,.25); }
.btn.call { background: var(--good); border-color: var(--good); color: #fff; }
.btn.wide { width: 100%; }
.btn.link { background: none; border: 0; min-height: 40px; padding: 0 4px; color: var(--muted); font-weight: 600; text-decoration: underline; }
.btn:disabled { opacity: .55; cursor: default; }

/* forms */
label.f { display: block; font-weight: 700; font-size: 16px; margin: 14px 0 6px; }
input[type=tel], input[type=text], textarea, input.code { width: 100%; font: 500 20px var(--font); padding: 14px 16px; border: 1.5px solid var(--line-2);
  border-radius: 14px; background: #fff; color: var(--ink); }
input.code { letter-spacing: .4em; text-align: center; font-weight: 800; font-size: 26px; }
textarea { font-size: 17px; min-height: 96px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.check input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--gold-ink); flex: none; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; }
.pill.linked { background: var(--good-wash); color: var(--good); }
.pill.pending { background: var(--gold-wash); color: var(--gold-ink); }
.pill.off { background: #eef0f3; color: var(--muted); }
.pill svg { width: 16px; height: 16px; }

/* stars */
.stars { display: inline-flex; gap: 4px; }
.stars button { background: none; border: 0; padding: 4px; cursor: pointer; color: #cfc6b1; }
.stars button.on { color: #d4a017; }
.stars svg { width: 34px; height: 34px; }
.stars.view svg { width: 20px; height: 20px; }
.stars.view span { color: #cfc6b1; } .stars.view span.on { color: #d4a017; }

/* install banner */
.install { display: flex; gap: 14px; align-items: center; background: var(--gold-wash); border: 1px solid #ecdcae; border-radius: 18px; padding: 14px 16px; margin: 6px 0 14px; }
.install img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.install .t { flex: 1; font-size: 16px; } .install .t b { display: block; font-size: 17px; }
.install .x { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.ios-steps { margin: 6px 0 0; padding-left: 20px; font-size: 16px; }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(20,22,27,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet { background: var(--paper); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
.sheet h2 { font-size: 23px; margin-bottom: 6px; }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 16px; z-index: 60; max-width: 92vw; }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
.foot a { color: var(--muted); }

/* ================= Pro Wallet: each pro is a premium card; linked pros are gold foil ================= */
.wallet { position: relative; transition: height .45s cubic-bezier(.2,.8,.2,1); margin-bottom: 8px; }
.wcard { position: absolute; left: 0; right: 0; aspect-ratio: 1.586; border-radius: 22px; padding: 18px 20px; cursor: pointer; overflow: hidden;
  color: #2a2213; background: linear-gradient(135deg, #fffdf7, #f3ead3); border: 1px solid #e7dbbc;
  box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 14px 34px rgba(60,44,8,.16), inset 0 1px 0 rgba(255,255,255,.9);
  transition: top .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  --mx: 30%; --my: 20%; -webkit-tap-highlight-color: transparent; }
.wcard:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wcard.open { transform: translateY(-4px) scale(1.01); box-shadow: 0 24px 50px rgba(60,44,8,.28); }
/* gold foil for linked pros */
.wcard.gold { color: #1d1505; border-color: #b8902a;
  background: radial-gradient(120% 90% at var(--mx) var(--my), rgba(255,250,220,.95), rgba(255,250,220,0) 45%),
    linear-gradient(125deg, #a87b14 0%, #e3c15b 22%, #f6e39a 38%, #c9992e 55%, #f0d77c 72%, #a87b14 100%); }
/* silver while waiting for the pro to link back */
.wcard.silver { border-color: #b9bec8;
  background: radial-gradient(120% 90% at var(--mx) var(--my), rgba(255,255,255,.95), rgba(255,255,255,0) 45%),
    linear-gradient(125deg, #9aa1ad 0%, #e6e9ee 30%, #c3c8d1 55%, #f2f4f7 75%, #9aa1ad 100%); }
.wcard.silver::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); animation: wait 2.4s ease-in-out infinite; }
@keyframes wait { 50% { box-shadow: inset 0 0 0 2px rgba(201,162,58,.85); } }
.wcard.off { filter: grayscale(.9); opacity: .78; }
/* moving sheen */
.wcard::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.45) 50%, transparent 58%);
  transform: translateX(-60%); animation: sheen 6s ease-in-out infinite; pointer-events: none; }
.wcard:nth-child(2)::after { animation-delay: 1.4s; } .wcard:nth-child(3)::after { animation-delay: 2.8s; }
@keyframes sheen { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
/* guilloche lines, like a bank card */
.wcard .lines { position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background: repeating-radial-gradient(circle at 110% -10%, transparent 0 9px, rgba(60,40,0,.55) 9px 10px); }
.wtop { display: flex; justify-content: space-between; align-items: center; position: relative; }
.wtrade { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.wmark { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; opacity: .85; }
.wname { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.wname h3 { font-size: 23px; line-height: 1.15; }
.wname .city { font-size: 14px; opacity: .8; font-weight: 600; }
.wfoot { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.wnum { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wstat { font-size: 13px; font-weight: 800; text-align: right; line-height: 1.3; flex: none; }
.wstat svg { width: 14px; height: 14px; vertical-align: -2px; }
.avatar { width: 58px; height: 58px; border-radius: 18px; flex: none; display: grid; place-items: center; font: 800 21px var(--font); letter-spacing: .02em;
  color: #fff8e1; background: linear-gradient(145deg, #2b2416, #574521); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px rgba(40,28,4,.25); }
.avatar.you { background: linear-gradient(145deg, #1f3d63, #3f6ea8); }
/* actions under an open card */
.wactions { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.wactions.show { max-height: 360px; opacity: 1; }
.wactions .inner { padding: 14px 2px 4px; }
.pro-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pro-actions > :only-child { grid-column: 1 / -1; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.badge svg { width: 15px; height: 15px; color: var(--gold-ink); }
.wcard.static { position: relative; cursor: default; }
.wallet-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 0; }

/* ================= "You're linked" ================= */
.match { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(80% 60% at 50% 40%, rgba(46,34,8,.97), rgba(12,10,6,.99)); animation: fade .35s ease both; }
.match-in { max-width: 400px; width: 100%; text-align: center; color: #fbf3dc; }
.match-in h2 { font-size: 34px; margin: 22px 0 8px; background: linear-gradient(90deg, #f6e39a, #e0b94a, #fff1c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.match-in p { color: #e9dfc4; font-size: 17px; margin-bottom: 20px; }
.match-pair { display: flex; align-items: center; justify-content: center; height: 110px; }
.match-pair .avatar { width: 92px; height: 92px; border-radius: 28px; font-size: 32px; animation: inL .7s cubic-bezier(.2,.9,.2,1.15) both; }
.match-pair .avatar:last-child { animation-name: inR; background: linear-gradient(145deg, #a87b14, #f0d77c); color: #1d1505; }
.match-link { width: 64px; height: 64px; margin: 0 -10px; z-index: 2; border-radius: 50%; display: grid; place-items: center; color: #1d1505;
  background: linear-gradient(135deg, #f6e39a, #c9992e); box-shadow: 0 0 0 6px rgba(246,227,154,.18), 0 10px 30px rgba(0,0,0,.4); animation: snap .5s .55s cubic-bezier(.2,.9,.3,1.6) both; }
.match-link svg { width: 30px; height: 30px; }
@keyframes inL { from { transform: translateX(-120px) rotate(-12deg); opacity: 0; } }
@keyframes inR { from { transform: translateX(120px) rotate(12deg); opacity: 0; } }
@keyframes snap { from { transform: scale(0) rotate(-90deg); } }
@keyframes fade { from { opacity: 0; } }
.match .btn:not(.call) { background: transparent; color: #fbf3dc; border-color: rgba(251,243,220,.35); }

/* six-cell code entry */
.cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cells span { aspect-ratio: .82; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; display: grid; place-items: center; font: 800 28px var(--font); transition: border-color .2s, transform .2s; }
.cells span.on { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); }
.cells span.full { transform: translateY(-2px); }
.code-wrap { position: relative; }
.code-wrap input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }

/* timeline of visits */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline .card { position: relative; }
.timeline .card::before { content: ''; position: absolute; left: -23px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .wcard::after, .wcard.silver::before { animation: none; }
  .wallet, .wcard, .wactions { transition: none; }
  .match, .match-pair .avatar, .match-link { animation: none; }
}
