/* Joura — calm, minimal landing page */

:root {
  --bg: #faf9f7;
  --bg-elevated: #ffffff;
  --text: #2c2a28;
  --text-muted: #6b6560;
  --accent: #7d8f7a;
  --accent-soft: #e8ede6;
  --earth: #a89585;
  --earth-light: #f3efe9;
  --border: rgba(44, 42, 40, 0.08);
  --shadow: 0 4px 24px rgba(44, 42, 40, 0.06);
  --shadow-lg: 0 12px 48px rgba(44, 42, 40, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
  --max-width: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5f6f5c;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: #3d3a37;
  color: var(--bg);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--earth-light);
  color: var(--text);
}

/* Layout */

.section {
  padding: 5rem 1.5rem;
}

.section--tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Hero */

.hero {
  padding: 4rem 1.5rem 6rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--earth-light) 100%);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  max-width: 32rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(165deg, #e8ede6 0%, #d4ddd0 50%, #c5d0c2 100%);
  border-radius: 36px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: 12px;
  position: relative;
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 24px;
  background: var(--text);
  border-radius: 12px;
  opacity: 0.15;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.phone-mockup__prompt {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.phone-mockup__wave {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 1rem;
}

.phone-mockup__wave span {
  display: block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 2px;
  animation: pulse 1.2s ease-in-out infinite;
}

.phone-mockup__wave span:nth-child(2) { animation-delay: 0.15s; height: 28px; }
.phone-mockup__wave span:nth-child(3) { animation-delay: 0.3s; height: 24px; }
.phone-mockup__wave span:nth-child(4) { animation-delay: 0.45s; height: 32px; }
.phone-mockup__wave span:nth-child(5) { animation-delay: 0.6s; height: 20px; }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.phone-mockup__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Features */

.features {
  background: var(--bg-elevated);
}

.features__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Philosophy */

.philosophy {
  background: linear-gradient(180deg, var(--earth-light) 0%, var(--bg) 100%);
}

.philosophy__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}

.philosophy__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

.philosophy__points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.philosophy__points li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-muted);
}

.philosophy__points li:last-child {
  border-bottom: none;
}

.philosophy__points strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Screenshots */

.screenshots__row {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-card {
  flex: 0 0 200px;
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.screenshot-card img {
  width: 200px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.screenshot-card figcaption {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .screenshot-card {
    flex: 0 0 220px;
  }

  .screenshot-card img {
    width: 220px;
  }
}

/* Testimonials */

.testimonials {
  background: var(--bg-elevated);
}

.testimonials__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.quote-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.quote-card cite {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-muted);
}

/* CTA */

.cta {
  text-align: center;
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%);
  scroll-margin-top: var(--header-height);
}

#download-stores {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin: 0 auto;
}

.store-badge {
  display: block;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.03);
}

.store-badge--apple img {
  height: 44px;
  width: auto;
  display: block;
}

/* Google badge has more pixels; can scale slightly larger while staying sharp */
.store-badge--google img {
  height: 44px;
  width: auto;
  display: block;
}

.store-badge--soon {
  position: relative;
  cursor: not-allowed;
  opacity: 0.55;
}

.store-badge--soon:hover {
  transform: none;
}

.store-badge--soon img {
  filter: grayscale(0.35);
}

.store-badge__soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(44, 42, 40, 0.55);
  border-radius: 10px;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.cta__text {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* Footer */

.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-footer__brand .logo {
  margin-bottom: 0.5rem;
  display: inline-block;
}

.site-footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 20rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Legal / Support pages */

.page-legal {
  padding: 3rem 1.5rem 5rem;
  min-height: calc(100vh - var(--header-height));
}

.page-legal .container {
  max-width: 40rem;
}

.page-legal h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-legal .updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.page-legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.page-legal p,
.page-legal li {
  color: var(--text-muted);
  line-height: 1.7;
}

.page-legal ul {
  padding-left: 1.25rem;
}

.page-legal a {
  word-break: break-word;
}

.support-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

.support-card h2 {
  margin-top: 0;
}

.support-card p:last-child {
  margin-bottom: 0;
}

/* Responsive */

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid .quote-card:last-child {
    grid-column: 1 / -1;
    max-width: 32rem;
    margin: 0 auto;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero {
    padding: 5rem 1.5rem 7rem;
  }

  .philosophy__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials__grid .quote-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}

/* Simple header (legal / support pages) */

.site-header--simple .nav-toggle {
  display: none;
}

.site-nav--inline {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  flex-direction: row;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  gap: 1.5rem;
}

.site-nav--inline a {
  border: none;
  padding: 0;
  background: none !important;
  color: var(--text-muted);
  border-radius: 0;
}

.site-nav--inline a:hover {
  color: var(--text);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .site-header--simple .site-nav--inline {
    display: flex;
  }

  .site-nav:not(.site-nav--inline) {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav:not(.site-nav--inline).is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav:not(.site-nav--inline) a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav:not(.site-nav--inline) a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
    background: var(--text);
    color: var(--bg);
    border-radius: 999px;
    padding: 0.75rem;
  }

  .site-nav:not(.site-nav--inline) a:last-child:hover {
    color: var(--bg);
    background: #3d3a37;
  }

  .site-header .btn--primary {
    display: none;
  }
}
