/* Landing page ("/"): what this is, a live preview of the showcase, and where to go next.
   The about page ("/om") shares its header, footer and type.
   Builds on style.css (tokens, .brand, .button, .eyebrow). */
.landing-top,
.landing,
.about,
.landing-foot {
  max-width: 1080px;
  margin: 0 auto;
}
.landing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 88px;
}
.go-last {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #dedfd7;
  border-radius: 8px;
  background: #fafbf7;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  max-width: 62vw;
  transition:
    transform 140ms var(--ease-out),
    background-color 140ms ease;
}
.go-last-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.go-last:active {
  transform: scale(0.97);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
  padding: 40px 0 56px;
}
.landing-copy {
  max-width: 520px;
}
.landing h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.landing-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 20px 0 0;
  text-wrap: pretty;
}
.landing-actions {
  margin-top: 28px;
}
.landing .button {
  padding: 0 20px;
  border-radius: 9px;
  font-size: 15px;
}
.landing-primary {
  min-height: 48px;
  background: var(--green);
  color: #fff;
}
.landing-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.landing-hint svg {
  margin-top: 2px;
  color: var(--green);
}

/* The preview: the real showcase page at phone width, scaled into a device frame. */
.landing-preview {
  --screen-w: 390px;
  --screen-h: 844px;
  --status-bar: 34px;
  --scale: 0.74;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.phone {
  margin: 0;
  padding: 10px;
  border-radius: 46px;
  background: #1f2622;
  box-shadow:
    0 1px 0 1px #ffffff14 inset,
    0 30px 60px -20px #1f3a2a55,
    0 12px 24px -12px #1f3a2a40;
  animation: phone-in 700ms var(--ease-out) both;
}
.phone-screen {
  position: relative;
  width: calc(var(--screen-w) * var(--scale));
  height: calc(var(--screen-h) * var(--scale) + var(--status-bar));
  padding-top: var(--status-bar);
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
}
/* Status bar clock and dynamic island, above the page instead of over it. */
.phone-screen::before {
  content: "09:41";
  position: absolute;
  top: 10px;
  left: 28px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.phone-screen::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  border-radius: 12px;
  background: #1f2622;
}
.phone-screen iframe {
  display: block;
  width: var(--screen-w);
  height: var(--screen-h);
  border: 0;
  transform: scale(var(--scale));
  transform-origin: 0 0;
  pointer-events: none;
}
.landing-demo {
  min-height: 44px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #dedfd7;
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.landing-points {
  list-style: none;
  margin: 0;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.landing-points h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
  margin: 14px 0 6px;
}
.landing-points p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-wrap: pretty;
}
.point-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e1e8db;
  color: var(--green);
}

.landing-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* About page ("/om"): short sections of questions that open in place. */
.about,
.about-narrow {
  max-width: 720px;
}
.about {
  padding-bottom: 48px;
}
.about-intro {
  padding: 32px 0 20px;
}
.about h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}
.about-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.about-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dedfd7;
  border-radius: 999px;
  background: #fafbf7;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 140ms var(--ease-out),
    background-color 140ms ease;
}
.about-toc a:active {
  transform: scale(0.97);
}
.about-section {
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.about-section + .about-section {
  margin-top: 16px;
}
.about-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.about-section h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin: 0;
}
.about-faq details {
  border-bottom: 1px solid var(--line);
}
.about-faq details:last-child {
  border-bottom: 0;
}
.about-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.about-faq summary::-webkit-details-marker {
  display: none;
}
.about-faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease-out);
}
.about-faq details[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.about-answer {
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a524c;
}
.about-answer p,
.about-answer ul {
  margin: 0 0 10px;
  text-wrap: pretty;
}
.about-answer > :last-child {
  margin-bottom: 0;
}
.about-answer ul {
  padding-left: 20px;
}
.about-answer li + li {
  margin-top: 6px;
}
.about-answer strong {
  color: var(--ink);
}
.about-answer code {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.about-contact {
  margin: 36px 0 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--green-soft);
  font-size: 15px;
}
.about-contact a {
  color: var(--green);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .about-toc a:hover {
    background: #eaf0e3;
  }
  .about-faq summary:hover {
    color: var(--green);
  }
  .go-last:hover,
  .landing-demo:hover {
    background: #eaf0e3;
  }
  .landing-primary:hover {
    background: #234a3b;
  }
}
@media (max-width: 900px) {
  .landing-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .landing-top {
    height: 72px;
  }
  .landing-top .brand > span:last-child {
    font-size: 17px;
  }
  .landing-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 20px 0 40px;
  }
  .landing-lede {
    font-size: 16px;
  }
  .landing-primary {
    width: 100%;
  }
  .landing-preview {
    --scale: 0.7;
  }
  .landing-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }
  .landing-points li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
  }
  .landing-points li .point-icon {
    grid-row: span 2;
  }
  .landing-points h2 {
    margin-top: 0;
  }
  .landing-foot {
    flex-direction: column;
    gap: 6px;
  }
  .about-intro {
    padding-top: 16px;
  }
}
@media (max-width: 360px) {
  .landing-preview {
    --scale: 0.64;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone {
    animation: none;
  }
  .about-faq summary::after {
    transition: none;
  }
}
