/* A member's page (/c-<slug>), its example on /templates/<key> and the editor's live preview, in the refresh's
   "bold blocks" look: Space Grotesk headings, DM Sans text, a banner block with 36px corners, pill buttons and
   the first number tile filled with the page's banner colour.
   The page's own colours arrive as variables in a small <style> before this file (views/card/styles.js):
     --brand, --brand-ink   banner colour and the text on it
     --accent, --accent-ink accent colour (photo ring, quote bar, Contact me) and the text on it
     --paper, --card, --line, --ink, --muted, --tint   page background, tiles, borders, text, quiet text, soft tiles
     --bt     the banner colour when it can be read as text on --card and --tint, otherwise --ink
     --ring   the focus ring: the accent when it stands out from the page (3:1), otherwise --ink
   Menu pages put class="ctr" on <body> to centre the banner. Layout and sections are unchanged from before
   the refresh (proposal v3, 3D: a new look on the existing layouts). */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/dm-sans-latin.fdfefae5.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/dm-sans-latin-ext.aec4f297.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/space-grotesk-latin.a73ca249.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/space-grotesk-latin-ext.f24b4493.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { color-scheme: light; --head: 'Space Grotesk', 'DM Sans', system-ui, sans-serif; --text: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; background: var(--paper); color: var(--ink); font: 16.5px/1.6 var(--text); }
p { margin: 0 0 10px; }
.wrap { max-width: 480px; margin: 0 auto; padding-bottom: 40px; }

/* Banner block */
header { position: relative; background: var(--brand); color: var(--brand-ink); padding: 36px 24px 30px; border-radius: 0 0 36px 36px; }
.ctr header { text-align: center; }
.photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: center; background: var(--tint); color: var(--bt); display: flex; align-items: center; justify-content: center; font: 700 40px/1 var(--head); letter-spacing: -.03em; border: 3px solid var(--accent); }
.ctr .photo { margin: 0 auto; }
.photo.logo { object-fit: contain; background: #fff; padding: 5px; }
.photo.wide { width: 190px; height: auto; max-width: 100%; border-radius: 16px; padding: 16px; display: block; object-fit: contain; margin: 0 auto 0 0; }
h1 { font: 700 34px/1.05 var(--head); margin: 18px 0 8px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.role { margin: 0; color: color-mix(in srgb, var(--brand-ink) 90%, var(--brand)); font-size: 15px; }
.tag { margin: 14px 0 0; font: 500 17px/1.4 var(--text); }

/* Buttons: pill for full-width actions, rounded tiles for Call / Text / Email */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 22px 6px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; text-align: center; padding: 0 12px; transition: background-color .2s, border-color .2s, transform .2s; }
.btn:hover { border-color: var(--bt); background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.btn.full, .btn.primary { border-radius: 999px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.btn.big { min-height: 54px; font-size: 16px; }
.savebtn { margin: 0 0 2px; font: 700 19px var(--head); letter-spacing: -.01em; min-height: 60px; box-shadow: 0 10px 22px -14px var(--brand); }
.btn.cta { background: color-mix(in srgb, var(--accent) 20%, #fff); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, #fff); }
.btn.cta:hover { background: color-mix(in srgb, var(--accent) 34%, #fff); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.accent:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; margin-right: 8px; flex: none; }
.full { grid-column: 1/-1; }
.ct { grid-column: 1/-1; display: grid; gap: 8px; }
.ct .btn { flex-direction: column; gap: 5px; min-height: 64px; font-size: 13px; padding: 8px 2px; }
.ct .btn svg { margin: 0; width: 20px; height: 20px; }
.btn.lst { position: relative; overflow: hidden; gap: 2px; }
.btn.lst::after { content: ''; position: absolute; top: 0; left: -60%; width: 35%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: skewX(-20deg); animation: sh 3.8s ease-in-out infinite; }
.btn.lst svg.ar { margin: 0 0 0 8px; }
@keyframes sh { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* Social icons */
.soc { display: flex; gap: 6px 0; justify-content: center; align-items: center; flex-wrap: wrap; padding: 8px 8px 12px; max-width: 276px; margin: 0 auto; }
.sb { flex: 0 0 20%; max-width: 20%; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.sb svg { width: 31px; max-width: 84%; height: auto; aspect-ratio: 1; }
.sb img { width: 36px; max-width: 84%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; }
.sb:active { transform: scale(.92); }
.sb[aria-label=TikTok] svg { filter: drop-shadow(1.5px 1.5px 0 #fe2c55) drop-shadow(-1.5px -1.5px 0 #25f4ee); }

/* Section links (menus and price lists with more than one section) */
nav.chips { position: sticky; top: 0; z-index: 5; background: var(--paper); display: flex; gap: 8px; overflow-x: auto; padding: 12px 22px; border-bottom: 1px solid var(--line); }
nav.chips a { flex: none; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
nav.chips a:hover { border-color: var(--bt); }

/* Sections */
section { padding: 30px 22px 0; }
h2 { font: 700 23px/1.2 var(--head); letter-spacing: -.02em; margin: 0 0 12px; }
.catsub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.price { flex: none; color: var(--bt); font: 700 15px var(--head); white-space: nowrap; }
.svc p, .item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.menu { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px 16px; }
.menu .item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu .item:last-child { border-bottom: 0; }
.tags i { font-style: normal; font-size: 10px; font-weight: 700; border: 1px solid var(--muted); color: var(--muted); border-radius: 4px; padding: 0 4px; line-height: 15px; margin-left: 5px; vertical-align: middle; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Drop-down lists (coverage, price lists) */
.dd { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 0 16px; }
.dd summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font: 700 19px var(--head); letter-spacing: -.01em; min-height: 52px; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: ''; width: 10px; height: 10px; border-right: 2.5px solid var(--bt); border-bottom: 2.5px solid var(--bt); transform: rotate(45deg); margin-top: -4px; flex: none; transition: transform .2s; }
.dd[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.dd .catsub { margin-top: -6px; }
.dd .svc { background: var(--tint); border-color: transparent; }
.dd .svc:last-child { margin-bottom: 16px; }

/* Logos (companies, partners) */
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; text-align: center; text-decoration: none; color: #1c2a2e; display: block; }
.lt b { display: block; font-size: 13px; margin-top: 8px; line-height: 1.25; }
.lg { height: 64px; display: flex; align-items: center; justify-content: center; }
.lg img { max-width: 100%; max-height: 64px; object-fit: contain; }
.lg span { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--bt); display: flex; align-items: center; justify-content: center; font: 700 20px var(--head); border: 2px solid var(--accent); }
.prt small { display: block; font: 700 11px var(--text); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.prtg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prtg span { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 58px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.prtg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rep { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; color: var(--ink); }
.rep i { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font: 700 15px var(--head); font-style: normal; flex: none; }
.rep small { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rep b { display: block; }
.rep span { display: block; font-size: 14px; color: var(--muted); }

/* Website link */
.webl { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; transition: border-color .2s; }
.webl:hover { border-color: var(--bt); }
.webl svg { width: 20px; height: 20px; flex: none; color: var(--bt); }

/* Number tiles: a small bento, the first tile filled with the banner colour */
.stat { background: var(--tint); border-radius: 20px; padding: 16px; min-width: 0; }
.stat b, .stat span { overflow-wrap: break-word; word-break: normal; hyphens: none; }
.stat b { display: block; font: 700 clamp(22px, 7vw, 32px)/1.1 var(--head); letter-spacing: -.03em; color: var(--bt); }
.stat span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.grid > .stat:first-child { background: var(--brand); }
.grid > .stat:first-child b, .grid > .stat:first-child span { color: var(--brand-ink); }
.grid > .stat:first-child span { opacity: .9; }
.fact { background: var(--tint); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.fact b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: 15px; }
.steps li b { font-family: var(--head); }

/* Quotes */
blockquote { margin: 0 0 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 6px 20px 20px 6px; font-size: 16px; }
blockquote footer { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Google review badge */
.review { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 148px; height: 148px; text-align: center; text-decoration: none; background: var(--card); color: inherit; border: 2px solid var(--accent); border-radius: 50%; padding: 14px; box-shadow: 0 8px 20px -12px rgba(16,32,28,.4); }
.review .gg svg { width: 34px; height: 34px; display: block; }
.review .st { display: flex; gap: 2px; }
.review .st svg { width: 16px; height: 16px; fill: #f5b301; animation: tw 2.6s ease-in-out infinite; }
.review .st svg:nth-child(2) { animation-delay: .15s; }
.review .st svg:nth-child(3) { animation-delay: .3s; }
.review .st svg:nth-child(4) { animation-delay: .45s; }
.review .st svg:nth-child(5) { animation-delay: .6s; }
.review b { font-size: 14px; line-height: 1.2; max-width: 96px; }
@keyframes tw { 0%, 50%, 100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.28) rotate(-10deg); } }

/* Card Studio 2's own sections: questions and answers, a list of buttons, a heading with a line */
.faq { display: grid; gap: 8px; }
.faq .dd summary { font: 700 16px/1.3 var(--head); }
.faq .dd p { margin: -4px 0 14px; color: var(--muted); font-size: 15px; }
.btns { display: grid; gap: 10px; }
.hdg { padding-top: 34px; }
.hdg h2 { margin-bottom: 10px; }
.hdg hr { margin: 0; border: 0; border-top: 1.5px solid var(--line); }

.sub { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.note { font-size: 12px; color: var(--muted); }
footer.legal { padding: 30px 22px 0; text-align: center; font-size: 12px; color: var(--muted); }
footer.legal a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .review .st svg, .btn.lst::after { animation: none; }
  .btn, .webl, .dd summary::after { transition: none; }
}
@media (min-width: 600px) and (max-width: 899px) { .wrap { max-width: 640px; } }
@media (min-width: 900px) {
  .wrap { max-width: 1120px; }
  .wrap:not(:has(.main > *)) { max-width: 520px; padding-top: 36px; }
  .wrap:has(.main > *) { display: grid; grid-template-columns: 400px minmax(0, 1fr); column-gap: 48px; align-items: start; padding: 36px 32px 56px; }
  .side { position: sticky; top: 36px; }
  .side header { border-radius: 36px; }
  .side .actions { padding: 18px 0 6px; }
  .side .soc { padding: 8px 0 12px; }
  .main { min-width: 0; }
  .main section { padding: 0; margin-bottom: 36px; }
  .main nav.chips { padding: 0 0 14px; margin-bottom: 22px; }
  h2 { font-size: 26px; }
  footer.legal { grid-column: 1/-1; padding-top: 8px; }
}
