/* TimeJar — modern home page styles
 * Scoped to body.tj-home so it does not affect logged-in app pages.
 */

body.tj-home {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.tj-home *,
body.tj-home *::before,
body.tj-home *::after {
  box-sizing: border-box;
}

body.tj-home a {
  color: inherit;
  text-decoration: none;
}

body.tj-home img,
body.tj-home svg,
body.tj-home iframe {
  display: block;
  max-width: 100%;
}

body.tj-home h1,
body.tj-home h2,
body.tj-home h3 {
  margin: 0;
  font-family: 'Fraunces', 'Inter', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0b1220;
}

body.tj-home p { margin: 0; }

/* ============== NAV ============== */
.tj-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.tj-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tj-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0b1220;
}

.tj-nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b72e2c 0%, #e23a39 100%);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(226,58,57,0.55);
}

.tj-nav__wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.tj-nav__since {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #64748b;
  text-transform: uppercase;
  margin-left: 4px;
}

.tj-nav__links {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.tj-nav__links a:hover { color: #0b1220; }

.tj-nav__cta {
  background: #0b1220;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.tj-nav__cta:hover { background: #1e293b; }

/* ============== LOGIN BAR (in nav) ============== */
.tj-loginbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.tj-loginbar__input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  color: #0b1220;
  width: 130px;
}

.tj-loginbar__input::placeholder { color: #94a3b8; }

.tj-loginbar__input:focus {
  background: #f1f5f9;
  border-radius: 999px;
}

.tj-loginbar__submit {
  border: 0;
  cursor: pointer;
  background: #b72e2c;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.tj-loginbar__submit:hover { background: #952422; }
.tj-loginbar__submit:active { transform: translateY(1px); }

.tj-loginbar__forgot {
  font-size: 12px;
  color: #64748b;
  padding: 0 8px;
}

.tj-loginbar__forgot:hover { color: #0b1220; }

.tj-loginbar__error {
  width: 100%;
  margin-top: 8px;
  padding: 8px 14px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 13px;
}

/* ============== HERO ============== */
.tj-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 96px;
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(226,58,57,0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(56,189,248,0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tj-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.tj-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.tj-hero__orb--a { width: 320px; height: 320px; background: #fecaca; top: -40px; right: -60px; }
.tj-hero__orb--b { width: 260px; height: 260px; background: #bae6fd; bottom: 40px; left: -60px; opacity: 0.5; }
.tj-hero__orb--c { width: 180px; height: 180px; background: #fde68a; top: 40%; left: 40%; opacity: 0.35; }

.tj-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.tj-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b72e2c;
  font-weight: 600;
  margin-bottom: 18px;
}

.tj-hero__title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  margin-bottom: 18px;
}

.tj-hero__title-accent {
  background: linear-gradient(120deg, #b72e2c 0%, #e23a39 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.tj-hero__sub {
  font-size: 18px;
  color: #475569;
  max-width: 560px;
  margin-bottom: 28px;
}

.tj-hero__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 15px;
  color: #334155;
}

.tj-hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.tj-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  color: #16a34a;
  font-weight: 700;
  font-size: 12px;
}

/* ============== SIGNUP CARD ============== */
.tj-card {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 18px;
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(15,23,42,0.04),
    0 30px 60px -30px rgba(15,23,42,0.18),
    0 18px 40px -20px rgba(15,23,42,0.10);
}

.tj-card__head { margin-bottom: 18px; }

.tj-card__title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tj-card__sub {
  color: #64748b;
  font-size: 14px;
}

.tj-card__form {
  display: grid;
  gap: 12px;
}

.tj-field { display: grid; gap: 6px; }

.tj-field__label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
}

.tj-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: #0b1220;
  background: #f8fafc;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tj-field input::placeholder { color: #94a3b8; }

.tj-field input:focus {
  outline: 0;
  background: #ffffff;
  border-color: #b72e2c;
  box-shadow: 0 0 0 4px rgba(183,46,44,0.12);
}

.tj-card__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tj-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(11,18,32,0.5);
}

.tj-card__cta:active { transform: translateY(0); }

.tj-card__error {
  min-height: 20px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
}

.tj-card__legal {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  margin-top: 4px;
}

/* ============== FEATURES ============== */
.tj-main { display: block; }

.tj-section__title {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 12px;
}

.tj-section__sub {
  text-align: center;
  color: #64748b;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 48px;
}

.tj-features {
  padding: 96px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.tj-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tj-feature {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tj-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(15,23,42,0.12);
  box-shadow: 0 18px 40px -20px rgba(15,23,42,0.18);
}

.tj-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #b72e2c;
  margin-bottom: 16px;
}

.tj-feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tj-feature p {
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

/* ============== HOW IT WORKS ============== */
.tj-how {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.tj-how__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tj-how__steps li {
  position: relative;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 16px;
}

.tj-how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0b1220;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 14px;
}

.tj-how__steps h3 {
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
}

.tj-how__steps p {
  color: #475569;
  font-size: 15px;
}

/* ============== VIDEO ============== */
.tj-video {
  padding: 60px 24px 96px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.tj-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 30px 60px -30px rgba(15,23,42,0.30);
}

.tj-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tj-video__caption {
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
}

/* ============== FINAL CTA ============== */
.tj-finalcta {
  padding: 80px 24px 120px;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(226,58,57,0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tj-finalcta h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.tj-finalcta p {
  color: #64748b;
  font-size: 17px;
  margin-bottom: 28px;
}

.tj-finalcta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #b72e2c 0%, #e23a39 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 14px 30px -14px rgba(226,58,57,0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tj-finalcta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(226,58,57,0.7);
}

/* ============== FOOTER ============== */
.tj-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 36px 24px 28px;
}

.tj-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tj-footer__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.tj-footer__wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.tj-footer__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

.tj-footer__nav {
  display: inline-flex;
  gap: 22px;
  font-size: 14px;
}

.tj-footer__nav a:hover { color: #fff; }

.tj-footer__copy {
  margin-left: auto;
  font-size: 13px;
  color: #64748b;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .tj-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tj-features__grid { grid-template-columns: repeat(2, 1fr); }
  .tj-how__steps { grid-template-columns: 1fr; }
  .tj-loginbar__input { width: 110px; }
}

@media (max-width: 720px) {
  .tj-nav__inner { gap: 12px; }
  .tj-nav__links { gap: 14px; font-size: 13px; }
  .tj-nav__since { display: none; }
  .tj-loginbar {
    order: 99;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: stretch;
    border-radius: 14px;
  }
  .tj-loginbar__input { flex: 1 1 calc(50% - 8px); width: auto; }
  .tj-loginbar__submit { flex: 1 1 100%; padding: 10px 14px; }
  .tj-hero { padding: 56px 20px 72px; }
  .tj-features { padding: 64px 20px; }
  .tj-features__grid { grid-template-columns: 1fr; }
  .tj-footer__inner { flex-direction: column; align-items: flex-start; }
  .tj-footer__copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .tj-card { padding: 22px; }
  .tj-hero__title { font-size: 36px; }
  .tj-hero__sub { font-size: 16px; }
}

/* ============== ACCESSIBILITY ============== */
@media (prefers-reduced-motion: reduce) {
  body.tj-home *,
  body.tj-home *::before,
  body.tj-home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body.tj-home a:focus-visible,
body.tj-home button:focus-visible,
body.tj-home input:focus-visible {
  outline: 2px solid #b72e2c;
  outline-offset: 2px;
}
