/* Discorbit LLC — company site
   One system: one type family (Onest), one accent, one button pair, one card, one radius scale. */

:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --ink: #111318;
  --text: #2b2f38;
  --muted: #5d6370;
  --line: rgba(17, 19, 24, 0.12);
  --accent: #1a4be0;
  --accent-dark: #1238b4;
  --accent-soft: #eaf0ff;
  --orange: #ff7a1a;
  --inv-bg: #0f1218;
  --inv-surface: #191d26;
  --inv-ink: #ffffff;
  --inv-muted: #a3a9b6;
  --inv-line: rgba(255, 255, 255, 0.14);
  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --gut: clamp(20px, 5.5vw, 80px);
  --nav: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { color: var(--ink); font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1.1; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--text); max-width: 56ch; }
.muted { color: var(--muted); }
.label { font-size: 13px; font-weight: 500; color: var(--muted); }
.link { color: var(--accent); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.35s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 1.5px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-size: 16px; font-weight: 500; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--secondary { background: transparent; color: var(--ink); border-color: rgba(17, 19, 24, 0.28); }
.btn--secondary:hover { border-color: var(--ink); background: var(--surface); }
.btn .arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.inverse .btn--primary { background: #fff; color: var(--ink); }
.inverse .btn--primary:hover { background: #e6ebf7; }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav); background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__bar { display: flex; align-items: center; gap: 32px; height: 100%; }
.nav__logo { display: inline-flex; align-items: center; flex: none; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__link { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--text); border-radius: var(--r-sm); transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -15px; height: 2px; background: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(17, 19, 24, 0.28); background: transparent; cursor: pointer; place-items: center; }
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle path { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; transition: transform 0.3s var(--ease); transform-origin: 9px 9px; }
.nav__toggle[aria-expanded="true"] path:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] path:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--surface { background: var(--surface); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.inverse { background: var(--inv-bg); color: var(--inv-muted); }
.inverse h2, .inverse h3 { color: var(--inv-ink); }
.inverse .lead { color: var(--inv-muted); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
.span-6.start-7 { grid-column: 7 / span 6; } .span-5.start-8 { grid-column: 8 / span 5; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero__grid { align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.notice { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; font-weight: 500; }
.notice i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.4; }

/* Flow: how goods move, drawn in HTML */
.flow { position: relative; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--surface); }
.flow__title { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.flow__list { position: relative; display: flex; flex-direction: column; gap: 12px; }
.flow__list::before { content: ""; position: absolute; left: 35px; top: 36px; bottom: 36px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(26, 75, 224, 0.5) 0 6px, transparent 6px 12px); }
.flow__node { position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; padding: 14px 18px 14px 12px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.flow__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.flow__ico svg, .card__ico svg, .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow__node b { display: block; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.flow__node span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.flow__step { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow__node--us { background: var(--ink); border-color: var(--ink); }
.flow__node--us b { color: #fff; } .flow__node--us span, .flow__node--us .flow__step { color: #b6bcc9; }
.flow__node--us .flow__ico { background: #fff; color: var(--ink); }
.flow__node--us .flow__ico img { width: 30px; height: 30px; }
.flow__dot { position: absolute; left: 31px; top: 36px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(26, 75, 224, 0.18); animation: flow 6s var(--ease) infinite; z-index: 2; }
@keyframes flow { 0% { top: 36px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 46px); opacity: 0; } }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s; }
a.card:hover, .card--lift:hover { transform: translateY(-2px); border-color: rgba(17, 19, 24, 0.3); }
.section--surface .card { border-color: transparent; }
.card__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.card p { color: var(--text); }
.card ul { display: flex; flex-direction: column; margin-top: 6px; }
.card ul li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.card--cat { padding: clamp(28px, 3vw, 40px); gap: 16px; }
.card--cat h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.025em; }

/* Steps on the dark band */
.steps { counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--inv-line); }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 14px; font-weight: 500; color: #7f9bff; }
.step p { font-size: 15.5px; line-height: 1.6; }

/* Rows: commitments, company details */
.rows { border-top: 1px solid var(--line); }
.rows > div, .rows > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows dt, .rows .rows__name { font-size: 16px; font-weight: 500; color: var(--ink); }
.rows dd, .rows p { color: var(--text); }
.rows address { font-style: normal; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 1.1rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq .plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(17, 19, 24, 0.28); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.35s var(--ease); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 56px 24px 0; max-width: 68ch; }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { max-width: 18ch; }

/* Prose (policies) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 28px; letter-spacing: -0.02em; }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--surface); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(17, 19, 24, 0.24); border-radius: var(--r-sm); background: var(--bg); font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 75, 224, 0.18); }
.field [aria-invalid="true"] { border-color: #c62828; }
.field__error { font-size: 14px; color: #b3261e; }
.form__status { font-size: 15px; color: var(--ink); min-height: 1.4em; }

/* ---------- Close and footer ---------- */
.close { padding: clamp(72px, 9vw, 120px) 0; }
.close__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.close__row > div { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.footer { padding: 56px 0 28px; border-top: 1px solid var(--inv-line); }
.footer .nav__logo img { height: 28px; }
.footer__lede { margin-top: 16px; max-width: 34ch; font-size: 15px; }
.footer__col h3 { font-size: 14px; font-weight: 500; color: var(--inv-muted); letter-spacing: 0; margin-bottom: 14px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__col address { font-size: 15px; color: var(--inv-ink); font-style: normal; line-height: 1.55; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--inv-line); font-size: 13.5px; }

/* ---------- Entrance (hero once, on load) ---------- */
.js [data-enter] > * { opacity: 0; transform: translateY(14px); }
.js .is-in[data-enter] > * { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .grid > [class*="span-"] { grid-column: 1 / -1; }
  .grid > .md-6 { grid-column: span 6; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { display: none; position: fixed; inset: var(--nav) 0 0 0; flex-direction: column; gap: 0; margin: 0; padding: 12px var(--gut) 32px; background: var(--bg); overflow-y: auto; }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 18px 4px; font-size: 20px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: grid; }
}
@media (max-width: 639px) {
  :root { --nav: 60px; }
  .grid { gap: 14px; }
  .grid > .md-6 { grid-column: 1 / -1; }
  .nav__logo img { height: 26px; }
  .nav__actions .btn { display: none; }
  .btn-row .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .rows > div, .rows > li { grid-template-columns: 1fr; gap: 6px; }
  .flow__node { grid-template-columns: 44px 1fr; }
  .flow__step { display: none; }
  .flow__list::before { left: 33px; } .flow__dot { left: 29px; }
  .faq .answer p { padding-right: 0; }
  .close__row { align-items: flex-start; }
  .close__row .btn { width: 100%; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-enter] > * { opacity: 1; transform: none; transition: none; }
  .flow__dot { animation: none; display: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Steps on a light ground */
.steps--light .step { border-top-color: var(--line); }
.steps--light .step::before { color: var(--accent); }
.steps--light .step p { color: var(--text); }
