/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --color-bg: #faf8f5;
  --color-bg-alt: #f0ebe3;
  --color-bg-dark: #1a1a1a;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-accent: #2d4a3e;
  --color-accent-light: #3d6b58;
  --color-white: #ffffff;
  --color-border: #e0d8cc;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);

  --container: 1100px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-title--sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover { transform: translateY(-1px); }

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

.btn-primary:hover {
  background: var(--color-accent-light);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover { color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 35%, rgba(250, 248, 245, 0.85) 0%, rgba(250, 248, 245, 0.35) 45%, rgba(250, 248, 245, 0) 70%),
    linear-gradient(to bottom, rgba(250, 248, 245, 0.4) 0%, rgba(250, 248, 245, 0) 30%, rgba(250, 248, 245, 0) 70%, rgba(250, 248, 245, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 0 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-subtitle {
  text-shadow: 0 1px 2px rgba(250, 248, 245, 0.6);
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

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

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-note {
  display: inline-block;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}

/* ── Purpose ── */
.section-purpose {
  text-align: center;
}

.section-purpose .section-title,
.section-purpose .section-lead {
  margin-inline: auto;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

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

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card:hover .feature-icon {
  background: var(--color-accent);
  color: var(--color-white);
  transition: background 0.2s, color 0.2s;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* App preview mockup */
.app-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
}

.app-preview-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: min(420px, 100%);
  border: 1px solid var(--color-border);
}

.app-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.app-preview-day {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
}

.app-preview-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.app-preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-preview-list li {
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
}

.app-preview-list strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.app-preview-caption {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Colabora ── */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.collab-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.collab-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  border-radius: 50%;
}

.collab-icon svg {
  width: 32px;
  height: 32px;
}

.collab-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.collab-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 0.625rem !important;
  font-weight: 400 !important;
  color: var(--color-text-muted);
}

.checkbox-label input { width: auto; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.625rem 1rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: 999px;
  transition: background 0.2s;
}

.contact-email:hover {
  background: var(--color-border);
}

/* ── Download ── */
.section-download {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.section-download .section-lead {
  color: rgba(255, 255, 255, 0.7);
}

.download-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--color-white);
  transition: background 0.2s;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn small {
  font-size: 0.6875rem;
  opacity: 0.7;
}

.download-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.download-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-brand-logo {
  filter: brightness(0) invert(1);
}

/* ── Partners ── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.partner-card {
  text-align: center;
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.partner-card img {
  margin: 0 auto 1.25rem;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.partner-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ── Footer ── */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-white);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-email {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.footer-email:hover { color: var(--color-white); }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--color-white); }

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

/* ── Legal pages ── */
.legal-page {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}

.legal-page .container {
  max-width: 760px;
}

.legal-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.legal-meta span + span::before {
  content: "·";
  margin: 0 0.5rem;
  opacity: 0.5;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
  transition: opacity 0.2s;
}

.legal-back:hover { opacity: 0.75; }

.legal-section {
  margin-bottom: 2.25rem;
}

.legal-section h2 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.legal-section p {
  font-size: 1rem;
  color: var(--color-text-muted);
  white-space: pre-line;
  line-height: 1.75;
}

.legal-section p + p { margin-top: 0.75rem; }

.legal-footer-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.legal-footer-cta a {
  color: var(--color-accent);
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .contact-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .download-visual {
    display: flex;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}
