/* Zemoon v5: the layout of the original zemoon.net (pills with the long arrow, underline fields) in the 2026 brand book colors and Manrope. */

:root {
  /* Brand book: Primary Blue, Fintech Teal, Deep Navy, Electric Cyan, Soft Ice, Graphite, White */
  --bg: #f3f8fc;
  --card: #fff;
  --text: #151a20;
  --blue: #0060b7;
  --teal: #00bf97;
  --cyan: #00a8e8;
  --navy: #071b33;
  --gradient: linear-gradient(90deg, var(--blue), var(--teal));
  --grey: #6f7c8b;
  --line: #dde7f0;
  --line-dark: rgba(255, 255, 255, .3);
  --error: #e5484d;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.75 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b { font-weight: 600; }
.container { width: min(1248px, 100% - 64px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip-link { position: fixed; left: 16px; top: 12px; transform: translateY(-200%); z-index: 100; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--text); font-weight: 600; transition: transform .2s; }
.skip-link:focus { transform: none; }

/* ---------- Pill buttons with the long arrow ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 32px;
  width: 294px; max-width: 100%; height: 60px; padding: 0 32px; border: 0; border-radius: 999px;
  background: var(--teal); color: var(--navy);
  font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.pill .arrow { width: 32px; height: 14px; transition: transform .4s var(--ease); }
.pill:hover .arrow { transform: translateX(8px); }
.pill:active { transform: scale(.98); }
.pill:hover { background: #33ccac; }
.pill-wide { width: auto; }
.pill[disabled] { opacity: .6; pointer-events: none; }
.pill.is-loading .btn-label::after { content: "…"; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff; transition: background .35s, height .35s var(--ease), box-shadow .35s, color .35s; }
.page-light .site-header { color: var(--navy); }
.site-header.is-scrolled { height: 72px; background: rgba(7, 27, 51, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
.page-light .site-header.is-scrolled { background: rgba(243, 248, 252, .92); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; width: min(1316px, 100% - 64px); margin-inline: auto; }
.logo { display: inline-flex; color: inherit; }
.logo img { width: 134px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav a { position: relative; padding: 6px 24px; font-size: 14px; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.nav-login { display: inline-flex; align-items: flex-start; gap: 4px; }
.nav-login svg { width: 8px; height: 8px; margin-top: 2px; }
.nav-sep { width: 1px; height: 22px; margin: 0 40px 0 48px; background: currentColor; opacity: .9; }
.nav-apply { font-weight: 500; text-decoration: none; transition: opacity .2s; }
.nav-apply:hover { opacity: .6; }
.nav-toggle { display: none; position: relative; width: 40px; height: 40px; margin-left: 16px; border: 0; background: none; }
.nav-toggle span { position: absolute; left: 5px; right: 5px; height: 1px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.float { animation: float 7s ease-in-out infinite; }
.float-slow { animation-duration: 9s; }
@keyframes float { 50% { translate: 0 -18px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 100svh; padding: 140px 0 72px; background: var(--navy); color: #fff; }
.hero-bg { position: absolute; inset: -4% 0; background: var(--navy) url(/assets/img/hero-4k.webp) center / cover no-repeat; transform: scale(1.12); animation: hero-in 2.6s var(--ease) forwards; will-change: transform; }
/* Navy scrims so white text stays readable over the bright parts of the photos */
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 27, 51, .55), transparent 65%), rgba(7, 27, 51, .4); }
@keyframes hero-in { to { transform: scale(1); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 510px; align-items: end; gap: 48px 40px; }
.hero-head { grid-column: 1 / -1; }
.kicker { margin-bottom: 24px; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hero-title { font-size: clamp(44px, 6vw, 88px); line-height: 1.06; letter-spacing: -.01em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-side { grid-column: 2; padding-bottom: 10px; }
.hero-side p { margin-bottom: 20px; }
.hero-side .hero-note { margin-bottom: 32px; font-size: 13px; line-height: 1.6; opacity: .7; }
.load { opacity: 0; animation: load .9s var(--ease) .5s forwards; }
@keyframes load { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 11vw, 160px) 0; }
.section-dark { overflow: hidden; background: var(--navy); color: #fff; }
.section-tint { background: #fff; }
.eyebrow { display: flex; align-items: center; gap: 32px; font-weight: 500; text-transform: uppercase; color: var(--blue); }
.eyebrow span { width: 20px; height: 20px; background: var(--gradient); }
.h2 { font-size: clamp(36px, 3.9vw, 56px); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); }
.h2 b { font-weight: 600; }
.text p + p { margin-top: 24px; }

.head-row { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.head-row .eyebrow { margin-top: 26px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 120px; }
.card { padding: 48px 32px 48px; border-radius: 8px; background: var(--card); transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1s var(--ease) var(--d, 0s); }
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(7, 27, 51, .25); }
.card-icon { width: auto; height: 60px; transition: transform .6s var(--ease); }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card { scroll-margin-top: 100px; }
.card h3 { margin: 40px 0 24px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.card-text { margin-bottom: 40px; }
.meaning { display: grid; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.meaning li { position: relative; padding-left: 36px; }
.meaning li::before { content: ""; position: absolute; left: 10px; top: 10px; width: 8px; height: 8px; background: var(--line); transition: background .3s; }
.card:hover .meaning li::before { background: var(--teal); }

/* About */
.about-glow { position: absolute; left: -560px; top: 62%; width: 1100px; height: 1100px; margin-top: -550px; border-radius: 50%; background: radial-gradient(50% 50%, rgba(0, 96, 183, .45) 0, rgba(0, 191, 151, .12) 55%, transparent 100%); animation: glow 10s ease-in-out infinite; }
@keyframes glow { 50% { transform: translate(60px, -40px) scale(1.1); } }
.about-grid { position: relative; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 72px; }
.about-title { font-size: clamp(44px, 4.4vw, 64px); line-height: .95; }
.about-title span, .about-title b { display: block; }
.about-title span { font-weight: 300; }
.about-lead { font-size: 24px; font-weight: 500; line-height: 1.5; }
.about-text { margin-top: 40px; color: rgba(255, 255, 255, .8); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 76px; }
.about-cols > div { padding-top: 48px; border-top: 1px solid var(--line-dark); }
.about-cols h3 { margin-bottom: 28px; font-size: 20px; font-weight: 600; }
.about-cols p { font-weight: 500; line-height: 1.6; }
.reg { margin-top: 20px; color: var(--grey); text-transform: uppercase; }
.reg + .reg { margin-top: 4px; }

/* IBAN */
.iban { overflow: hidden; }
.iban-art { position: absolute; right: 0; top: 50%; width: min(602px, 42vw); margin-top: -410px; pointer-events: none; }
.iban-copy { position: relative; max-width: 612px; }
.iban .h2 { margin: 56px 0 64px; }
.iban .pill { margin-top: 60px; }

/* Payouts */
.payout { position: relative; overflow: hidden; padding: 120px 0 128px; background: linear-gradient(120deg, var(--blue) 20%, var(--cyan)); color: #fff; }
.payout-art { position: absolute; left: 0; top: 0; width: min(830px, 58vw); pointer-events: none; }
.payout-inner { position: relative; display: flex; justify-content: flex-end; }
.payout-copy { width: min(612px, 100%); }
.payout .h2 { margin-bottom: 64px; color: #fff; }
.payout .text { font-weight: 500; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 96px; }
.industry { padding: 40px 32px; border-radius: 8px; background: var(--card); transition: background .4s var(--ease), color .4s var(--ease), opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.industry:hover { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; }
.industry-num { font-size: 14px; font-weight: 500; color: var(--blue); transition: color .4s; }
.industry:hover .industry-num { color: rgba(255, 255, 255, .7); }
.industry h3 { margin: 48px 0 8px; font-size: 20px; font-weight: 600; }

/* Process */
.process-grid { display: grid; grid-template-columns: 1fr 504px; gap: 40px; align-items: center; }
.process-head .h2 { margin: 56px 0 56px; }
.steps { display: grid; gap: 56px; }
.steps { gap: 48px; }
.steps h3 { margin-bottom: 16px; font-size: 20px; font-weight: 600; }
.steps h3 span { margin-right: 12px; font-size: 16px; font-weight: 500; color: var(--blue); }

/* Contact */
.contact-wrap { padding: 0 30px 30px; }
.contact { position: relative; overflow: hidden; border-radius: 10px; color: #fff; }
.contact-bg { position: absolute; inset: 0; background: var(--navy) url(/assets/img/contact.webp) center / cover no-repeat; transition: transform 6s var(--ease); }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 27, 51, .6), rgba(7, 27, 51, .2) 70%), rgba(7, 27, 51, .3); }
.contact:hover .contact-bg { transform: scale(1.06); }
.contact-inner { position: relative; width: min(1248px, 100% - 64px); margin-inline: auto; padding: 80px 0; }
.contact .h2 { color: #fff; font-weight: 400; }
.contact-lead { max-width: 720px; margin: 48px 0 64px; font-weight: 500; }
.contact-lead p:first-child { margin-bottom: 16px; font-size: 24px; line-height: 1.5; }
.contact-form { max-width: 504px; }

/* ---------- Forms: underline fields ---------- */
.field { margin-bottom: 36px; }
.field > label:not(.check) { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.field input:not([type=checkbox]), .field textarea, .field select {
  display: block; width: 100%; padding: 6px 0 10px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  background: transparent; font-size: 20px; line-height: 1.4; outline: none; transition: border-color .3s; resize: vertical;
}
.contact .field input, .contact .field textarea, .contact .field select { border-color: rgba(255, 255, 255, .6); color: #fff; }
.field ::placeholder { color: currentColor; opacity: .45; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.contact .field input:focus, .contact .field textarea:focus, .contact .field select:focus { border-color: #fff; box-shadow: 0 1px 0 #fff; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 8px; }
.field select:invalid { color: rgba(21, 26, 32, .45); }
.field select option { color: var(--text); }
.field-error { display: block; font-size: 13px; color: var(--error); }
.contact .field-error { color: #ffd2d2; }
.field-error:not(:empty) { margin-top: 6px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.field-check { margin: 0 0 40px; }
.check { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; cursor: pointer; }
.check a { text-underline-offset: 4px; }
.check-consent { align-items: flex-start; font-size: 14px; line-height: 1.6; }
.check-consent .box { margin-top: 2px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { position: relative; flex: none; width: 20px; height: 20px; border: 1px solid currentColor; transition: background .2s, border-color .2s; }
.check .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.check input:checked + .box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.field-check.has-error .box { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.error { color: var(--error); }
.contact .form-status.error { color: #ffd2d2; }
.form-success { display: grid; justify-items: start; gap: 16px; animation: load .6s var(--ease); }
.form-success h2, .form-success h3 { font-size: 40px; font-weight: 300; line-height: 1.15; }
.form-success p { margin: 0; }
.form-success p:last-of-type { margin-bottom: 16px; }
.form-success a:not(.pill) { text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 48px; background: var(--navy); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1.3fr 1fr 1.2fr .8fr; gap: 40px 32px; align-items: start; padding-bottom: 72px; border-bottom: 1px solid var(--line-dark); }
.footer-top .logo img { width: 136px; }
.footer-brand p { margin: 32px 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.footer-col h2 { margin: -4px 0 22px; font-size: 20px; color: rgba(255, 255, 255, .6); }
.footer-col ul { display: grid; gap: 14px; font-size: 14px; }
.footer-col a { font-weight: 500; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact dl { margin: 0 0 20px; font-size: 14px; line-height: 1.6; }
.footer-contact dt { color: rgba(255, 255, 255, .6); }
.footer-contact dd { margin: 0 0 14px; font-weight: 500; }
.footer-contact address { font-style: normal; }
.footer-apply { width: auto; }
.footer-bottom { padding-top: 32px; font-size: 14px; font-weight: 500; line-height: 1.6; color: rgba(255, 255, 255, .6); }

/* ---------- Apply ---------- */
.apply { padding: 98px 0 120px; }
.apply-card { width: min(824px, 100% - 32px); margin-inline: auto; padding: 48px 40px 64px; border-radius: 8px; background: #fff; }
.apply-card h1 { margin-bottom: 32px; font-size: 56px; font-weight: 300; line-height: 1.07; }
.apply-lead { max-width: 640px; font-size: 18px; }
.apply-note { margin: 16px 0 64px; font-size: 14px; color: var(--grey); }
.apply form { max-width: 504px; }
.apply fieldset { margin: 0 0 88px; padding: 0; border: 0; min-width: 0; }
.apply legend { margin-bottom: 44px; padding: 0; font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--blue); }
.apply .q { margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.apply .q span { font-weight: 400; color: var(--grey); }
.options { display: grid; gap: 4px; margin-bottom: 36px; }
.options .check { font-size: 18px; }
.group-error { font-size: 13px; color: var(--error); }
.apply .field { margin-bottom: 32px; }

/* ---------- Legal ---------- */
.legal { padding: 136px 0 160px; }
.legal-inner { width: min(824px, 100% - 32px); margin-inline: auto; }
.legal h1 { font-size: clamp(40px, 4.4vw, 56px); font-weight: 400; line-height: 1.07; }
.updated { margin: 48px 0 24px; font-size: 20px; color: var(--grey); }
.prose { color: var(--text); }
.prose h2 { margin: 48px 0 24px; font-size: 20px; font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 28px; }
.prose p.indent { padding-left: 24px; }
.prose a { text-underline-offset: 4px; }

/* ---------- 404 ---------- */
.nf { position: relative; overflow: hidden; min-height: 100svh; display: grid; place-items: center; padding: 120px 0 80px; background: var(--navy); color: #fff; text-align: center; }
.nf-inner { position: relative; }
.nf h1 { font-size: clamp(120px, 20vw, 240px); font-weight: 300; line-height: 1; }
.nf p { margin: 16px 0 40px; font-size: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav a { padding: 6px 12px; }
  .site-nav a::after { left: 12px; right: 12px; }
  .nav-sep { margin: 0 24px; }
  .hero-inner { grid-template-columns: 1fr 420px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: span 3; }
  .footer-brand p { max-width: 640px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 32px; background: var(--navy); color: #fff; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
  .page-light .site-nav { background: var(--bg); color: var(--navy); }
  .site-nav a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid rgba(127, 127, 127, .25); }
  .site-nav a::after { display: none; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background: var(--navy); color: #fff; }
  .nav-open.page-light .site-header { background: var(--bg); color: var(--navy); }
  .nav-sep, .nav-apply { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero-inner, .head-row, .about-grid, .about-cols, .process-grid { grid-template-columns: 1fr; }
  .hero-side { grid-column: auto; }
  .industries { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-top: 48px; }
  .head-row .eyebrow { margin-top: 0; }
  .iban-art { position: relative; top: auto; right: auto; width: 60%; margin: -40px 0 -80px auto; }
  .iban { padding-top: 40px; }
  .payout { padding-top: 40px; }
  .payout-art { position: relative; width: 100%; margin-bottom: 24px; }
  .payout-inner { display: block; }
}
@media (max-width: 640px) {
  .container, .contact-inner { width: calc(100% - 32px); }
  .header-inner { width: calc(100% - 32px); }
  .logo img { width: 104px; }
  .hero { padding-bottom: 40px; }
  .hero-title { font-size: 40px; }
    .h2 { font-size: 34px; }
  .card { padding: 32px 24px; }
  .card h3 { margin: 24px 0; }
  .meaning-title { margin: 32px 0 20px; }
  .about-lead, .contact-lead p:first-child { font-size: 20px; }
  .contact-wrap { padding: 0 8px 8px; }
  .contact-inner { padding: 56px 0; }
  .check { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; padding-bottom: 56px; }
  .footer-brand, .footer-contact { grid-column: auto; }
  .industries { grid-template-columns: 1fr; }
  .industry { padding: 32px 24px; }
  .industry h3 { margin-top: 24px; }
  .apply { padding-top: 90px; }
  .apply-card { padding: 32px 20px 40px; }
  .apply-card h1 { font-size: 40px; margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
