/* MyYouNote website — Ultramarine Desk (light-only) */

:root {
  --background: #F4F6FB;
  --foreground: #0F172A;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-foreground: #FFFFFF;
  --muted: #E8EDF7;
  --muted-foreground: #475569;
  --subtle-foreground: #64748B;
  --border: #D7DEEB;
  --accent: #DBEAFE;
  --accent-foreground: #1E3A8A;
  --card: #FFFFFF;
  --radius: 0.75rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--card); padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.125rem; color: var(--foreground); }
.brand:hover { text-decoration: none; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--muted-foreground); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 0.5rem; overflow: hidden;
  font-size: 0.85rem; font-weight: 600;
}
.lang-switch a, .lang-switch span { padding: 0.25rem 0.6rem; color: var(--muted-foreground); }
.lang-switch a:hover { background: var(--accent); color: var(--accent-foreground); text-decoration: none; }
.lang-switch [aria-current] { background: var(--primary); color: var(--primary-foreground); }

/* ---------- Hero ---------- */

.hero { padding: 4rem 0 3rem; }
.hero .container { display: grid; gap: 2.5rem; align-items: center; }

.hero h1 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.02em; }
.hero .tagline { margin-top: 1rem; font-size: 1.15rem; color: var(--muted-foreground); max-width: 34rem; }
.hero-actions { margin-top: 1.75rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero-shot img, .hero-shot { border-radius: var(--radius); }
.hero-shot img { border: 1px solid var(--border); box-shadow: 0 20px 45px -20px rgba(37, 99, 235, 0.25); }

@media (min-width: 64rem) {
  .hero h1 { font-size: 2.75rem; }
  .hero .container { grid-template-columns: 5fr 6fr; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 0.7rem 1.5rem; border-radius: 0.6rem;
  font-weight: 600; font-size: 1rem;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn-ghost { color: var(--primary); border: 1px solid var(--border); background: var(--card); }
.btn-ghost:hover { background: var(--accent); text-decoration: none; }

/* ---------- Sections ---------- */

.section { padding: 3.5rem 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.section > .container > p.lead { color: var(--muted-foreground); max-width: 40rem; margin-bottom: 2rem; }

/* ---------- Features ---------- */

.feature-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 40rem) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.section-alt .feature-card { background: var(--background); }
.feature-card .icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: var(--accent-foreground); font-size: 1.2rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.95rem; color: var(--muted-foreground); }

/* ---------- Download ---------- */

.download-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 40rem) { .download-grid { grid-template-columns: repeat(3, 1fr); } }

.download-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
}
.download-card h3 { margin-bottom: 0.25rem; }
.download-card .os-note { font-size: 0.85rem; color: var(--subtle-foreground); margin-bottom: 1rem; }
.download-card .dl-links { display: flex; flex-direction: column; gap: 0.5rem; }
.download-card .dl-links a {
  display: block; padding: 0.55rem 0.75rem; border: 1px solid var(--border);
  border-radius: 0.5rem; font-weight: 600; font-size: 0.92rem;
}
.download-card .dl-links a:hover { background: var(--accent); text-decoration: none; }

.download-note {
  margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--accent);
  border-radius: 0.6rem; color: var(--accent-foreground); font-size: 0.95rem;
}

.appstore-slot { margin-bottom: 1.5rem; }

/* ---------- Prose pages (privacy, terms, support) ---------- */

.page-main { padding: 3rem 0 4rem; }
.prose { max-width: 46rem; }
.prose h1 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.prose .meta { color: var(--subtle-foreground); font-size: 0.95rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted-foreground); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--foreground); }
.prose code {
  background: var(--muted); border-radius: 0.3rem; padding: 0.1rem 0.35rem;
  font-size: 0.9em; font-family: ui-monospace, Menlo, monospace; color: var(--foreground);
}

.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.5rem 0 2rem; max-width: 46rem;
}
.contact-card h2 { margin-bottom: 0.5rem; }
.contact-card .email { font-size: 1.15rem; font-weight: 600; }
.contact-card .note { color: var(--muted-foreground); }

.logo-badge { border-radius: 1.25rem; }
.framed-shot { border: 1px solid var(--border); border-radius: var(--radius); }
.faq { margin-top: 1rem; }
.section-gap { margin-top: 2.5rem; }

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 0.6rem;
  margin-bottom: 0.75rem; max-width: 46rem;
}
.faq summary {
  cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.25rem 1.25rem; color: var(--muted-foreground); }
.faq details > div p { margin-bottom: 0.75rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* App info table */
.info-table { border-collapse: collapse; width: 100%; max-width: 46rem; margin-top: 1rem; }
.info-table th, .info-table td { text-align: left; padding: 0.6rem 0.9rem; border: 1px solid var(--border); font-size: 0.95rem; }
.info-table th { background: var(--muted); width: 40%; }
.info-table td { background: var(--card); color: var(--muted-foreground); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 2rem 0; margin-top: 2rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer p { color: var(--subtle-foreground); font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.footer-nav a { font-size: 0.9rem; color: var(--muted-foreground); }
.footer-nav a:hover { color: var(--primary); }

/* ---------- Utility / error page ---------- */

.center-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.25rem; }
.center-page h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.center-page p { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.center-page .links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
