/* Sonetto marketing site — matches desktop design tokens */

:root {
  --primary: #7d2a59;
  --primary-hover: #6a244c;
  --primary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #141414;
  --muted: #737373;
  --muted-bg: #f5f5f5;
  --border: #ebebeb;
  --accent: #fbf4f8;
  --accent-ring: #e8c8d8;
  --card: #ffffff;
  --success: #22c35d;
  --pending: #c4841a;
  --radius: 0.5rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  background-image: radial-gradient(circle, #e8e8e8 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero */
main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent);
  border: 1px solid #f0e0ea;
  border-radius: 999px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title em {
  font-style: italic;
  color: var(--primary);
}

.hero-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
}

.hero-ctas {
  margin: 1.75rem auto 0;
  max-width: 36rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn-web-app,
.btn-download-app {
  display: inline-flex;
  text-decoration: none;
}

.hero-web-hint {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Download cards */
.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .downloads {
    grid-template-columns: 1fr;
  }
}

.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.download-card--featured {
  border-color: #ead6e2;
}

.download-card--muted {
  opacity: 0.92;
  background: #fafafa;
}

.card-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-foreground);
  background: var(--primary);
  border-radius: 999px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  color: #b8b8b8;
}

.card-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

.card-icon--active {
  color: var(--primary);
}

.card-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.card-sub {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.card-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--success);
}

.card-version.is-error {
  color: var(--pending);
}

.version-icon {
  font-size: 0.85rem;
}

.card-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-status--pending {
  color: var(--pending);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 16rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  color: var(--primary-foreground);
  background: var(--primary);
}

.btn-primary:hover:not([aria-disabled="true"]) {
  background: var(--primary-hover);
}

.btn-primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: wait;
  pointer-events: none;
}

.btn-secondary {
  color: var(--muted);
  background: var(--muted-bg);
  cursor: not-allowed;
}

.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* Workflows note */
.workflows-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.workflows-note svg {
  width: 1rem;
  height: 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgb(255 255 255 / 0.85);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto 1.5rem;
}

.brand--footer .brand-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.copyright {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.footer-social a {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-docs {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
}

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

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

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

.footer-built {
  margin: 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8c8c8;
}
