/* Su Bella Vida — marketing site
   Warm editorial palette, distinct from default “AI blue” */

:root {
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-ink: #1c1917;
  --color-muted: #57534e;
  --color-accent: #0f766e;
  --color-accent-hover: #0d9488;
  --color-wash: #ccfbf1;
  --color-border: #e7e5e4;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(28, 25, 23, 0.08);
  --max-read: 40rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

/* ——— Layout ——— */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}

.site-header__inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-ink);
}

.site-brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 22%;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.15);
}

.site-brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
}

.site-brand:hover .site-brand__text {
  color: var(--color-accent);
}

/* User guide — hero mark above markdown */
.guide-cover {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.guide-cover__icon {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(15, 118, 110, 0.18);
}

/* Hero app mark (landing only) */
.hero-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.2);
  margin-bottom: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-decoration: none;
}

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

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

footer.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 60rem;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

/* ——— Hero / landing ——— */

.hero {
  padding: 2.5rem 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-wash);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-style: italic;
  color: var(--color-muted);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--ghost:hover {
  background: var(--color-wash);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 2.5rem;
}

.features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  margin: 2rem 0;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.feature-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

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

.callout {
  background: linear-gradient(135deg, var(--color-wash) 0%, #fff 70%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  max-width: var(--max-read);
}

.callout strong {
  color: var(--color-ink);
}

/* ——— Legal & article pages ——— */

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.guide-page-title {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.page-sub {
  color: var(--color-muted);
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.article {
  max-width: var(--max-read);
}

.article h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.article h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.article ul,
.article ol {
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.article li {
  margin-bottom: 0.35rem;
}

.article p {
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.article .hi {
  background: var(--color-wash);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--color-ink);
}

.meta-muted {
  font-size: 0.85rem;
  color: #a8a29e;
  margin-top: 2rem;
}

/* ——— Markdown-rendered guide ——— */

.guide-prose {
  max-width: 48rem;
}

.guide-prose h1,
.guide-prose h2,
.guide-prose h3,
.guide-prose h4 {
  font-family: var(--font-display);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-ink);
}

.guide-prose h1 {
  font-size: 2rem;
}

.guide-prose h2 {
  font-size: 1.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.guide-prose h2:first-child {
  border-top: none;
  padding-top: 0;
}

.guide-prose p,
.guide-prose li {
  color: var(--color-muted);
}

.guide-prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.guide-prose code {
  font-size: 0.9em;
  background: #f5f5f4;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.guide-prose pre {
  background: #1c1917;
  color: #e7e5e4;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
}

.guide-prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.guide-prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.guide-prose th,
.guide-prose td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.guide-prose blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--color-accent);
  color: var(--color-muted);
}

.guide-loading {
  color: var(--color-muted);
  font-style: italic;
}

@media (max-width: 480px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
