/* Home and share pages. Tokens come from app.css (Tree & Tale, Garden). */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: var(--radius-input); z-index: 5 }
.skip:focus { left: 8px }
body.home { padding-bottom: 0; font-size: 1.0625rem; line-height: 1.6 }
.home .top, .home main, .home .h-foot { max-width: var(--content-max); margin-inline: auto }
.home .top .mk { width: 44px; height: 44px }
.home .top .wm { font-size: 1.1875rem }
.home .quiet.sm { min-height: 44px }
@media (max-width: 720px) { .hide-s { display: none } }

/* hero: the words on the left, the chart hanging on a wall on the right */
.h-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: clamp(28px, 6vh, 64px) 0 clamp(28px, 5vh, 56px) }
.h-hero h1 { margin: 10px 0 18px; font-size: clamp(38px, 5.2vw, 60px) }
.h-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 26px 0 }
.h-cta .link { font-size: 1.0625rem }
.h-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--hairline); color: var(--ink-soft); font-size: 0.9375rem }
.h-trust li { display: inline-flex; align-items: center; gap: 8px }
.h-trust li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); flex: none }
.h-wall { background: var(--band); border-radius: var(--radius-card); padding: 18px 28px 30px; display: flex; flex-direction: column; align-items: center }
.h-string { width: 170px; height: 42px; flex: none; fill: none }
.h-string circle { fill: var(--saffron) }
.h-string path { stroke: var(--saffron); stroke-width: 1.6 }
.h-shot { margin: -6px 0 0; width: 100%; background: var(--frame-forest); padding: var(--frame-pad); border-radius: var(--radius-frame); box-shadow: var(--shadow-frame) }
.h-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 849; background: var(--chart-paper) }
.h-shot figcaption { margin: 10px -4px -4px; color: var(--on-brand); font-size: 0.875rem; text-align: center }

/* sections: alternate ones sit on the band colour, edge to edge */
.h-sec { padding: clamp(36px, 6vh, 64px) 0 }
.h-band { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax) }
.h-title { display: block; font: 600 clamp(28px, 3.6vw, 40px)/1.15 var(--font-display); letter-spacing: -0.01em; margin: 8px 0 20px; color: var(--ink) }
.h-lede { color: var(--ink-soft); font-size: 1.125rem; max-width: 40em; margin-bottom: 24px }
.h-band .kicker { color: var(--ink-soft) }
.h-note { margin-top: 26px; color: var(--ink-soft) }

/* How it works: three steps in a row, joined by a saffron arrow; one under the other on a phone */
.h-flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px }
.h-flow li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px }
.h-flow li + li::before { content: ''; position: absolute; top: 38px; right: calc(50% + 56px); width: calc(100% - 112px + 24px); height: 2px; background: var(--saffron) }
.h-flow li + li::after { content: ''; position: absolute; top: 33px; right: calc(50% + 54px); border: 6px solid transparent; border-left: 9px solid var(--saffron); border-right: 0 }
.h-ic { position: relative; width: 78px; height: 78px; margin-bottom: 8px; border-radius: 50%; background: var(--card); border: 2px solid var(--control-border); display: grid; place-items: center }
.h-ic svg { width: 36px; height: 36px; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round }
.h-ic b { position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 0.8125rem/26px var(--font-text) }
.h-flow strong { font: 700 1.125rem/1.3 var(--font-text) }
.h-flow li > span:last-child { color: var(--ink-soft); font-size: 0.9375rem }
.h-go { margin-top: 32px; text-align: center }
@media (max-width: 720px) {
  .h-flow { grid-template-columns: minmax(0, 1fr); gap: 34px }
  .h-flow li + li::before { top: -30px; right: auto; left: calc(50% - 1px); width: 2px; height: 20px }
  .h-flow li + li::after { top: -12px; right: auto; left: calc(50% - 6px); border: 6px solid transparent; border-top: 9px solid var(--saffron); border-bottom: 0 }
}

.h-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0 }
.h-designs figure { margin: 0; background: var(--card); padding: 10px; border: 1px solid var(--hairline); border-radius: var(--radius-card) }
.h-designs img { display: block; width: 100%; height: auto; aspect-ratio: 360 / 255; background: var(--band); border-radius: 12px }
.h-designs figcaption { padding: 10px 6px 4px; font: 600 1.125rem/1.3 var(--font-display) }

.h-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px }
.h-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 1.0625rem }
.h-list li { display: flex; gap: 12px }
.h-list li::before { content: ''; width: 9px; height: 9px; margin-top: .6em; border-radius: 50%; background: var(--leaf); flex: none }

/* questions: the design system's Faq (cards, + and − in the accent) */
.h-faq { display: grid; gap: 10px; max-width: 880px }
.h-faq .h-faq { max-width: none }
.h-faq details { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card) }
.h-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 14px var(--space-card); font: 700 1.0625rem/1.35 var(--font-text); border-radius: var(--radius-card) }
.h-faq summary::-webkit-details-marker { display: none }
.h-faq summary::after { content: '+'; font: 400 1.625rem/1 var(--font-text); color: var(--accent); flex: none }
.h-faq details[open] summary::after { content: '−' }
.h-more { background: none !important; border: 0 !important }
.h-more > summary { justify-content: flex-start; padding-inline: 0; color: var(--brand); text-decoration: underline; text-underline-offset: 4px }
.h-more > summary::after { display: none }
.h-more > .h-faq { margin-top: 4px }
.h-faq details p { padding: 0 var(--space-card) 18px; max-width: 46em; color: var(--ink-soft); font-size: 1rem }

.h-final { text-align: center; padding: clamp(40px, 7vh, 80px) 0; background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax) }
.h-final .lead { margin-inline: auto }
.h-final .h-cta { justify-content: center }
.h-foot { border-top: 1px solid var(--hairline); padding: 28px 0 40px; display: grid; gap: 10px }
.h-foot .brand { justify-self: start }

@media (max-width: 900px) {
  .h-hero, .h-two { grid-template-columns: minmax(0, 1fr); gap: 28px }
  .h-wall { padding: 12px 14px 20px }
  .h-designs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
  .h-designs figure { padding: 6px; border-radius: 14px }
  .h-designs figcaption { font-size: 1rem; padding: 8px 4px 2px }
}

/* Share page */
.s-hero { max-width: 980px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) 0 24px; text-align: center }
.s-hero h1 { margin: 8px 0 12px; font-size: clamp(34px, 5.5vw, 56px) }
.s-hero .lead { margin: 0 auto }
.s-chart { margin: 28px auto 0; background: var(--frame-forest); padding: var(--frame-pad); border-radius: var(--radius-frame); box-shadow: var(--shadow-frame) }
.s-chart a { display: block }
.s-chart img { display: block; width: 100%; height: auto; background: var(--chart-paper) }
.s-chart figcaption { margin-top: 10px; color: var(--on-brand); font-size: 0.875rem }
.s-hero .h-cta { justify-content: center }
.s-cta { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vh, 56px) 0; text-align: center; border-top: 1px solid var(--hairline) }
.s-cta .lead { margin-inline: auto }
.s-cta .h-cta, .s-cta .h-trust { justify-content: center }
.share .h-note { text-align: center }
/* phones: the logo and "Make your chart" stay on one row */
@media (max-width: 480px) {
  .home .top { flex-wrap: nowrap }
  .home .top .mk { width: 34px; height: 34px }
  .home .top .wm { font-size: 0.875rem; letter-spacing: .18em }
  .home .top .quiet.sm { padding: 0 12px; font-size: 0.875rem; white-space: nowrap }
  .home .topnav { gap: 8px }
}
