/* Brand values and shared component dimensions follow index.html. */
:root {
  --oxford: #04172E;
  --oxford-deep: #030E1C;
  --sky: #0077B6;
  --capri: #13B2F7;
  --emerald: #39D08A;
  --blizzard: #ADE8F4;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-mid: #6B7280;
  --gray-dark: #374151;
  --border: #E5E7EB;
  --input-border: #8290A2;
  --capri-tint: #F0F9FF;
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--white); color: var(--oxford); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[hidden] { display: none !important; }
a { color: var(--sky); text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
p { line-height: 1.7; }
p + p { margin-top: 16px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
:is(h2, textarea, input, #request) { scroll-margin-top: 120px; }
.skip-link { position: absolute; top: -100%; left: 16px; z-index: 9999; padding: 10px 18px; background: var(--emerald); color: var(--oxford); font-size: 14px; font-weight: 700; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* Homepage navigation. */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 22px 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease; }
nav.scrolled { background: rgba(4,23,46,0.93); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 1px; background: var(--capri); transform: scaleX(0); transform-origin: left center; transition: transform 0.28s var(--ease-out-strong); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links .nav-cta { display: inline-flex; align-items: center; padding: 12px 22px; border: 1.5px solid var(--capri); border-radius: 7px; color: var(--capri); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; transition: background 0.2s, color 0.2s, transform 0.15s var(--ease-out-strong); }
.nav-links .nav-cta:hover { background: var(--capri); color: var(--oxford); }
.nav-cta:active { transform: scale(0.97); transition-duration: 100ms; }
nav :focus-visible { outline-color: var(--capri); }

/* Full-width hero uses the homepage's backdrop, type scale, and gutters. */
.hero { min-height: 100vh; background: linear-gradient(rgba(4,23,46,0.8),rgba(4,23,46,0.8)), var(--oxford) url('/backdrop.webp') center / cover no-repeat; padding: 140px 64px 100px clamp(40px, calc(20vw - 131px), 250px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.intro { max-width: 540px; color: rgba(255,255,255,0.7); }
.overline { display: block; text-transform: uppercase; color: var(--capri); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; margin-bottom: 16px; line-height: 1.7; }
h1 { font-size: clamp(42px, 4.8vw, 66px); font-weight: 800; color: var(--white); line-height: 1.07; letter-spacing: -0.025em; margin-bottom: 22px; }
h1 span { color: var(--capri); }
.intro .lead { font-size: 18px; font-weight: 400; line-height: 1.7; max-width: 440px; margin-bottom: 32px; }
.intro > p:not(.overline):not(.lead) { font-size: 15px; line-height: 1.72; }
.examples { margin: 32px 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.examples h2 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.examples p { font-size: 14px; line-height: 1.72; }
.small { font-size: 13px !important; }

/* Request card follows the service cards; form controls retain AA contrast. */
.workspace { width: 100%; max-width: 760px; min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 36px; box-shadow: 0 1px 3px rgba(4,23,46,0.06), 0 4px 14px rgba(4,23,46,0.05); }
.steps { list-style: none; display: flex; justify-content: space-between; gap: 16px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.steps li { display: flex; align-items: center; gap: 9px; color: var(--gray-mid); font-size: 12px; font-weight: 500; line-height: 1.4; }
.steps span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--off-white); font-size: 11px; font-weight: 700; }
.steps [aria-current] { color: var(--oxford); font-weight: 700; }
.steps [aria-current] span { background: var(--oxford); color: var(--capri); }
.panel h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 16px; }
.panel > div > p, #form-help { font-size: 15px; color: var(--gray-mid); line-height: 1.72; }
fieldset { border: 0; margin: 28px 0 0; min-width: 0; }
label { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; margin: 24px 0 8px; }
label:first-child { margin-top: 0; }
textarea, input:not([type=checkbox]) { display: block; width: 100%; padding: 14px 16px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--white); color: var(--oxford); font-size: 16px; line-height: 1.55; }
textarea { resize: vertical; min-height: 84px; }
textarea::placeholder { color: var(--gray-mid); opacity: 1; }
textarea:focus, input:focus { border-color: var(--sky); }
textarea[readonly], input[readonly] { background: var(--off-white); }
.hint { font-size: 12px; color: var(--gray-mid); margin-top: 8px; }
.actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.btn-emerald { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 30px; background: var(--emerald); color: var(--oxford); border: 0; border-radius: 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; transition: transform 0.22s var(--ease-out-strong), box-shadow 0.22s var(--ease-out-strong); }
.btn-emerald:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(57,208,138,0.28); }
.btn-emerald:active { transform: scale(0.97); transition-duration: 120ms; }
.btn-arrow { flex-shrink: 0; transition: transform 0.22s ease; }
.btn-emerald:hover .btn-arrow { transform: translateX(4px); }
.text-button { border: 0; background: transparent; color: var(--sky); font-size: 13px; font-weight: 600; padding: 12px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
button:disabled { opacity: 0.6; cursor: wait; }
.privacy-note { font-size: 12px !important; line-height: 1.75; color: var(--gray-mid); margin-top: 24px; }
.storage-note { margin: 20px 0 0; color: rgba(255,255,255,0.7); font-size: 12px; line-height: 1.7; }
#conversation { list-style: none; }
#conversation li { margin-top: 20px; padding: 20px; background: var(--capri-tint); border-radius: 10px; font-size: 14px; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
#conversation li[data-role=user] { background: var(--off-white); }
#conversation strong { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--gray-mid); margin-bottom: 8px; }
#status:not(:empty), .notice { margin-bottom: 24px; padding: 14px 16px; border-radius: 8px; background: var(--capri-tint); color: var(--oxford); font-size: 12px; line-height: 1.7; }
#error { margin-bottom: 24px; padding: 14px 16px; border: 1px solid #D79D9D; border-radius: 8px; background: #FFF4F3; color: #922C28; font-size: 13px; line-height: 1.7; }
#verification { margin-top: 20px; font-size: 13px; line-height: 1.7; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.confirmation { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; font-weight: 500; line-height: 1.6; }
input[type=checkbox] { flex-shrink: 0; margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--sky); }
.receipt-id { padding: 24px 0; font-size: 13px !important; overflow-wrap: anywhere; }
#receipt-view .btn-emerald { margin-top: 28px; }
#receipt-view .overline { color: var(--sky); }

/* Homepage footer. */
footer { background: var(--oxford-deep); padding: 72px 64px 32px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(190px,0.9fr) repeat(2,minmax(190px,1fr)); gap: clamp(32px,4.5vw,64px); align-items: start; }
.footer-logo img { height: 32px; width: auto; display: block; margin-bottom: 32px; }
.footer-heading { font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: -0.015em; margin-bottom: 12px; }
.footer-email, .office-phone { color: rgba(255,255,255,0.64); text-decoration: none; transition: color 0.2s; }
.footer-email { font-size: 14px; }
.footer-email:hover, .office-phone:hover { color: var(--white); }
.office-label { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.office-name { font-size: 17px; font-weight: 600; color: var(--white); line-height: 1.4; margin-bottom: 12px; }
.office-address { font-size: 14px; font-style: normal; color: rgba(255,255,255,0.64); line-height: 1.85; }
.office-meta { display: block; margin-top: 8px; }
.footer-bottom { max-width: 1240px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.88); }
footer :focus-visible { outline-color: var(--capri); }

@media (max-width: 1200px) {
  .hero { gap: 40px; }
  .panel { padding: 28px; }
  .steps li { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1024px) {
  nav { padding: 20px 40px; }
  .hero { padding-left: 40px; padding-right: 40px; }
  footer { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 860px) {
  nav { padding: 18px 28px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 110px 28px 80px; gap: 40px;
    background: linear-gradient(160deg,rgba(19,178,247,0.07) 0%,transparent 45%,rgba(57,208,138,0.04) 100%), radial-gradient(circle at center,rgba(255,255,255,0.055) 1.5px,transparent 1.5px), var(--oxford);
    background-size: 100%,20px 20px,100%; }
  .intro, .workspace { max-width: 600px; width: 100%; margin: 0 auto; }
  h1 { font-size: 38px; }
  .steps li { flex-direction: row; align-items: center; }
  footer { padding: 56px 28px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-office { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
  .footer-bottom { margin-top: 40px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .workspace { width: calc(100% + 24px); margin-left: -12px; }
  .panel { padding: 28px 20px; }
  .steps { gap: 12px; }
  .steps li { flex-direction: column; align-items: flex-start; font-size: 11px; }
  .contact-fields { grid-template-columns: 1fr; }
  .actions { gap: 8px; }
  .btn-emerald { width: 100%; padding-left: 18px; padding-right: 18px; }
  .text-button { margin: auto; }
  .storage-note { margin-left: 12px; margin-right: 12px; }
  .footer-links { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  nav, .nav-links a, .nav-links a::after, .nav-links .nav-cta, .btn-emerald, .btn-arrow { transition: none; }
}
