/* OptiPath individual service pages. Sits on top of home.css (type, buttons, FAQ, closing panel,
   and the working demos) and work.css (the client story with its review).
   Everything specific to these pages is prefixed sd- ("service detail"). */

/* ---------- 1. Hero ---------- */

.sd-hero { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.sd-hero .hx-h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
/* A plain way back to the list of services */
.sd-back { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: clamp(1.25rem, 2.4vw, 2rem); font-size: 0.9375rem; font-weight: 500; color: rgba(255, 255, 255, 0.66); transition: color 0.3s; }
.sd-back::before { content: ""; width: 8px; height: 8px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.4s var(--hx-ease); }
.sd-back:hover, .sd-back:focus-visible { color: #fff; }
.sd-back:hover::before { transform: translateX(-4px) rotate(45deg); }
/* The example: a real site, large. It scrolls inside its frame as the page scrolls. */
.sd-stage { display: block; }
.sd-stage .hx-browser { display: block; }
.sd-shot { display: block; aspect-ratio: 16 / 8.8; overflow: hidden; background: #0b1220; }
.sd-shot img { display: block; width: 100%; height: auto; will-change: transform; }
.sd-caption { max-width: 1240px; margin: 1.1rem auto 0 !important; font-size: 0.9375rem; text-align: center; color: rgba(255, 255, 255, 0.6); }

/* ---------- Shared section heading ---------- */

.sd-head { display: grid; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sd-head .hx-lead { margin: 0; }

/* ---------- 2. What's included ---------- */

.sd-included { padding: var(--hx-pad) 0; background: #fff; }
.sd-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2.5rem, 6vw, 6.5rem); }
.sd-split-head .hx-lead { max-width: 26rem; margin-top: 1.25rem; }
.sd-ticks { display: grid; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: 0; list-style: none; }
.sd-ticks li { display: flex; align-items: center; gap: 0.95rem; padding: 0.92rem 0; border-top: 1px solid var(--hx-line); font-family: var(--font-heading); font-size: clamp(1rem, 1.2vw, 1.125rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--hx-text); }
.sd-ticks li:last-child { border-bottom: 1px solid var(--hx-line); }
.sd-ticks .hx-tick { flex: 0 0 auto; width: 1.8rem; height: 1.8rem; background: var(--hx-blue); color: #fff; }
.sd-ticks .hx-tick svg { width: 14px; height: 14px; }
/* The ticks land one after another when the list is first seen. */
.sd-ticks.is-armed .hx-tick { transform: scale(0); transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
.sd-ticks.is-armed li > span:last-child { opacity: 0.35; transition: opacity 0.5s; }
.sd-ticks.is-armed.is-in .hx-tick { transform: none; }
.sd-ticks.is-armed.is-in li > span:last-child { opacity: 1; }
.sd-ticks.is-in li:nth-child(2) > * { transition-delay: 0.09s; }
.sd-ticks.is-in li:nth-child(3) > * { transition-delay: 0.18s; }
.sd-ticks.is-in li:nth-child(4) > * { transition-delay: 0.27s; }
.sd-ticks.is-in li:nth-child(5) > * { transition-delay: 0.36s; }
.sd-ticks.is-in li:nth-child(6) > * { transition-delay: 0.45s; }
.sd-ticks.is-in li:nth-child(7) > * { transition-delay: 0.54s; }
.sd-ticks.is-in li:nth-child(8) > * { transition-delay: 0.63s; }
.sd-ticks.is-in li:nth-child(9) > * { transition-delay: 0.72s; }
.sd-note { margin-top: 1rem !important; padding-left: 0.25rem; font-size: 0.9375rem; color: var(--hx-mute); }

/* ---------- 3. How it's built ---------- */

.sd-built { padding: var(--hx-pad) 0; background: var(--hx-tint); }
.sd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); }
.sd-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.6vw, 2.5rem); border-radius: clamp(20px, 2.2vw, 30px); color: #fff; background: radial-gradient(130% 110% at 100% 0%, #17337a 0%, #0c1733 46%, #0a1226 100%); }
.sd-card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: #fff; }
.sd-card > p { max-width: 28rem; margin-top: 0.7rem; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.sd-card .hx-cardvis { margin-top: auto; padding-top: 1.75rem; }
.sd-card .hx-layer-code { clip-path: none; }
.sd-card .hx-cb:nth-child(3) { display: none; }
.sd-card .hx-cb pre { font-size: clamp(0.6875rem, 0.95vw, 0.8125rem); }
/* The fourth card: the uptime number beside what the site is built with */
.sd-up { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: auto; padding-top: 1.75rem; }
.sd-big { display: grid; gap: 0.35rem; margin: 0 !important; }
.sd-big strong { font-family: var(--font-heading); font-size: clamp(3rem, 5.6vw, 4.75rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; color: #fff; }
.sd-big span { font-size: 1.0625rem; color: rgba(255, 255, 255, 0.7); }
.sd-builtwith { margin: 0; padding: 0.35rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; background: rgba(6, 11, 24, 0.6); }
.sd-builtwith > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.62rem 0; font-size: 0.9375rem; }
.sd-builtwith > div + div { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sd-builtwith dt { font-weight: 600; color: #fff; }
.sd-builtwith dd { margin: 0; text-align: right; color: rgba(255, 255, 255, 0.62); }

/* A short list of facts inside a card: the thing on the left, a green word on the right. */
.sd-vis-bottom { margin-top: auto; padding-top: 1.75rem; }
.sd-rows { margin: 0; padding: 0.35rem 1.15rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; background: rgba(6, 11, 24, 0.6); }
.sd-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; font-size: 1rem; }
.sd-rows > div + div { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sd-rows dt { font-weight: 600; color: #fff; }
.sd-rows dd { margin: 0; padding: 0.22rem 0.75rem; border-radius: 999px; background: rgba(52, 211, 153, 0.14); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; color: var(--hx-green); }

/* The live app in the hero, on its own under the headline */
.sd-live.hx-showcase { grid-template-columns: minmax(0, 1fr); max-width: 1240px; }

/* A real Google search as the showpiece in the hero */
.sd-search { max-width: 860px; }
.sd-search .hx-goog { width: 100%; max-width: none; opacity: 1; transform: none; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05), 0 70px 130px -50px rgba(0, 0, 0, 0.85); }
.sd-search.is-in .hx-goog-hit { background: #f3f7ff; box-shadow: 0 0 0 1.5px #1a73e8; transition-delay: 0.9s; }
.sd-search.is-in .hx-goog-ai { background: #f3f7ff; box-shadow: 0 0 0 1.5px #1a73e8; transition-delay: 2s; }
/* The example chat sits inside a card at a sensible size. */
.sd-card .hx-float-ai { max-width: 420px; }
/* Tiles with longer lines go one per row. */
.sd-owned.sd-owned-1 { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
/* A card that runs the full width: two points on the left, the example on the right. */
.sd-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.sd-card-col { display: flex; flex-direction: column; align-self: stretch; }
.sd-card-col p { max-width: 28rem; margin-top: 0.7rem; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.sd-card-h3b { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.sd-card-wide .hx-cardvis { margin: 0; padding: 0; }
.sd-card-wide .hx-float-ai { margin-left: auto; }
.sd-pcard-blue .sd-owned li { border-color: rgba(255, 255, 255, 0.22); background: rgba(4, 12, 40, 0.34); }

/* ---------- How we do it: four spreads, each a claim beside the real code behind it ---------- */

.sd-method { padding: var(--hx-pad) 0; background: var(--hx-tint); }
.sd-method + .sd-included { padding-top: var(--hx-pad); }
.sd-file { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(2.5rem, 6vw, 6.5rem); }
.sd-file + .sd-file { margin-top: clamp(4.5rem, 9vw, 8.5rem); }
.sd-file.is-flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.sd-file.is-flip .sd-file-text { order: 2; }
.sd-file-text h3 { font-size: clamp(2rem, 3.5vw, 3.1rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.038em; color: var(--hx-text); }
.sd-file-text > p { max-width: 27rem; margin-top: clamp(1rem, 1.8vw, 1.4rem); font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--hx-mute); }
/* The reason it works gets its own line, set apart. */
.sd-file-text .sd-why { margin-top: clamp(1.5rem, 2.6vw, 2.1rem); padding-top: clamp(1.25rem, 2.2vw, 1.75rem); border-top: 1px solid var(--hx-line); font-family: var(--font-heading); font-size: clamp(1.125rem, 1.5vw, 1.35rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; color: var(--hx-text); }
.sd-why strong { display: block; margin-bottom: 0.4rem; font-family: var(--font-body, inherit); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--hx-blue); }

/* What each part of the file does. The colored mark matches the bar beside those lines in the code. */
.sd-notes { --m1: #58a6ff; --m2: #3fb950; --m3: #d29922; --m4: #f778ba; --m5: #a371f7; display: grid; gap: 0.15rem; margin: clamp(1.4rem, 2.4vw, 2rem) 0 0; padding: 0; list-style: none; }
.sd-notes li { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.6rem 0.75rem; margin: 0 -0.75rem; border-radius: 12px; font-family: var(--font-heading); font-size: clamp(1rem, 1.2vw, 1.125rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--hx-text); cursor: default; transition: background 0.25s; }
.sd-notes li:hover { background: rgba(12, 20, 36, 0.05); }
.sd-notes i { flex: 0 0 auto; width: 4px; height: 2.4em; border-radius: 4px; background: var(--mc); }
.sd-notes small { display: block; margin-top: 0.15rem; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.75rem; font-weight: 400; letter-spacing: 0; color: var(--hx-mute); }
.sd-notes .m1, .sd-ed-lines .m1 { --mc: #58a6ff; }
.sd-notes .m2, .sd-ed-lines .m2 { --mc: #3fb950; }
.sd-notes .m3, .sd-ed-lines .m3 { --mc: #d29922; }
.sd-notes .m4, .sd-ed-lines .m4 { --mc: #f778ba; }
.sd-notes .m5, .sd-ed-lines .m5 { --mc: #a371f7; }

/* The code, shown the way a developer sees it: a plain dark editor, line numbers, real coloring.
   Nothing is laid over the code. A thin colored bar in the margin ties lines to the notes. */
.sd-ed { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #30363d; border-radius: clamp(12px, 1.3vw, 16px); background: #0d1117; box-shadow: 0 60px 110px -50px rgba(12, 20, 36, 0.6); }
.sd-ed-bar { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #21262d; background: #010409; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.8125rem; }
.sd-ed-tab { padding: 0.75rem 1.1rem; border-right: 1px solid #21262d; border-bottom: 2px solid #f78166; margin-bottom: -1px; background: #0d1117; color: #e6edf3; }
.sd-ed-tab { flex: 0 0 auto; white-space: nowrap; }
.sd-ed-live { align-self: center; min-width: 0; padding: 0 1.1rem; overflow: hidden; color: #8b949e; white-space: nowrap; text-overflow: ellipsis; transition: color 0.25s; }
a.sd-ed-live:hover, a.sd-ed-live:focus-visible { color: #58a6ff; }
a.sd-ed-live::after { content: " \2197"; }
.sd-ed-lines { margin: 0; padding: 0.9rem 0; counter-reset: ln; list-style: none; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(0.75rem, 0.92vw, 0.84rem); line-height: 1.7; color: #e6edf3; }
.sd-ed-lines li { position: relative; display: grid; grid-template-columns: 3.4em minmax(0, 1fr); counter-increment: ln; padding-right: 1.1rem; transition: opacity 0.3s; }
.sd-ed-lines li::before { content: counter(ln); padding-right: 1.1em; text-align: right; color: #6e7681; user-select: none; }
.sd-ed-lines li[class^="m"]::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--mc); }
.sd-ed-lines code { display: block; min-width: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; background: none; color: inherit; padding: 0; }
.sd-ed-lines .c { color: #8b949e; }
.sd-ed-lines .k { color: #ff7b72; }
.sd-ed-lines .v, .sd-ed-lines .s, .sd-ed-lines .l { color: #a5d6ff; }
.sd-ed-lines .p, .sd-ed-lines .a { color: #79c0ff; }
.sd-ed-lines .t, .sd-ed-lines .q { color: #7ee787; }
.sd-ed-lines .h { font-weight: 700; color: #79c0ff; }
.sd-ed-lines .pn { color: #8b949e; }
/* Phones show the top of each file, with a button to open the rest. */
.sd-ed-more { display: none; }

/* The file writes itself in, line by line, the first time it is seen. */
.hx-js .sd-ed-lines li { opacity: 0; }
.sd-file.is-in .sd-ed-lines li { opacity: 1; transition: opacity 0.25s calc(var(--i) * 42ms + 150ms); }
/* Pointing at a note quiets every other line. */
.sd-file:has(.sd-notes .m1:hover) .sd-ed-lines li:not(.m1),
.sd-file:has(.sd-notes .m2:hover) .sd-ed-lines li:not(.m2),
.sd-file:has(.sd-notes .m3:hover) .sd-ed-lines li:not(.m3),
.sd-file:has(.sd-notes .m4:hover) .sd-ed-lines li:not(.m4),
.sd-file:has(.sd-notes .m5:hover) .sd-ed-lines li:not(.m5) { opacity: 0.28; transition: opacity 0.25s; }

/* An article and the AI answer that quotes it, side by side */
.sd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(0.8rem, 1.6vw, 1.25rem); padding-top: 0.9rem; }
.sd-pair .hx-art, .sd-pair .hx-cite { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: auto; margin: 0; zoom: 1; opacity: 1; transform: none; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8); }
.sd-pair .hx-cite { margin-top: clamp(2rem, 4vw, 3.5rem); }
.sd-pair mark { padding: 0.05em 0; background: linear-gradient(rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.2)) 0 0 / 0% 100% no-repeat; color: inherit; transition: background-size 1.1s cubic-bezier(0.3, 0, 0.2, 1); }
.sd-pair.is-in .hx-art mark { background-size: 100% 100%; transition-delay: 0.5s; }
.sd-pair.is-in .hx-cite mark { background-size: 100% 100%; transition-delay: 1.4s; }
.sd-points { margin-top: auto; padding-top: clamp(1.5rem, 2.6vw, 2.25rem); }
.sd-card .sd-owned li { border-color: rgba(255, 255, 255, 0.14); }
/* Variations of the white and grey sections so two of a kind never touch */
.sd-result { background: #fff; }
.sd-included-tint { background: var(--hx-tint); }
.sd-promise-top { padding-top: 0; }
.sd-included-tint + .sd-promise { padding-top: 0; }
/* A cover with only the desktop picture */
.sd-cover-solo .pf-d { left: 7%; width: 86%; }

/* A quick second way to start, in the hero: scan your site now */
.sd-scan { display: grid; justify-items: center; gap: 0.9rem; margin-top: clamp(2rem, 3.6vw, 3rem); }
.sd-scan-label { font-size: 1rem; color: rgba(255, 255, 255, 0.7); }
.sd-scan .hx-scan-form { width: min(100%, 31rem); margin-top: 0; text-align: left; }

/* A ticked list where each line has a sentence under it */
.sd-detail li { align-items: flex-start; padding: 1.1rem 0; }
.sd-detail .hx-tick { margin-top: 0.1rem; }
.sd-detail strong { display: block; font-weight: 600; }
.sd-detail small { display: block; margin-top: 0.3rem; font-family: var(--font-body, inherit); font-size: 1rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--hx-mute); }
.sd-ticks.is-armed .sd-detail li > span:last-child, .sd-detail.is-armed li > span:last-child { opacity: 1; }

/* Our Google rating and what clients said, held beside the list as it scrolls */
.sd-split-top { align-items: start; }
.sd-trust { position: sticky; top: 120px; display: grid; gap: 0.9rem; padding: clamp(1.5rem, 2.6vw, 2.5rem); border-radius: clamp(20px, 2.2vw, 30px); background: var(--hx-tint); }
.sd-score-dark { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.4rem; color: var(--hx-text); }
.sd-score-dark .sp-rating-g { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--hx-line); }
.sd-score-dark .hx-g { width: 24px; height: 24px; }
.sd-score-dark strong { font-family: var(--font-heading); font-size: clamp(2rem, 2.8vw, 2.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--hx-text); }
.sd-score-dark .hx-stars { margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.6rem); letter-spacing: 0.12em; }
.sd-score-dark small { font-size: 1.0625rem; color: var(--hx-mute); }
.sd-trust .hx-rcard { width: auto; gap: 0.8rem; padding: 1.3rem 1.5rem; border-radius: 20px; box-shadow: none; }
.sd-trust .hx-rcard blockquote { font-size: 1rem; }

/* A quote in our own words, large */
.sd-say { margin: 0; }
.sd-say figcaption { font-size: 0.9375rem; font-weight: 600; color: var(--hx-sky); }
.sd-say blockquote { margin: 1rem 0 0; font-family: var(--font-heading); font-size: clamp(1.4rem, 2.3vw, 2.1rem); font-weight: 600; line-height: 1.22; letter-spacing: -0.03em; color: #fff; }
.sd-say p { margin-top: 1.25rem; font-size: 1rem; color: rgba(255, 255, 255, 0.66); }
.sd-card-wide .sd-points { margin-top: clamp(1.25rem, 2.2vw, 1.75rem); padding-top: 0; }
/* Spacing for sections on this page */
.sd-promise-pad { padding-top: var(--hx-pad); }
.sd-built-flat { padding-top: 0; }

/* ---------- Website or web app? ---------- */

.sd-vs { padding: var(--hx-pad) 0; background: #fff; }
.sd-vs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); }
.sd-vs-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 2.2vw, 2rem); border: 1px solid var(--hx-line); border-radius: clamp(20px, 2.2vw, 30px); background: var(--hx-tint); color: var(--hx-text); }
.sd-vs-app { border-color: transparent; background: radial-gradient(120% 110% at 100% 0%, #2f6bff 0%, #1d4ed8 42%, #112a78 100%); color: #fff; }
.sd-vs-shot { align-self: stretch; aspect-ratio: 16 / 8.6; margin-bottom: clamp(1.4rem, 2.4vw, 2rem); overflow: hidden; border-radius: clamp(12px, 1.3vw, 18px); background: #0b1220; box-shadow: 0 30px 60px -34px rgba(4, 12, 40, 0.6); }
.sd-vs-shot img { display: block; width: 100%; height: auto; }
.sd-vs-card h3 { padding: 0 0.4rem; font-size: clamp(1.6rem, 2.5vw, 2.3rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; color: inherit; }
.sd-vs-card > p { max-width: 28rem; margin-top: 0.7rem; padding: 0 0.4rem; font-size: 1.0625rem; line-height: 1.55; color: var(--hx-mute); }
.sd-vs-app > p { color: rgba(255, 255, 255, 0.84); }
.sd-vs-card ul { align-self: stretch; margin: 1.4rem 0 1.75rem; padding: 0 0.4rem; list-style: none; }
.sd-vs-card li { padding: 0.8rem 0; border-top: 1px solid var(--hx-line); font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.sd-vs-card li:last-child { border-bottom: 1px solid var(--hx-line); }
.sd-vs-app li, .sd-vs-app li:last-child { border-color: rgba(255, 255, 255, 0.22); }
.sd-vs-card > .hx-link { margin: auto 0 0.4rem 0.4rem; }

/* ---------- Apps we built ---------- */

.sd-apps { padding: var(--hx-pad) 0; background: #fff; }
.sd-apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 2.4vw, 2.25rem); }
.sd-apps-grid .hx-card { width: auto; margin: 0; }

/* ---------- 4. Two promises ---------- */

.sd-promise { padding: 0 0 var(--hx-pad); background: var(--hx-tint); }
/* After a white section the two cards need their own room above. */
.sd-vs + .sd-promise { padding-top: var(--hx-pad); }
.sd-promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); }
.sd-pcard { display: flex; flex-direction: column; padding: clamp(1.75rem, 3.4vw, 3.25rem); border-radius: clamp(20px, 2.2vw, 30px); color: #fff; }
.sd-pcard-navy { background: radial-gradient(130% 110% at 0% 0%, #17337a 0%, #0c1733 46%, #0a1226 100%); }
.sd-pcard-blue { background: radial-gradient(120% 110% at 100% 0%, #2f6bff 0%, #1d4ed8 42%, #112a78 100%); }
.sd-pcard h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; color: #fff; }
.sd-pcard > p { max-width: 28rem; margin-top: 1rem; font-size: clamp(1.0625rem, 1.25vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
/* What "everything" means */
.sd-owned { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: auto 0 0; padding: clamp(1.75rem, 3vw, 2.5rem) 0 0; list-style: none; }
.sd-owned li { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; background: rgba(6, 11, 24, 0.5); font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.sd-owned .hx-tick { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; background: var(--hx-green); color: #06281c; }
.sd-owned .hx-tick svg { width: 14px; height: 14px; }
/* A client saying it in their own words */
.sd-quote { display: grid; gap: 0.8rem; margin-top: auto; padding: 1.4rem 1.5rem; border-radius: 20px; background: #fff; color: var(--hx-text); box-shadow: 0 30px 60px -34px rgba(4, 12, 40, 0.7); transition: transform 0.6s var(--hx-ease); }
.sd-pcard > p { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.sd-pcard .sd-owned { padding-top: 0; }
.sd-quote:hover { transform: translateY(-4px); }
.sd-quote-top { display: flex; align-items: center; justify-content: space-between; }
.sd-quote-top .hx-stars { margin: 0; font-size: 1.0625rem; }
.sd-quote-top .hx-g { width: 20px; height: 20px; }
.sd-quote-text { font-size: 1.0625rem; line-height: 1.55; color: var(--hx-text); }
.sd-quote-by { display: flex; align-items: center; gap: 0.75rem; }
.sd-quote-by .hx-ava { width: 38px; height: 38px; font-size: 0.8125rem; }
.sd-quote-by strong { display: block; font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; }
.sd-quote-by small { display: block; font-size: 0.8125rem; color: var(--hx-mute); }

/* ---------- 5. A real one ---------- */

.sd-proof { padding: var(--hx-pad) 0; background: #fff; }
.sd-proof .pf-feature { padding-bottom: 0; }

/* ---------- Phones and tablets ---------- */

@media (max-width: 899px) {
  .sd-hero .hx-h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .sd-shot { aspect-ratio: 4 / 3.2; }
  .sd-search .hx-goog { zoom: 0.86; }
  .sd-caption { padding: 0 var(--hx-gutter); }
  .sd-split { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .sd-split-head .hx-lead { margin-top: 1rem; }
  .sd-split-vis { order: -1; }
  .sd-cards { grid-template-columns: minmax(0, 1fr); }
  .sd-card { border-radius: 24px; }
  .sd-promise-grid { grid-template-columns: minmax(0, 1fr); }
  .sd-vs-grid, .sd-apps-grid { grid-template-columns: minmax(0, 1fr); }
  .sd-card-wide { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .sd-trust { position: static; }
  .sd-split-top .sd-split-vis { order: 2; }
  .sd-scan .hx-scan-form { width: 100%; }
  .sd-pair { grid-template-columns: minmax(0, 1fr); }
  .sd-pair .hx-art { display: none; }
  .sd-pair .hx-cite { margin-top: 0; }
  .sd-file, .sd-file.is-flip { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .sd-file.is-flip .sd-file-text { order: 0; }
  .sd-file + .sd-file { margin-top: 4rem; }
  .sd-file-text h3 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .sd-ed-lines { font-size: 0.71875rem; }
  .sd-ed-lines li { grid-template-columns: 2.7em minmax(0, 1fr); padding-right: 0.75rem; }
  .sd-ed-live { padding: 0 0.8rem; }
  .sd-card-wide .hx-float-ai { margin: 0; }
  .sd-vs-card { border-radius: 24px; }
  .sd-pcard { border-radius: 24px; }
  .sd-up { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sd-owned li { min-width: 0; padding: 0.85rem 0.9rem; font-size: 1rem; }
  .sd-owned li > span:last-child { min-width: 0; }
}

/* On a phone two tiles side by side are too narrow for words like "Monitoring", so they stack. */
@media (max-width: 560px) {
  .sd-owned { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
  .sd-owned li { padding: 0.8rem 1rem; }
}

/* ---------- The code section on phones: the headline, the code, then a few short labels ---------- */

@media (max-width: 699px) {
  .sd-file, .sd-file.is-flip { gap: 0; }
  .sd-file-text { display: contents; }
  .sd-file-text h3 { order: 0; margin-bottom: 1.1rem; }
  .sd-file-text > p:not(.sd-why) { display: none; }
  .sd-ed { order: 1; }
  .sd-notes { order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 0.9rem; margin: 1.25rem 0 0; }
  .sd-notes li { gap: 0.6rem; margin: 0; padding: 0; font-size: 0.9375rem; }
  .sd-notes li:hover { background: none; }
  .sd-notes i { height: 1.25em; margin-top: 0.05em; }
  .sd-notes small { display: none; }
  .sd-file-text .sd-why { order: 3; margin-top: 1.25rem; padding-top: 1.1rem; font-size: 1.0625rem; }
  .sd-why strong { margin-bottom: 0.25rem; font-size: 0.875rem; }

  /* The editor shows its first lines and fades out. One tap opens the whole file. */
  .sd-ed { position: relative; }
  .sd-ed-lines { max-height: 15.5rem; overflow: hidden; }
  .sd-ed::after { content: ""; position: absolute; right: 0; bottom: 2.9rem; left: 0; height: 4.5rem; background: linear-gradient(rgba(13, 17, 23, 0), #0d1117); pointer-events: none; }
  .sd-ed-more { display: block; width: 100%; padding: 0.85rem 1rem; border: 0; border-top: 1px solid #21262d; background: #010409; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.8125rem; color: #58a6ff; cursor: pointer; }
  .sd-ed.is-open .sd-ed-lines { max-height: none; }
  .sd-ed.is-open::after { content: none; }
}
