/* Timeshape landing design tokens. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('plus-jakarta-sans-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;
}

:root {
  --accent: oklch(0.55 0.16 300);
  --accent2: oklch(0.55 0.16 200);
  --bg: oklch(0.975 0.006 300);
  --ink: oklch(0.28 0.03 300);
  --ink-muted: oklch(0.5 0.035 300);
  --hairline: oklch(0.9 0.02 300);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: oklch(0.45 0.16 300); }
input { font-family: inherit; }

.tk-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.tk-spacer { flex: 1; }

/* ---------- Decorative backdrop ---------- */

.tk-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.tk-blob { position: absolute; border-radius: 50%; }

.tk-blob--a {
  top: -32vh; left: -22vw; width: 78vmax; height: 78vmax;
  background: radial-gradient(circle at 32% 32%, oklch(0.86 0.09 300), oklch(0.94 0.03 300) 62%, transparent 72%);
  filter: blur(6px);
  animation: tkFloatA 22s ease-in-out infinite;
}

.tk-blob--b {
  bottom: -34vh; right: -20vw; width: 72vmax; height: 72vmax;
  background: radial-gradient(circle at 60% 40%, oklch(0.88 0.08 200), oklch(0.95 0.025 210) 60%, transparent 72%);
  filter: blur(8px);
  animation: tkFloatB 27s ease-in-out infinite;
}

.tk-blob--c {
  top: 40vh; left: -26vw; width: 50vmax; height: 50vmax;
  background: radial-gradient(circle at 50% 50%, oklch(0.9 0.06 340), transparent 70%);
  filter: blur(4px);
  animation: tkFloatB 19s ease-in-out infinite;
}

.tk-ring { position: absolute; border-radius: 50%; }

.tk-ring--solid {
  top: -8vmin; right: -14vmax; width: 58vmax; height: 58vmax;
  border: 1px solid oklch(0.72 0.05 300 / 0.4);
  animation: tkSpin 90s linear infinite;
}

.tk-ring__dot {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.tk-ring--dashed {
  top: 8vh; right: -6vmax; width: 36vmax; height: 36vmax;
  border: 1px dashed oklch(0.74 0.04 200 / 0.45);
  animation: tkSpinBack 60s linear infinite;
}

.tk-pebble {
  position: absolute;
  bottom: 8vh; left: 4vw; width: 22vmax; height: 22vmax;
  border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
  background: oklch(0.9 0.05 300 / 0.5);
  animation: tkFloatA 16s ease-in-out infinite;
}

/* ---------- Shell ---------- */

.tk-shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.tk-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 40px;
}

/* ---------- Header ---------- */

.tk-header {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: tkFade 0.7s ease both;
}

.tk-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.tk-wordmark { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

.tk-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.tk-brand-link:hover { color: inherit; opacity: 0.8; }

/* ---------- Hero ---------- */

.tk-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.tk-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.7);
  border: 1px solid oklch(0.88 0.03 300);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  color: oklch(0.45 0.06 300);
  animation: tkRise 0.7s ease both;
}

.tk-title {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
  animation: tkRise 0.8s ease 0.08s both;
}

.tk-lede {
  margin: 20px 0 0;
  font-size: clamp(16.5px, 1.25vw, 19px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-muted);
  text-wrap: pretty;
  max-width: 30em;
  animation: tkRise 0.8s ease 0.16s both;
}

/* ---------- Waitlist ---------- */

.tk-waitlist {
  width: 100%;
  max-width: 520px;
  margin-top: 32px;
  animation: tkRise 0.8s ease 0.24s both;
}

.tk-form__card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: oklch(1 0 0 / 0.72);
  border: 1px solid oklch(0.89 0.025 300);
  box-shadow: 0 12px 34px -18px oklch(0.4 0.08 300 / 0.5);
  backdrop-filter: blur(10px);
}

.tk-input {
  flex: 1 1 200px;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: oklch(0.97 0.008 300);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.tk-input:focus {
  border-color: oklch(0.78 0.07 300);
  background: oklch(0.99 0.004 300);
}

.tk-button {
  flex: 1 1 auto;
  height: 50px;
  padding: 0 22px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: oklch(0.99 0.004 300);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease;
  user-select: none;
}

.tk-button:hover { background: oklch(0.48 0.16 300); }
.tk-button:active { transform: scale(0.975); }

.tk-button[disabled] {
  cursor: default;
  opacity: 0.7;
}

.tk-button[disabled]:hover { background: var(--accent); }
.tk-button[disabled]:active { transform: none; }

.tk-helper {
  margin-top: 11px;
  padding-left: 4px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  color: oklch(0.62 0.03 300);
}

.tk-helper--error { color: oklch(0.55 0.14 25); }

.tk-turnstile {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  flex: 1 0 100%;
  width: auto;
  min-width: 0;
  max-height: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border-radius: 12px;
  transition: max-height 0.22s ease, opacity 0.18s ease;
}

.tk-turnstile--visible {
  position: static;
  width: 100%;
  max-height: 72px;
  opacity: 1;
  pointer-events: auto;
}

.tk-consent {
  margin-top: 4px;
  padding-left: 4px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  color: oklch(0.64 0.03 300);
}

.tk-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: oklch(1 0 0 / 0.78);
  border: 1px solid oklch(0.87 0.04 200);
  box-shadow: 0 12px 34px -18px oklch(0.4 0.08 200 / 0.45);
  backdrop-filter: blur(10px);
  animation: tkPop 0.45s ease both;
}

.tk-success[hidden] { display: none; }

.tk-success__badge {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-success__check {
  width: 15px; height: 8px;
  border-left: 2.5px solid oklch(0.99 0.004 200);
  border-bottom: 2.5px solid oklch(0.99 0.004 200);
  transform: rotate(-45deg) translate(1px, -2px);
  border-radius: 1px;
}

.tk-success__body { min-width: 0; }

.tk-success__title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }

.tk-success__text {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: oklch(0.55 0.035 300);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Features ---------- */

.tk-features {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  max-width: 520px;
  animation: tkRise 0.8s ease 0.32s both;
}

.tk-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: oklch(0.42 0.03 300);
  width: 100%;
  min-width: 0;
}

.tk-feature span { text-wrap: pretty; }

.tk-feature__dot {
  width: 7px; height: 7px;
  margin-top: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

/* ---------- Waitlist count ---------- */

.tk-count {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 11px;
  animation: tkRise 0.8s ease 0.4s both;
}

.tk-count[hidden] { display: none; }

.tk-count__faces { display: flex; }

.tk-face {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.tk-face--1 { background: oklch(0.84 0.07 300); }
.tk-face--2 { background: oklch(0.84 0.07 200); margin-left: -9px; }
.tk-face--3 { background: oklch(0.86 0.06 340); margin-left: -9px; }

.tk-count__label { font-size: 13px; font-weight: 600; color: oklch(0.52 0.035 300); }

/* ---------- Phone mock (wide viewports only) ---------- */

.tk-mock { display: none; }

.tk-phone {
  position: relative;
  width: 300px;
  height: 610px;
  flex-shrink: 0;
  border-radius: 46px;
  padding: 12px;
  background: oklch(0.99 0.004 300);
  border: 1px solid oklch(0.9 0.02 300);
  box-shadow: 0 60px 90px -50px oklch(0.35 0.08 300 / 0.55), 0 0 0 1px oklch(1 0 0 / 0.6) inset;
  animation: tkBob 9s ease-in-out infinite;
}

.tk-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 35px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
}

.tk-status {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: oklch(0.45 0.03 300);
}

.tk-status__icons { display: flex; gap: 5px; align-items: center; }
.tk-status__battery { width: 15px; height: 8px; border-radius: 2.5px; background: currentColor; opacity: 0.35; }
.tk-status__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.4; }

.tk-date {
  margin-top: 22px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.55 0.05 300);
}

.tk-summary { margin-top: 16px; display: flex; align-items: center; gap: 16px; }

.tk-dial {
  position: relative;
  width: 110px; height: 110px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 38%, var(--accent2) 38% 63%, oklch(0.82 0.07 340) 63% 78%, oklch(0.91 0.02 300) 78% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-dial__center {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tk-dial__total { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.tk-dial__caption {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.58 0.04 300);
}

.tk-rows { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }

.tk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: oklch(0.4 0.03 300);
}

.tk-row__dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; }
.tk-row__dot--accent { background: var(--accent); }
.tk-row__dot--accent2 { background: var(--accent2); }
.tk-row__dot--care { background: oklch(0.72 0.1 340); }
.tk-row__dot--admin { background: oklch(0.86 0.03 300); }

.tk-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row__time { font-variant-numeric: tabular-nums; color: oklch(0.56 0.03 300); }

.tk-chart { margin-top: 24px; display: flex; align-items: flex-end; gap: 7px; height: 108px; }

.tk-bar {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: oklch(0.88 0.04 300);
  transform-origin: 50% 100%;
  animation: tkGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tk-bar--peak { background: var(--accent); }

.tk-bar:nth-child(1) { height: 42%; animation-delay: 0.45s; }
.tk-bar:nth-child(2) { height: 68%; animation-delay: 0.52s; }
.tk-bar:nth-child(3) { height: 55%; animation-delay: 0.59s; }
.tk-bar:nth-child(4) { height: 88%; animation-delay: 0.66s; }
.tk-bar:nth-child(5) { height: 61%; animation-delay: 0.73s; }
.tk-bar:nth-child(6) { height: 74%; animation-delay: 0.80s; }
.tk-bar:nth-child(7) { height: 36%; animation-delay: 0.87s; }

.tk-timer {
  margin-top: 22px;
  padding: 14px;
  border-radius: 18px;
  background: oklch(1 0 0 / 0.75);
  border: 1px solid oklch(0.91 0.02 300);
}

.tk-timer__label { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; }

.tk-timer__value {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.tk-homebar {
  align-self: center;
  width: 104px; height: 4px;
  border-radius: 999px;
  background: oklch(0.82 0.02 300);
}

/* ---------- Footer ---------- */

.tk-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 500;
  color: oklch(0.64 0.03 300);
  animation: tkFade 1s ease 0.5s both;
}

/* ---------- Privacy page ---------- */

.tk-legal-shell { max-width: 780px; }

.tk-legal-main {
  flex: 1;
  padding: 72px 0 64px;
}

.tk-legal {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid oklch(0.89 0.025 300);
  border-radius: 28px;
  background: oklch(1 0 0 / 0.76);
  box-shadow: 0 24px 60px -38px oklch(0.4 0.08 300 / 0.45);
  backdrop-filter: blur(10px);
}

.tk-legal h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.tk-legal h2 {
  margin: 36px 0 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.tk-legal p,
.tk-legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.tk-legal p { margin: 10px 0; }
.tk-legal ul { margin: 10px 0; padding-left: 22px; }
.tk-legal__updated { margin-top: 14px !important; font-size: 12px !important; }
.tk-back-link { margin-left: auto; font-size: 13px; font-weight: 600; }

/* ---------- Breakpoints ---------- */

@media (max-width: 679px) {
  .tk-shell {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 680px) {
  .tk-shell { max-width: 720px; }
  .tk-main { padding: 64px 0 56px; }
  .tk-features { margin-top: 36px; }
}

@media (min-width: 960px) {
  .tk-shell {
    max-width: 1240px;
    padding: 40px 56px calc(44px + env(safe-area-inset-bottom, 0px));
  }
  .tk-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: center;
    padding: 48px 0 56px;
  }
  .tk-mock {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    animation: tkRise 1s ease 0.3s both;
  }
}

/* ---------- Motion ---------- */

@keyframes tkFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -5%, 0) scale(1.07); }
}

@keyframes tkFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.04); }
  50% { transform: translate3d(-4%, 4%, 0) scale(0.94); }
}

@keyframes tkBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes tkSpin { to { transform: rotate(360deg); } }
@keyframes tkSpinBack { to { transform: rotate(-360deg); } }

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

@keyframes tkFade { from { opacity: 0; } to { opacity: 1; } }

@keyframes tkPop {
  0% { opacity: 0; transform: scale(0.9); }
  60% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes tkGrow {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}
