/* Speakypie - static site styles */
:root {
  --color-bg: #fff;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --color-footer-bg: #f9fafb;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --section-padding: 3rem 1.5rem;
  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.btn-app-store {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn-app-store:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: #eff6ff;
  color: var(--color-accent);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0 1.5rem;
}

.hero-cta {
  margin-top: 1rem;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2rem;
  text-align: center;
}

/* About App - feature grid */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-card img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

.feature-card-content {
  padding: 1.25rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Contact section */
.contact-section {
  background: var(--color-footer-bg);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-block h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.contact-block p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.btn-mailto {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-mailto:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #e5e7eb;
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.site-footer a {
  color: #93c5fd;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.copyright {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1f2937;
  color: #e5e7eb;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  flex: 1 1 280px;
}

.cookie-banner a {
  color: #93c5fd;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.cookie-buttons .btn-decline {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #4b5563;
}

.cookie-buttons .btn-decline:hover {
  background: #374151;
  color: #e5e7eb;
}

.cookie-buttons .btn-accept {
  background: var(--color-accent);
  color: #fff;
}

.cookie-buttons .btn-accept:hover {
  background: var(--color-accent-hover);
}

/* Legal pages (terms, privacy, about) */
.page-content {
  padding: 2rem 1.5rem 4rem;
}

.page-content .section-inner {
  max-width: 720px;
}

.page-content h1 {
  font-size: 2rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.page-content p,
.page-content li {
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.page-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

/* About us page */
.about-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.about-hero .section-inner img {
  margin: 0 auto 1rem;
  width: 120px;
  height: auto;
}

.marquee-section {
  padding: 1.5rem 0;
  overflow: hidden;
  background: var(--color-footer-bg);
}

.marquee-section h2 {
  text-align: center;
  font-size: 1.25rem;
  margin: 0;
  color: var(--color-text-muted);
}

.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;
}
