/* Dary Payments: shared styles for pay, success and cancel.
   Mirrors the darytechnologies.com redesign tokens (2026-09). */

@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/manrope-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;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #1C2B5A; --navy-deep: #101A3D; --blue: #1F4EF5; --blue-soft: #8FA7FF;
  --coral: #FF5A4F; --coral-deep: #D8382D; --paper: #F6F7FB; --white: #FFFFFF;
  --ink: #141A33; --ink-soft: #5B6480; --line: #E6E8F0; --good: #0F8A5F;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 2px 4px rgba(20, 26, 51, .06), 0 24px 60px rgba(16, 26, 61, .18);
  --font: 'Manrope', -apple-system, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--blue); text-underline-offset: 3px; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* Header: same as the main site */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); height: 80px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { display: block; height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--navy); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.btn-pill { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--coral-deep); color: var(--white) !important; font-weight: 700; }
.btn-pill:hover { background: #C4301F; }
@media (max-width: 760px) { .site-nav .nav-link { display: none; } .brand img { height: 44px; } }

/* Navy band with static shaded gears */
.band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); padding: 56px 0 128px; }
.band-inner { position: relative; z-index: 1; }
.band-inner > * { max-width: 640px; }
.band h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--white); }
.band p { margin: 0; color: #CFD6EA; max-width: 56ch; }
.band p strong { color: var(--white); }
.band-gears { position: absolute; inset: 0; pointer-events: none; }
.band-gears svg { position: absolute; }
.band-gears .g1 { width: 220px; height: 220px; right: 4%; top: -60px; opacity: .55; }
.band-gears .g2 { width: 96px; height: 96px; right: 22%; bottom: 36px; }
.band-gears .g3 { width: 64px; height: 64px; right: 6%; bottom: 60px; }
@media (max-width: 760px) { .band { padding: 40px 0 112px; } .band-gears .g1 { width: 140px; height: 140px; right: -30px; top: -40px; opacity: .35; } .band-gears .g2, .band-gears .g3 { display: none; } }

/* Status mark on success / cancel */
.status { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px; }
.status svg { width: 28px; height: 28px; }
.status-good { background: #E3F7EE; color: var(--good); }
.status-neutral { background: rgba(143, 167, 255, .18); color: var(--blue-soft); }

/* The card overlaps the band */
.card-area { margin-top: -88px; position: relative; z-index: 2; padding-bottom: 56px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 640px; }
.card h2 { margin: 0 0 12px; font-size: 1.25rem; color: var(--navy); }
.card p { margin: 0 0 12px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--ink); }
@media (max-width: 560px) { .card { padding: 22px 18px; } }

/* Form */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .875rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); }
.field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: var(--white); }
.field input::placeholder { color: #8A92AB; }
.hint { display: block; font-size: .8125rem; color: var(--ink-soft); margin-top: 6px; }
.optional { font-weight: 500; color: var(--ink-soft); }

.amount-field { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.amount-wrap { display: flex; align-items: baseline; gap: 6px; border-bottom: 2px solid var(--navy); padding: 4px 2px 6px; }
.amount-wrap:focus-within { border-bottom-color: var(--blue); }
.amount-prefix { font-size: 2.25rem; font-weight: 800; color: var(--navy); line-height: 1; }
.field input.amount { border: 0; background: transparent; padding: 0; font-size: 2.75rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.field input.amount:focus { outline: none; background: transparent; }

.btn-pay { position: relative; width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 16px 22px; border: 0; border-radius: var(--radius-sm); background: var(--coral-deep); color: var(--white); font: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(216, 56, 45, .28); transition: background-color .15s ease, transform .15s ease; }
.btn-pay:hover:not(:disabled) { background: #C4301F; transform: translateY(-1px); }
.btn-pay:disabled { cursor: progress; opacity: .85; }
.btn-pay .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.btn-pay.loading .label-default { display: none; }
.btn-pay.loading .label-loading { display: inline; }
.btn-pay .label-loading { display: none; }
.btn-pay.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice.error { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #FDECEA; color: #9B1C12; border: 1px solid #F5C2BC; font-size: .9375rem; }
.notice.error.show { display: block; }

.trust { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

.methods { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.methods .label { font-size: .8125rem; color: var(--ink-soft); margin-right: 4px; }
.methods img { display: block; height: 20px; width: auto; }
.methods span.chip { display: inline-flex; padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }

.below-note { max-width: 640px; margin: 20px 0 0; font-size: .9375rem; color: var(--ink-soft); }

/* Success / cancel */
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.next-steps li { position: relative; padding-left: 36px; margin-bottom: 14px; color: var(--ink-soft); }
.next-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: #EEF2FF; color: var(--blue); font-weight: 800; font-size: .8125rem; display: grid; place-items: center; }
.next-steps li:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--coral-deep); color: var(--white); }
.btn-primary:hover { background: #C4301F; }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { background: #EEF2FF; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #AAB4D0; font-size: .875rem; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: #E6ECFF; text-decoration: none; }
.site-footer a:hover { color: var(--blue-soft); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
