/* LUNAKIM GLOBAL – site styles. System fonts only: no third-party requests. */
:root {
  --night: #172042;
  --night-2: #222d58;
  --moon: #f4f5f9;
  --paper: #ffffff;
  --yellow: #ffd200;
    --slate: #596283;
  --mist: #dce0eb;
  --text: #19213d;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--moon);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--paper); color: var(--night); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  background: var(--night); color: var(--moon);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(244, 245, 249, .08);
}
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-family: var(--serif); font-size: 1.3rem; letter-spacing: .01em;
}
.logo { height: 3rem; width: auto; }
.brand-footer .logo { height: 3rem; }
.chooser .logo { height: 5rem; }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: .95rem; }
.site-nav a, .lang-switch a { text-decoration: none; color: rgba(244, 245, 249, .78); }
.site-nav a:hover, .lang-switch a:hover { color: var(--paper); }
.lang-switch { display: flex; gap: .15rem; margin-left: auto; font-size: .85rem; }
.site-nav + .lang-switch { margin-left: 0; }
.lang-switch a { padding: .35rem .45rem; border-radius: 4px; letter-spacing: .04em; }
.lang-switch a[aria-current] { color: var(--night); background: var(--yellow); }

/* Hero */
.hero { background: var(--night); color: var(--moon); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center; gap: 2rem;
  padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); font-weight: 500; letter-spacing: -.01em; max-width: 17ch; }
.lead { margin-top: 1.5rem; max-width: 36rem; font-size: 1.15rem; color: rgba(244, 245, 249, .8); }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: background-color .15s ease, color .15s ease;
}
.btn-light { background: var(--yellow); color: var(--night); }
.btn-light:hover { background: #ffe14d; }
.btn-ghost { color: var(--moon); box-shadow: inset 0 0 0 1px rgba(244, 245, 249, .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--moon); }

.route { width: 100%; height: auto; overflow: visible; }
.route-moon { fill: rgba(244, 245, 249, .045); stroke: rgba(244, 245, 249, .1); }
.route-arc {
  fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.8s .3s cubic-bezier(.6, .1, .2, 1) forwards;
}
.route-dot { fill: var(--moon); }
.route-dot-end { fill: var(--yellow); opacity: 0; animation: appear .4s 2s forwards; }
.route-label { fill: rgba(244, 245, 249, .75); font: 500 17px var(--sans); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Audiences */
.audiences {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: -2.5rem; position: relative;
}
.audience { padding: clamp(2rem, 4vw, 3.25rem); }
.audience-companies { background: var(--paper); }
.audience-candidates { background: var(--night-2); color: var(--moon); }
.audience h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.audience > p { margin-top: 1rem; max-width: 34rem; }
.audience-candidates > p { color: rgba(244, 245, 249, .82); }
.checks { list-style: none; padding: 0; margin: 1.75rem 0 2rem; }
.checks li { position: relative; padding: .55rem 0 .55rem 1.75rem; border-top: 1px solid var(--mist); }
.audience-candidates .checks li { border-top-color: rgba(244, 245, 249, .14); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: .7rem; height: .7rem; border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, transparent .28rem, var(--yellow) .29rem);
}
.link-cta {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.audience-companies .link-cta { color: var(--night); }

/* Bands */
.band { padding: var(--section) 0; }
.band-tint { background: var(--paper); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 6vw, 5rem); }
.split-head p { margin-top: 1rem; color: var(--slate); max-width: 26rem; }

.services { border-top: 1px solid var(--mist); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--mist);
}
.service h3 { font-size: 1.2rem; }
.service p { color: var(--slate); }

.steps {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  counter-reset: none;
}
.steps li { position: relative; padding-top: 4.25rem; }
.steps li::after {
  content: ""; position: absolute; top: 1.55rem; left: 3.75rem; right: -1rem;
  height: 1px; background: var(--mist);
}
.steps li:last-child::after { display: none; }
.step-no {
  position: absolute; top: 0; left: 0;
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 1.35rem var(--serif); color: var(--night);
  box-shadow: inset 0 0 0 1.5px var(--yellow);
}
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--slate); font-size: 1rem; }

.about-text { font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.55; max-width: 40rem; }
.facts { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.facts dt { font-size: .9rem; color: var(--slate); }
.facts dd { margin: .25rem 0 0; font-weight: 600; }

/* Contact */
.contact { background: var(--night); color: var(--moon); padding: var(--section) 0; text-align: left; }
.contact-text { margin-top: 1rem; max-width: 34rem; color: rgba(244, 245, 249, .8); }
.contact-mail {
  display: inline-block; margin-top: 2rem;
  font-family: var(--serif); font-size: clamp(1.6rem, 5.2vw, 3.4rem); line-height: 1.1;
  text-decoration: none; color: var(--paper); overflow-wrap: anywhere;
  border-bottom: 2px solid var(--yellow); padding-bottom: .15em;
}
.contact-mail:hover { color: var(--yellow); }
.contact-phone { margin-top: 1.5rem; color: rgba(244, 245, 249, .75); }
.contact-phone a { color: var(--paper); }

/* Footer */
.site-footer { background: #10183a; color: rgba(244, 245, 249, .7); font-size: .9rem; padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 2rem 3rem; align-items: start; }
.brand-footer { color: var(--moon); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-ids { margin: 0; display: grid; gap: .35rem; }
.footer-ids div { display: flex; gap: .6rem; }
.footer-ids dt { min-width: 7.5rem; }
.footer-ids dd { margin: 0; color: var(--moon); }
.footer-links { display: grid; gap: .35rem; }
.footer-links a { color: var(--moon); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Legal / privacy pages */
.text-page { background: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0 var(--section); }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose .updated { margin-top: .75rem; color: var(--slate); }
.prose section { margin-top: 2.5rem; }
.prose h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.prose a { color: var(--night); text-decoration-color: var(--yellow); text-underline-offset: .2em; }

/* Apply link in header */
.nav-apply {
  margin-left: auto; padding: .45rem .95rem; border-radius: 999px;
  background: var(--yellow); color: var(--night); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.nav-apply:hover { background: #ffe14d; }
.site-nav + .nav-apply { margin-left: 0; }
.nav-apply + .lang-switch { margin-left: 0; }

/* Application form */
.apply-page { background: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0 var(--section); }
.apply-wrap { max-width: 52rem; }
.apply-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.apply-intro { margin-top: 1rem; font-size: 1.12rem; max-width: 40rem; }
.apply-required { margin-top: .75rem; color: var(--slate); font-size: .95rem; }
.req { color: #b3261e; }
.opt { color: var(--slate); font-weight: 400; font-size: .9em; }

.notice { display: none; margin-top: 2rem; padding: 1.5rem 1.75rem; border-radius: 6px; }
.notice:target { display: block; }
.notice h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.notice-ok { background: var(--night); color: var(--moon); box-shadow: inset 6px 0 0 var(--yellow); }
.notice-err { background: #fdecea; color: #5f1410; box-shadow: inset 6px 0 0 #b3261e; }
.notice-err a { color: inherit; }
.notice-ok:target ~ .apply-form { display: none; }

.apply-form { margin-top: 2.5rem; }
.group { border: 0; margin: 0 0 2.5rem; padding: 0; min-width: 0; }
.grid > *, .choice { min-width: 0; }
.group > legend {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--night);
  padding: 0 0 .9rem; width: 100%; border-bottom: 1px solid var(--mist); margin-bottom: 1.25rem;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field + .field { margin-top: 0; }
.group > .field + .field { margin-top: 1.25rem; }
.field > label, .field > legend { font-weight: 600; font-size: .95rem; }
.apply-form input:not([type=radio]):not([type=checkbox]),
.apply-form select, .apply-form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--moon);
  border: 1px solid var(--mist); border-bottom: 2px solid var(--slate); border-radius: 4px 4px 0 0;
  padding: .7rem .8rem; min-height: 2.9rem;
}
.apply-form input[type=file] { background: var(--paper); border-style: dashed; border-width: 1px; border-radius: 4px; }
.apply-form textarea { resize: vertical; }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus { outline: none; border-bottom-color: var(--night); box-shadow: 0 3px 0 -1px var(--yellow); }
.apply-form input:user-invalid, .apply-form select:user-invalid { border-bottom-color: #b3261e; }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; }
.choice > legend { width: 100%; padding: 0 0 .4rem; }
.choice label { display: inline-flex; gap: .45rem; align-items: center; min-height: 2.2rem; cursor: pointer; }
.choice input, .consent input { width: 1.15rem; height: 1.15rem; accent-color: var(--night); margin: 0; }
.hint { color: var(--slate); font-size: .9rem; }
.consent { display: flex; gap: .75rem; align-items: flex-start; max-width: 44rem; margin-bottom: 2rem; cursor: pointer; }
.consent input { flex: none; margin-top: .25rem; }
.consent a { color: var(--night); text-decoration-color: var(--yellow); text-underline-offset: .2em; }
.btn-dark { background: var(--night); color: var(--paper); border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: .95rem 1.8rem; }
.btn-dark:hover { background: var(--night-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Language chooser (root) */
.chooser { background: var(--night); color: var(--moon); min-height: 100vh; display: grid; place-items: center; }
.chooser main { text-align: center; padding: 2rem 1rem; }
.chooser-links { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.chooser-links a { padding: .7rem 1.2rem; border-radius: 999px; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(244, 245, 249, .35); }
.chooser-links a:hover { box-shadow: inset 0 0 0 1px var(--yellow); }

/* Responsive */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .route { max-width: 30rem; margin-top: 1rem; }
  .audiences { grid-template-columns: 1fr; margin-top: 0; padding: 0; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .logo { height: 2.1rem; }
  .lang-switch a { padding: .3rem .35rem; }
  .service { grid-template-columns: 1fr; gap: .4rem; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-ids dt { min-width: 9rem; }
  .grid { grid-template-columns: 1fr; }
  .header-row { gap: .5rem .75rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
  .apply-head h1 { overflow-wrap: anywhere; }
  .nav-apply { padding: .4rem .7rem; font-size: .8rem; }
  .btn-dark { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-arc { animation: none; stroke-dashoffset: 0; }
  .route-dot-end { animation: none; opacity: 1; }
}

/* Yellow is too light as a mark on white: use night there */
.audience-companies .checks li::before { background: radial-gradient(circle at 70% 30%, transparent .28rem, var(--night) .29rem); }
.step-no { box-shadow: inset 0 0 0 2px var(--night); background: var(--yellow); }
