@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --navy: #071723;
  --navy-2: #0d2638;
  --paper: #f3f4ef;
  --white: #fff;
  --yellow: #ffd84d;
  --blue: #2d6bff;
  --ink: #101923;
  --muted: #657078;
  --line: rgba(16, 25, 35, .15);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", system-ui, sans-serif; }
body.lock { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, .press, .btn, .repair-card { transition: transform 140ms var(--ease-out); }
button:active, .press:active, .btn:active, .repair-card:active { transform: scale(.97); }
h1, h2, h3, p { margin-top: 0; }
.skip { position: fixed; z-index: 200; left: 16px; top: 12px; padding: 10px 14px; color: var(--navy); background: var(--yellow); transform: translateY(-160%); transition: transform 160ms var(--ease-out); }
.skip:focus { transform: translateY(0); }

header { position: absolute; z-index: 30; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; padding: 0 clamp(20px, 4vw, 64px); color: var(--white); transition: background-color 180ms ease, backdrop-filter 180ms ease; }
header.fixed { position: fixed; min-height: 70px; background: rgba(7, 23, 35, .78); backdrop-filter: blur(22px) saturate(160%); border-bottom: 1px solid rgba(255,255,255,.12); }
.logo { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.logo-mark { position: relative; display: block; width: 38px; aspect-ratio: .72; border: 2px solid currentColor; border-radius: 8px; }
.logo-mark::before { content: ""; position: absolute; top: 4px; left: 50%; width: 9px; height: 2px; border-radius: 2px; background: currentColor; transform: translateX(-50%); }
.logo-mark i { position: absolute; right: 5px; bottom: 5px; width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }
.logo > span:last-child { display: grid; }
.logo b { font-size: 15px; line-height: 1; letter-spacing: .18em; }
.logo small { margin-top: 4px; font-size: 7px; font-weight: 600; letter-spacing: .18em; opacity: .68; }
header nav { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 12px; font-weight: 500; }
header nav a, footer a { transition: opacity 140ms ease, transform 140ms var(--ease-out); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.header-estimate { min-height: 42px; padding: 0 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: var(--white); background: rgba(255,255,255,.08); backdrop-filter: blur(14px); cursor: pointer; font-size: 11px; font-weight: 600; }
.menu { display: none; width: 44px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.1); cursor: pointer; }
.menu i { display: block; width: 15px; height: 1px; margin: 4px auto; background: currentColor; transition: transform 180ms var(--ease-out); }
.menu[aria-expanded="true"] i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.mobile-nav { position: fixed; z-index: 25; inset: 0; display: grid; align-content: center; gap: 18px; padding: 90px 28px 40px; color: var(--white); background: rgba(7, 23, 35, .97); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: transform 220ms var(--ease-out), opacity 160ms ease; }
.mobile-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav a { font-family: "Instrument Serif", serif; font-size: 3rem; line-height: 1; }
.mobile-nav button { min-height: 54px; margin-top: 14px; border: 0; border-radius: 14px; background: var(--yellow); cursor: pointer; font-weight: 700; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; padding: 120px clamp(24px, 7vw, 112px) 70px; color: var(--white); background: var(--navy); }
.hero-image, .hero-overlay { position: absolute; inset: 0; }
.hero-image { background: url('./assets/pronto-lab-hero.jpg') 50% 50% / cover no-repeat; }
.hero-overlay { background: linear-gradient(90deg, rgba(7,23,35,.98) 0%, rgba(7,23,35,.9) 28%, rgba(7,23,35,.28) 62%, rgba(7,23,35,.08) 100%), linear-gradient(0deg, rgba(7,23,35,.45), transparent 45%); }
.hero-copy { position: relative; z-index: 2; width: min(670px, 54vw); }
.eyebrow { margin-bottom: 22px; font-size: 10px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 25px; height: 1px; margin: 0 10px 3px 0; background: currentColor; }
.eyebrow.dark { color: #5b6770; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.04em; }
h1 { max-width: 720px; margin-bottom: 28px; font-size: clamp(4rem, 7.5vw, 8rem); line-height: .83; }
h1 em { color: var(--yellow); font-weight: 400; }
.hero-text { max-width: 610px; margin-bottom: 32px; color: rgba(255,255,255,.72); font-size: clamp(.98rem, 1.3vw, 1.17rem); line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; min-height: 54px; padding: 0 22px; align-items: center; justify-content: center; gap: 28px; border: 0; border-radius: 13px; cursor: pointer; font-size: 12px; font-weight: 700; }
.btn.yellow { color: var(--navy); background: var(--yellow); }
.btn.glass { color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(14px); }
.btn.navy { color: var(--white); background: var(--navy); }
.today-card { position: absolute; z-index: 3; right: clamp(24px, 5vw, 80px); bottom: 56px; display: grid; min-width: 220px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(7,23,35,.6); backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.today-card span { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.today-card b { margin-top: 5px; font-family: "Instrument Serif", serif; font-size: 26px; font-weight: 400; }
.today-card small { margin-top: 3px; opacity: .68; }
.today-card i { position: absolute; top: 22px; right: 22px; width: 8px; aspect-ratio: 1; border-radius: 50%; background: #52e389; box-shadow: 0 0 0 5px rgba(82,227,137,.13); }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); color: var(--white); background: var(--blue); }
.proof div { display: grid; gap: 6px; padding: 28px clamp(20px, 3vw, 44px); border-right: 1px solid rgba(255,255,255,.18); }
.proof div:last-child { border-right: 0; }
.proof strong { font-family: "Instrument Serif", serif; font-size: clamp(2rem, 3vw, 3.4rem); font-weight: 400; line-height: 1; }
.proof span { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }

.repairs { padding: clamp(80px, 10vw, 150px) clamp(18px, 5vw, 80px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: end; gap: 40px; margin-bottom: 56px; }
.section-head h2, .method h2, .warranty h2, .store h2 { margin-bottom: 0; font-size: clamp(3.2rem, 6vw, 6.3rem); line-height: .88; }
.section-head > p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.65; }
.repair-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.repair-card { position: relative; min-height: 340px; display: grid; align-content: space-between; padding: 24px; text-align: left; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; overflow: hidden; }
.repair-index { font-size: 10px; font-weight: 700; letter-spacing: .14em; opacity: .45; }
.repair-copy { display: grid; gap: 6px; }
.repair-copy b { font-family: "Instrument Serif", serif; font-size: 2.5rem; font-weight: 400; }
.repair-copy small { color: var(--muted); font-size: 12px; }
.arrow { position: absolute; right: 24px; bottom: 31px; font-size: 20px; }
.repair-icon { position: absolute; left: 50%; top: 48%; display: block; width: 94px; height: 138px; border: 3px solid var(--navy); border-radius: 18px; transform: translate(-50%, -50%) rotate(-6deg); transition: transform 220ms var(--ease-out); }
.repair-card:nth-child(even) .repair-icon { transform: translate(-50%, -50%) rotate(6deg); }
.repair-icon::before { content: ""; position: absolute; top: 7px; left: 50%; width: 24px; height: 4px; border-radius: 4px; background: var(--navy); transform: translateX(-50%); }
.repair-icon i { position: absolute; inset: 20px 8px 9px; border-radius: 10px; background: #dce8ff; }
.repair-icon.screen i { background: linear-gradient(135deg, #dce8ff 48%, var(--blue) 49% 51%, #dce8ff 52%); }
.repair-icon.battery i::before { content: ""; position: absolute; left: 15px; right: 15px; bottom: 16px; height: 62%; border: 2px solid var(--navy); border-radius: 5px; background: var(--yellow); }
.repair-icon.port i::before { content: ""; position: absolute; left: 20px; right: 20px; bottom: 9px; height: 10px; border: 2px solid var(--navy); border-radius: 4px; }
.repair-icon.camera i::before { content: ""; position: absolute; left: 12px; top: 12px; width: 32px; aspect-ratio: 1; border: 7px solid var(--navy); border-radius: 50%; box-shadow: 34px 0 0 -7px #dce8ff, 34px 0 0 -2px var(--navy); }
.repair-icon.audio i::before, .repair-icon.audio i::after { content: ""; position: absolute; left: 18px; right: 18px; height: 3px; border-radius: 3px; background: var(--navy); box-shadow: 0 10px var(--navy), 0 20px var(--navy); }
.repair-icon.audio i::before { top: 30px; transform: rotate(18deg); }.repair-icon.audio i::after { top: 62px; transform: rotate(-18deg); }
.repair-card.diagnostic { color: var(--white); background: var(--navy); }
.diagnostic-mark { position: absolute; left: 50%; top: 46%; display: grid; width: 120px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: var(--yellow); font-family: "Instrument Serif", serif; font-size: 5rem; transform: translate(-50%, -50%); box-shadow: 0 0 0 24px rgba(255,255,255,.04), 0 0 0 48px rgba(255,255,255,.025); }
.diagnostic .repair-index, .diagnostic .repair-copy small { color: rgba(255,255,255,.6); }

.method { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 130px); padding: clamp(90px, 11vw, 160px) clamp(24px, 7vw, 110px); color: var(--white); background: var(--navy); }
.method h2 em { color: var(--yellow); font-weight: 400; }
.steps { border-top: 1px solid rgba(255,255,255,.2); }
.steps article { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.steps article > span { color: var(--yellow); font-family: "Instrument Serif", serif; font-size: 2rem; }
.steps h3 { margin-bottom: 8px; font-family: "Instrument Serif", serif; font-size: 2rem; font-weight: 400; }
.steps p { max-width: 470px; margin: 0; color: rgba(255,255,255,.6); line-height: 1.55; }

.warranty { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 760px; }
.warranty-visual { position: relative; display: grid; place-content: center; overflow: hidden; color: var(--navy); background: var(--yellow); text-align: center; }
.warranty-visual span { font-family: "Instrument Serif", serif; font-size: clamp(11rem, 23vw, 25rem); line-height: .7; letter-spacing: -.07em; }
.warranty-visual small { margin-top: 28px; font-size: 12px; font-weight: 700; letter-spacing: .5em; }
.warranty-visual i { position: absolute; width: 64%; aspect-ratio: 1; left: 18%; top: 13%; border: 1px solid rgba(7,23,35,.2); border-radius: 50%; box-shadow: 0 0 0 44px rgba(7,23,35,.05), 0 0 0 88px rgba(7,23,35,.035); }
.warranty-copy { display: grid; align-content: center; padding: clamp(60px, 8vw, 130px); }
.warranty-copy > p:not(.eyebrow) { max-width: 590px; margin: 30px 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.warranty-copy ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.warranty-copy li { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.warranty-copy li span { display: grid; width: 24px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--navy); color: var(--yellow); font-size: 11px; }

.store { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 720px; color: var(--white); background: var(--blue); }
.store-copy { display: grid; align-content: center; padding: clamp(70px, 9vw, 140px); }
.store h2 em { color: var(--yellow); font-weight: 400; }
.store-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 38px 0; }
.store-details p { margin: 0; line-height: 1.6; }
.store-details small { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; opacity: .58; }
.store .btn { width: fit-content; }
.store-art { position: relative; display: grid; place-items: center; overflow: hidden; background: #174fce; }
.store-phone { position: relative; width: 44%; max-width: 240px; aspect-ratio: .55; border: 8px solid var(--white); border-radius: 40px; transform: rotate(8deg); box-shadow: 30px 40px 0 rgba(7,23,35,.2); }
.store-phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 58px; height: 14px; border-radius: 14px; background: var(--white); transform: translateX(-50%); }
.store-phone i { position: absolute; inset: 22px 10px 12px; border-radius: 25px; background: linear-gradient(160deg, var(--yellow), #ff9f4a); }
.store-pin { position: absolute; right: 12%; bottom: 12%; display: grid; width: 92px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-family: "Instrument Serif", serif; font-size: 2.8rem; }

footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding: 42px clamp(24px, 5vw, 80px); color: rgba(255,255,255,.7); background: var(--navy); font-size: 11px; }
.footer-logo { color: var(--white); }
footer > div { display: flex; flex-wrap: wrap; align-content: center; gap: 14px 24px; }
footer > div:last-child { justify-content: flex-end; text-align: right; }
footer p { width: 100%; margin: 0; font-size: 9px; opacity: .5; }

dialog { padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 32px 100px rgba(0,0,0,.35); opacity: 0; transform: scale(.96) translateY(8px); transition: transform 220ms var(--ease-drawer), opacity 160ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete; }
dialog[open] { opacity: 1; transform: scale(1) translateY(0); }
dialog::backdrop { background: rgba(3,13,21,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open] { opacity: 0; transform: scale(.96) translateY(8px); } dialog[open]::backdrop { opacity: 0; } }
.dialog-close { position: absolute; z-index: 4; right: 18px; top: 18px; display: grid; width: 42px; aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.75); cursor: pointer; font-size: 22px; }
.estimate-dialog { width: min(920px, calc(100% - 32px)); border-radius: 24px; overflow: hidden; }
.estimate-dialog[open] { display: grid; grid-template-columns: .78fr 1.22fr; }
.dialog-intro { position: relative; display: grid; align-content: end; min-height: 650px; padding: 34px; color: var(--white); background: var(--navy); overflow: hidden; }
.dialog-intro > p { position: relative; z-index: 2; margin-bottom: 12px; font-family: "Instrument Serif", serif; font-size: 3rem; line-height: .9; }
.dialog-intro > small { position: relative; z-index: 2; color: rgba(255,255,255,.55); line-height: 1.5; }
.mini-phone { position: absolute; left: 50%; top: 38px; width: 135px; aspect-ratio: .56; border: 5px solid var(--white); border-radius: 24px; transform: translateX(-50%) rotate(-8deg); box-shadow: 16px 20px 0 rgba(45,107,255,.65); }
.mini-phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 8px; border-radius: 8px; background: var(--white); transform: translateX(-50%); }
.mini-phone i { position: absolute; inset: 17px 6px 7px; border-radius: 15px; background: var(--yellow); }
.dialog-main { padding: 58px clamp(28px, 5vw, 70px) 42px; }
.dialog-main h2, .booking-dialog h2 { margin-bottom: 30px; font-size: clamp(2.7rem, 5vw, 4.7rem); line-height: .88; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #4f5b63; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
label > span { font-weight: 500; opacity: .55; }
input, select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: var(--white); font-size: 14px; letter-spacing: 0; text-transform: none; transition: border-color 140ms ease, box-shadow 140ms ease; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,107,255,.12); }
.quote { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; margin: 5px 0; padding: 17px 18px; border-radius: 12px; color: var(--white); background: var(--blue); }
.quote span { grid-column: 1 / -1; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .66; }
.quote strong { font-family: "Instrument Serif", serif; font-size: 2.3rem; font-weight: 400; }
.quote small { padding-bottom: 7px; opacity: .72; }
.dialog-main .btn, .booking-dialog .btn { width: 100%; }
.booking-dialog { width: min(620px, calc(100% - 32px)); padding: clamp(32px, 5vw, 58px); border-radius: 24px; }
.booking-head > p:last-child { margin: -14px 0 28px; color: var(--blue); font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; }
.consent input { width: 18px; min-height: 18px; accent-color: var(--blue); }
.consent span { opacity: 1; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; min-width: min(430px, calc(100% - 32px)); padding: 15px 20px; border-radius: 999px; color: var(--white); background: var(--navy); box-shadow: 0 18px 50px rgba(0,0,0,.25); text-align: center; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 120%); transition: transform 220ms var(--ease-out), opacity 140ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 260ms ease, transform 260ms var(--ease-out); }
.reveal.show { opacity: 1; transform: translateY(0); }

@media (hover: hover) and (pointer: fine) {
  header nav a:hover, footer a:hover { opacity: .62; }
  .repair-card:hover .repair-icon { transform: translate(-50%, -53%) rotate(-3deg) scale(1.04); }
  .repair-card:nth-child(even):hover .repair-icon { transform: translate(-50%, -53%) rotate(3deg) scale(1.04); }
  .repair-card:hover .arrow { transform: translate(2px, -2px); }
}

@media (max-width: 960px) {
  header { grid-template-columns: 1fr auto; }
  header nav, .header-estimate { display: none; }
  .menu { display: block; color: var(--white); }
  .hero-copy { width: min(720px, 80vw); }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof div:nth-child(2) { border-right: 0; }
  .proof div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .repair-grid { grid-template-columns: repeat(2, 1fr); }
  .method, .warranty, .store { grid-template-columns: 1fr; }
  .warranty-visual { min-height: 560px; }
  .store-art { min-height: 620px; order: -1; }
  footer { grid-template-columns: 1fr; }
  footer > div:last-child { justify-content: flex-start; text-align: left; }
}

@media (max-width: 680px) {
  header { min-height: 72px; padding: 0 18px; }
  .logo-mark { width: 32px; }
  .hero { min-height: 100svh; padding: 108px 24px 42px; align-items: end; }
  .hero-image { background-position: 62% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(7,23,35,.98) 5%, rgba(7,23,35,.78) 58%, rgba(7,23,35,.25) 100%); }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(3.8rem, 17vw, 5.1rem); }
  .hero-text { font-size: .93rem; }
  .hero-cta { display: grid; }
  .btn { width: 100%; }
  .today-card { display: none; }
  .proof div { padding: 22px 20px; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .repair-grid { grid-template-columns: 1fr; }
  .repair-card { min-height: 315px; }
  .method { padding-left: 22px; padding-right: 22px; }
  .steps article { grid-template-columns: 48px 1fr; }
  .warranty { min-height: auto; }
  .warranty-visual { min-height: 430px; }
  .warranty-copy { padding: 70px 24px; }
  .store-art { min-height: 500px; }
  .store-copy { padding: 70px 24px; }
  .store-details { grid-template-columns: 1fr; }
  .estimate-dialog[open] { display: block; }
  .dialog-intro { display: none; }
  .dialog-main { padding: 58px 22px 24px; }
  .booking-dialog { padding: 56px 22px 24px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 38px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .mobile-nav, dialog, .toast { transition: opacity 150ms ease; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  header.fixed, .header-estimate, .btn.glass, .today-card { background: var(--navy); backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  header.fixed { background: var(--navy); border-bottom: 2px solid var(--white); }
  input, select { border: 2px solid var(--ink); }
}
