/* Saacho landing page (homepage) styles - editorial revision 2026-09-06
   Loaded only by apps/internal/landing_page/index.php */

img { max-width: 100%; height: auto; }
.display-font { font-family: 'Source Serif 4', Georgia, serif; }
.display { font-family: 'Source Serif 4', Georgia, serif; }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 4.75rem 1.5rem 3.25rem; }
.hero-inner {
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 4rem;
  align-items: start;
}
.hero-copy { max-width: 60ch; }
.hero h1.display {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 1rem 0 1.4rem;
  color: var(--ink);
}
.hero h1.display em { font-style: italic; color: var(--brand); }
.hero-lede { font-size: 1.08rem; color: var(--ink-dim); max-width: 54ch; line-height: 1.65; margin-block: 0 1.9rem; }
.hero-actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 2.1rem; }
.hero-meta { display: flex; list-style: none; padding: 0; margin: 0; font-size: .84rem; color: var(--ink-dim); letter-spacing: .02em; flex-wrap: wrap; }
.hero-meta li + li::before { content: "\00b7"; margin: 0 .8rem; color: var(--gold); font-weight: 700; }

/* Right-hand table of contents: a flat hairline panel */
.hero-index {
  border: var(--hairline);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  padding: 1.6rem;
  position: sticky;
  top: 6.5rem;
}
.hero-index-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.hero-index-head img { border-radius: 50%; }
.hero-index-head .wordmark { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1.1; }
.hero-index-head .wordmark span { color: var(--gold); }
.hero-index-head .kicker { font-size: .62rem; margin-top: .15rem; }
.hero-index-lede { font-size: .85rem; color: var(--ink-dim); margin: 0 0 1.1rem; line-height: 1.6; }
.toc { list-style: none; margin: 0 0 .4rem; padding: 0; border-top: var(--hairline); }
.toc li { border-bottom: var(--hairline); }
.toc a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .78rem .1rem; color: var(--ink); font-weight: 600; font-size: .9rem; }
.toc a:hover { color: var(--brand); text-decoration: none; }
.toc a:hover .toc-arrow { transform: translateX(3px); }
.toc-arrow { color: var(--gold); font-size: .9rem; transition: transform .12s ease; }
.hero-note { margin: .5rem 0 0; font-size: .8rem; color: var(--ink-dim); line-height: 1.5; }
.hero-note strong { color: var(--brand); }

/* ── Facts band ───────────────────────────────────── */
.facts { border-block: var(--hairline); background: var(--bg); }
.facts-inner { max-width: 1100px; margin-inline: auto; padding: 2rem 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.fact { border-left: var(--hairline); padding-left: 1.5rem; }
.fact:first-child { border-left: none; padding-left: 0; }
.fact b { display: block; font-family: 'Source Serif 4', Georgia, serif; font-weight: 650; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.1; color: var(--ink); }
.fact span { font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }

/* ── Sections ─────────────────────────────────────── */
.section-pad { padding: 4.5rem 1.5rem; }
.section-inner { max-width: 1100px; margin-inline: auto; }
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: .75rem;
}
.sec-eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: var(--gold); }
.sec-title { margin: 0 0 .75rem; font-size: clamp(1.7rem, 3.5vw, 2.1rem); font-weight: 650; letter-spacing: -.015em; }
.sec-title.center { text-align: center; }
.sec-sub { color: var(--ink-dim); max-width: 640px; margin: 0 0 2.5rem; line-height: 1.65; font-size: 1rem; }
.sec-sub.center { margin-inline: auto; text-align: center; }

/* ── Principles: numbered, ruled, boxless ──────────── */
.principle-list { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.principle { border-top: 1px solid var(--ink); }
.principle-num { display: block; font-family: 'Source Serif 4', Georgia, serif; font-style: italic; color: var(--gold); font-size: 1rem; margin: 1.25rem 0 .55rem; }
.principle h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 .45rem; color: var(--ink); }
.principle p { font-size: .88rem; color: var(--ink-dim); margin: 0; line-height: 1.6; }

/* ── Tools: editorial index of rows, not cards ────── */
.tool-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; margin: 0; }
.tool-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem .15rem;
  border-top: var(--hairline);
  text-decoration: none;
  color: inherit;
}
.tool-row:hover { text-decoration: none; }
.tool-row h3 { margin: 0; font-size: 1rem; font-weight: 650; color: var(--ink); }
.tool-row p { margin: .28rem 0 0; font-size: .84rem; color: var(--ink-dim); line-height: 1.55; max-width: 52ch; }
.tool-row .tool-link { font-size: .82rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.tool-row:hover h3 { color: var(--brand); text-decoration: underline; text-underline-offset: .25em; }
.tool-row:hover .tool-link { text-decoration: underline; text-underline-offset: .25em; }
.tool-featured { grid-column: 1 / -1; align-items: center; }
.tool-featured h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.3rem; }
.tool-featured p { font-size: .9rem; }

/* Tags inside rows */
.tag { border: 1px solid var(--border); background: var(--bg); color: var(--ink-dim); }
.tag-open, .tag-new { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.tag-free { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.tag-gold { border-color: var(--gold); background: var(--gold-light); color: #8a6517; }

/* More apps details */
.tools details { margin-top: 1.5rem; }
.tools summary.more-label {
  list-style: none;
  cursor: pointer;
  font-size: .74rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
  width: fit-content;
}
.tools summary.more-label::-webkit-details-marker { display: none; }
.tools summary.more-label:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: .3em; }
.tool-list-more { margin-top: 1.75rem; }

/* ── Stories: journal index ───────────────────────── */
.story-index { display: grid; grid-template-columns: 1.45fr 1fr; gap: 3.5rem; align-items: start; }
.feature-cover {
  width: 100%;
  aspect-ratio: 16 / 5;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  margin: 0 0 1.5rem;
}
.feature-story {
  display: block;
  text-decoration: none;
  border-left: 3px solid var(--gold);
  padding-left: 1.75rem;
}
.feature-story:hover { text-decoration: none; }
.feature-story h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 650; font-size: clamp(1.4rem, 2.5vw, 1.8rem); line-height: 1.25; margin: 0 0 .75rem; color: var(--ink); }
.feature-story p { font-size: .95rem; color: var(--ink-dim); line-height: 1.6; margin: 0 0 1rem; max-width: 56ch; }
.feature-story .btn-ghost { display: inline-block; margin-top: .35rem; }
.feature-story:hover h3 { color: var(--brand); }
.story-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .76rem; color: var(--ink-dim); letter-spacing: .02em; }
.feature-story .story-meta { margin-top: 1.1rem; }

.story-recent .recent-list { list-style: none; margin: 0; padding: 0; counter-reset: recent; border-top: var(--hairline); }
.recent-list li { counter-increment: recent; border-bottom: var(--hairline); }
.recent-list a { display: flex; gap: 1rem; padding: .95rem .15rem; text-decoration: none; color: var(--ink); }
.recent-list a::before { content: counter(recent, decimal-leading-zero); font-family: 'Source Serif 4', Georgia, serif; font-style: italic; color: var(--gold); font-size: .88rem; padding-top: .15rem; min-width: 1.6rem; }
.recent-list b { display: block; font-weight: 600; font-size: .9rem; line-height: 1.4; }
.recent-list small { color: var(--ink-dim); font-size: .75rem; }
.recent-list a:hover { color: var(--brand); text-decoration: none; }

.story-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.story-list li { border-top: var(--hairline); }
.story-list a { display: block; padding: 1.25rem .15rem 1.25rem 0; text-decoration: none; color: var(--ink); }
.story-list a:hover { text-decoration: none; }
.story-list h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 650; font-size: 1.05rem; line-height: 1.35; margin: 0 0 .4rem; }
.story-list a:hover h3 { color: var(--brand); }

/* ── Why Saacho: numbered recto rows ──────────────── */
.why-list { list-style: none; margin: 3rem 0 0; padding: 0; }
.why-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 2.5rem; align-items: baseline; padding: 2.4rem 0; border-top: 1px solid var(--ink); }
.why-row:last-child { border-bottom: 1px solid var(--ink); }
.why-num { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; color: var(--gold); font-size: 1.05rem; }
.why-body h3 { font-size: 1.35rem; font-weight: 650; margin: 0 0 .6rem; color: var(--ink); letter-spacing: -.01em; }
.why-body p { color: var(--ink-dim); line-height: 1.65; margin: 0 0 1.15rem; max-width: 60ch; }
.why-body .btn-ghost { display: inline-block; }
.why-end {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 650;
  font-size: 1.9rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  text-align: right;
  align-self: center;
}
.why-end strong { font-weight: inherit; }

/* ── Responsive ───────────────────────────────────── */
@media (width <= 960px) {
  .hero { padding-top: 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-index { position: static; }
  .story-index { grid-template-columns: 1fr; gap: 2.25rem; }
  .principle-list { grid-template-columns: 1fr; gap: 0; }
  .principle { padding: 1.4rem 0; }
  .principle-list .principle + .principle { border-top: var(--hairline); }
  .principle-num { margin-top: 0; }
  .tool-list { grid-template-columns: 1fr; }
  .tool-row { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .tool-featured { grid-column: auto; }
  .story-list { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 1fr; gap: .5rem; padding: 2rem 0; }
  .why-end { text-align: left; font-size: 1.4rem; }
  .facts-inner { grid-template-columns: 1fr; gap: 0; }
  .fact { border-left: none; padding-left: 0; border-top: var(--hairline); padding-top: 1.1rem; margin-top: 1.1rem; }
  .fact:first-child { border-top: none; padding-top: 0; margin-top: 0; }
}
@media (width <= 620px) {
  .hero { padding-top: 2.75rem; padding-bottom: 2.25rem; }
  .hero-actions { gap: 1rem; align-items: flex-start; flex-direction: column; }
  .section-pad { padding: 3.5rem 1.25rem; }
  .facts-inner { padding: 1.5rem 1.25rem; }
  .tool-row p { max-width: none; }
  .hero-meta li + li::before { margin: 0 .5rem; }
}