/* Page-local styles for the five-screen home page (site/dev/swipe/README.md, "Proposed five-screen home page").
   Written against theme.css tokens only. Phone first (375), then 768 and 1100.
   Look-specific shapes sit under html[data-look="…"] at the end of each section.
   Shapes reused by other pages carry a "candidate for theme.css" comment. */

/* Apple: a white page so the grey bands read as bands. candidate for look-apple.css (--paper: #ffffff) */
html[data-look="apple"] { --paper: #ffffff; }

.nw { white-space: nowrap; }

/* Flags (spec §9): a client's name renders while its data-client-ok is "pending" or "true" and hides at "false";
   .client-alt is the neutral wording shown in its place only when the name is hidden. candidate for theme.css */
[data-client-ok="false"] { display: none !important; }
.client-alt { display: none; }
[data-client-ok="false"] + .client-alt { display: inline; }

/* ---------- a standalone text link: "Read the full case", "More about me" (candidate for theme.css) ---------- */
.more { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
html[data-look="editorial"] .more {
  font-family: var(--font-label); font-size: var(--fs-label); font-weight: var(--w-label);
  letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none;
}
html[data-look="editorial"] .more::after { content: '\00a0\2192' / ''; } /* decorative; silent for screen readers */
html[data-look="editorial"] .more:hover { text-decoration: underline; }
html[data-look="apple"] .more { font-size: 17px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); }
html[data-look="apple"] .more:hover { text-decoration-color: currentColor; }

/* ---------- screen shell: a mono label row, one heading, the body ---------- */
.scr { padding-block: var(--band-pad); }
.scr__head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.scr__kick { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-2); }
.scr__foot { display: flex; flex-direction: column; gap: 4px; margin-top: var(--space-3); }
@media (min-width: 768px) { .scr__foot { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-3); } }
html[data-look="editorial"] .scr__kick { border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-2); }
html[data-look="apple"] .scr__kick { justify-content: flex-start; gap: 0; }
html[data-look="apple"] .scr__kick > span + span::before { content: "\00a0·\00a0"; }
html[data-look="apple"] .scr__foot .caption { font-weight: 400; }
/* Editorial: the full-weight rule that opens each screen does the separating, so screens sit closer than the theme's band */
html[data-look="editorial"] .scr { padding-block: 56px; }
@media (min-width: 1100px) { html[data-look="editorial"] .scr { padding-block: 72px; } }

/* ---------- 1. hero ---------- */
.hero__foot { display: flex; flex-direction: column; gap: var(--space-2); }
.hero__line { margin: 0; font-size: var(--fs-lead); line-height: 1.4; color: var(--ink-dim); max-width: 26em; text-wrap: pretty; }
.hero__small { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 34em; }
.hero__foot .btn-row { margin-top: var(--space-1); }
@media (max-width: 767px) {
  .hero__tile { max-width: 300px; }
  /* the masthead's rule already opens the page; a second full-weight rule 50 px lower read as a stutter */
  html[data-look="editorial"] .hero__text { border-top: 0; padding-top: 0; }
}
@media (min-width: 768px) {
  /* Editorial spread: the claim at the top of the column, the call and its line on the tile's bottom edge */
  html[data-look="editorial"] .hero__text { justify-content: space-between; gap: var(--space-4); }
  html[data-look="editorial"] .hero__tile { justify-content: flex-start; }
  /* the dim tail starts its own line, so the break falls between the claim and the "for whom" */
  .hero .h-display .dim { display: block; }
}
@media (min-width: 1100px) {
  html[data-look="editorial"] .hero .h-display { font-size: 72px; }
  html[data-look="editorial"] .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
html[data-look="apple"] .hero__line { color: var(--ink-dim); letter-spacing: -.01em; }
html[data-look="apple"] .hero__text { gap: var(--space-4); }

/* ---------- 2. one build, three numbers ---------- */
.build__line { max-width: 22em; }
/* tags: mono, quiet; candidate for theme.css */
.tags { list-style: none; margin: var(--space-1) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .04em; color: var(--ink-2);
  padding: 4px 8px; border: var(--rule-w) solid var(--rule-soft); border-radius: var(--radius-btn);
}
html[data-look="editorial"] .tags li { text-transform: uppercase; border-color: var(--ink-2); }
html[data-look="apple"] .tags li { background: var(--surface); border-color: var(--rule); padding: 5px 12px; }

/* the three figures: one hairline row; stacked 1-1-1 on phones, never 2 + 1 */
.figs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.figs li { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-block: var(--space-3); border-top: var(--rule-w) solid var(--rule-soft); }
.figs li:first-child { border-top: 0; }
.figs b {
  align-self: flex-start; white-space: nowrap;
  font-family: var(--font-display); font-weight: var(--w-value); font-size: var(--fs-value);
  line-height: 1; letter-spacing: var(--track-display); color: var(--ink);
  background: var(--mark); border-radius: var(--radius-mark); padding: .06em .14em .04em;
}
.figs span { font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 22em; }
@media (min-width: 768px) {
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figs li { border-top: 0; border-left: var(--rule-w) solid var(--rule-soft); padding: var(--space-3); }
  .figs li:first-child { border-left: 0; }
  .figs b { font-size: 40px; }
}
@media (min-width: 1100px) { .figs b { font-size: 60px; } .figs span { font-size: 16px; } }
html[data-look="editorial"] .figs { border-top: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); }
html[data-look="editorial"] .figs li { padding-inline: 0; }
@media (min-width: 768px) {
  html[data-look="editorial"] .figs li { padding-inline: var(--space-3); }
  html[data-look="editorial"] .figs li:first-child { padding-left: 0; }
}
/* Apple: the three figures share one white tile on the grey band */
html[data-look="apple"] .figs { background: var(--surface); border-radius: var(--radius-tile); box-shadow: var(--shadow-card); padding: 0 var(--space-3); }
html[data-look="apple"] .figs li { border-color: var(--rule-soft); }
@media (min-width: 768px) { html[data-look="apple"] .figs { padding: var(--space-2) 0; } html[data-look="apple"] .figs li { padding: var(--space-3) 28px; } }
@media (min-width: 1100px) { html[data-look="apple"] .figs li { padding: var(--space-4) 36px; } }

/* ---------- 3. offers: four hairline rows ---------- */
.offers { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule-w) solid var(--rule-soft); }
.offer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "role price" "name name" "body body";
  gap: 6px var(--space-2); align-items: baseline;
  padding-block: var(--space-3); border-top: var(--rule-w) solid var(--rule-soft);
}
.offer > * { margin: 0; }
.offer__role { grid-area: role; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.offer__name { grid-area: name; font-family: var(--font-display); font-weight: var(--w-head); font-size: 21px; line-height: 1.2; letter-spacing: var(--track-head); color: var(--ink); }
.offer__body { grid-area: body; display: flex; flex-direction: column; gap: 4px; }
.offer__body p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.offer__body .offer__note { font-size: 14px; color: var(--ink-3); }
.offer__price {
  grid-area: price; text-align: right; white-space: nowrap;
  font-family: var(--font-display); font-weight: var(--w-head); font-size: 21px; letter-spacing: var(--track-head); color: var(--ink);
}
.offer__per { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--ink-3); }
@media (min-width: 768px) {
  .offer {
    grid-template-columns: 6.5rem minmax(0, 3fr) minmax(0, 5fr) minmax(8.5rem, 2fr);
    grid-template-areas: "role name body price"; gap: var(--space-3);
  }
  .offer__name { font-size: 22px; }
  .offer__price { font-size: var(--fs-h2); }
}
.offers__after { display: flex; flex-direction: column; gap: 4px; margin-top: var(--space-3); }
.offers__after > p { margin: 0; }
.offers__after .body { font-size: 16px; }
.offers__after .body a { color: var(--ink); font-weight: 500; }
html[data-look="editorial"] .offer--entry { border-top: 2px solid var(--ink); }
html[data-look="apple"] .offer { border-top-color: var(--rule); }
html[data-look="apple"] .offer__role { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
html[data-look="apple"] .offers { border-bottom-color: var(--rule); }

/* ---------- 4. how I work: one dim-tail statement, three hairline columns ---------- */
.how__claim { max-width: 20em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.steps li { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.steps li > * { margin: 0; }
.steps__n { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink-3); }
.steps__t { font-family: var(--font-display); font-weight: var(--w-head); font-size: 21px; line-height: 1.2; letter-spacing: var(--track-head); color: var(--ink); }
.steps__l { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.steps__l span { display: block; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
@media (min-width: 1100px) { .steps__t { font-size: 22px; } }
html[data-look="editorial"] .steps li { border-top: var(--rule-w) solid var(--rule); padding-top: var(--space-2); }
@media (min-width: 768px) {
  html[data-look="editorial"] .steps { border-top: var(--rule-w) solid var(--rule); }
  html[data-look="editorial"] .steps li { border-top: 0; padding: var(--space-3) var(--space-3) var(--space-1); border-left: var(--rule-w) solid var(--rule-soft); }
  html[data-look="editorial"] .steps li:first-child { border-left: 0; padding-left: 0; }
}
/* Apple: rounded white tiles on the grey band (parlance-process.png) */
html[data-look="apple"] .steps li { background: var(--surface); border-radius: var(--radius-tile); box-shadow: var(--shadow-card); padding: 28px 24px; }
html[data-look="apple"] .steps__n { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; }
@media (min-width: 768px) { html[data-look="apple"] .steps { gap: 20px; } }

/* ---------- 5. contact and bio ---------- */
.contact__main { display: flex; flex-direction: column; gap: var(--space-3); }
.contact__main .h-display { max-width: 14em; }
.contact__main > p { margin: 0; }
.contact__main .body { max-width: 34em; }
.contact__mail a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-display); font-weight: var(--w-head); font-size: var(--fs-h2); letter-spacing: var(--track-head);
  color: var(--ink);
}
.bio { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-5); padding-top: var(--space-3); border-top: var(--rule-w) solid var(--rule-soft); }
.bio > * { margin: 0; }
.bio__text { display: flex; flex-direction: column; gap: 4px; }
.bio .body { margin: 0; max-width: 40em; }
.bio .more { align-self: flex-start; }
@media (min-width: 768px) {
  .bio { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-3); align-items: baseline; }
}
html[data-look="apple"] .bio { border-top-color: var(--rule); }

/* ---------- footer: a second row of small links ---------- */
.foot__more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-3); }
.foot__more a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink-2); }
.foot__more { margin-top: calc(-1 * var(--space-2)); } /* reads as the second row of the links above, not a new group */
@media (min-width: 768px) { .foot__more { flex-basis: 100%; } }
html[data-look="editorial"] .foot__more a { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; }
