/* Joovline — static landing site */

:root {
  --primary: #113065;
  --primary-deep: #0c2348;
  --accent: #ffc759;
  --accent-soft: #fff6df;
  --background: #ffffff;
  --surface: #f7f8fb;
  --text: #111827;
  --muted-text: #6b7280;
  --border: #e5e7eb;
  --focus: #113065;
  --radius: 16px;
  --header-height: 72px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 16px 40px rgba(17, 48, 101, 0.08);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 2px;
}

.nav-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-height);
  padding: 8px 24px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav-menu.is-open {
  display: block;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--primary);
}

.nav-menu a.btn,
.nav-menu a.btn:hover {
  color: #fff;
  text-decoration: none;
}

.nav-menu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav-download {
  margin-top: 8px;
}

.nav-download .btn {
  width: 100%;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn svg {
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-deep);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border-color: #f0b63a;
}

.btn-accent:hover {
  background: #ffd57a;
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actions .btn {
  width: 100%;
}

/* Hero */

.hero {
  padding: 40px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 {
  margin: 0 0 16px;
  font-size: 2.35rem;
}

.lede {
  margin: 0 0 28px;
  max-width: 34rem;
  color: var(--muted-text);
  font-size: 1.125rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  padding: 28px 16px 20px;
  overflow: hidden;
  background: var(--surface);
  border-radius: 28px;
}

/* Product intro */

.intro {
  padding: 72px 0;
  text-align: center;
  background: var(--surface);
}

.intro h2,
.section-heading h2 {
  margin: 0 0 12px;
  font-size: 1.9rem;
}

.intro p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted-text);
}

/* Features */

.features {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted-text);
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.feature-card:hover {
  border-color: #c9d3e4;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--primary);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted-text);
}

/* Screenshots */

.shots {
  padding: 8px 0 80px;
  background: var(--surface);
}

.shot-row {
  display: flex;
  gap: 20px;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot-row::-webkit-scrollbar {
  height: 8px;
}

.shot-row::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 99px;
}

.shot {
  flex: 0 0 220px;
  scroll-snap-align: center;
  margin: 0;
}

.shot figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted-text);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Phone frame */

.phone {
  width: min(280px, 100%);
  padding: 10px;
  border-radius: 36px;
  background: var(--primary-deep);
  box-shadow: var(--shadow);
}

.phone-sm {
  width: 220px;
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.35;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
}

.phone-screen > img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot:hover .phone,
.hero-visual:hover .phone {
  transform: translateY(-4px);
}

.phone {
  transition: transform 0.2s ease;
}

/* App UI placeholders — shown until screenshots are added */

.app-ui {
  height: 100%;
  padding: 18px 12px 14px;
  background: #fff;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
}

.mock-notch {
  width: 72px;
  height: 14px;
  margin: 0 auto 12px;
  border-radius: 99px;
  background: #eef1f6;
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 700;
}

.mock-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--primary);
}

.mock-post,
.mock-note,
.mock-field {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mock-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d9e2f2;
}

.mock-avatar.navy { background: var(--primary); }
.mock-avatar.gold { background: var(--accent); }
.mock-avatar.slate { background: #8ea0bf; }

.mock-copy strong,
.mock-note strong {
  display: block;
  font-size: 11px;
}

.mock-copy span,
.mock-note span,
.mock-muted {
  color: var(--muted-text);
}

.mock-copy p,
.mock-note p {
  margin: 3px 0 0;
}

.mock-photo {
  height: 72px;
  margin: 8px 0 0;
  border-radius: 10px;
  background: #fff4d6;
}

.mock-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted-text);
  font-weight: 600;
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
}

.mock-composer {
  min-height: 88px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px dashed #d5dbe6;
  border-radius: 12px;
  color: var(--muted-text);
}

.mock-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mock-tool {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
  color: var(--primary);
  font-weight: 700;
}

.mock-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.mock-cover {
  height: 72px;
  margin: -18px -12px 0;
  background: var(--primary);
}

.mock-profile {
  margin-top: -18px;
  text-align: center;
}

.mock-profile .mock-avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border: 3px solid #fff;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
  text-align: center;
}

.mock-stats strong {
  display: block;
  color: var(--primary);
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.mock-grid span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #eef2f8;
}

.mock-grid span:nth-child(2) { background: #fff1cc; }
.mock-grid span:nth-child(4) { background: #d9e4f5; }

.mock-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.mock-note {
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* CTA */

.cta {
  padding: 72px 0;
  background: var(--primary);
  color: #fff;
  scroll-margin-top: 80px;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.cta p {
  margin: 0 0 24px;
  color: #d7deea;
}

.cta .btn-accent:focus-visible,
.cta .btn-light:focus-visible {
  outline-color: var(--accent);
}

/* Footer */

.site-footer {
  padding: 48px 0 24px;
  background: var(--primary-deep);
  color: #d7deea;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 18rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.social-links a {
  color: #d7deea;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b7c2d4;
  font-size: 0.95rem;
}

/* Inner pages */

.page {
  padding: 48px 0 80px;
}

.page-narrow {
  max-width: 760px;
}

.page h1 {
  margin-bottom: 12px;
  font-size: 2.2rem;
}

.page h2 {
  margin: 32px 0 8px;
  font-size: 1.3rem;
}

.page h3 {
  margin: 20px 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.page p,
.page li {
  color: #374151;
}

.page ul {
  padding-left: 1.2rem;
}

.notice {
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid #f0d48a;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--primary-deep);
}

.page-cta {
  margin-top: 36px;
}

/* Motion */

.hero-copy,
.hero-visual {
  animation: rise 0.55s ease both;
}

.hero-visual {
  animation-delay: 0.08s;
}

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

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu,
  .nav-menu.is-open {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-menu a {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
  }

  .nav-menu a:hover {
    background: var(--surface);
  }

  .nav-download {
    margin: 0 0 0 8px;
  }

  .nav-download .btn {
    width: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.25rem;
  }

  .hero {
    padding: 72px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .shot-row {
    justify-content: center;
    overflow: visible;
  }

  .cta h2,
  .intro h2 {
    font-size: 2.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .shot:hover .phone,
  .hero-visual:hover .phone,
  .btn:hover {
    transform: none;
  }
}
