/* MorseHub site redesign (2026-10-29): the home page, /sync, /link and /direct. Loads after app.css and site.css.
   Calm and spare: one headline, lots of empty space, one blue (the two blues in tokens.css),
   flat and plain. Every color comes from tokens.css. Class names start with ms- so nothing here
   touches the app, the setup page or the older pages. */

/* ---------- bar: logo, four links, one button ---------- */
.ms-bar {
  --ms-page: 1120px;
  width: 100%; max-width: var(--ms-page); margin: 0 auto; padding: 8px var(--s4) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo cta" "links links";
  align-items: center; gap: 0 var(--s3);
}
.ms-bar .wordmark { grid-area: logo; justify-self: start; }
.ms-cta { grid-area: cta; }
.ms-links { grid-area: links; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0; margin: 0 -10px; }
.ms-links a {
  min-height: var(--tap); padding: 0 10px; display: inline-flex; align-items: center; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.ms-links a:active { background: var(--wash); }
.ms-links a[aria-current="page"] { color: var(--ink); font-weight: 650; }
@media (hover: hover) { .ms-links a:hover { color: var(--ink); } }
@media (min-width: 820px) {
  .ms-bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo links cta"; padding-top: 12px; }
  .ms-links { justify-content: center; gap: var(--s2); margin: 0; }
  .ms-links a { padding: 0 var(--s4); }
}

/* ---------- buttons and links ---------- */
.ms-btn, .ms-cta {
  min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; padding: 0 20px;
  border-radius: var(--r-pill); background: var(--accent-fill); color: var(--on-accent);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ms-btn { min-height: 52px; padding: 0 32px; font-size: 17px; }
.ms-btn:active, .ms-cta:active { filter: brightness(.9); }
@media (hover: hover) { .ms-btn:hover, .ms-cta:hover { filter: brightness(1.08); } }
.ms-more {
  display: inline-flex; align-items: center; min-height: var(--tap); gap: 6px; color: var(--accent); font-size: 17px;
  font-weight: 500; text-decoration: none;
}
.ms-more::after { content: "\203A"; font-size: 1.25em; line-height: 1; transition: transform var(--fast) var(--ease); }
@media (hover: hover) { .ms-more:hover { text-decoration: underline; text-underline-offset: 4px; } .ms-more:hover::after { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .ms-more::after { transition: none; } }
.ms-bar a:focus-visible, .ms-main a:focus-visible, .ms-foot a:focus-visible, .ms-main summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- main column ---------- */
.ms-main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s4) 56px; font-size: 17px; line-height: 1.5; }
.ms-main:focus { outline: none; }
.ms-hero { text-align: center; padding: 72px 0 24px; display: grid; justify-items: center; }
.ms-kicker { font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 var(--s3); }
.ms-hero h1 {
  font-size: clamp(36px, 8.5vw, 72px); line-height: 1.05; font-weight: 650; letter-spacing: -0.03em;
  max-width: 14em; text-wrap: balance; margin: 0;
}
.ms-lede { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.4; color: var(--ink-2); max-width: 28em; margin: var(--s5) 0 0; text-wrap: balance; }
.ms-acts { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2) var(--s6); }
.ms-note { margin: var(--s4) 0 0; font-size: 15px; color: var(--ink-2); }
.ms-founder {
  margin: 40px 0 0; padding: var(--s3) var(--s5); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 15px; line-height: 1.4; color: var(--ink-2); max-width: 100%;
}
.ms-founder strong { color: var(--ink); font-weight: 600; }
.ms-hero .ms-founder a, .ms-foot .ms-foot-by a { color: var(--accent); white-space: nowrap; }

/* ---------- the three products on the home page ---------- */
.ms-products { margin-top: 120px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; }
.ms-product { display: grid; gap: var(--s2); align-content: start; justify-items: start; }
.ms-product h2 { font-size: 32px; line-height: 1.1; font-weight: 650; letter-spacing: -0.02em; margin: 0; }
.ms-tag { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; margin: 0; }
.ms-product p { margin: 0; font-size: 19px; line-height: 1.4; color: var(--ink-2); max-width: 20em; }
.ms-product .ms-more { margin-top: var(--s1); }
@media (min-width: 820px) {
  .ms-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: 160px; }
  .ms-hero { padding-top: 120px; }
}
.ms-small { margin: 72px auto 0; max-width: 34em; text-align: center; font-size: 15px; color: var(--ink-2); }

/* ---------- product pages ---------- */
.ms-sect { margin-top: 120px; display: grid; justify-items: center; }
.ms-sect > h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; font-weight: 650; letter-spacing: -0.02em; text-align: center; margin: 0; text-wrap: balance; }
.ms-sect > .ms-sub { margin: var(--s4) 0 0; color: var(--ink-2); text-align: center; max-width: 30em; text-wrap: balance; }
.ms-facts { margin: 48px 0 0; padding: 0; width: 100%; max-width: 860px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 56px; }
.ms-facts > div { display: grid; gap: var(--s1); align-content: start; }
.ms-facts dt { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.ms-facts dd { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
@media (min-width: 720px) { .ms-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ms-steps { margin: 48px 0 0; padding: 0; width: 100%; max-width: 640px; list-style: none; counter-reset: ms; display: grid; gap: var(--s6); }
.ms-steps li { counter-increment: ms; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.ms-steps li::before {
  content: counter(ms); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink-3); display: grid; place-items: center;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.ms-steps strong { font-weight: 600; }
.ms-steps span { color: var(--ink-2); display: block; }
.ms-list { margin: 48px 0 0; padding: 0; width: 100%; max-width: 640px; list-style: none; display: grid; gap: 0; }
.ms-list li { padding: var(--s4) 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.ms-list li:last-child { border-bottom: 1px solid var(--line); }
.ms-list b { font-weight: 600; }
.ms-list span { color: var(--ink-2); }
.ms-qa { margin: 40px 0 0; width: 100%; max-width: 640px; }
.ms-qa details { border-top: 1px solid var(--line); }
.ms-qa details:last-child { border-bottom: 1px solid var(--line); }
.ms-qa summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); cursor: pointer; font-weight: 600; list-style: none; padding: var(--s2) 0; }
.ms-qa summary::-webkit-details-marker { display: none; }
.ms-qa summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--ink-2); flex: none; }
.ms-qa details[open] summary::after { content: "\2212"; }
.ms-qa details p { margin: 0 0 var(--s4); color: var(--ink-2); max-width: 36em; }
.ms-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6); margin-top: var(--s5); }
.ms-end { text-align: center; padding: 0; }
.ms-end .ms-acts { margin-top: 28px; }

/* ---------- footer ---------- */
.ms-foot { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s4) var(--s6); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ms-foot::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: var(--s6); }
.ms-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
@media (min-width: 720px) { .ms-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ms-foot h2 { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 var(--s1); }
.ms-foot ul { list-style: none; margin: 0; padding: 0; }
.ms-foot li a { min-height: var(--tap); min-width: var(--tap); display: inline-flex; align-items: center; color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .ms-foot li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.ms-foot-by { margin: var(--s6) 0 0; }


/* ---------- home: keep the pricing and trial sections quiet ---------- */
.landing .sect.price, .landing .trial-sect { margin-top: 120px; }
.landing .sect > h2 { font-size: clamp(28px, 5vw, 40px); }
.landing .spots-line { margin: 0; font-size: 15px; color: var(--ink-2); }
.landing .trial-aside { margin: var(--s4) 0 0; font-size: 15px; color: var(--ink-2); text-align: center; }
.landing .price-intro { margin: 0; color: var(--ink-2); text-align: center; max-width: 30em; }
.landing .spots.big { margin-top: var(--s3); }
@media (max-width: 480px) {
  .ms-acts .ms-btn { width: 100%; }
  .ms-founder { border-radius: var(--r-card); padding: var(--s3) var(--s4); text-align: left; }
}
