/* Catolele — estilos compartidos */
:root {
  --cream: #fbf6ec;
  --cream-deep: #f1e8d6;
  --ink: #342c25;
  --ink-soft: #85786a;
  --coral: #8a3b5c;
  --coral-deep: #6e2e49;
  --sage: #8fae8b;
  --line: #e7dac1;
  --max: 760px;
  --max-wide: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, .serif {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
}

a { color: var(--coral-deep); }
a:hover { color: var(--coral); }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 32px 24px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  font-family: "Fraunces", serif;
}

.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand .mark svg { width: 20px; height: 20px; }

nav.site a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 90px;
}

main.wide { max-width: var(--max-wide); }

h1 {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0.3em 0 0.35em;
  max-width: 14ch;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2.4em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
}

h3 { font-size: 1.05rem; margin-top: 1.6em; }

p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-top: 0;
}

.eyebrow {
  color: var(--coral-deep);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cta {
  display: inline-block;
  background: var(--coral);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  margin-top: 22px;
}
.cta:hover { background: var(--coral-deep); color: white; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 20px;
}

.hero-visual {
  position: relative;
  height: 320px;
}

.hero-visual .page {
  position: absolute;
  width: 220px;
  height: 280px;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -20px rgba(52, 44, 37, 0.35);
  padding: 22px;
}

.hero-visual .page .ln {
  height: 8px;
  border-radius: 4px;
  background: var(--cream-deep);
  margin-bottom: 10px;
}
.hero-visual .page .ln.short { width: 55%; }
.hero-visual .page .dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); opacity: 0.85;
  margin-bottom: 16px;
}

.hero-visual .page.back {
  left: 36px; top: 10px;
  transform: rotate(-7deg);
  background: var(--cream-deep);
  border-color: var(--line);
  z-index: 1;
}
.hero-visual .page.mid {
  left: 56px; top: 36px;
  transform: rotate(4deg);
  z-index: 2;
}
.hero-visual .page.front {
  left: 20px; top: 54px;
  transform: rotate(-2deg);
  z-index: 3;
}
.hero-visual .page.front .dot { background: var(--sage); }

.hero-visual .tab {
  position: absolute;
  right: 54px;
  top: 92px;
  background: var(--coral);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 4;
  font-family: "Fraunces", serif;
  box-shadow: 0 10px 18px -8px rgba(110, 46, 73, 0.55);
}

/* Features as rows, not identical cards */
.features {
  margin-top: 56px;
}

.feature-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-deep);
  color: var(--coral-deep);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-row h3 {
  margin: 2px 0 4px;
  font-size: 1.15rem;
  font-family: "Fraunces", serif;
  font-weight: 600;
}
.feature-row p { margin: 0; color: var(--ink-soft); }

.box {
  background: var(--cream-deep);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 1.4em 0;
}
.box.warn { background: #f8e4da; }

ul.plain { padding-left: 1.2em; }
ul.plain li { margin-bottom: 0.5em; }

footer.site {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 30px 24px 60px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
footer.site a { margin-right: 16px; }

.updated { color: var(--ink-soft); font-size: 0.9rem; }

.placeholder {
  background: #fff3cd;
  border: 1px dashed #d4a72c;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual {
    height: 240px;
    order: -1;
    transform: scale(0.82);
    transform-origin: top left;
    margin-bottom: 8px;
  }
  h1 { font-size: 2.1rem; max-width: none; }
  nav.site a { margin-left: 14px; font-size: 0.85rem; }
}

@media (max-width: 420px) {
  .hero-visual { transform: scale(0.68); height: 200px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual .page { transition: transform 0.4s ease; }
}
