/* jototter.com coming-soon page. Same palette and type as the app:
   indigo brand, near-black ink, Figtree body, heavy tight Inter headings. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --brand-50: #f0f1f8;
  --brand-100: #e1e3f0;
  --brand-200: #c5c9e2;
  --brand-600: #333c83;
  --brand-800: #222875;
  --brand-900: #1c215c;
  --ink: #0d0d0d;
  --ink-soft: #4f5761;
  --muted: #646f79;
  --line: #e7e7e7;
  --canvas: #ffffff;
  --danger: #b42318;
  --display: "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Larger text on large screens, never below 16px. */
  font-size: round(nearest, clamp(16px, 0.28vw + 13.4px, 20px), 1px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 2rem;
  }
}

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

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s;
}

.nav-link:hover {
  border-color: #9ca6af;
}

/* ── Hero panel ── */
.hero {
  padding-block: 0.5rem 3rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--brand-800);
  color: #fff;
  padding: 3rem 1.5rem 5.5rem;
}

@media (min-width: 768px) {
  .panel {
    padding: 4.5rem 4rem 6.5rem;
  }
}

.panel-body {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.soon {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-100);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--brand-100);
}

.otter {
  display: none;
  position: absolute;
  z-index: 1;
  right: 4rem;
  top: 50%;
  translate: 0 -55%;
  width: 11rem;
  height: 11rem;
  padding: 1.5rem;
  border-radius: 999px;
  background: #fff;
}

@media (min-width: 1024px) {
  .otter {
    display: block;
  }
}

/* Two seamless wave strips drifting in opposite directions (still for reduced motion). */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 5rem;
}

.wave--slow path {
  fill: rgb(255 255 255 / 0.06);
}

.wave--fast path {
  fill: rgb(255 255 255 / 0.08);
}

.wave--slow {
  animation: wave-left 24s linear infinite;
}

.wave--fast {
  animation: wave-right 16s linear infinite;
}

@keyframes wave-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes wave-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wave {
    animation: none;
  }
}

/* ── Waitlist form ── */
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  max-width: 30rem;
}

.signup input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.signup input[type="email"]::placeholder {
  color: #9ca6af;
}

.signup input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.35);
}

.signup button {
  flex: 0 0 auto;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
}

.signup button:hover {
  background: #3d3d3d;
}

.signup button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.35);
}

.signup button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--brand-100);
}

.status[data-tone="error"] {
  color: #ffd2cc;
}

.status[data-tone="ok"] {
  color: #fff;
  font-weight: 500;
}

.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-800);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.cta:hover {
  background: var(--brand-100);
}

/* ── Features ── */
.features {
  display: grid;
  gap: 2rem;
  padding-block: 1rem 4rem;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.features h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.features p {
  margin: 0;
  color: var(--ink-soft);
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

/* ── 404 ── */
.lost {
  padding-block: 4rem 6rem;
  text-align: center;
}

.lost h1 {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
}

.lost p {
  color: var(--ink-soft);
}

.lost a.home {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
