/* ============================================================
   Ledgerly — INNER PAGE layout (feature, solution, alt, util)
   Requires theme.css (loaded first) for tokens, type, buttons,
   header, footer, device frames, mobile-cta and shared responsive.
   Page-specific overrides can be added in a small extra
   stylesheet that loads AFTER this file.
   ============================================================ */

/* ============ HERO (inner pages) ============ */
.page-hero {
  position: relative;
  padding: 60px 0 52px;
  background:
    radial-gradient(820px 460px at 88% -10%, var(--mint-50), transparent 60%),
    linear-gradient(180deg, #fafefd, #ffffff 70%);
  overflow: hidden;
}
.page-hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 18px 0 14px; max-width: 18ch; }
.page-hero h1 .hl { color: var(--primary); }
.page-hero .lede { font-size: 1.02rem; line-height: 1.62; color: var(--muted); max-width: 50ch; margin-bottom: 22px; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.page-hero .proof-row { display: flex; flex-wrap: wrap; gap: 8px; }
.page-hero .proof-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}
.page-hero .proof-pill::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
  flex: 0 0 auto;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint), transparent 68%);
  z-index: 0;
}
.hero-visual .phone { z-index: 2; transform: rotate(-2deg); }
.hero-note {
  position: absolute;
  z-index: 3;
  max-width: 240px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-soft);
}
.hero-note strong { display: block; font-family: var(--font-head); color: var(--primary-ink); margin-bottom: 4px; }
.hero-note.tl { top: 22px; left: -10px; }
.hero-note.br { bottom: 44px; right: -6px; }

.page-hero .trial-line {
  margin: -6px 0 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-ink);
}
.page-hero .hero-bullets { margin-top: 44px; position: relative; z-index: 2; }

/* ============ CARD GRIDS ============ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.mini-card strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mini-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ============ FEATURE SPLIT (copy + screenshot) ============ */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.feature-split .section-head { margin: 0 0 18px; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot .phone { width: 240px; transform: rotate(-2deg); }
.feature-split.flip .feature-shot { order: -1; }
.feature-split.flip .feature-shot .phone { transform: rotate(2deg); }

.fcard {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.fcard strong, .fcard h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
}
.fcard p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.fcard a { color: var(--primary); font-weight: 700; }

.card-index {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--mint-50);
  border: 1px solid var(--line);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint-50);
  border: 1px solid var(--line);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.card-icon svg { width: 22px; height: 22px; }

.feature-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 9px; }
.feature-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; font-weight: 600; color: var(--ink-soft);
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  width: 16px; height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ============ VISUAL (image) CARDS ============ */
.visual-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.visual-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.visual-shot {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.visual-shot.phone-shot { aspect-ratio: 4 / 3.6; background: linear-gradient(150deg, #f0fdfa, #fff); }
.visual-shot.phone-shot .phone { width: 180px; transform: rotate(-3deg); }
.visual-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visual-copy { padding: 20px 22px 24px; }
.visual-copy strong { font-family: var(--font-head); font-size: 1.04rem; letter-spacing: -0.02em; display: block; margin: 6px 0 4px; }
.visual-copy p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.visual-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-50);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============ PRICING CARDS ============ */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 720px; margin: 0 auto; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.price-plan { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.price-amount { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; letter-spacing: -0.03em; color: var(--primary-ink); }
.price-amount span { font-size: 1rem; font-weight: 700; color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.save-pill {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--primary-ink);
  font-size: 0.74rem;
  font-weight: 800;
}
.price-card .btn, .price-card .btn-ghost { margin-top: 14px; }

/* ============ REVIEW CARDS ============ */
.review-card .stars { color: var(--amber, #b5640f); font-size: 1.05rem; letter-spacing: 2px; }
.review-card blockquote { margin: 0; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65; }
.review-meta { color: var(--muted); font-size: 0.84rem; font-weight: 700; }

/* ============ PROSE BLOCK (long-form copy) ============ */
.prose { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1rem; line-height: 1.72; }
.prose p { margin-top: 18px; }
.prose p:first-child { margin-top: 0; }
.prose a { color: var(--primary); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose.left { margin-left: 0; }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 940px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; flex: 0 0 auto; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans { padding: 0 22px 20px; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }
.faq-item .ans a { color: var(--primary); font-weight: 700; }

/* ============ CLOSING CTA / RELATED ============ */
.cta-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.cta-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.cta-card.dark {
  background: radial-gradient(700px 400px at 85% 0%, #15665d, transparent 60%), linear-gradient(150deg, #0e3b35, #0b2a26);
  color: #eafdf8;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.cta-card.dark h2 { color: #fff; }
.cta-card p { margin-top: 12px; color: var(--muted); line-height: 1.6; }
.cta-card.dark p { color: rgba(234, 253, 248, 0.78); }
.cta-card ul { margin: 18px 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.cta-card ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.93rem; font-weight: 600;
  color: var(--ink-soft);
}
.cta-card.dark ul li { color: #d7f1eb; }
.cta-card ul li::before {
  content: "";
  width: 16px; height: 16px;
  margin-top: 2px; flex: 0 0 auto;
  border-radius: 999px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.cta-card .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.related-grid { display: grid; gap: 8px; margin-top: 18px; }
.related-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.related-link::after { content: "→"; color: var(--primary); transition: transform 0.18s ease; }
.related-link:hover { background: var(--mint-50); color: var(--primary); border-color: var(--line-strong); }
.related-link:hover::after { transform: translateX(3px); }

/* ============ INNER-PAGE RESPONSIVE ============ */
/* With three nav-action buttons, drop the Web App ghost on narrow desktops
   (below 1000px the whole nav collapses into the burger menu anyway). */
@media (max-width: 1280px) {
  .nav-actions .nav-webapp { display: none; }
}
@media (max-width: 1000px) {
  .page-hero .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 460px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .cta-split { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .feature-split.flip .feature-shot { order: 0; }
}
@media (max-width: 620px) {
  .page-hero { padding: 40px 0 36px; }
  .grid-3, .grid-2, .faq-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .hero-note.tl { top: 8px; left: 0; }
  .hero-note.br { bottom: 20px; right: 0; }
  .cta-card { padding: 26px; }
  .fcard { padding: 22px; }
}
