/* ============================================================
   AUTOSOMAL.ORG — Swiss Research Portal
   Brutalist Grid System / Zero border-radius / High Contrast
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&family=Unbounded:wght@400;700;900&family=DM+Sans:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --bone:    #F2EFE9;
  --chalk:   #E8E4DC;
  --ash:     #C4BFB5;
  --mid:     #6B6560;
  --charcoal:#2A2825;
  --ink:     #0D0C0B;
  --rule:    1px solid var(--ink);
  --rule-mid:1px solid var(--ash);
  --gap: 2px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: crosshair; font-family: inherit; }

/* ── Swiss Grid ── */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Typography ── */
.font-display { font-family: 'Unbounded', sans-serif; }
.font-mono    { font-family: 'IBM Plex Mono', monospace; }

.t-hero {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.t-super {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.t-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

.t-small {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* ── Borders / Rules ── */
.border-top    { border-top: var(--rule); }
.border-bottom { border-bottom: var(--rule); }
.border-left   { border-left: var(--rule); }
.border-right  { border-right: var(--rule); }
.border-all    { border: var(--rule); }
.border-mid    { border: var(--rule-mid); }

/* ── Color Utilities ── */
.bg-ink     { background: var(--ink); color: var(--bone); }
.bg-bone    { background: var(--bone); color: var(--ink); }
.bg-chalk   { background: var(--chalk); }
.bg-charcoal{ background: var(--charcoal); color: var(--bone); }
.color-mid  { color: var(--mid); }
.color-ash  { color: var(--ash); }

/* ── Spacing ── */
.p-0  { padding: 0; }
.p-1  { padding: 8px; }
.p-2  { padding: 16px; }
.p-3  { padding: 24px; }
.p-4  { padding: 32px; }
.p-6  { padding: 48px; }
.p-8  { padding: 64px; }
.p-12 { padding: 96px; }

.px-4 { padding-left: 32px; padding-right: 32px; }
.px-6 { padding-left: 48px; padding-right: 48px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-6 { padding-top: 48px; padding-bottom: 48px; }
.py-8 { padding-top: 64px; padding-bottom: 64px; }
.py-12{ padding-top: 96px; padding-bottom: 96px; }
.py-16{ padding-top: 128px; padding-bottom: 128px; }
.py-24{ padding-top: 192px; padding-bottom: 192px; }

.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mt-6  { margin-top: 48px; }
.mt-8  { margin-top: 64px; }
.mt-12 { margin-top: 96px; }

.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }
.mb-6  { margin-bottom: 48px; }
.mb-8  { margin-bottom: 64px; }

/* ── Display ── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: 16px; }
.gap-3  { gap: 24px; }
.gap-4  { gap: 32px; }
.gap-8  { gap: 64px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.block  { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Brutalist Button ── */
.btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: var(--rule);
  background: transparent;
  color: var(--ink);
  transition: background 0.08s, color 0.08s;
}
.btn:hover { background: var(--ink); color: var(--bone); }

.btn-inv {
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--bone);
}
.btn-inv:hover { background: var(--chalk); }

.btn-solid {
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
}
.btn-solid:hover { background: var(--charcoal); }

/* ── Marquee Ticker ── */
.ticker-wrap {
  border-top: var(--rule);
  border-bottom: var(--rule);
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.ticker-inner {
  display: inline-block;
  animation: ticker 28s linear infinite;
}
.ticker-inner span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 40px;
}
.ticker-sep {
  opacity: 0.35;
  margin: 0 4px;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bone);
  border-bottom: var(--rule);
  display: flex;
  align-items: stretch;
  height: 56px;
}
.nav-logo {
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-right: var(--rule);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-dot {
  width: 7px;
  height: 7px;
  background: var(--ink);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: stretch;
  list-style: none;
  flex: 1;
}
.nav-links li {
  border-right: var(--rule);
}
.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.1s, background 0.1s;
}
.nav-links a:hover { color: var(--ink); background: var(--chalk); }
.nav-cta {
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-left: var(--rule);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bone);
  transition: background 0.1s;
  cursor: crosshair;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--charcoal); }

/* ── Hero ── */
.hero-section {
  border-bottom: var(--rule);
  padding: 96px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: var(--rule);
  padding: 8px 16px;
  margin-bottom: 48px;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  border-top: var(--rule);
}

.hero-left {
  padding: 64px 0 64px;
  border-right: var(--rule);
  padding-right: 64px;
}

.hero-right {
  padding: 48px 0 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-block {
  border: var(--rule);
  padding: 32px;
  margin-bottom: var(--gap);
}

.price-value {
  font-family: 'Unbounded', sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-currency {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 500;
  vertical-align: super;
  margin-right: 4px;
}

.price-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 8px;
}

.delivery-block {
  border: var(--rule);
  border-top: none;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--charcoal);
  color: var(--bone);
}

.delivery-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.hero-desc {
  color: var(--mid);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--rule);
  margin-top: 64px;
}

.stat-cell {
  padding: 28px 0;
  border-right: var(--rule);
}
.stat-cell:last-child { border-right: none; }
.stat-cell + .stat-cell { padding-left: 32px; }

.stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 6px;
}

/* ── Login Card ── */
.login-card {
  border: var(--rule);
  background: var(--bone);
  overflow: hidden;
  margin-top: 32px;
}

.login-card-header {
  background: var(--ink);
  color: var(--bone);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--rule);
}

.login-card-body {
  padding: 28px 24px;
}

.privacy-banner {
  background: var(--chalk);
  border: var(--rule);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.privacy-icon {
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.oauth-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  border: var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: crosshair;
  transition: background 0.08s;
  margin-bottom: 8px;
}
.oauth-btn:hover { background: var(--chalk); }
.oauth-btn:last-of-type { margin-bottom: 0; }

.oauth-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.login-divider-line {
  flex: 1;
  height: 1px;
  background: var(--ash);
}
.login-divider-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Drop Zone ── */
.dropzone-section {
  border-bottom: var(--rule);
  padding: 80px 0;
}

.section-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}

.section-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--mid);
  flex-shrink: 0;
}

.section-rule { height: 1px; background: var(--ash); }

.dropzone {
  border: 2px solid var(--ink);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  transition: border-color 0s, background 0s;
  position: relative;
  overflow: hidden;
  padding: 48px;
  text-align: center;
}

.dropzone.drag-over {
  border-color: #000;
  border-width: 3px;
  background: var(--charcoal);
  color: var(--bone);
}

.dropzone.file-accepted {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.dropzone-primary {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dropzone-secondary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.dropzone.drag-over .dropzone-secondary,
.dropzone.file-accepted .dropzone-secondary { color: var(--ash); }

.dropzone-formats {
  display: flex;
  gap: var(--gap);
  margin-top: 24px;
}

.format-tag {
  border: 1px solid currentColor;
  padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

.accepted-msg {
  display: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dropzone.file-accepted .accepted-msg { display: block; }
.dropzone.file-accepted .dropzone-default { display: none; }

/* ── How It Works ── */
.how-section {
  border-bottom: var(--rule);
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--rule);
}

.step-cell {
  padding: 40px 32px;
  border-right: var(--rule);
  position: relative;
}
.step-cell:last-child { border-right: none; }

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--mid);
  margin-bottom: 24px;
  display: block;
}

.step-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.3;
}

.step-body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--mid);
}

/* ── Security Section ── */
.security-section {
  border-bottom: var(--rule);
  padding: 80px 0;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.security-left {
  border-right: var(--rule);
  padding-right: 64px;
}

.security-right {
  padding-left: 64px;
}

.security-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--rule);
  margin-top: 32px;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-bottom: var(--rule);
}
.security-item:last-child { border-bottom: none; }

.security-check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-check::after {
  content: '✓';
  color: var(--bone);
  font-size: 11px;
}

.security-item-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.security-item-body {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.55;
}

/* ── CTA Block ── */
.cta-section {
  background: var(--ink);
  color: var(--bone);
  padding: 96px 0;
  border-bottom: var(--rule);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.cta-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cta-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 16px;
}

.cta-price-box {
  border: 1px solid rgba(242,239,233,0.2);
  padding: 40px 48px;
  text-align: center;
  flex-shrink: 0;
}

.cta-price-big {
  font-family: 'Unbounded', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cta-price-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 8px;
}

.cta-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 16px 24px;
  background: var(--bone);
  color: var(--ink);
  border: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  cursor: crosshair;
  transition: background 0.08s;
}
.cta-btn:hover { background: var(--chalk); }

/* ── Footer ── */
.footer {
  padding: 48px 0;
  border-top: var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.1s;
}
.footer-links a:hover { color: var(--ink); }

.footer-right {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: right;
}

/* ── Corner marks (Swiss precision decoration) ── */
.corner-mark {
  position: absolute;
  width: 12px;
  height: 12px;
}
.corner-mark.tl { top: -1px; left: -1px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.corner-mark.tr { top: -1px; right: -1px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.corner-mark.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.corner-mark.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { padding: 48px 0 0; border-right: none; border-top: var(--rule); }
  .hero-left { padding-right: 0; border-right: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-cell:nth-child(2) { border-right: none; }
  .step-cell:nth-child(3) { border-top: var(--rule); }
  .security-grid { grid-template-columns: 1fr; }
  .security-left { border-right: none; padding-right: 0; border-bottom: var(--rule); padding-bottom: 48px; }
  .security-right { padding-left: 0; padding-top: 48px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat-cell:nth-child(3) { border-top: var(--rule); grid-column: 1 / -1; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-cell { border-right: none; border-bottom: var(--rule); }
  .step-cell:last-child { border-bottom: none; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-left { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-right { text-align: left; }
}
