/* 介紹 — the marketing page, over night.css: the same sky, glass, 金點 and 青圈, the promo film at its
   heart and the App Store description as its sections (docs/store/description.txt in AuroraGo). */

.promo { max-width: 1180px; }
.promo h1, .promo h2 { color: var(--ink); text-wrap: balance; }
.promo .kicker { margin: 0; font-family: var(--sans); font-size: 14px; letter-spacing: 0.3em; line-height: 1.4; color: var(--gold); }

/* The hero under the curtain: the line of the App's name, then the film. */
.hero { margin-top: 148px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 7.5vw, 84px);
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-shadow: 0 0 40px rgba(111, 227, 198, 0.35);
}
.hero .kicker { color: var(--cyan); }
.hero .lede { margin: 0; max-width: 34em; text-wrap: balance; font-size: clamp(18px, 2.1vw, 21px); color: var(--body); }

.film { margin-top: 48px; }
.film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 30px 120px rgba(51, 255, 87, 0.10), 0 24px 60px rgba(0, 0, 0, 0.6);
}
.film .store { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: 32px; }
.specline { font-family: var(--sans); font-size: 15px; letter-spacing: 0.08em; color: var(--sub); }

/* A section: words beside pictures (feature) or above them (gallery). */
.feature, .gallery, .specs { margin-top: 144px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.feature.flip { flex-wrap: wrap-reverse; flex-direction: row-reverse; }
.feature .words { flex: 999 1 480px; min-width: 0; }
.feature .shots { flex: 1 1 300px; display: flex; justify-content: center; gap: 16px; }
.words { display: flex; flex-direction: column; gap: 18px; }
.words p { margin: 0; }
.words h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.8vw, 42px); line-height: 1.35; }
.gallery { display: flex; flex-direction: column; gap: 40px; }
.gallery .words { max-width: 760px; }

.phone {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 30px;
  border: 1px solid rgba(230, 233, 242, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.pair .phone { width: 47%; max-width: 250px; }
.pair .low { margin-top: 56px; }
.tablet { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid rgba(230, 233, 242, 0.14); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55); }
/* The six themes in a row; narrower, three over three. A phone's share counts its border, and
   is a pixel short of it, or rounding wraps the row. */
.themes { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.themes .phone { box-sizing: border-box; width: calc((100% - 5 * 18px) / 6 - 1px); max-width: none; border-radius: 24px; }
/* The home screens, a widget's kind each: three in a row, on the phone one under another. */
.homes { display: flex; justify-content: center; gap: 40px; }
.homes figure { margin: 0; flex: 1 1 0; min-width: 0; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.homes figcaption { font-family: var(--sans); font-size: 15px; letter-spacing: 0.08em; color: var(--sub); }

/* The ladder's three figures. */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0; }
.figures .slab { padding: 16px 18px; border-radius: 16px; }
.figures dt { display: block; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.figures dt::before { content: none; }
.figures dd { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--sub); }

/* The certificates on a shelf of glass, the tenth dan raised in the middle. */
.scrolls { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 4vw, 56px); padding: 44px 20px 0; border-radius: 24px; overflow: hidden; }
.scrolls figure { margin: 0; flex: 0 1 200px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scrolls .crown { flex-basis: 280px; }
.scrolls img { display: block; width: 100%; height: auto; }
.scrolls .crown img { filter: drop-shadow(0 0 36px rgba(111, 227, 198, 0.25)); }
.scrolls figcaption { padding-bottom: 22px; font-family: var(--sans); font-size: 14px; letter-spacing: 0.1em; color: var(--sub); }
.scrolls .crown figcaption { color: var(--gold); }

/* 棋力對照: the ladder as the rung panel lists it, top the strongest; an IGQE grade hangs on the rung it is
   estimated to match (AuroraGo #473). Columns: the grade, the wire, the rail and the rung. */
.fine { font-family: var(--sans); font-size: 13px; line-height: 1.75; color: var(--faint); max-width: 40em; }
.strength { flex: 1 1 340px; max-width: 470px; box-sizing: border-box; padding: 26px clamp(16px, 4vw, 34px) 22px; border-radius: 24px; font-family: var(--sans); font-size: 14px; font-variant-numeric: tabular-nums; }
.strength .heads, .strength li { display: grid; grid-template-columns: 60px minmax(16px, 1fr) 84px; }
.strength .heads { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.14em; line-height: 1.4; color: var(--sub); white-space: nowrap; }
.strength .heads span:first-child { text-align: right; }
.strength .heads span:last-child { grid-column: 3; color: var(--gold); }
.strength ol { list-style: none; margin: 0; padding: 0; }
.strength li { position: relative; height: 30px; align-items: center; }
.strength .g { grid-column: 1; justify-self: end; }
.strength .hit .g { padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(230, 233, 242, 0.28); background: rgba(230, 233, 242, 0.06); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.4; color: var(--ink); }
.strength .hit::after { content: ''; position: absolute; left: 66px; right: 80px; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(230, 233, 242, 0.45), var(--cyan) 60%, var(--gold)); box-shadow: 0 0 6px var(--cyan-glow); }
.strength .r { grid-column: 3; align-self: stretch; position: relative; display: flex; align-items: center; padding-left: 24px; white-space: nowrap; color: rgba(230, 233, 242, 0.32); }
.strength .r em { font-style: normal; font-family: var(--serif); font-size: 17px; margin-right: 3px; }
.strength .r::after, .strength .gap::after { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: rgba(230, 233, 242, 0.12); }
.strength li:first-child .r::after { top: 50%; }
.strength .r::before { content: ''; position: absolute; z-index: 1; left: 7.5px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid rgba(230, 233, 242, 0.32); background: var(--sky-bottom); }
.strength .hit .r { color: var(--gold); font-weight: 600; }
.strength .hit .r::before { left: 4.5px; width: 13px; height: 13px; margin-top: -6.5px; border: 0; background: radial-gradient(circle at 35% 30%, #f6dca2, var(--gold) 55%, #a87a2c); box-shadow: 0 0 8px 2px var(--gold-glow); }
.strength .gap { height: 14px; }
.strength .gap::after { left: auto; right: 72px; }
.strength .tail .r { font-size: 13px; }
.strength .tail .r::before { content: none; }
.strength .tail .r::after { bottom: 4px; background: repeating-linear-gradient(180deg, rgba(230, 233, 242, 0.22) 0 3px, transparent 3px 7px); }

/* 金點 lists. */
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dots li { position: relative; padding-left: 24px; color: var(--body); }
.dots li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 5px 3px var(--gold-glow);
}

.specs { display: flex; flex-wrap: wrap; gap: 20px 56px; padding: 40px 44px; }
.specs h2 { flex: 1 1 160px; margin: 0; font-family: var(--sans); font-size: 24px; font-weight: 600; letter-spacing: 0.1em; line-height: 1.6; }
.specs .dots { flex: 999 1 480px; }
.speak { padding: 18px 22px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.speak p { margin: 0; color: var(--body); }
.speak h3 { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.speak ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; color: var(--body); }
.speak li::marker { color: var(--gold); font-family: var(--sans); }

.close { margin-top: 120px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.close img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 0 60px rgba(111, 227, 198, 0.25); }
.close p { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 38px); letter-spacing: 0.12em; color: var(--ink); }

.foot {
  margin-top: 120px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--faint);
}
.foot .sitenav { margin-left: 0; margin-right: -14px; }

@media (max-width: 900px) {
  .themes .phone { width: calc((100% - 2 * 18px) / 3 - 1px); }
}

@media (max-width: 760px) {
  .hero { margin-top: 96px; gap: 14px; }
  .hero h1 { letter-spacing: 0.06em; }
  .film { margin-top: 32px; }
  .film video { border-radius: 12px; }
  .film .store { flex-direction: column; align-items: stretch; gap: 12px; }
  .specline { text-align: center; font-size: 14px; }
  .feature, .gallery, .specs { margin-top: 96px; }
  .feature { gap: 36px; }
  .feature.flip { flex-direction: column; flex-wrap: nowrap; }
  .figures { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .figures .slab { display: flex; align-items: baseline; gap: 16px; padding: 10px 18px; }
  .figures dt { flex: none; width: 1.6em; font-size: 28px; }
  .themes { gap: 12px; }
  .themes .phone { width: calc((100% - 2 * 12px) / 3 - 1px); border-radius: 16px; }
  .homes { flex-direction: column; align-items: center; gap: 36px; }
  .homes figure { flex: none; width: 100%; max-width: 260px; }
  .scrolls { padding: 28px 10px 0; gap: 8px; }
  .scrolls figcaption { font-size: 12px; letter-spacing: 0.04em; }
  .specs { padding: 24px 20px; }
  .close { margin-top: 88px; }
  .close img { width: 72px; height: 72px; border-radius: 16px; }
  .foot { margin-top: 88px; flex-direction: column; align-items: flex-start; }
  .foot .sitenav { margin: 0 0 0 -14px; }
}
