/* =====================================================================
   LARINA — home page compositions
   Depends on larina.css for tokens.
   ===================================================================== */

/* ---------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------- */

.hero { padding-block: clamp(44px, 7vw, 92px) clamp(56px, 8vw, 104px); overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero__copy h1 { margin-bottom: 22px; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 30px 0 26px;
}
@media (max-width: 420px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   THE CONTACT SHEET — the signature element.
   A rose-gold hairline frame, exactly the role the colour plays in the
   mark itself: it outlines, it never fills.
   --------------------------------------------------------------------- */

.sheet { margin: 0; }

.sheet__frame {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-3);
}
@media (max-width: 940px) { .sheet__frame { grid-template-columns: 1.35fr 1fr; } }
@media (max-width: 560px) { .sheet__frame { grid-template-columns: 1fr; } }

.sheet__source { position: relative; }
.sheet__source img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px; background: var(--ground-sunk);
}

.sheet__tag {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(11, 37, 69, 0.86);
  color: #fff;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  backdrop-filter: blur(6px);
}

.sheet__out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 8px;
}
@media (max-width: 560px) {
  .sheet__out { grid-template-columns: repeat(3, 1fr); }
}
.sheet__out img {
  width: 100%; height: 100%; aspect-ratio: 1;
  object-fit: cover; border-radius: 8px;
  background: var(--ground-sunk);
}

/* The one orchestrated moment: the outputs resolve in, one after the
   next, the way they actually arrive from the generator. */
.sheet__out img { opacity: 0; transform: scale(0.94); }
.sheet.is-in .sheet__out img {
  animation: sheetIn 0.62s var(--ease) forwards;
}
.sheet.is-in .sheet__out img:nth-child(1) { animation-delay: 0.05s; }
.sheet.is-in .sheet__out img:nth-child(2) { animation-delay: 0.15s; }
.sheet.is-in .sheet__out img:nth-child(3) { animation-delay: 0.25s; }
.sheet.is-in .sheet__out img:nth-child(4) { animation-delay: 0.35s; }
.sheet.is-in .sheet__out img:nth-child(5) { animation-delay: 0.45s; }
.sheet.is-in .sheet__out img:nth-child(6) { animation-delay: 0.55s; }

@keyframes sheetIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .sheet__out img { opacity: 1; transform: none; animation: none !important; }
}

.sheet__cap {
  margin-top: 14px; text-align: center;
  font-size: 0.83rem; color: var(--ink-mute);
}

/* ---------------------------------------------------------------------
   ANGLE SET
   --------------------------------------------------------------------- */

.angles {
  list-style: none; padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
}
@media (max-width: 1080px) { .angles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .angles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px)  { .angles { grid-template-columns: repeat(2, 1fr); } }

.angle { display: flex; flex-direction: column; gap: 9px; }
.angle img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px;
  border: 1px solid #EFE3DD;
  background: var(--ground-sunk);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.angle:hover img {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--lift-2);
}
.angle span {
  font-size: 0.735rem; font-weight: 600;
  letter-spacing: 0.055em; text-transform: uppercase;
  color: var(--ink-mute); text-align: center;
}

/* ---------------------------------------------------------------------
   PILLARS (navy block)
   --------------------------------------------------------------------- */

.pillars { margin-top: 44px; }

.pillar {
  padding: 30px 26px;
  border: 1px solid rgba(228, 168, 156, 0.34);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}
/* Each pillar is tagged with the signal colour its product line uses in
   the app and on the pricing page — so the mark says which product this
   is, rather than implying a sequence these three don't have. */
.pillar__mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--sig);
  background: color-mix(in srgb, var(--sig) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--sig) 34%, transparent);
}
.pillar__mark svg { width: 21px; height: 21px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: rgba(255,255,255,0.74); font-size: 0.95rem; margin: 0; }

/* ---------------------------------------------------------------------
   BEFORE / AFTER
   --------------------------------------------------------------------- */

.compare {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
}
@media (max-width: 820px) {
  .compare { grid-template-columns: 1fr; }
  .compare__arrow { transform: rotate(90deg); justify-self: center; }
}

.compare__side { margin: 0; }
.compare__side img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid #EFE3DD;
  background: var(--surface);
  box-shadow: var(--lift-1);
}
.compare__label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
  margin-bottom: 14px;
}
.compare__label--before { background: var(--ground-sunk); color: var(--ink-mute); }
.compare__label--after  { background: var(--accent-wash); color: var(--accent-deep); }
.compare__side figcaption {
  margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft);
}
.compare__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--gold);
  color: var(--accent); box-shadow: var(--lift-1);
}
.compare__arrow svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------------
   PRICING TEASERS
   --------------------------------------------------------------------- */

.price-teasers { margin-top: 38px; }

.price-teaser {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.price-teaser h3 { font-size: 1.16rem; }
.price-teaser p { flex: 1; }
.price-teaser__from {
  margin-top: 18px;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.center-cta { margin-top: 34px; text-align: center; }

/* ---------------------------------------------------------------------
   BLOG TEASERS  (filled by build.py)
   --------------------------------------------------------------------- */

.posts { list-style: none; padding: 0; margin: 38px 0 0; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; padding: 0; }
.post-card img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--ground-sunk);
}
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px;
}
.post-card h3 { font-size: 1.2rem; margin-bottom: 9px; }
.post-card p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.post-card__more {
  margin-top: 16px; font-size: 0.87rem; font-weight: 600; color: var(--accent);
}

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */

.faq { margin-top: 34px; border-top: 1px solid #EFE3DD; }
.faq details { border-bottom: 1px solid #EFE3DD; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--accent); }
.faq details p {
  margin: 0; padding: 0 44px 22px 0;
  color: var(--ink-soft); font-size: 0.96rem; max-width: var(--measure-text);
}

/* ---------------------------------------------------------------------
   FINAL CTA
   --------------------------------------------------------------------- */

.final-cta h2 { margin-bottom: 16px; }
