/* RepairMyDiamond site styles.
   Self-hosted fonts first: exactly the families and weights of the design's Google Fonts
   link (design line 10), latin and latin-ext subsets, as Google's own @font-face rules.
   Below them, the design's style block (design lines 22-540), with v2's changes to it (v2 spec,
   src/RepairMyDiamond-design-v2.html), and v2's own additions at the end. */
/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bodoni-moda-italic-latin-ext.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;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bodoni-moda-italic-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bodoni-moda-latin-ext.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;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bodoni-moda-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/bodoni-moda-latin-ext.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;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/bodoni-moda-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/bodoni-moda-latin-ext.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;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/bodoni-moda-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-ext.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-ext.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-ext.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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin.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;
}

:root{
  --paper:#F5F6F8; --surface:#FFFFFF; --ink:#142033; --muted:#566275; --line:#D8DDE5;
  --accent:#2448B8; --accent-ink:#FFFFFF; --accent-soft:#E6ECFB; --deep:#0F1A2B; --deep-ink:#E9EDF4; --deep-muted:#9AA7BB;
  --ok:#1A6D4C;
  --serif:"Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme:light; box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#0D1421; --surface:#152032; --ink:#E7EBF2; --muted:#9BA7B9; --line:#27344B;
    --accent:#8AA4FF; --accent-ink:#0D1421; --accent-soft:#1C2A48; --deep:#080E18; --deep-ink:#E7EBF2; --deep-muted:#8F9CB0; --ok:#5CC79A;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --paper:#0D1421; --surface:#152032; --ink:#E7EBF2; --muted:#9BA7B9; --line:#27344B;
  --accent:#8AA4FF; --accent-ink:#0D1421; --accent-soft:#1C2A48; --deep:#080E18; --deep-ink:#E7EBF2; --deep-muted:#8F9CB0; --ok:#5CC79A;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-behavior:smooth;scroll-padding-top:calc(env(safe-area-inset-top,0px) + 88px)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--paper)}
img,svg{max-width:100%}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
/* On the dark surfaces the light-mode accent ring is too faint (WCAG 1.4.11, spec 12). */
.hero :focus-visible,.map :focus-visible,footer :focus-visible,.intro :focus-visible,.ab-hero :focus-visible,.ab-cta :focus-visible{outline-color:var(--deep-ink)}
.wrap{max-width:1220px;margin:0 auto;padding:0 24px}
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;line-height:1.06;margin:0;letter-spacing:-.01em}
h2{font-size:clamp(34px,4.6vw,56px)}
h3{font-size:24px}
p{margin:0}
.lede{color:var(--muted);font-size:18px;max-width:52ch}
.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:999px;padding:13px 22px;font:600 15px/1 var(--sans);cursor:pointer;text-decoration:none;transition:filter .15s,border-color .15s}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{filter:brightness(1.08)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--ink)}
.btn-light{background:#F2F5FA;color:#0F1A2B}
.btn-outline-light{background:transparent;color:#F2F5FA;border-color:rgba(242,245,250,.45)}

/* placeholder images */
.ph{position:relative;overflow:hidden;border-radius:18px;background:#0F1A2B}
.ph>svg{position:absolute;inset:0;width:100%;height:100%;display:block}

/* nav */
header.site{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;background:color-mix(in srgb,var(--paper) 90%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:86px;gap:20px}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-family:var(--serif);font-size:clamp(26px,3.2vw,36px);font-weight:500;letter-spacing:-.015em;white-space:nowrap}
.logo svg{width:38px;height:38px;flex:none}
.nav ul{display:flex;gap:26px;list-style:none;margin:0;padding:0}
.nav ul a{color:var(--muted);text-decoration:none;font-size:15px;font-weight:500}
.nav ul a:hover{color:var(--ink)}
@media (max-width:1040px){.nav ul{display:none}}
@media (max-width:520px){.nav .btn{display:none}}

/* hero */
.hero{position:relative;background:#0B1322;color:#EEF1F7;overflow:hidden}
.hero-bg{position:absolute;inset:0}
.hero-bg svg{width:100%;height:100%;display:block}
.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,19,34,.92) 0%,rgba(11,19,34,.6) 45%,rgba(11,19,34,.15) 100%)}
.hero .wrap{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;padding-top:84px;padding-bottom:84px}
.hero h1{font-size:clamp(46px,6.4vw,88px);line-height:.98;color:#F4F6FA}
.hero h1 em{font-style:italic;font-weight:400}
.hero .lede{color:#B9C3D4;margin-top:22px}
.paths{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
@media (max-width:960px){.hero .wrap{grid-template-columns:1fr;padding-top:48px}}

/* chat */
.chat{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;display:flex;flex-direction:column;height:540px;overflow:hidden;box-shadow:0 30px 60px -24px rgba(0,0,0,.55)}
.chat-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.chat-head .gem{width:36px;height:36px;border-radius:50%;background:var(--deep);display:grid;place-items:center;flex:none}
.chat-head b{display:block;font-size:15px}
.chat-head span{font-size:13px;color:var(--muted)}
.chat-head .status{margin-left:auto;font-size:12px;color:var(--ok);display:flex;align-items:center;gap:6px}
.chat-head .status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.chat-close{display:none;margin-left:8px;background:none;border:0;color:var(--muted);font-size:22px;cursor:pointer;line-height:1}
.msgs{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:12px}
.msg{max-width:86%;padding:11px 14px;border-radius:16px;font-size:15px;line-height:1.5}
.msg.bot{background:var(--paper);border:1px solid var(--line);border-bottom-left-radius:5px;align-self:flex-start}
.msg.user{background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:5px;align-self:flex-end}
.msg .act{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.msg .act button,.msg .act a{font:600 13px/1 var(--sans);text-decoration:none;padding:9px 14px;border-radius:99px;border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);cursor:pointer}
.typing{display:inline-flex;gap:4px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 12px}
.chips button{font:500 14px/1.2 var(--sans);padding:9px 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer}
.chips button:hover{border-color:var(--accent);color:var(--accent)}
.chat-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}
.chat-input input{flex:1;min-width:0;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:99px;padding:12px 16px;font:15px var(--sans)}
.chat-input button{border:0;background:var(--accent);color:var(--accent-ink);border-radius:99px;padding:0 18px;font:600 14px var(--sans);cursor:pointer}
.chat-notice{font-size:12px;color:var(--muted);padding:0 18px 4px}
.chat-notice a{color:inherit}
.chat-note{font-size:12px;color:var(--muted);padding:0 18px 10px}
.launcher{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:70;display:flex;align-items:center;gap:10px;background:var(--deep);color:var(--deep-ink);border:0;border-radius:99px;padding:14px 20px 14px 16px;font:600 15px var(--sans);cursor:pointer;box-shadow:0 14px 30px -10px rgba(0,0,0,.45)}
.launcher.hide{display:none}
.drawer{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:80;width:min(400px,calc(100vw - 24px));display:none}
.drawer.open{display:block}
.drawer .chat{height:min(600px,calc(100vh - 120px),720px)}
.drawer .chat-close{display:block}
.drawer.open .chat{animation:pop .18s ease-out}@keyframes pop{from{opacity:0;transform:translateY(12px)}}
@media (max-width:560px){.drawer{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}}

section{padding:96px 0}
.sec-head{display:flex;justify-content:space-between;align-items:end;gap:32px;flex-wrap:wrap;margin-bottom:44px}

/* damage map */
.map{background:var(--deep);color:var(--deep-ink)}
.map h2{color:var(--deep-ink)}
.map .lede{color:var(--deep-muted)}
.map-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
.stone svg{width:100%;height:auto}
.region{fill:rgba(138,164,255,.06);stroke:rgba(233,237,244,.55);stroke-width:1.2;cursor:pointer;transition:fill .15s}
.region:hover{fill:rgba(138,164,255,.22)}
.region.on{fill:rgba(138,164,255,.42)}
.facet{stroke:rgba(233,237,244,.25);stroke-width:1;fill:none;pointer-events:none}
.tag{fill:var(--deep-muted);font:500 13px var(--sans)}
.parts{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.parts button{font:500 14px var(--sans);padding:9px 16px;border-radius:99px;border:1px solid #33425D;background:transparent;color:var(--deep-ink);cursor:pointer}
.parts button[aria-pressed="true"]{background:var(--deep-ink);color:var(--deep);border-color:var(--deep-ink)}
.detail h3{font-size:34px;color:var(--deep-ink)}
.detail dl{margin:20px 0 0;display:grid;grid-template-columns:auto 1fr;gap:10px 22px}
.detail dt{color:var(--deep-muted);font-size:14px}
.detail dd{margin:0;font-size:15px}
.detail .btn{margin-top:26px;background:var(--deep-ink);color:var(--deep)}
@media (max-width:860px){.map-grid{grid-template-columns:1fr}}

/* services gallery */
.gallery{display:grid;grid-template-columns:repeat(6,1fr);gap:20px}
.gallery .tile{grid-column:span 2}
.gallery .tile:nth-child(n+4){grid-column:span 3}
.tile .ph{aspect-ratio:4/3}
.gallery .tile:nth-child(n+4) .ph{aspect-ratio:16/9}
.ph.photo{background:#E9ECF0}
.ph>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tile h3{font-size:22px;margin-top:14px}
.tile p{color:var(--muted);font-size:15px;margin-top:4px}
@media (max-width:900px){.gallery{grid-template-columns:1fr 1fr}.gallery .tile,.gallery .tile:nth-child(n+4){grid-column:auto}.gallery .tile:nth-child(n+4) .ph{aspect-ratio:4/3}.gallery .tile:last-child{grid-column:1/-1}.gallery .tile:last-child .ph{aspect-ratio:16/9}}
@media (max-width:540px){.gallery{grid-template-columns:1fr}.gallery .tile .ph,.gallery .tile:last-child .ph{aspect-ratio:4/3}}
/* the one line for jewelry work under the tiles (v2 §4, 5.3 row): findable, not featured */
.svc-more{margin-top:32px;color:var(--muted)}

/* process */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;counter-reset:s;padding:0;margin:0}
.steps li{list-style:none}
.steps .ph{aspect-ratio:1/1}
.steps .ph::before{counter-increment:s;content:counter(s);position:absolute;right:14px;bottom:6px;font-family:var(--serif);font-size:64px;line-height:1;color:#F2F5FA;z-index:1;opacity:.9}
.steps b{display:block;font-size:17px;margin-top:14px}
.steps span{display:block;color:var(--muted);font-size:15px}
@media (max-width:860px){.steps{grid-template-columns:1fr 1fr}}

/* owners (owner requests spec 5): in the jeweler search's place and colours, a line and two buttons */
.owners{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.owners .sec-head{margin-bottom:28px}
.owners-actions{display:flex;flex-wrap:wrap;gap:12px}
@media (max-width:640px){.owners-actions .btn{width:100%;justify-content:center}}

form label{display:block;font-size:14px;font-weight:500;margin-bottom:16px}
input,select,textarea{width:100%;margin-top:6px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:10px;padding:12px 14px;font:16px var(--sans)}
textarea{min-height:100px;resize:vertical}

.faq details{border-top:1px solid var(--line);padding:20px 0}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;font-weight:600;font-size:18px;list-style:none;display:flex;justify-content:space-between;gap:20px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-family:var(--serif);font-size:26px;line-height:1;color:var(--accent)}
.faq details[open] summary::after{content:"–"}
.faq details p{color:var(--muted);margin-top:12px;max-width:70ch}

/* Bottom padding 150px (v2's; the first design's 40px): the floating buttons never cover the
   footer's links. Their stack reaches 141px above the viewport's bottom edge. */
footer{background:var(--deep);color:var(--deep-muted);padding:56px 0 calc(150px + env(safe-area-inset-bottom,0px));font-size:14px}
footer .wrap{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:28px}
@media (max-width:1040px){footer .wrap{grid-template-columns:1fr 1fr 1fr}footer .wrap>div:first-child{grid-column:1/-1}}
footer #contact a{word-break:break-word}
footer b{color:var(--deep-ink);display:block;margin-bottom:10px;font-weight:600}
footer a{color:var(--deep-muted);text-decoration:none;display:block;padding:3px 0}
footer a:hover{color:var(--deep-ink)}
footer .logo{color:var(--deep-ink)}
/* The contact column (spec 5.1): address and numbers read like the links beside them. */
footer address{font-style:normal}
@media (max-width:760px){footer .wrap{grid-template-columns:1fr 1fr}}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.btn-lg{padding:17px 30px;font-size:17px}

/* ===== start-my-repair page ===== */
/* The wizard is the whole page once its script has drawn it. With JS off, or when the script
   failed before drawing the first step, the header, the no-script notice and the footer show
   instead of an empty wizard (spec 5.15). A later error leaves a drawn wizard in place. */
body.wizard-mode .launcher,body.wizard-mode .drawer,
:is(.js:not(.js-failed),.js-failed:has(#wStage:not(:empty))) body.wizard-mode :is(header.site,main,footer){display:none!important}
:is(html:not(.js),.js-failed:has(#wStage:empty)) body.wizard-mode .wiz{display:none}
.wiz{display:grid;grid-template-columns:5fr 7fr;min-height:min(100vh,1000px)}
.wiz[hidden]{display:none}
.wiz-side{position:sticky;top:0;height:min(100vh,1000px);border-radius:0}
.wiz-side::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,14,24,0) 50%,rgba(8,14,24,.85) 100%)}
.wiz-side .quote{position:absolute;left:32px;right:32px;bottom:36px;color:#EEF1F7;font-family:var(--serif);font-size:30px;line-height:1.15;z-index:2}
.wiz-main{display:flex;flex-direction:column;padding:24px clamp(20px,5vw,64px) 28px;min-height:min(100vh,1000px)}
.wiz-top{display:flex;justify-content:space-between;align-items:center}
.wiz-top .logo{font-size:26px}
.wiz-top .logo svg{width:30px;height:30px}
.wiz-exit{color:var(--muted);text-decoration:none;font-weight:500;font-size:15px}
.wiz-progress{height:4px;background:var(--line);border-radius:4px;margin:22px 0 0;overflow:hidden}
.wiz-progress i{display:block;height:100%;width:0;background:var(--accent);transition:width .3s}
.wiz-stage{flex:1;display:flex;flex-direction:column;justify-content:center;max-width:620px;width:100%;padding:40px 0}
.wq{animation:rise .28s ease-out}
@keyframes rise{from{opacity:0;transform:translateY(16px)}}
.wq-num{color:var(--accent);font-weight:600;font-size:14px;margin-bottom:10px}
.wq h1{font-size:clamp(32px,4vw,48px)}
.wq .sub{color:var(--muted);margin-top:10px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}
.tiles button{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 10px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);font:500 15px var(--sans);cursor:pointer;transition:border-color .15s,transform .15s}
.tiles button:hover{border-color:var(--accent);transform:translateY(-2px)}
.tiles button.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:var(--accent-soft)}
.tiles svg{width:54px;height:54px;color:var(--accent)}
.list{display:flex;flex-direction:column;gap:10px;margin-top:28px}
.list button{display:flex;align-items:center;gap:14px;text-align:left;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font:500 16px var(--sans);cursor:pointer}
.list button:hover{border-color:var(--accent)}
.list button.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:var(--accent-soft)}
.list kbd{font:600 12px var(--sans);border:1px solid var(--line);border-radius:6px;padding:2px 7px;color:var(--muted);background:var(--paper)}
.list small{display:block;color:var(--muted);font-weight:400;font-size:14px}
.big-in{font:400 26px var(--sans);border:0;border-bottom:2px solid var(--line);border-radius:0;background:transparent;padding:12px 2px;margin-top:28px}
.big-in:focus{outline:none;border-bottom-color:var(--accent)}
textarea.big-in{font-size:19px;min-height:140px;border:1px solid var(--line);border-radius:12px;padding:14px}
.hint{font-size:13px;color:var(--muted);margin-top:12px}
.w-err{color:#C0392B;font-size:14px;min-height:20px;margin-top:8px}
.chipset{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.chipset button{padding:12px 18px;border:1px solid var(--line);border-radius:99px;background:var(--surface);color:var(--ink);font:500 15px var(--sans);cursor:pointer}
.chipset button.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.drop{margin-top:26px;border:2px dashed var(--line);border-radius:18px;padding:30px;text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.drop.over,.drop:hover{border-color:var(--accent);background:var(--accent-soft)}
.drop b{display:block;font-size:17px;margin-top:8px}
.drop span{color:var(--muted);font-size:14px}
.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}
.shot{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--line)}
.shot img{width:100%;height:100%;object-fit:cover;display:block}
.shot button{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(8,14,24,.7);color:#fff;font-size:16px;cursor:pointer}
.tips{display:flex;gap:16px;flex-wrap:wrap;margin-top:14px;font-size:13px;color:var(--muted)}
.review{margin-top:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.review .r{display:grid;grid-template-columns:150px 1fr auto;gap:14px;padding:14px 18px;border-bottom:1px solid var(--line);align-items:start;font-size:15px}
.review .r:last-child{border-bottom:0}
.review dt{color:var(--muted)}
.review dd{margin:0;word-break:break-word}
.review button{background:none;border:0;color:var(--accent);font:500 14px var(--sans);cursor:pointer;padding:0}
.review .mini{display:flex;gap:6px;flex-wrap:wrap}
.review .mini img{width:44px;height:44px;object-fit:cover;border-radius:6px}
/* A photo sent as is, which the browser can't draw: a file tile with its name. */
.shot .file,.review .mini .file{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--ink);font-size:12px;line-height:1.3}
.shot .file{flex-direction:column;height:100%;padding:12px;text-align:center;word-break:break-all}
.review .mini .file{height:44px;max-width:180px;padding:0 10px;border-radius:6px;background:var(--line)}
.review .mini .file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.consent{font-size:13px;color:var(--muted);margin-top:14px}
/* the review step's insurance and liability box (v2): the terms in full, then the two ticks */
.ack{margin-top:18px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:14px;color:var(--muted)}
.ack p{margin-bottom:10px}
.ack b{color:var(--ink)}
.ack label{display:flex;gap:10px;align-items:flex-start;color:var(--ink);font-size:15px;font-weight:500;margin-top:10px;cursor:pointer}
.ack input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--accent)}
.wiz-nav{display:flex;justify-content:space-between;align-items:center;gap:16px;max-width:620px}
.wiz-nav .back{background:none;border:0;color:var(--muted);font:500 15px var(--sans);cursor:pointer;padding:8px 0}
.wiz-nav .count{font-size:13px;color:var(--muted)}
.okmark{width:64px;height:64px;border-radius:50%;background:var(--ok);display:grid;place-items:center;margin-bottom:22px}
.next-steps{margin:24px 0 0;padding:0;list-style:none;counter-reset:n}
.next-steps li{padding:12px 0 12px 40px;border-top:1px solid var(--line);position:relative;font-size:15px}
.next-steps li::before{counter-increment:n;content:counter(n);position:absolute;left:0;top:11px;width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:600;font-size:13px;display:grid;place-items:center}
@media (max-width:900px){.wiz{grid-template-columns:1fr}.wiz-side{display:none}.tiles{grid-template-columns:repeat(2,1fr)}.review .r{grid-template-columns:1fr auto}.review dt{grid-column:1/-1}}

/* ===== intro splash ===== */
.intro{display:none}.js .intro{position:fixed;top:0;left:0;right:0;height:min(100vh,100svh,960px);z-index:200;background:#0B1322;color:#F4F6FA;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;transition:transform .9s cubic-bezier(.7,0,.2,1)}
.intro-skip .intro{display:none}
.intro.leave{transform:translateY(-100%)}
.intro .ph{position:absolute;inset:0;border-radius:0;opacity:.55;animation:slowzoom 14s ease-out both}
@keyframes slowzoom{from{transform:scale(1.15)}to{transform:scale(1)}}
.intro .ph::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,rgba(11,19,34,.35),rgba(11,19,34,.92) 70%)}
.intro-body{position:relative;z-index:2;padding:24px}
.intro .ititle{font-family:var(--serif);font-weight:500;margin:0;font-size:clamp(44px,8vw,112px);line-height:1;color:#F4F6FA}
.intro .l1,.intro .l2,.intro .go{opacity:0;transform:translateY(28px);filter:blur(6px);animation:introIn 1s cubic-bezier(.2,.7,.2,1) forwards}
.intro .l1{animation-delay:.3s}.intro .l2{animation-delay:1.5s}.intro .go{animation-delay:2.6s}
@keyframes introIn{to{opacity:1;transform:none;filter:none}}
.intro .l2{display:block;font-style:italic;font-weight:400;margin-top:.12em;color:#C9D6FF}
.intro .show{opacity:1;transform:none;filter:none}
.intro .go{margin-top:44px}
.intro .skip{position:absolute;right:24px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:2;background:none;border:0;color:#9AA7BB;font:500 14px var(--sans);cursor:pointer}
.intro:focus{outline:none}
/* Headings given focus so the reader keeps their place (the page's h1 after the intro, each
   wizard question): not controls, so no focus ring. */
main h1[tabindex="-1"]:focus,#wqTitle:focus{outline:none}
body.intro-on{overflow:hidden}

/* ===== floating reveal ===== */
.js .reveal{opacity:0;transform:translateY(48px) scale(.97);transition:opacity 1s ease,transform 1.1s cubic-bezier(.2,.7,.2,1);will-change:transform,opacity}
.reveal.in{opacity:1;transform:none}
.ph.float>svg,.ph.float>img{transform:translateY(var(--py,0px)) scale(1.12);will-change:transform}
@media (prefers-reduced-motion:reduce){.js .reveal{opacity:1;transform:none}.ph.float>svg,.ph.float>img{transform:none}.intro .l1,.intro .l2,.intro .go{animation:none;opacity:1;transform:none;filter:none}}
.js-failed .intro{display:none}.js-failed .reveal{opacity:1;transform:none}
body.intro-on .launcher,body.intro-on .call-fab{visibility:hidden}

/* ===== before / after ===== */
.ba-wrap{display:grid;grid-template-columns:1.5fr .5fr;gap:24px;align-items:stretch}
.ba{position:relative;border-radius:24px;overflow:hidden;aspect-ratio:16/10;background:#0F1A2B;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.ba svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.ba .before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--pos,50%)) 0 0)}
.ba .line{position:absolute;top:0;bottom:0;left:var(--pos,50%);width:2px;background:#fff;transform:translateX(-1px);pointer-events:none;box-shadow:0 0 12px rgba(0,0,0,.4)}
.ba .knob{position:absolute;top:50%;left:var(--pos,50%);width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:#fff;color:#0F1A2B;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.35);pointer-events:none}
.ba input[type=range]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;padding:0;border:0}
/* The range input is invisible, so its keyboard focus shows on the knob (WCAG 2.4.7, spec 12). */
.ba:has(input:focus-visible) .knob{outline:2px solid var(--deep-ink);outline-offset:3px}
.ba .lbl{position:absolute;top:16px;font:600 12px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#fff;background:rgba(8,14,24,.6);padding:6px 12px;border-radius:99px;pointer-events:none}
.ba .lbl.b{left:16px}.ba .lbl.a{right:16px}
.ba-cap{margin-top:16px;display:flex;justify-content:space-between;gap:16px;align-items:baseline;flex-wrap:wrap}
.ba-cap b{font-family:var(--serif);font-size:26px;font-weight:500}
.ba-cap span{color:var(--muted);font-size:15px}
.ba-list{display:flex;flex-direction:column;gap:12px}
.ba-list button{display:grid;grid-template-columns:84px 1fr;gap:12px;align-items:center;text-align:left;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font:500 14px var(--sans);cursor:pointer}
.ba-list button.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.ba-list .th{position:relative;aspect-ratio:4/3;border-radius:9px;overflow:hidden}
.ba-list .th svg{position:absolute;inset:0;width:100%;height:100%}
.ba-list small{display:block;color:var(--muted);font-weight:400}
@media (max-width:900px){.ba-wrap{grid-template-columns:1fr}.ba-list{flex-direction:row;overflow-x:auto;padding-bottom:4px}.ba-list button{min-width:220px}}

/* ===== about page ===== */
#aboutView[hidden]{display:none}
body.about-mode main:not(#aboutView){display:none}
.ab-hero{position:relative;min-height:560px;display:flex;align-items:flex-end;color:#F4F6FA;overflow:hidden;background:#0B1322}
.ab-hero .ph{position:absolute;inset:0;border-radius:0}
.ab-hero .ph::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,19,34,.2),rgba(11,19,34,.9))}
.ab-hero .ab-hero-img{background:#0B1322 url("/img/v2/about-hero.jpg") center/cover no-repeat}
.ab-hero .wrap{position:relative;z-index:2;padding-bottom:64px;width:100%}
.ab-hero h1{font-size:clamp(44px,6.4vw,84px);color:#F4F6FA;max-width:16ch}
.ab-hero p{color:#C3CCDA;font-size:19px;max-width:56ch;margin-top:18px}
.eyebrow{font-weight:600;font-size:14px;color:var(--accent);margin-bottom:14px}
.ab-hero .eyebrow{color:#C9D6FF}
.ab-intro{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.ab-intro p{font-size:19px;color:var(--muted);margin-top:18px}
.ab-intro p:first-of-type{color:var(--ink)}
.ab-intro .ph{aspect-ratio:4/5}
picture.ph{display:block}
.ab-three{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.ab-three .ph{aspect-ratio:3/4}
.ab-three h3{margin-top:16px}
.ab-three p{color:var(--muted);font-size:15px;margin-top:6px}
.ab-cta{background:var(--deep);color:var(--deep-ink);text-align:center}
.ab-cta h2{color:var(--deep-ink)}
.ab-cta p{color:var(--deep-muted);margin:14px auto 28px;max-width:46ch}
@media (max-width:900px){.ab-intro{grid-template-columns:1fr}.ab-three{grid-template-columns:1fr}.ab-intro .ph{aspect-ratio:16/11}}

/* ===== wizard additions ===== */
.who-ic{width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex:none}

/* ===== mobile nav ===== */
.nav-r{display:flex;align-items:center;gap:10px}
.menu-btn{display:none;width:46px;height:46px;border:1px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0}
.menu-btn span{display:block;width:20px;height:2px;background:var(--ink);border-radius:2px;transition:transform .2s,opacity .2s}
.menu-btn.x span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-btn.x span:nth-child(2){opacity:0}
.menu-btn.x span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.m-menu{border-top:1px solid var(--line);background:var(--paper);padding:8px 20px 20px;display:flex;flex-direction:column}
.m-menu[hidden]{display:none}
.m-menu a:not(.btn){color:var(--ink);text-decoration:none;font-size:18px;font-weight:500;padding:14px 0;border-bottom:1px solid var(--line)}
.m-menu .btn{margin-top:18px;justify-content:center}
@media (max-width:1040px){.menu-btn{display:flex}}

/* ===== fluid / responsive layer ===== */
html{overflow-x:clip}
@media (max-width:900px){
  section{padding:72px 0}
  .sec-head{margin-bottom:28px;gap:14px}
  .hero-bg::after{background:linear-gradient(180deg,rgba(11,19,34,.55) 0%,rgba(11,19,34,.9) 100%)}
  .hero .wrap{min-height:min(calc(100svh - 86px),760px);align-content:center}
  .map-grid{gap:28px}
  .detail h3{font-size:28px}
}
@media (max-width:640px){
  body{font-size:16px}
  .wrap{padding:0 18px}
  section{padding:56px 0}
  .nav{height:68px}
  .logo{font-size:23px;gap:8px}
  .logo svg{width:28px;height:28px}
  .nav-cta{display:none}
  .lede{font-size:16px}
  .hero .wrap{min-height:min(calc(100svh - 68px),720px);padding-top:40px;padding-bottom:56px}
  .btn-lg{width:100%;justify-content:center}
  .paths{width:100%}
  .detail dl{grid-template-columns:1fr;gap:2px}
  .detail dd{margin-bottom:12px}
  .detail .btn{width:100%;justify-content:center}
  .parts button{padding:8px 13px;font-size:13px}
  .tag{font-size:15px}
  .steps{grid-template-columns:1fr 1fr;gap:14px}
  .steps .ph::before{font-size:44px}
  .steps b{font-size:15px}.steps span{font-size:14px}
  .ba{aspect-ratio:4/3;border-radius:18px}
  .ba .knob{width:44px;height:44px;margin:-22px 0 0 -22px}
  .ba-cap b{font-size:22px}
  .faq summary{font-size:16px}
  footer .wrap{grid-template-columns:1fr 1fr;gap:24px}
  footer .wrap>div:first-child{grid-column:1/-1}
  .launcher{padding:14px;border-radius:50%;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .launcher span{display:none}
  .drawer{right:0;left:0;bottom:0;top:auto;width:100%}
  .drawer .chat{height:min(100dvh,900px);border-radius:0;border:0}
  .drawer .chat-head{padding-top:calc(16px + env(safe-area-inset-top,0px))}
  .drawer .chat-note{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  .chat-input input{font-size:16px}
  .ab-hero{min-height:440px}
  .ab-hero .ab-hero-img{background-image:url("/img/v2/about-hero-phone.jpg")}
  .ab-hero .wrap{padding-bottom:40px}
  .ab-hero p{font-size:16px}
  .ab-intro p{font-size:16px}
  .intro .skip{right:18px}
  .intro .go .btn{width:auto}
  /* wizard */
  .wiz-main{padding:14px 18px 0;min-height:min(100svh,900px)}
  .wiz-top .logo{font-size:21px}
  .wiz-top .logo svg{width:24px;height:24px}
  .wiz-progress{margin-top:14px}
  .wiz-stage{justify-content:flex-start;padding:28px 0 24px}
  .wq h1{font-size:clamp(26px,7.5vw,34px)}
  .tiles{grid-template-columns:repeat(2,1fr);gap:10px;margin-top:20px}
  .tiles button{padding:16px 8px;font-size:14px}
  .tiles svg{width:44px;height:44px}
  .list{margin-top:20px}
  .list button{padding:14px}
  .big-in{font-size:20px}
  .shots{grid-template-columns:repeat(3,1fr)}
  .wiz-nav .count{display:none}
  .review .r{padding:12px 14px}
}
@media (max-width:380px){
  .logo{font-size:20px}
  .steps{grid-template-columns:1fr}
  .tiles{grid-template-columns:1fr 1fr}
}
@media (min-width:1600px){
  .wrap{max-width:1400px}
  body{font-size:18px}
}

/* ===== floating call button ===== */
.call-fab{position:fixed;right:20px;bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:75;display:flex;align-items:center;gap:10px;background:var(--ok);color:var(--accent-ink);text-decoration:none;border-radius:99px;padding:11px 18px 11px 14px;font:600 15px/1.15 var(--sans);box-shadow:0 14px 30px -10px rgba(0,0,0,.45)}
.call-fab small{display:block;font-weight:500;font-size:12px;opacity:.85}
.call-fab:hover{filter:brightness(1.08)}
/* ===== the questionnaire bar sticks to the bottom on every screen (v2); the call button stays
   on the right, above it =====
   --wiz-nav-height is the bar's height and --fab-height the call button's, at the default text
   size; the wizard measures both and keeps them in step when text zoom or a minimum font size
   makes them taller, so the button never covers the bar (WCAG 1.4.4). The step keeps the
   button's height and a gap above and below it clear at its end, so the button never covers
   the step's last control either. */
body.wizard-mode{--fab-gap:24px;--fab-height:53px;--wiz-nav-height:73px}
.wiz-main{padding-bottom:0}
.wiz-nav{position:sticky;bottom:0;z-index:5;background:var(--paper);border-top:1px solid var(--line);margin:0 calc(-1*clamp(20px,5vw,64px));padding:14px clamp(20px,5vw,64px) calc(14px + env(safe-area-inset-bottom,0px));max-width:none}
body.wizard-mode .wiz-stage{padding-bottom:calc(var(--fab-height) + 2 * var(--fab-gap))}
body.wizard-mode .call-fab{display:flex!important;left:auto;right:20px;bottom:calc(var(--wiz-nav-height) + var(--fab-gap))}
.drawer.open~.call-fab,.call-fab.under{visibility:hidden}
@media (max-width:640px){
  .call-fab{padding:14px;right:16px;bottom:calc(82px + env(safe-area-inset-bottom,0px))}
  .call-fab span{display:none}
  .wiz-nav{margin:0 -18px;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px))}
  body.wizard-mode .call-fab{right:16px}
}
/* ===== header CTA appears only after the hero button scrolls away ===== */
.nav-cta{opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .25s,transform .25s,visibility .25s}
.nav-cta.show,body:is(.about-mode,.terms-mode) .nav-cta{opacity:1;visibility:visible;transform:none}

/* ===== terms and 404 pages (spec 5.9, 5.14), built from the about view's parts ===== */
.legal{max-width:760px}
.legal h3{margin-top:40px}
.legal .sec-head+h3{margin-top:0}
.legal p,.legal li{color:var(--muted);margin-top:12px}
.legal .lede{margin-top:0}
.legal ul{margin:0;padding-left:22px}
.nf h1{font-size:clamp(44px,6.4vw,84px);max-width:16ch;margin-bottom:18px}
.nf-go{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}

/* ===== v2's additions (src/RepairMyDiamond-design-v2.html, end of its style block) =====
   As v2 writes them, except: the hero photo is a served file, not base64 (v2 spec 4); the call
   button keeps white text on v2's green, which the dark theme's --accent-ink would not; and
   rules for markup the site doesn't have are left out (the single-page view switching and v2's
   unused footer contact panel). v2's wizard rules (the insurance and liability box, the sticky
   questionnaire bar) sit with the wizard's own above. */

/* ===== skip link ===== */
.skip-link{position:fixed;left:16px;top:calc(12px + env(safe-area-inset-top,0px));z-index:300;background:var(--ink);color:var(--paper);padding:12px 18px;border-radius:10px;font:600 15px var(--sans);text-decoration:none;transform:translateY(-200%);transition:transform .15s}
.skip-link:focus{transform:none}

/* ===== liability ===== */
.liab{display:grid;grid-template-columns:auto 1fr;gap:22px;margin-top:56px;padding:32px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:18px;background:var(--surface)}
.liab-ic{width:56px;height:56px;border-radius:14px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.liab h3{font-size:28px}
.liab p{color:var(--muted);margin-top:12px;max-width:78ch;font-size:16px}
.liab-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
@media (max-width:640px){.liab{grid-template-columns:1fr;padding:22px;gap:14px}.liab h3{font-size:24px}.liab-actions .btn{width:100%;justify-content:center}}

.hero-photo{left:34%!important;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22%);mask-image:linear-gradient(90deg,transparent 0,#000 22%)}
.hero:has(.hero-photo) .hero-bg::after{background:linear-gradient(90deg,rgba(11,19,34,.96) 0%,rgba(11,19,34,.75) 38%,rgba(11,19,34,.12) 70%,rgba(11,19,34,.25) 100%)}
@media (max-width:900px){
  .hero-photo{left:0!important;bottom:46%!important;-webkit-mask-image:linear-gradient(180deg,#000 70%,transparent 100%);mask-image:linear-gradient(180deg,#000 70%,transparent 100%)}
  .hero:has(.hero-photo) .hero-bg::after{background:linear-gradient(180deg,rgba(11,19,34,.1) 0%,rgba(11,19,34,.2) 40%,rgba(11,19,34,.97) 62%)}
  .hero .wrap{align-content:end}
}
.intro .ph{opacity:.7}

/* ===== accessibility layer ===== */
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.hero :focus-visible,.intro :focus-visible,footer :focus-visible,.ab-hero :focus-visible,.ab-cta :focus-visible,.door :focus-visible,.partner :focus-visible,.call-fab:focus-visible,.launcher:focus-visible{outline-color:#fff;box-shadow:0 0 0 6px rgba(8,14,24,.85)}
main:focus,[tabindex="-1"]:focus{outline:none}
.ba:focus-within{outline:3px solid var(--accent);outline-offset:4px}
.ba:focus-within .knob{box-shadow:0 0 0 4px var(--accent),0 8px 24px rgba(0,0,0,.35)}
.call-fab{background:#17694A;color:#fff}
.call-fab small{opacity:1}
@media (forced-colors:active){.btn,.chips button,.list button,.tiles button,.chipset button{border:1px solid ButtonText}.reveal{opacity:1;transform:none}}

/* ===== phones mirror the desktop site: same images, labels and buttons ===== */
@media (max-width:900px){
  .ba-list{flex-direction:column;overflow:visible}
  .ba-list button{min-width:0}
}
@media (max-width:640px){
  .call-fab{padding:10px 14px 10px 12px;border-radius:99px;right:16px;bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .call-fab span{display:block;font-size:14px}
  .call-fab small{font-size:11px}
  .launcher{padding:12px 16px 12px 14px;border-radius:99px;right:16px}
  .launcher span{display:inline;font-size:14px}
  .nav .nav-cta{display:inline-flex;padding:10px 14px;font-size:14px}
}
@media (max-width:430px){
  .logo{font-size:18px;gap:6px;min-width:0}.logo svg{width:22px;height:22px}
  .wrap.nav{padding:0 14px}
  .nav{gap:6px}.nav-r{gap:6px;flex:none}
  .nav .nav-cta{padding:9px 11px;font-size:13px;white-space:nowrap}
  .menu-btn{width:42px;height:42px;flex:none}
}
@media (max-width:380px){
  .logo{font-size:16.5px}.logo svg{width:20px;height:20px}
  .nav .nav-cta{padding:8px 10px;font-size:12.5px}
}
@media (max-width:369px){
  .nav .nav-cta{display:none}
}

/* ===== works without JavaScript ===== */
html:not(.js) .intro,html:not(.js) .launcher,html:not(.js) .drawer,html:not(.js) #startView,html:not(.js) .menu-btn{display:none!important}
html:not(.js) .nav-cta{opacity:1;visibility:visible;transform:none}
@media (max-width:1040px){html:not(.js) .m-menu[hidden]{display:flex;flex-direction:row;gap:18px;overflow-x:auto;padding:10px 18px;white-space:nowrap}html:not(.js) .m-menu a:not(.btn){font-size:14px;padding:4px 0;border:0}html:not(.js) .m-menu .btn{display:none}}
.nojs{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:18px;padding:28px;margin-top:20px}
.nojs h2{font-size:30px}
.nojs p{color:var(--muted);margin:10px 0 18px}
.nojs div{display:flex;gap:10px;flex-wrap:wrap}

/* ===== hero photo (one file, used by the hero and the intro; preloaded by the home page) ===== */
.hero-img{position:absolute;inset:0;background:#0B1322 url("/img/v2/hero.jpg") center/cover no-repeat;transform:scaleX(-1)}
.hero-photo .hero-img{background-position:40% 45%}
@media (max-width:900px){.hero-photo .hero-img{background-position:2% 40%}}
.intro .ph .hero-img{background-position:30% 45%}
/* ===== process illustrations: the step icons carry their own numbers ===== */
.steps .ph.illus{aspect-ratio:1/1;background:#F4F3EF}
.steps .ph.illus::before{content:none}
.steps .ph.illus>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
