/*
 * YakBells: temporary landing page styles.
 *
 * Standalone on purpose: it imports nothing and nothing imports it. The real site is website/
 * (Next.js, EPIC-012); this is the placeholder until that exists.
 *
 * Two kinds of colour live here:
 *   - brand tokens, copied by hand from brand/tokens.json (primary, secondary, foreground, …);
 *   - page-local neutrals: a white page, near-white raised surfaces, hairline greys. These exist only
 *     in this file.
 * Anything you change in one belongs in a note here; nothing is generated.
 *
 * Light-only, English-only, no JavaScript.
 */

/* ── Tokens ──────────────────────────────────────────────────────────────────────────── */
:root {
  /* Brand: mirror of brand/tokens.json → color.light */
  --primary: #0e7c66;
  --primary-deep: #0a5a4a;
  --primary-foreground: #ffffff;
  --secondary: #f2a03d;
  --foreground: #0b1a17;

  /* Page-local: white stock. The app is white/cool, so the page is too; the only
     non-token hues are the hairline greys used for rules and card edges. */
  --paper: #ffffff;
  --paper-raised: #fbfbfa;
  --ink: #14211d;
  --ink-soft: #3f4a44;
  --ink-muted: #5f6b66;
  --rule: #e6e4e0;
  --rule-strong: #c9c6c0;
  --ochre: #b57d24;

  /* Type */
  --display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Karla', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Print shadows: hard offsets, never a soft glow */
  --press: 3px 3px 0 rgba(20, 33, 29, 0.16);
  --press-lg: 6px 6px 0 rgba(20, 33, 29, 0.12);

  --wrap: 1080px;
}

/* ── Base ────────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

em {
  font-style: italic;
}

:focus-visible {
  outline: 2px dashed var(--primary-deep);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 0.85rem;
}

.skip-link:focus {
  left: 0;
}

/* ── Shared editorial pieces ─────────────────────────────────────────────────────────── */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
}

.section {
  padding: 84px 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 44px;
}

.section__head h2 {
  margin-top: 20px;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.section__sub {
  margin-top: 16px;
  color: var(--ink-muted);
  max-width: 34rem;
}

/* ── Masthead ────────────────────────────────────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}

.masthead__rule {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  height: 3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
}

/* The masthead wordmark carries more weight than the footer's. */
.masthead .brand {
  gap: 13px;
  font-size: 1.9rem;
}

.masthead .brand img {
  width: 46px;
  height: 46px;
}

.brand__bells {
  color: var(--primary-deep);
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.masthead__nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.masthead__nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}

/* Rubber stamp */
.stamp {
  display: inline-block;
  padding: 5px 11px 4px;
  border: 1.5px solid var(--ochre);
  border-radius: 3px;
  color: var(--ochre);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-2.5deg);
}

@media (max-width: 760px) {
  .masthead__nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .masthead .brand {
    gap: 10px;
    font-size: 1.6rem;
  }

  .masthead .brand img {
    width: 38px;
    height: 38px;
  }
}

/* ── Hero ────────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}

/* Faint contour lines, like a topo sheet under the type. */
.hero__contours {
  position: absolute;
  top: -40px;
  right: -80px;
  width: 720px;
  height: 560px;
  color: var(--primary);
  opacity: 0.13;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--primary-deep);
}

.hero__lede {
  margin-top: 26px;
  max-width: 33rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* Ticket stubs, not app-store buttons: the apps aren't published. */
.tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.ticket {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 18px 9px 12px;
  background: var(--paper-raised);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--press);
  color: var(--ink);
}

.ticket__stub {
  display: flex;
  align-items: center;
  padding-right: 13px;
  border-right: 1px dashed var(--rule-strong);
}

.ticket svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

.ticket__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ticket__store {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
}

.ticket__soon {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ticket--solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.ticket--solid .ticket__stub {
  border-right-color: rgba(255, 255, 255, 0.35);
}

.ticket--solid .ticket__soon {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 960px) {
  .hero {
    padding: 44px 0 72px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 72px;
  }
}

/* ── The plate: a framed phone, like a figure in a field guide ───────────────────────── */
.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.plate__caption {
  max-width: 26rem;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.phone {
  position: relative;
  width: 300px;
  padding: 9px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: var(--paper-raised);
  box-shadow: var(--press-lg);
}

.phone__screen {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--rule);
  background: #ffffff;
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 2px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.statusbar__icons {
  flex: none;
  width: 42px;
  height: 11px;
  color: var(--ink-muted);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 0;
}

.app-header__hi {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.app-header__name {
  display: block;
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex: none;
}

.searchbar {
  margin: 14px 20px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px dashed var(--rule-strong);
  border-radius: 2px;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.searchbar svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex: none;
}

.app-h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 20px 20px 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-h2 span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-deep);
  border-bottom: 1px solid var(--rule-strong);
}

.h-row {
  display: flex;
  gap: 10px;
  padding: 12px 20px 0;
}

.route-mini {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-raised);
}

.route-mini__art {
  height: 62px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 3px,
    rgba(20, 33, 29, 0.09) 3px 4px
  );
}

.route-mini__art svg {
  width: 100%;
  height: 100%;
}

.route-mini__body {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--rule);
}

.route-mini__name {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
}

.route-mini__meta {
  display: flex;
  flex-direction: column;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: 4px;
}

.guide-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 20px;
  padding: 12px 0;
  border-top: 1px dashed var(--rule);
}

.guide-row__body {
  display: block;
  min-width: 0;
  flex: 1;
}

.guide-row__name {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  white-space: nowrap;
}

.stars svg {
  width: 10px;
  height: 10px;
  fill: var(--secondary);
}

.stars span {
  font-size: 0.66rem;
  color: var(--ink-muted);
  margin-left: 4px;
}

.guide-row__rate {
  display: block;
  text-align: right;
  flex: none;
}

.guide-row__rate b {
  font-size: 0.8rem;
  font-weight: 600;
}

.guide-row__rate small {
  display: block;
  font-size: 0.62rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.app-cta {
  margin: auto 20px 20px;
  padding: 13px;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 380px) {
  .phone {
    width: 100%;
  }
}

/* ── Notes band ──────────────────────────────────────────────────────────────────────── */
.notes {
  border-top: 1px solid var(--rule);
  background: var(--paper-raised);
  padding: 64px 0 72px;
}

.notes__head {
  max-width: 26rem;
  margin-bottom: 40px;
}

.notes__head h2 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.notes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.notes__list li {
  padding: 0 28px;
  border-left: 1px solid var(--rule);
}

.notes__list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.notes__list li:last-child {
  padding-right: 0;
}

.numeral {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ochre);
}

.notes__list h3 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.notes__list p {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

@media (max-width: 940px) {
  .notes__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .notes__list li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .notes__list {
    grid-template-columns: 1fr;
    row-gap: 26px;
  }

  .notes__list li {
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 22px;
  }
}

/* ── How it works ────────────────────────────────────────────────────────────────────── */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.column {
  padding-right: 46px;
}

.column + .column {
  padding-right: 0;
  padding-left: 46px;
  border-left: 1px solid var(--rule);
}

.column__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-deep);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
}

.column__title {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.column__lede {
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

.steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, lower-roman) '.';
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ochre);
  line-height: 1.5;
}

.steps b {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.steps span {
  display: block;
  margin-top: 3px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

@media (max-width: 880px) {
  .columns {
    grid-template-columns: 1fr;
  }

  .column {
    padding-right: 0;
  }

  .column + .column {
    margin-top: 48px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
    padding-top: 40px;
  }
}

/* ── Notice: the closing call to action ──────────────────────────────────────────────── */
.notice {
  position: relative;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper-raised);
  box-shadow: var(--press-lg);
  padding: 46px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 44px;
  align-items: center;
}

.notice::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.notice__inner {
  position: relative;
}

.notice h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.notice__note {
  margin-top: 16px;
  max-width: 32rem;
  color: var(--ink-muted);
}

.notice__stores {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.notice__footnote {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.notice__footnote a {
  color: var(--primary-deep);
  border-bottom: 1px solid var(--rule-strong);
}

.notice__footnote a:hover {
  border-bottom-color: var(--primary-deep);
}

/* Wax-seal-ish roundel with the brand mark */
.seal {
  position: relative;
  width: 62px;
  height: 62px;
  border: 1.5px solid var(--primary-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transform: rotate(-4deg);
}

.seal::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed var(--primary-deep);
  border-radius: 50%;
  opacity: 0.5;
}

.seal img {
  width: 30px;
  height: 30px;
}

@media (max-width: 880px) {
  .notice {
    grid-template-columns: 1fr;
    padding: 34px 26px;
    gap: 30px;
  }

  .notice::before {
    inset: 5px;
  }
}

/* ── Footer ──────────────────────────────────────────────────────────────────────────── */
.footer {
  margin-top: 84px;
  padding: 52px 0 34px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.footer__tagline {
  margin-top: 16px;
  max-width: 22rem;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.footer h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.94rem;
}

.footer a:hover {
  color: var(--primary-deep);
}

.footer__bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.colophon {
  font-family: var(--display);
  font-style: italic;
}

@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
