/* Brand colors sampled from App Icon (App Logo.png) */
:root {
  --color-primary: #ea5a6c;
  --color-primary-hover: #d8485a;
  --color-accent: #5a6c90;
  --color-accent-muted: rgba(90, 108, 144, 0.15);
  --color-text: #363636;
  --color-text-muted: #5a5a5a;
  --color-bg: #f8f7f8;
  --color-surface: #ffffff;
  --color-border: #e8e6e8;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(54, 54, 54, 0.08);
  --max-width: 720px;
  --header-height: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-primary);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--color-primary);
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

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

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: rgba(234, 90, 108, 0.08);
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max-width) + 3rem);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

main.home {
  max-width: 1080px;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(90, 108, 144, 0.2);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero .tagline {
  margin: 0 auto 2rem;
  max-width: 28rem;
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.store-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.prose section {
  margin-bottom: 2rem;
}

.prose h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

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

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

.site-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

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

/* Remove .is-hidden from .app-store-placeholder (in index.html) to show the App Store link; then set the anchor href. */
.app-store-placeholder.is-hidden {
  display: none;
}

.home-section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-text);
}

.home-lead {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.home-summary {
  margin: 0 0 3.5rem;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.home-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.home-highlights li {
  position: relative;
  margin-bottom: 0.85rem;
  padding-left: 1.35rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.home-highlights li:last-child {
  margin-bottom: 0;
}

.home-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.home-highlights strong {
  color: var(--color-text);
  font-weight: 600;
}

.feature-block {
  margin-bottom: 3.5rem;
}

.feature-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.75rem;
}

.feature-block--reverse .feature-inner {
  flex-direction: row-reverse;
}

.feature-shot {
  margin: 0;
  flex: 1 1 280px;
  max-width: min(420px, 100%);
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow:
    0 4px 6px rgba(54, 54, 54, 0.06),
    0 12px 28px rgba(90, 108, 144, 0.12);
}

.feature-copy {
  flex: 1 1 260px;
  max-width: 26rem;
}

.feature-copy h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.feature-copy p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.home-cta {
  margin-top: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-accent-muted) 0%, transparent 100%);
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .feature-block .feature-inner,
  .feature-block--reverse .feature-inner {
    flex-direction: column;
  }

  .feature-copy {
    max-width: 100%;
    text-align: center;
  }
}

.store-note code {
  font-size: 0.85em;
  background: var(--color-accent-muted);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}
