/* Plain Apps - legal.css: layout, reading pages, home, app pages */

body.legal { min-height: 100vh; display: flex; flex-direction: column; }

/* header */
.legal__top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  width: 100%; max-width: var(--page); margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 32px);
}
.site-name {
  font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.01em;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.site-name::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--accent);
  box-shadow: 7px 7px 0 -2px var(--sage);
  margin-right: 6px;
}
.legal__nav { display: flex; gap: 22px; font-size: 15px; }
.legal__nav a { color: var(--text-dim); text-decoration: none; padding: 4px 0; }
.legal__nav a:hover { color: var(--text); text-decoration: underline; }

/* reading column */
.legal__main {
  flex: 1 0 auto; width: 100%; max-width: 760px; margin: 0 auto;
  padding: clamp(20px, 5vw, 48px) clamp(18px, 4vw, 32px) 64px;
}
.legal__main h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 12px; }
.legal__main h2 { font-size: 22px; line-height: 1.25; margin: 38px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal__main h3 { font-size: 18px; margin: 24px 0 8px; }
.legal__main p, .legal__main ul { margin: 0 0 14px; }
.legal__main ul { padding-left: 1.3em; }
.legal__main li { margin-bottom: 8px; }
.legal__main li::marker { color: var(--accent); }
.legal__main code { font-family: var(--mono); font-size: .92em; color: var(--text-dim); }
.legal__meta { color: var(--text-dim); font-size: 16px; margin-bottom: 10px; }
.legal__note { padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 6px; margin: 18px 0 8px; }
mark.ph { background: #F2D45C; color: #1A1500; padding: 0 4px; border-radius: 2px; }

/* footer */
.legal__foot {
  width: 100%; max-width: var(--page); margin: 0 auto; padding: 28px clamp(18px, 4vw, 32px) 40px;
  border-top: 1px solid var(--line); color: var(--text-dim); font-size: 14.5px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.legal__foot a { color: var(--text-dim); }
.legal__foot p { margin: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); filter: none; }

/* wide pages (home, app) */
.wide { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); flex: 1 0 auto; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.hero h1 { font-size: clamp(36px, 6.4vw, 66px); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-dim); max-width: 34em; margin: 0 0 24px; }
.promises { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.promises li { background: var(--sage-soft); color: var(--sage); padding: 6px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; }

.fan { position: relative; aspect-ratio: 1 / .84; width: 100%; }
.fan img {
  position: absolute; bottom: 0; width: 33%; border-radius: 22px; border: 6px solid var(--text);
  box-shadow: var(--shadow); background: var(--surface);
}
.fan img:nth-child(1) { left: 3%;   transform: rotate(-7deg) translateY(-4%); }
.fan img:nth-child(2) { left: 33.5%; z-index: 2; transform: translateY(-9%); }
.fan img:nth-child(3) { right: 3%;  transform: rotate(7deg) translateY(-4%); }

.section-title { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.015em; margin: 8px 0 6px; }
.section-sub { color: var(--text-dim); margin: 0 0 24px; }

.grid { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.card {
  display: grid; grid-template-columns: 72px 1fr; gap: 4px 16px; align-items: start;
  padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  text-decoration: none; color: var(--text); height: 100%; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.card img { width: 72px; height: 72px; border-radius: 17px; grid-row: 1 / span 3; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.card strong { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.card .sub { color: var(--accent); font-size: 14px; font-weight: 600; }
.card .pitch { color: var(--text-dim); font-size: 15.5px; line-height: 1.45; }
.card .where { grid-column: 2; font-size: 13px; color: var(--text-faint); margin-top: 4px; }

.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wide { padding-top: 40px; padding-bottom: 44px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 16px; }
.facts h3 { font-size: 19px; margin-bottom: 6px; }
.facts p { margin: 0; color: var(--text-dim); font-size: 16px; }

/* app page */
.apphero { display: grid; grid-template-columns: 128px 1fr; gap: 24px; align-items: center; padding: clamp(16px, 4vw, 44px) 0 24px; }
.apphero img { width: 128px; height: 128px; border-radius: 29px; box-shadow: var(--shadow); }
.apphero h1 { font-size: clamp(32px, 5.4vw, 52px); letter-spacing: -.02em; line-height: 1.08; }
.apphero .sub { color: var(--accent); font-weight: 600; margin: 4px 0 8px; }
.apphero .pitch { color: var(--text-dim); font-size: 19px; margin: 0 0 18px; max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 2px 22px; margin: 12px 0 8px; -webkit-overflow-scrolling: touch; }
.shots img { height: min(62vh, 520px); width: auto; flex: none; border-radius: 20px; border: 5px solid var(--text); scroll-snap-align: start; background: var(--surface); box-shadow: var(--shadow); }
.apppage { max-width: 760px; padding-bottom: 56px; }
.apppage section { margin-top: 30px; }
.apppage h2 { font-size: 22px; margin-bottom: 8px; }
.apppage p { margin: 0 0 12px; }
.status { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sage); background: var(--sage-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .fan { max-width: 440px; margin: 0 auto; }
  .apphero { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .apphero img { width: 88px; height: 88px; border-radius: 20px; }
  .shots img { height: 420px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
