/* /small-business-websites — builder, text-a-change demo, website check.
   Sample-site palettes inside the phone previews are client colors (data), not brand tokens. */

/* ---------- hero: copy left, three devices showing live samples right ---------- */
.sb-hero2 { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr); gap: 32px 40px; align-items: center; }
.sb-hero2 .sb-copy { grid-column: 1; }
.sb-hero2 .sb-devices { grid-column: 2; }
@media (max-width: 900px) { .sb-hero2 .sb-copy, .sb-hero2 .sb-devices { grid-column: 1; } }
.sb-devices { position: relative; width: 100%; aspect-ratio: 1.3 / 1; }
.dv { position: absolute; }
.dv-screen { position: relative; overflow: hidden; background: #fff; }
.dv iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
/* laptop: 1280px page scaled into the screen */
.dv-laptop { left: 0; top: 4%; width: 74%; }
.dv-laptop .dv-screen { aspect-ratio: 16 / 10; border-radius: 10px 10px 2px 2px; border: 6px solid #1b1d24; border-bottom-width: 14px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-text) 20%, transparent), var(--shadow-lg); }
.dv-laptop iframe { width: 1280px; height: 800px; }
.dv-base { height: 10px; margin: 0 -4%; border-radius: 0 0 12px 12px; background: linear-gradient(#2a2d36, #15171d); box-shadow: 0 10px 24px -8px #000; }
/* tablet: 768px page */
.dv-tablet { right: 4%; top: 18%; width: 34%; }
.dv-tablet .dv-screen { aspect-ratio: 3 / 4; border-radius: 16px; border: 7px solid #15171d; box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-text) 22%, transparent), var(--shadow-lg); }
.dv-tablet iframe { width: 768px; height: 1024px; }
/* phone: 390px page */
.dv-phone { left: 30%; bottom: 0; width: 19%; }
.dv-phone .dv-screen { aspect-ratio: 9 / 19; border-radius: 22px; border: 6px solid #0a0a0a; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--color-text) 28%, transparent), var(--shadow-lg); }
.dv-phone iframe { width: 390px; height: 823px; }
.dv-note { position: absolute; right: 0; bottom: -4px; margin: 0; font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.dv-note a { color: var(--color-accent-2-300); }
@media (max-width: 900px) {
  .sb-hero2 { grid-template-columns: 1fr; }
  .sb-devices { aspect-ratio: 1.15 / 1; }
  .dv-laptop { width: 78%; }
  .dv-tablet { display: none; }
  .dv-phone { left: auto; right: 2%; width: 26%; }
}

/* ---------- builder: copy + controls left, live phone right ---------- */
.sb-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); grid-template-areas: "copy stage" "ctrl stage"; gap: 26px 56px; align-items: start; }
.sb-hero .sb-copy { grid-area: copy; }
.sb-ctrl { grid-area: ctrl; }
.sb-stage { grid-area: stage; position: sticky; top: 24px; display: grid; justify-items: center; align-self: start; padding: 8px 0; }
@media (max-width: 900px) {
  .sb-hero { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "ctrl"; }
  .sb-stage { position: relative; top: 0; }
}

.sb-label { font-size: 13px; margin-bottom: 8px; color: color-mix(in srgb, var(--color-text) 75%, transparent); }
.sb-group { flex-basis: 100%; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-heading); color: color-mix(in srgb, var(--color-text) 50%, transparent); margin-top: 2px; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-chips button { font: inherit; font-size: 13.5px; padding: 7px 13px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--color-text); border: 1px solid color-mix(in srgb, var(--color-text) 22%, transparent); transition: border-color .15s, background .15s; }
.sb-chips button:hover { border-color: var(--color-accent); }
.sb-chips button[aria-checked="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); font-weight: 600; }
.sb-row2 { display: grid; grid-template-columns: auto 1fr; gap: 22px; }
@media (max-width: 480px) { .sb-row2 { grid-template-columns: 1fr; gap: 16px; } }
.sb-swatches { display: flex; gap: 10px; }
.sb-swatches button { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0; border: 2px solid transparent; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-text) 25%, transparent); transition: transform .15s; }
.sb-swatches button:hover { transform: scale(1.08); }
.sb-swatches button[aria-checked="true"] { border-color: var(--color-bg); box-shadow: 0 0 0 2px var(--color-accent); }

/* ---------- the phone ---------- */
.sb-phone { position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 18.5; background: #0a0a0a; border-radius: 40px; padding: 11px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--color-text) 28%, transparent), var(--shadow-lg); }
.sb-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 999px; background: #0a0a0a; z-index: 3; }
.sb-screen { position: relative; height: 100%; border-radius: 30px; overflow-x: hidden; overflow-y: auto; background: #fff; scrollbar-width: none; }
.sb-screen::-webkit-scrollbar { display: none; }
.sb-note { margin: 14px 0 0; font-size: 12.5px; text-align: center; max-width: 34ch; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.sb-toast { position: absolute; left: max(0px, calc(50% - 230px)); top: 58%; display: flex; gap: 10px; align-items: center; max-width: 240px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--color-surface); border: 1px solid color-mix(in srgb, var(--color-accent) 55%, transparent); box-shadow: var(--shadow-lg); font-size: 12.5px; line-height: 1.45; color: color-mix(in srgb, var(--color-text) 82%, transparent); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; z-index: 4; pointer-events: none; }
.sb-toast.on { opacity: 1; transform: none; }
.sb-toast i { font-size: 20px; color: var(--color-accent); flex: none; }
.sb-toast strong { color: var(--color-text); }
@media (max-width: 900px) { .sb-toast { left: 0; top: auto; bottom: 64px; } }

@media (prefers-reduced-motion: reduce) { .pv-flash { animation: none; outline: 2px solid #ffd54a; } }

/* ---------- text-a-change demo ---------- */
.tc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
@media (max-width: 860px) { .tc { grid-template-columns: 1fr; } }
.tc-phones { display: flex; gap: 16px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.tc-chat { width: min(250px, 100%); border-radius: 28px; background: #0a0a0a; padding: 10px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--color-text) 28%, transparent), var(--shadow-md); }
.tc-chat-in { height: 420px; border-radius: 20px; background: #f2f2f7; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.tc-head { padding: 10px; text-align: center; font-size: 11.5px; color: #1d1d1f; background: #f9f9fb; border-bottom: 1px solid #e3e3e8; }
.tc-head b { display: block; font-size: 12.5px; }
.tc-log { padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: none; }
.tc-msg { max-width: 82%; padding: 7px 11px; border-radius: 16px; font-size: 12px; line-height: 1.4; }
.tc-msg.me { align-self: flex-end; background: #2f7bf6; color: #fff; border-bottom-right-radius: 5px; }
.tc-msg.us { align-self: flex-start; background: #e3e3e8; color: #1d1d1f; border-bottom-left-radius: 5px; }
.tc-dots { display: inline-flex; gap: 3px; } .tc-dots i { width: 5px; height: 5px; border-radius: 50%; background: #8e8e93; animation: tcDot 1s infinite; } .tc-dots i:nth-child(2) { animation-delay: .15s; } .tc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tcDot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.tc-form { display: flex; gap: 6px; padding: 8px; background: #f9f9fb; border-top: 1px solid #e3e3e8; }
.tc-form input { flex: 1; min-width: 0; font: inherit; font-size: 12px; padding: 7px 11px; border-radius: 999px; border: 1px solid #d1d1d6; background: #fff; color: #1d1d1f; }
.tc-form button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #2f7bf6; color: #fff; font-size: 15px; cursor: pointer; flex: none; }
.tc-site { width: min(250px, 100%); border-radius: 26px; background: #0a0a0a; padding: 9px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--color-text) 28%, transparent), var(--shadow-md); }
.tc-site .dv-screen { height: 420px; border-radius: 18px; }
.tc-site iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; width: 390px; background: #fff; }
@media (max-width: 700px) { .tc-chat-in { height: 230px; } .tc-site .dv-screen { height: 400px; } }
.tc-try { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- website check ---------- */
.wc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .wc { grid-template-columns: 1fr; } }
.wc-q { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-divider) 70%, transparent); font-size: 14.5px; line-height: 1.5; }
.wc-yn { display: inline-flex; border: 1px solid color-mix(in srgb, var(--color-text) 22%, transparent); border-radius: 999px; overflow: hidden; }
.wc-yn button { font: inherit; font-size: 13px; padding: 6px 14px; background: transparent; color: var(--color-text); border: 0; cursor: pointer; }
.wc-yn button + button { border-left: 1px solid color-mix(in srgb, var(--color-text) 22%, transparent); }
.wc-yn button[aria-pressed="true"][data-a="yes"] { background: var(--color-accent-2); color: var(--color-bg); font-weight: 600; }
.wc-yn button[aria-pressed="true"][data-a="no"] { background: var(--color-accent); color: var(--color-bg); font-weight: 600; }
.wc-score { display: flex; align-items: center; gap: 18px; }
.wc-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; background: radial-gradient(closest-side, var(--color-surface) 78%, transparent 79%), conic-gradient(var(--wc-c, var(--color-accent-2)) calc(var(--p) * 1%), color-mix(in srgb, var(--color-text) 12%, transparent) 0); }
.wc-ring b { font-family: var(--font-heading); font-size: 24px; }
.wc-miss { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; line-height: 1.55; }
.wc-miss li { display: flex; gap: 10px; } .wc-miss li::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--color-bg); background: var(--color-accent); }

/* ---------- #samples: six sample-site cards with hand-drawn logos ----------
   Each cover is painted in that sample's own palette (client colors, not brand tokens);
   everything under the cover uses the site tokens. */
.sbw-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .sbw-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sbw-samples { grid-template-columns: 1fr; } }

.sbw-sample { display: grid; grid-template-rows: auto 1fr; gap: 0; padding: 0; overflow: hidden; text-decoration: none; color: var(--color-text);
  background: var(--color-surface); border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent); border-radius: var(--radius-lg);
  transition: border-color .2s, transform .25s ease, box-shadow .25s ease; }
.sbw-sample:hover, .sbw-sample:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.45); border-color: var(--color-accent); }

.sbw-cover { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; }
.sbw-cover > .logo-svg, .sbw-cover > .sbw-logo { position: relative; z-index: 2; width: 72%; max-width: 250px; height: auto; display: block; transition: transform .35s ease; }
.sbw-sample:hover .sbw-cover > .logo-svg, .sbw-sample:hover .sbw-cover > .sbw-logo, .sbw-sample:focus-visible .sbw-cover > .logo-svg, .sbw-sample:focus-visible .sbw-cover > .sbw-logo { transform: scale(1.04); }
.sbw-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sbw-deco svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sbw-deco i { position: absolute; display: block; }

.sbw-meta { display: grid; gap: 7px; padding: 18px 20px 20px; align-content: start; }
.sbw-kind { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); font-family: var(--font-heading); }
.sbw-meta strong { font-size: 15px; line-height: 1.45; font-weight: 600; }
.sbw-go { font-size: 14px; color: var(--color-accent-2-300); margin-top: 2px; }
.sbw-sample:hover .sbw-go { text-decoration: underline; text-underline-offset: 3px; }

/* salon: ivory paper, a rose blush, faint willow fronds */
.sbw-sample--salon .sbw-cover { background: radial-gradient(70% 80% at 85% 10%, #f2dfd6 0%, transparent 60%), #f7f1ec; }
.sbw-sample--salon .sbw-deco svg { transition: transform 1.2s ease; transform-origin: 0% 100%; }
.sbw-sample--salon:hover .sbw-deco svg { transform: rotate(-1.5deg); }

/* cleaning: mint sky with rising soap bubbles */
.sbw-sample--cleaning .sbw-cover { background: linear-gradient(180deg, #e3f7f2 0%, #ffffff 100%); }
.sbw-sample--cleaning .bub { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(31,184,154,.28) 55%, rgba(31,184,154,.08) 100%); box-shadow: inset 0 0 0 1.5px rgba(31,184,154,.35); transition: transform 1.4s ease; }
.sbw-sample--cleaning .b1 { width: 70px; height: 70px; left: 8%; top: 10%; }
.sbw-sample--cleaning .b2 { width: 32px; height: 32px; left: 26%; top: 70%; }
.sbw-sample--cleaning .b3 { width: 110px; height: 110px; right: -24px; bottom: -30px; }
.sbw-sample--cleaning .b4 { width: 22px; height: 22px; right: 20%; top: 14%; }
.sbw-sample--cleaning .b5 { width: 44px; height: 44px; right: 30%; bottom: 10%; }
.sbw-sample--cleaning:hover .bub { transform: translateY(-14px); }
.sbw-sample--cleaning:hover .b2, .sbw-sample--cleaning:hover .b4 { transform: translateY(-24px); }

/* restaurant: cream paper, a tomato-and-cream awning stripe, mustard base */
.sbw-sample--restaurant .sbw-cover { background: #f6efe2; }
.sbw-sample--restaurant .band { left: 0; right: 0; top: 0; height: 18px; background: repeating-linear-gradient(90deg, #d4442a 0 22px, #f6efe2 22px 44px); }
.sbw-sample--restaurant .sbw-deco::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: #e3a72f; }
.sbw-sample--restaurant .sbw-deco::before { content: ""; position: absolute; inset: 18px 0 12px; background: radial-gradient(60% 70% at 50% 100%, rgba(212,68,42,.14), transparent 70%); }

/* records: black, a slow-turning groove field off to the right */
.sbw-sample--records .sbw-cover { background: #121212; }
.sbw-sample--records .disc { width: 170%; aspect-ratio: 1; right: -95%; top: 50%; translate: 0 -50%; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(242,232,213,.16) 0 1px, transparent 1px 7px); transition: rotate 2.4s linear; }
.sbw-sample--records .disc::after { content: ""; position: absolute; inset: 46%; border-radius: 50%; background: #ff5a36; opacity: .9; }
.sbw-sample--records:hover .disc { rotate: 40deg; }

/* wedding: evergreen with a gold-ruled frame and laurel leaves */
.sbw-sample--wedding .sbw-cover { background: radial-gradient(80% 90% at 50% 0%, #28493a 0%, #1f3b2d 70%); }
.sbw-sample--wedding .sbw-deco svg { transition: opacity .6s; opacity: .85; }
.sbw-sample--wedding:hover .sbw-deco svg { opacity: 1; }

/* party game: near-black, one candle's glow from below that breathes on hover */
.sbw-sample--party .sbw-cover { background: #07060a; }
.sbw-sample--party .glow { left: 50%; bottom: -30%; width: 120%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,59,59,.42) 0%, rgba(212,168,74,.18) 30%, transparent 62%); transition: transform .9s ease; }
.sbw-sample--party .flame { left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, transparent, rgba(155,18,24,.35)); }
.sbw-sample--party .sbw-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(100% 100% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%); }
.sbw-sample--party:hover .glow { animation: sbw-breathe 1.8s ease-in-out infinite alternate; }
@keyframes sbw-breathe { from { transform: scale(1); } to { transform: scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  .sbw-sample, .sbw-cover > .logo-svg, .sbw-deco svg, .sbw-sample--cleaning .bub, .sbw-sample--records .disc, .sbw-sample--party .glow { transition: none !important; animation: none !important; transform: none !important; rotate: 0deg !important; }
}

/* ---------- instant price ---------- */
.pq { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .pq { grid-template-columns: 1fr; } }
.pq-ctrl { padding: 22px; display: grid; gap: 18px; }
.pq-hint { margin: 8px 0 0; font-size: 13px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.pq-multi button[aria-pressed="true"] { background: var(--color-accent-2); border-color: var(--color-accent-2); color: var(--color-bg); font-weight: 600; }
.pq-out { padding: 24px; position: sticky; top: 24px; }
.pq-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.pq-price b { font-family: var(--font-heading); font-size: 44px; line-height: 1; color: var(--color-accent); }
.pq-from { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-heading); color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.intro-tag { display: inline-block; font-family: var(--font-heading); font-weight: 600; font-size: 10.5px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-2); border: 1px solid color-mix(in srgb, var(--color-accent-2) 55%, transparent); border-radius: 999px; padding: 5px 8px; vertical-align: middle; white-space: nowrap; }
.pq-mo { font-size: 15px; color: color-mix(in srgb, var(--color-text) 75%, transparent); }
.pq-lines { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; line-height: 1.5; }
.pq-lines li { display: flex; gap: 10px; } .pq-lines li::before { content: "\2713"; color: var(--color-accent-2); flex: none; }
.pq-note { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-accent) 12%, transparent); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 860px) { .pq-out { position: static; } }

.was { font-family: var(--font-heading); font-size: 18px; color: color-mix(in srgb, var(--color-text) 50%, transparent); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--color-accent) 70%, transparent); margin-right: 2px; }
.pq-price .was { font-size: 20px; }
