/* transcrito.app — landing stylesheet. No framework, no JS, no build step. */

:root {
  --violet-600: #6366F1;
  --violet-700: #8B5CF6;
  --ink:        #1F2937;
  --ink-soft:   #4B5563;
  --paper:      #FFF7ED;
  --bg:         #FAFAFA;
  --card:       #FFFFFF;
  --border:     #E5E7EB;
  --accent:     #6366F1;
  --max:        1100px;
  --radius:     14px;
  --shadow:     0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:     #F3F4F6;
    --ink-soft:#CBD5E1;
    --bg:      #0F172A;
    --card:    #1E293B;
    --border:  #334155;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin-top: 8px; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 16px; color: var(--ink-soft); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(15, 23, 42, 0.85); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }

.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 0.9rem;
}
.lang-link {
  color: var(--ink-soft);
  padding: 4px 0;
}
.lang-link.is-active {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.14), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(139, 92, 246, 0.14), transparent 45%);
}
.hero-inner {
  max-width: 820px;
  text-align: center;
}
.hero-logo {
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin: 0 auto 20px;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet-600), var(--violet-700));
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(99, 102, 241, 0.38); }
.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--border); }
.btn-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-card h3 { margin-bottom: 8px; }

/* How it works */
.how-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.how-steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.how-steps h3 { margin-bottom: 8px; color: var(--accent); }

/* Tech */
.models-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.models-list li {
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--accent); }
.faq-item p { margin-top: 12px; }

/* Download */
.download-inner {
  text-align: center;
  padding: 20px 0;
}
.download-inner .btn { margin-top: 12px; }

/* Legal (privacy) */
.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.legal .meta { font-size: 0.9rem; color: var(--ink-soft); }
.legal .lead { font-size: 1.05rem; margin-bottom: 28px; }
.legal section { padding: 0; border: 0; margin-bottom: 24px; }
.legal section h2 { font-size: 1.15rem; margin-bottom: 6px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { margin: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* Windows-only notice modal (shown by the store-link click handler when the
   visitor is not on Windows). Hidden via the `hidden` attribute by default. */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}
.modal-overlay.is-open { display: flex; }
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open[hidden] { display: flex; }

.modal-box {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 44px 32px 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  line-height: 0;
}
.modal-close:hover { color: var(--ink); background: var(--border); }
.modal-box h3 { margin: 0 0 12px; font-size: 1.35rem; }
.modal-box p  { margin: 0 0 24px; color: var(--ink-soft); }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
