/* D-DIN (Datto Inc., SIL OFL 1.1, fonts/OFL.txt): WOFF2 made from the unmodified OTFs, no subsetting.
   D-DIN has no Medium: former Medium (500) spots use Regular (400). */
@font-face { font-family: "D-DIN Condensed"; src: url(fonts/D-DINCondensed.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "D-DIN Condensed"; src: url(fonts/D-DINCondensed-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "D-DIN"; src: url(fonts/D-DIN.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #151517;
  --card: #0B0B0C;
  --line: #2A2A2D;
  --text: #EDEDEA;
  --muted: #A3A3A0;
  --accent: #FF8A4C;
  --on-accent: #111111;
  --head: "D-DIN Condensed", system-ui, sans-serif;
  --body: "D-DIN", system-ui, sans-serif;
  --label: "D-DIN Condensed", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
h1, h2 { font-family: var(--head); font-weight: 700; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.label {
  font: 400 14px/1.4 var(--label);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* Logo: always black on white; on this dark page it sits as a white card in a black frame. */
/* overflow: hidden rounds the white card's corners to (radius - border). */
.badge {
  display: inline-block; overflow: hidden;
  background: #fff; border: 3px solid #000; border-radius: 6px;
}
.badge-lg {
  flex: none; align-self: flex-start;
  height: 280px; /* width follows the card's own portrait ratio */
  border-width: 6px; border-radius: 10px;
}
.badge-lg img { height: 100%; width: auto; }
.badge-sm img { height: 32px; }

.topbar {
  display: flex; align-items: center; justify-content: flex-end;
  min-height: 105px;
  padding-top: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { text-decoration: none; color: var(--muted); font: 400 18px/1.2 var(--label); }
.topbar nav a:hover { color: var(--text); }

.hero {
  display: flex; gap: 48px;
  padding-top: 120px; padding-bottom: 120px;
}
.hero-text { display: flex; flex-direction: column; min-width: 0; }
.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
  margin-top: -.181em; /* cap top = badge top (D-DIN Condensed: ascent .831, descent .169, cap .69; line-height 1.08) */
}
.anyway { margin-top: 20px; font-size: 20px; }
.formats { margin-top: auto; padding-top: 24px; line-height: 1; }

section[id] { scroll-margin-top: 24px; }
#plugins { padding-bottom: 120px; }
.grid {
  margin-top: 24px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column;
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.icon { width: 72px; height: 72px; border-radius: 16px; }
.card h2 { font-size: 28px; letter-spacing: .02em; }
.sub { color: var(--muted); }
.desc { margin-top: 16px; margin-bottom: 28px; color: var(--muted); }

.tag {
  font: 400 13px/1 var(--label);
  letter-spacing: .1em;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-open { background: var(--accent); color: var(--on-accent); }
.tag-soon { border: 1px solid var(--line); color: var(--muted); }

.btn, .passive {
  margin-top: auto;
  display: block;
  padding: 14px 18px;
  border-radius: 8px;
  text-align: center;
  font: 400 15px/1.2 var(--body);
}
.btn {
  background: var(--accent); color: var(--on-accent);
  border: 0; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.passive { border: 1px dashed var(--line); color: var(--muted); }

.beta {
  display: grid; gap: 48px;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  padding-top: 120px; padding-bottom: 120px;
  border-top: 1px solid var(--line);
}
.beta-title {
  margin-top: 20px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
}
.beta-title span { color: var(--muted); }
.beta-text { margin-top: 24px; max-width: 520px; color: var(--muted); font-size: 18px; }

/* Holds the former sign-up card's height (234px) so the section keeps its size. */
.beta-mail { min-height: 234px; display: flex; align-items: center; }
.beta-mail .beta-text { margin-top: 0; }

.footer {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  padding-top: 32px; padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.foot-left, .foot-right { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.foot-right a { text-decoration: none; }
.foot-right a:hover { color: var(--text); }

@media (max-width: 900px) {
  .grid, .beta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar nav { gap: 18px; }
  .topbar { min-height: 97px; }
  .hero { flex-direction: column; gap: 32px; padding-top: 72px; padding-bottom: 80px; }
  .hero h1 { margin-top: 0; }
  #plugins { padding-bottom: 80px; }
  .beta { padding-top: 80px; padding-bottom: 80px; }
  .beta-mail { align-items: flex-start; }
}
