/* Page sections, phone layout first, then tablet and desktop. */

/* Hero. Phones read eyebrow, title, lede and actions, then the scene, so the one action is on the
   first screen. The scene: the torn night sky, the sample's own cover and Bear Cub in felt. */
.hero { display: grid; gap: 18px; }
main > .hero { margin-top: 6px; }
.hero h1 { margin-bottom: .4em; }
.lede { font-size: 1.16rem; max-width: 34em; margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 6px 0 12px; }
.status-line { margin: 0; max-width: 34em; color: var(--ink); }
.status-line strong { color: var(--sage-ink); }
.status-line a { display: inline-flex; align-items: center; min-height: 44px; }
.hero-scene { position: relative; aspect-ratio: 5 / 4; max-width: 560px; width: 100%; justify-self: center; }
.sky {
  position: absolute; inset: 0 0 16% 0; border-radius: 26px 30px 0 0; background: var(--night) url("../art/felt/night.jpg") 38% 30% / cover;
  clip-path: var(--torn);
  --torn: polygon(0 0, 100% 0, 100% 90%, 94% 94%, 88% 89%, 81% 95%, 73% 91%, 66% 96%, 58% 90%, 50% 95%, 42% 91%, 35% 96%, 27% 90%, 20% 95%, 12% 90%, 6% 95%, 0 91%);
}
.hero-cover {
  position: absolute; left: 8%; bottom: 6%; width: 36%; height: auto; background: var(--page);
  border-radius: 4px 8px 8px 4px; transform: rotate(-4deg);
  box-shadow: -5px 0 0 var(--clay), 0 0 0 1px rgba(58, 42, 28, .14), 0 12px 18px -8px rgba(58, 42, 28, .5);
}
.hero-guide { position: absolute; right: 4%; bottom: 2%; width: 50%; height: auto; filter: drop-shadow(0 12px 10px rgba(58, 42, 28, .35)); }

/* See every step: the app's own steps, minutes and nights. */
.parts { width: 100%; border-collapse: separate; border-spacing: 0; padding: 6px 16px; margin: 8px 0 12px; }
.parts th, .parts td { text-align: left; padding: 10px 6px; border-bottom: 2px dashed var(--line); vertical-align: top; }
.parts tbody tr:last-child > * { border-bottom: 0; }
.parts thead th { font: 800 .9rem/1.2 var(--sans); color: var(--muted); }
.parts tbody th { font-weight: 700; }
.parts td { white-space: nowrap; font-weight: 800; color: var(--sage-ink); }
.parts td + td { color: var(--muted); font-weight: 700; }
/* Pick a reading friend: the felt guides, one large on a card and five in a row. */
.friends { display: grid; gap: 28px; }
.friend-stage { display: grid; justify-items: center; padding: 18px 16px 14px; max-width: 420px; }
.friend-stage img { height: 220px; width: auto; filter: drop-shadow(0 10px 8px rgba(58, 42, 28, .3)); }
.friend-name { margin: 10px 0 0; font: 800 1.15rem/1.2 var(--display); }
.friend-row { display: flex; gap: 8px; margin: 16px 0 12px; max-width: 420px; }
.friend-row li { flex: 1 1 0; min-width: 0; }
.friend-row button {
  display: grid; justify-items: center; gap: 4px; width: 100%; padding: 6px 2px; border: 0; cursor: pointer;
  border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font: 800 .76rem/1.1 var(--sans); color: var(--ink); overflow-wrap: anywhere;
}
.friend-row img { height: 54px; width: auto; }
.friend-row [aria-pressed=true] { box-shadow: inset 0 0 0 3px var(--honey), 0 3px 0 var(--honey-edge); }
.friends > .phone { justify-self: center; }

/* Print one tonight: three steps, the download, and the two printed pages fanned like paper. */
.try { display: grid; gap: 24px; }
.try-steps { display: grid; gap: 10px; margin: 16px 0 14px; counter-reset: try; }
.try-steps li { position: relative; padding-left: 48px; min-height: 36px; }
.try-steps li::before {
  counter-increment: try; content: counter(try); position: absolute; left: 0; top: -4px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); box-shadow: 0 0 0 3px var(--honey), 0 3px 0 3px var(--honey-edge); font: 800 1.05rem/1 var(--display);
}
.try .fine { margin: 6px 0 0; }
.try-figure { margin: 0; }
.try-pic { position: relative; width: min(100%, 380px); aspect-ratio: 1 / 1; margin: 0 auto; }
.try-cap { max-width: 380px; margin: 8px auto 0; text-align: center; font-weight: 800; color: var(--muted); }
.try-pic img:not(.try-guide) {
  position: absolute; top: 2%; width: 44%; height: auto; background: var(--page);
  border-radius: 4px; box-shadow: 0 0 0 1px rgba(58, 42, 28, .14), 0 12px 16px -8px rgba(58, 42, 28, .45);
}
.try-cover { left: 2%; transform: rotate(-3deg); }
.try-page { right: 4%; top: 5%; transform: rotate(3deg); }
.try-guide { position: absolute; left: 40%; bottom: 0; width: 21%; height: auto; filter: drop-shadow(0 8px 6px rgba(58, 42, 28, .35)); }

/* Privacy lists use a drawn check on a stone. */
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 38px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--card); box-shadow: 0 0 0 2.5px var(--sage), 0 3px 0 2.5px #4a7064;
}
.check-list li::after {
  content: ""; position: absolute; left: 9px; top: calc(.1em + 6px); width: 7px; height: 11px;
  border: solid var(--sage-ink); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.privacy { width: calc(100% - 16px); background: var(--sage-wash); border-radius: var(--cut); box-shadow: var(--lift); padding-top: 32px; padding-bottom: 32px; }
.privacy-more { margin-top: 18px; }
.privacy-more summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; color: var(--sage-ink); text-decoration: underline; text-underline-offset: 3px; }
.privacy-more .check-list { margin-top: 10px; }
.privacy-link { margin: 8px 0 0; }

/* FAQ uses native disclosure for keyboard and screen readers, each question a paper card. */
.faq details { background: var(--card); border-radius: 18px 20px 17px 19px; box-shadow: 0 0 0 1px rgba(120, 90, 50, .14), 0 3px 0 #e6d3ae; margin-top: 12px; }
.faq summary {
  cursor: pointer; list-style: none; position: relative; min-height: 56px;
  padding: 16px 56px 16px 18px; font: 800 1.08rem/1.35 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--sage-wash); color: var(--sage-ink); font: 800 1.2rem/1 var(--sans);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }

/* Invite only, and what happens on the first sign-in (the app's own first screens). */
.waitlist-card { position: relative; padding: 24px 20px; display: grid; gap: 8px; }
.invite-guide { position: absolute; top: -34px; right: 8px; width: 92px; height: auto; filter: drop-shadow(0 8px 6px rgba(58, 42, 28, .3)); }
.waitlist-body > h2, .waitlist-intro { padding-right: 96px; }
.first-steps { margin: 6px 0 4px; }
.first-title { margin: 0 0 8px; font-weight: 800; }
.first-list { display: grid; gap: 8px; counter-reset: first; }
.first-list li { position: relative; padding-left: 40px; color: var(--muted); min-height: 30px; }
.first-list li::before {
  counter-increment: first; content: counter(first); position: absolute; left: 0; top: -1px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 50%; background: var(--sage-wash); color: var(--sage-ink); font: 800 .95rem/1 var(--display);
}
.waitlist-form { display: grid; gap: 10px; margin-top: 12px; max-width: 520px; }
.waitlist-form label { font-weight: 800; }
.waitlist-form input[type=email] { min-height: 52px; padding: 12px 16px; font: inherit; color: var(--ink); border: 2px solid var(--muted); border-radius: 14px; background: #fff; }
.waitlist-form input[aria-invalid=true] { border-color: #a3341f; }
.consent { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; min-height: 44px; font-weight: 600 !important; font-size: 1rem; color: var(--muted); padding: 6px 0; cursor: pointer; }
.consent input { width: 28px; height: 28px; margin: 0; accent-color: var(--clay); }
.error { color: #a3341f; font-weight: 800; margin: 0; min-height: 1.4em; }
.waitlist-form .button { justify-self: start; }
.wl-privacy { margin: 4px 0 0; }
/* The trap field: off screen for people, still in the form for bots that fill every box. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks h3 { font-size: 1.6rem; margin-top: 8px; }
.thanks h3:focus { outline: none; }

@media (min-width: 760px) {
  .friends { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: 44px; }
  .friend-row img { height: 68px; }
  .try { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 44px; }
  .try-pic { width: 100%; max-width: 440px; }
  .privacy { padding: 44px 48px; }
  .privacy .check-list { grid-template-columns: repeat(2, 1fr); gap: 16px 36px; }
  .waitlist-card { grid-template-columns: 170px 1fr; padding: 40px; gap: 28px; align-items: start; }
  .invite-guide { position: relative; top: auto; right: auto; width: 170px; }
  .waitlist-body > h2, .waitlist-intro { padding-right: 0; }
  .first-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 44px; align-items: center; }
  main > .hero { margin-top: 24px; }
}
