/* Kareer 2.0 holding page — self-hosted fonts, no external requests. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/spline-sans-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/spline-sans-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #faf8f4;
  --ink: #191621;
  --muted: #716d7d;
  --accent: #fe3464;
  --grid: rgba(25, 22, 33, 0.06);
  --hairline: rgba(25, 22, 33, 0.14);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141318;
    --ink: #f2efe8;
    --muted: #9b97a6;
    --grid: rgba(242, 239, 232, 0.06);
    --hairline: rgba(242, 239, 232, 0.18);
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center bottom;
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Language switching: html[lang] decides which spans render. */
html[lang='en'] [data-lang='sk'] { display: none; }
html[lang='sk'] [data-lang='en'] { display: none; }

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 4.5rem);
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.logo { color: var(--ink); display: inline-flex; }
.logo svg { width: 118px; height: auto; }

.lang {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.lang button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.25rem 0.1rem;
  font: inherit;
  color: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.lang button[aria-pressed='true'] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.lang button:hover { color: var(--ink); }

.lang button:focus-visible,
.contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- trajectory chart ---------- */

.chart {
  position: absolute;
  right: clamp(-14rem, -8vw, -2rem);
  bottom: 5.5rem;
  height: min(74vh, 38rem);
  width: auto;
  z-index: 0;
  pointer-events: none;
}

.chart-past {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s cubic-bezier(0.45, 0, 0.2, 1) 0.35s forwards;
}

.chart-dot {
  stroke: var(--muted);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0;
  animation: appear 0.4s ease-out forwards;
}
.chart-dot:nth-of-type(2) { animation-delay: 0.7s; }
.chart-dot:nth-of-type(3) { animation-delay: 1.1s; }
.chart-dot:nth-of-type(4) { animation-delay: 1.4s; }

.chart-future {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 11;
  clip-path: inset(0 100% 0 0);
  animation: reveal 1.1s ease-out 1.85s forwards;
}

.chart-node {
  fill: var(--accent);
  opacity: 0;
  animation: appear 0.4s ease-out 1.75s forwards;
}

.chart-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s ease-out 2.1s infinite;
}

.chart-label {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  fill: var(--accent);
  opacity: 0;
  animation: appear 0.5s ease-out 2s forwards;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-inner { max-width: 44rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) 0.1s both;
}

.blink {
  width: 9px;
  height: 9px;
  background: var(--accent);
  flex: none;
  animation: blink 2.2s steps(1) infinite;
}

h1 {
  font-size: clamp(2.7rem, 7.5vw, 5.4rem);
  font-weight: 580;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 1.75rem;
  animation: rise 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) 0.22s both;
}

h1 em {
  font-style: italic;
  font-weight: 560;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  max-width: 34em;
  color: var(--muted);
  margin: 0 0 3rem;
  animation: rise 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) 0.34s both;
}

/* ---------- waitlist ---------- */

.waitlist {
  margin: 0 0 2.5rem;
  max-width: 30rem;
  animation: rise 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) 0.46s both;
}

.waitlist-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.waitlist-row {
  display: flex;
  border: 1.5px solid var(--ink);
  background: var(--bg);
}

.waitlist input[type='email'] {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 0;
  background: none;
  padding: 0.85rem 1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.waitlist input[type='email']::placeholder { color: var(--muted); opacity: 0.7; }

.waitlist input[type='email']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.waitlist button {
  appearance: none;
  border: 0;
  flex: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 1.4rem;
  cursor: pointer;
  transition: background 0.18s ease;
}

.waitlist button:hover { background: var(--ink); }

.waitlist button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.waitlist-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.7;
  margin: 0.75rem 0 0;
  display: none;
}

.waitlist-note a { color: inherit; }

.waitlist[data-state='idle'] .note-idle,
.waitlist[data-state='busy'] .note-idle,
.waitlist[data-state='done'] .note-done,
.waitlist[data-state='error'] .note-error { display: block; }

.waitlist[data-state='busy'] .waitlist-row { opacity: 0.55; pointer-events: none; }
.waitlist[data-state='done'] .waitlist-row { display: none; }
.waitlist[data-state='done'] .note-done { color: var(--accent); }

/* ---------- contact ---------- */

.contact {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: rise 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) 0.58s both;
}

.contact-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact a {
  align-self: flex-start;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1em;
  transition: color 0.18s ease, background-size 0.25s ease;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 0;
  background-position: 0 100%;
}

.contact a:hover {
  color: var(--bg);
  background-size: 100% 100%;
}

/* ---------- footer ---------- */

.bottom {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  animation: rise 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) 0.5s both;
}

.axis {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.6rem;
  margin-bottom: 0.85rem;
}

.axis span::before {
  content: '';
  display: block;
  width: 1px;
  height: 5px;
  background: var(--hairline);
  margin: 0 auto 0.4rem;
}

.axis-now { color: var(--accent); font-weight: 500; }
.axis-now::before { background: var(--accent) !important; }

.meta {
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.14em;
}

/* ---------- animation ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes appear {
  to { opacity: 1; }
}

@keyframes reveal {
  to { clip-path: inset(0 -2% 0 0); }
}

@keyframes pulse {
  0% { opacity: 0.9; transform: scale(1); }
  70% { opacity: 0; transform: scale(3.4); }
  100% { opacity: 0; transform: scale(3.4); }
}

@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.15; }
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .chart {
    right: -8vw;
    bottom: 4.75rem;
    height: 30vh;
    opacity: 0.8;
  }
  .axis span:nth-child(-n+4) { display: none; }
  .hero { padding: 2.5rem 0 36vh; }
}

@media (max-width: 520px) {
  .waitlist-row { flex-direction: column; }
  .waitlist input[type='email'] { width: 100%; }
  .waitlist button { padding: 0.85rem 1.4rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
  .chart-pulse { display: none; }
  .blink { opacity: 1; }
}
