/* Memryo website – GitHub Pages */
:root {
  --primary: #6200ee;
  --primary-dark: #4a00b8;
  --primary-light: #7c3aed;
  --surface: #fafafa;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e5e5e5;
  --white: #ffffff;
  --max-width: 900px;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }

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

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

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav a {
  margin-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, #f5f0ff 0%, var(--white) 100%);
}

.hero .logo-large {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(98, 0, 238, 0.2);
}

.hero h1 {
  margin: 0 0 0.75rem;
  color: var(--text);
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge strong { color: var(--text); }

/* Sections */
section {
  padding: 3rem 0;
}

section:nth-child(even) {
  background: var(--surface);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin-top: 0;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0.5rem auto 0;
}

/* Features grid */
.features {
  display: grid;
  gap: 2rem;
}

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

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

.feature-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card h3::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  background: var(--primary);
  border-radius: 50%;
}

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

/* Screenshots */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.screenshot-card {
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
}

.screenshot-card .caption {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.screenshot-placeholder {
  aspect-ratio: 9/19;
  background: linear-gradient(145deg, #e8e0f5 0%, #f0ebfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}

/* Use cases */
.use-cases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.use-cases li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.use-cases li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.use-case-content {
  flex: 1;
  min-width: 0;
}

.use-cases strong {
  display: block;
  margin-bottom: 0.25rem;
}

.use-case-desc {
  display: block;
}

/* Usability */
.usability-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.usability-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.usability-list li:last-child { border-bottom: 0; }

.usability-list .num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* CTA */
.cta {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--white) 0%, #f5f0ff 100%);
}

.cta h2 { margin-top: 0; }

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

/* Same size and alignment for both store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 135px;
  height: 45px;
  min-width: 135px;
  min-height: 45px;
  line-height: 0;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.15s;
}

.store-badge:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.store-badge img {
  display: block;
  width: 135px !important;
  height: 45px !important;
  min-width: 135px;
  min-height: 45px;
  max-width: 135px;
  max-height: 45px;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
}

@media (min-width: 640px) {
  .store-badge {
    width: 160px;
    height: 53px;
    min-width: 160px;
    min-height: 53px;
  }
  .store-badge img {
    width: 160px !important;
    height: 53px !important;
    min-width: 160px;
    min-height: 53px;
    max-width: 160px;
    max-height: 53px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(98, 0, 238, 0.4);
}

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

.btn-secondary:hover {
  background: #f5f0ff;
  color: var(--primary);
  text-decoration: none;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer a {
  color: var(--text-muted);
  margin-left: 1.5rem;
}

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

/* Inner pages (privacy, support) – match main page look */
.page {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #f5f0ff 0%, var(--white) 25%);
  min-height: 50vh;
}

.page h1 {
  margin-top: 0;
  color: var(--primary);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.page h2 {
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--primary);
}

.page h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.page .updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.page p {
  color: var(--text);
}

.page a {
  color: var(--primary);
}

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

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

.page li {
  margin: 0.35rem 0;
  color: var(--text);
}

.page hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.page strong {
  color: var(--text);
}

/* Responsive */
@media (max-width: 640px) {
  .nav a { margin-left: 1rem; }
  .hero { padding: 2rem 0 3rem; }
  section { padding: 2rem 0; }
}
