:root {
  --bg: #151515;
  --fg: #e8e8e6;
  --dim: #6b6b6f;
  --faint: #4a4a4f;
  --pink: #ff2e88;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: var(--pink); color: var(--bg); }
a { color: inherit; text-decoration: none; }

.tiny {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.tiny .sq { color: var(--fg); }
.tiny .sq-pink { color: var(--pink); }

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 32px;
}
header nav { display: flex; gap: 26px; align-items: center; }
header nav a { display: inline-flex; align-items: center; }
header nav a:hover { color: var(--fg); }
header nav a.on { color: var(--fg); }
.nico { display: none; }
.langdd { position: relative; text-transform: none; letter-spacing: normal; }
.langdd-btn {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-family: inherit;
  font-size: 10px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.langdd-btn:hover { color: var(--fg); }
.langdd-btn:hover { background: #222; }
.langdd-btn svg { transition: transform .2s; color: var(--faint); }
.langdd.open .langdd-btn svg { transform: rotate(180deg); }
.langdd-menu {
  display: none;
  position: absolute; right: 0; top: 100%;
  margin-top: 8px;
  width: 170px;
  border-radius: 12px;
  overflow: hidden;
  background: #1d1d1d;
  border: 1px solid #333;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  z-index: 20;
}
.langdd.open .langdd-menu { display: block; animation: dd-in .16s ease; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.langdd-menu button {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 9px 13px;
  font-family: inherit;
  font-size: 11px;
  text-align: left;
  background: transparent;
  border: 0;
  color: #d6d6d4;
  cursor: pointer;
}
.langdd-menu button:hover { background: #272727; }
.langdd-menu button.sel { color: var(--pink); font-weight: 600; }
.langdd-menu .fl { flex: 1; }
.langdd-menu .ck { visibility: hidden; color: var(--pink); }
.langdd-menu button.sel .ck { visibility: visible; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 24px 16px 48px;
  text-align: center;
}

#logo {
  font-size: clamp(4px, 1.55vw, 13px);
  line-height: 1;
  white-space: pre;
  color: var(--fg);
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  contain: content;
}
#logo .p { color: var(--pink); }

.story {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.story b { color: var(--fg); font-weight: 400; }

.purpose {
  max-width: 84ch;
  margin-top: -18px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--dim);
}
.purpose b { color: #9a9a97; font-weight: 400; }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 42px;
  font-size: 12px;
  color: var(--dim);
}
.links .k { color: var(--fg); letter-spacing: 0.18em; }
.links .d { color: var(--pink); }
.links a:hover .k { color: var(--pink); }
.links .ext { color: var(--faint); }

.wave-wrap { width: min(920px, 94vw); }
#wave-box { position: relative; contain: content; }
#wave, #wave-pink {
  font-size: clamp(8px, 1.4vw, 13px);
  line-height: 1.3;
  white-space: pre;
  text-align: left;
}
#wave { color: var(--faint); }
#wave-pink { position: absolute; inset: 0; color: var(--pink); }


.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 6px 0 24px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(1);
  transition: filter .3s;
}
.gallery img:hover { filter: grayscale(0); }

/* careers */
.careers {
  width: min(960px, 90vw);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px 72px;
  text-align: left;
  align-items: start;
  padding: 24px 0;
}
.careers h1 {
  font-family: -apple-system, "Helvetica Neue", Inter, sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.careers .intro p, .careers .intro h2 { margin-bottom: 20px; }
.careers .intro p { font-size: 13px; line-height: 1.9; color: var(--dim); }
.careers .intro p b { color: var(--fg); font-weight: 400; }
.careers .intro h2 {
  font-family: -apple-system, "Helvetica Neue", Inter, sans-serif;
  font-size: 15px; font-weight: 600; color: var(--fg);
  margin-top: 32px;
}
.jobs h2 {
  font-family: -apple-system, "Helvetica Neue", Inter, sans-serif;
  font-size: 18px; font-weight: 600;
  margin-bottom: 8px;
}
.jobs h2 .n { color: var(--dim); font-weight: 400; }
.jobs .cat { margin: 30px 0 14px; }
.job {
  display: block;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 14px 18px;
}
.job + .job { margin-top: 14px; }
.job:hover { background: #232323; }
.job h3 {
  font-family: -apple-system, "Helvetica Neue", Inter, sans-serif;
  font-size: 15px; font-weight: 600; color: var(--fg);
}
.job .meta { font-size: 12px; color: var(--dim); margin-top: 5px; }
.job .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.job .tag {
  font-size: 11px;
  color: #b9b9b9;
  background: #2a2a2a;
  padding: 6px 13px;
  border-radius: 999px;
}
.jobs .none { font-size: 12px; color: var(--faint); }

/* pricing card (shadcn-style) */
.price-sec { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.price-sec h1 {
  font-family: -apple-system, "Helvetica Neue", Inter, sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-sec .sub { font-size: 13px; color: var(--dim); }
.pgrid {
  width: min(1020px, 94vw);
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pgrid { grid-template-columns: 1fr; width: min(380px, 94vw); }
}
.pcard {
  text-align: left;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.pcard.featured {
  border-color: rgba(255, 46, 136, .4);
  box-shadow: 0 0 0 3px rgba(255, 46, 136, .07);
}
.pcard .top { text-align: center; }
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  background: #2a2a2a;
  color: var(--fg);
}
.badge-pop { background: rgba(255, 46, 136, .12); color: var(--pink); }
.pcard .price {
  font-family: -apple-system, "Helvetica Neue", Inter, sans-serif;
  font-size: 28px; font-weight: 600; color: var(--fg);
  margin: 14px 0 6px;
}
.pcard .price .per { font-size: 13px; color: var(--dim); font-weight: 400; }
.pcard .desc { font-size: 12px; color: var(--dim); }
.pcard hr { border: 0; border-top: 1px solid #2a2a2a; margin: 18px 0; }
.pcard ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.pcard li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #b9b9b9; }
.pcard li svg { flex-shrink: 0; color: var(--dim); }
.pcard .btn {
  margin-top: auto;
  display: block;
  text-align: center;
  background: #2a2a2a;
  color: var(--fg);
  border-radius: 8px;
  padding: 11px 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}
.pcard .btn:hover { background: #333; }
.pcard.featured .btn { background: var(--pink); color: var(--bg); }
.pcard.featured .btn:hover { background: var(--fg); }

/* filter table */
.ft { margin-top: 30px; width: 100%; max-width: 420px; }
.ft-chips { display: flex; flex-wrap: nowrap; gap: 3px; margin-bottom: 10px; }
.ft-chips button {
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0; white-space: nowrap;
  border: 0; cursor: pointer; background: transparent;
  font: 500 10px ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--dim);
  border-radius: 999px; padding: 6px 9px;
  transition: background .2s, color .2s;
}
.ft-chips button:hover { background: #222; }
.ft-chips button.on { background: #262626; color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ft-chips i { width: 5px; height: 5px; border-radius: 50%; }
.ft-chips .n { font-size: 9px; color: var(--faint); padding: 1px 3px; border-radius: 4px; }
.ft-chips .on .n { background: #1a1a1a; color: var(--dim); }
.ft-card { background: #1e1e1e; border-radius: 12px; overflow: hidden; }
.ft-cols {
  display: grid;
  grid-template-columns: 1.2fr .6fr .6fr .9fr;
  align-items: center;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--dim);
  border-bottom: 1px solid #262626;
}
.ft-cols:hover { background: #222; }
.ft-head .ft-cols { font-size: 11px; color: var(--faint); }
.ft-head .ft-cols:hover { background: transparent; }
.ft-cols .c { color: var(--fg); }
.ft-row { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .3s cubic-bezier(.23,1,.32,1), opacity .3s; }
.ft-row.off { grid-template-rows: 0fr; opacity: 0; }
.ft-row > div { overflow: hidden; }
.pill { display: inline-block; font-size: 10px; padding: 3px 8px; border-radius: 5px; }
.pill-new { color: #ff2e88; background: rgba(255,46,136,.12); }
.pill-returning { color: #3fb6d3; background: rgba(22,166,199,.12); }
.pill-drifting { color: #f09a2f; background: rgba(240,154,47,.12); }
.pill-regular { color: #2fbe8c; background: rgba(37,168,120,.12); }

@media (max-width: 900px) {
  .careers { grid-template-columns: 1fr; }
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 32px;
}
footer a:hover { color: var(--fg); }

@media (max-width: 600px) {
  header, footer { padding: 16px 18px; }
  header { flex-direction: row; align-items: center; gap: 10px; }
  header .left .tiny + .tiny { display: none; }   /* tagline line: can't afford it on phones */
  header nav { flex-wrap: nowrap; gap: 16px; }
  header nav a { padding: 6px 0; }
  .nico { display: block; }                        /* icons in, words out */
  header nav a span[data-i18n] { display: none; }
  .langdd-btn { padding: 4px 8px; gap: 0; }
  .langdd-btn .lbl, .langdd-btn > svg { display: none; }    /* flag-only pill */
  .langdd-menu { right: 0; left: auto; }
  main { gap: 32px; padding: 16px 14px 40px; }
  .purpose {
  max-width: 84ch;
  margin-top: -18px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--dim);
}
.purpose b { color: #9a9a97; font-weight: 400; }

.links { flex-direction: column; gap: 12px; }
  .links .ext { display: none; }           /* hide ↗ domains — keeps lines short */
  .careers { width: 100%; gap: 8px 0; padding: 8px 0; }
  .careers h1 { margin-bottom: 18px; }
  .ft { max-width: 100%; }
  .ft-chips { flex-wrap: wrap; }
  .ft-cols { grid-template-columns: 1.3fr .5fr .5fr 1fr; padding: 9px 10px; font-size: 11px; }
  .ft-cols .pill { padding: 3px 6px; }
  .jobs { margin-top: 26px; }
  .pcard { padding: 20px; }
  footer { gap: 10px; }
}

@media (max-width: 420px) {
  .pgrid { width: 100%; }
}

/* pixel-grid loader — default loading state
   usage: el.append(itenumLoader('Loading'))  (loader.js) */
.loader { display: inline-flex; align-items: center; gap: 10px; }
.loader .px-grid { display: grid; grid-template-columns: repeat(3, 4px); gap: 1.5px; }
.loader .px {
  width: 4px; height: 4px;
  background: var(--fg);
  border-radius: 1px;
  opacity: .15;
  animation: pixel-on 650ms ease-in-out var(--d) infinite;
}
.loader.dots .px { border-radius: 50%; }
@keyframes pixel-on { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.loader .lbl {
  font-size: 13px; font-weight: 500;
  background: linear-gradient(90deg, var(--dim) 35%, var(--fg) 50%, var(--dim) 65%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-text 1.4s linear infinite;
}
@keyframes shimmer-text { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loader .t { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .loader .px, .loader .lbl { animation: none; }
  .loader .lbl { color: var(--dim); background: none; }
}

/* cursor-following tooltip (careers gallery) */
.tip {
  position: fixed;
  top: 0; left: 0;
  z-index: 50;
  pointer-events: none;
  background: #222;
  border: 1px solid #333;
  color: var(--fg);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
}

/* currency switcher (pricing) */
.fx { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.fx button {
  border: 0; background: transparent; cursor: pointer;
  font: 500 10px ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .12em;
  color: var(--faint);
  padding: 5px 9px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.fx button:hover { color: var(--fg); background: #222; }
.fx button.on { color: var(--fg); background: #242424; }

/* home fits one mobile screen — no scroll */
@media (max-width: 600px) {
  body.home { height: 100vh; height: 100svh; min-height: 100vh; min-height: 100svh; overflow: hidden; }
  body.home main { gap: 26px; padding: 8px 14px 12px; }
  body.home footer { padding-top: 6px; }
  /* keep footer clear of the iOS bottom bar / home indicator */
  footer { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* footer: logo mark always; phones drop the long copyright and tighten tracking */
.flogo { color: var(--fg); }
.flogo:hover { color: var(--pink); }
@media (max-width: 600px) {
  .fw { display: none; }
  footer .tiny { font-size: 9px; letter-spacing: 0.12em; }
}
