/* StraightCue landing: plain CSS, no build step, no framework.
   One look, dark by design: lit pool tables in a dark hall. The ground is the
   hall, #0E1813; the felt of a table stays the cloth, #203E2B, so a table is
   the lit thing on the page; chalk hairlines.
   Colours from branding/README.md: cloth #203E2B, gold #E8B04A. */

@font-face {
  font-family: "Finlandica Text";
  src: url("/fonts/FinlandicaText.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Finlandica Headline";
  src: url("/fonts/FinlandicaHeadline.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


:root {
  color-scheme: dark;
  --ground: #0E1813;
  --ink: #15231B;
  --text: #F2F0E7;
  --text-2: #C5CFC6;
  --gold: #E8B04A;
  --felt: #203E2B;
  --wood: #C4925A;
  --hairline: rgba(242, 240, 231, 0.2);
  --font-sans: "Finlandica Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Finlandica Headline", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
}
a { color: var(--gold); }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  position: static;
  display: inline-block;
  margin: 8px;
}

/* One column, left-aligned, 1080px at most. */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1112px;
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
}
.wordmark { display: block; width: 148px; }
.wordmark img { display: block; width: 100%; height: auto; }
nav.site ul {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}
nav.site a { color: var(--text); text-underline-offset: 4px; }
nav.site a[aria-current="page"] { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
main { display: block; }

/* ---- Type ---- */
h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 24px;
}
h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
p {
  max-width: 62ch;
  margin: 0 0 1em;
}
p:last-child { margin-bottom: 0; }
code { font-family: var(--mono); font-size: 0.9em; }

/* ---- Pages without a table: About, Contact, 404 ---- */
.simple .wrap {
  max-width: 1112px;
  padding: 48px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
}

/* A note under a field or a figure. */
.fine { color: var(--text-2); font-size: 15px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Tables: the library and the plans ---- */
.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top;
  padding-bottom: 8px;
  text-align: left;
  color: var(--text-2);
}
th, td {
  padding: 10px 16px 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
th { font-family: var(--font-head); font-weight: 600; }
thead th { border-bottom-color: var(--text-2); }
th[scope="row"] { font-weight: 500; }

/* ---- Empty slots read as plain text ---- */
.empty-slot { color: var(--text-2); }

/* ---- Footer ---- */
footer.site {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1112px;
  margin: 0 auto;
  padding: 26px max(16px, env(safe-area-inset-right, 0px)) 44px max(16px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 15px;
}
footer.site .lockup { width: 124px; }
footer.site .lockup img { display: block; width: 100%; height: auto; }
footer.site p { margin: 0; max-width: none; }
footer.site a { color: var(--text-2); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 900px) {
  th[scope="row"] { white-space: nowrap; }
}

/* ---- The Features page and what it shares with the home page (A77) ---- */
.page-features, .page-home { font-size: 17px; line-height: 1.5; }
.col {
  max-width: 1112px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.col > * { min-width: 0; }
.col img { display: block; max-width: 100%; height: auto; }
.col p { margin: 0; }
.col h1, .col h2 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
main.col {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding-top: 8px;
  padding-bottom: 72px;
}
.block { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.block h2 { font-size: clamp(27px, 7vw, 40px); }
.sub { color: var(--text-2); max-width: 34em; }

.feat-head { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.feat-head h1 { font-size: clamp(34px, 9vw, 60px); }

/* The nine: each under its ball. */
.nine { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.nine li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  padding-block: 18px;
  border-top: 1px solid var(--hairline);
}
.nine .mark { width: 44px; }
.nine h2 { font-size: 21px; padding-top: 2px; }
.nine p { color: var(--text-2); margin-top: 5px; }

/* The library: a strip to swipe on a phone. */
.strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: -16px;
  padding-inline: 16px;
  scroll-padding-inline: 16px;
  padding-bottom: 10px;
}
.strip figure { flex: 0 0 76%; max-width: 330px; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.strip figcaption { font-size: 15px; line-height: 1.4; color: var(--text-2); }
.strip figcaption b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text); }

.page-features th[scope="row"], .page-features thead th, .page-features tbody th { font-family: var(--font-head); font-weight: 700; }
.page-features td { color: var(--text-2); }
.page-features thead th { border-bottom-color: var(--text); }
.page-features .table-scroll { margin: 0; }

/* The opening and closing tables: the table and the words share one grid cell. */
.stage { display: grid; width: 100%; }
.stage > * { grid-area: 1 / 1; min-width: 0; }
.stage .wide { display: none; }
.stage img { width: 100%; }
.close-copy { padding: 22px calc(8.4% + 16px) 0; display: flex; flex-direction: column; gap: 10px; }
.close-copy h2 { font-size: clamp(22px, 6.2vw, 34px); }

/* The sign-up: one action, a field and a gold button. */
.signup { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.signup-row { display: flex; flex-direction: column; gap: 8px; }
.signup input[type="email"] {
  font-family: var(--font-sans);
  font-size: 17px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 6px;
}
.signup input[type="email"]::placeholder { color: #6B766E; }
.signup button {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  min-height: 48px;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.signup input:focus-visible,
.signup button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.signup .fine { font-size: 13px; line-height: 1.35; }
.signup .fine a { color: var(--text-2); }

/* The home page (A78). */
.signup label { font-size: 14px; color: var(--text-2); }
.hero-copy { padding: calc(8.4% + 18px) calc(8.4% + 18px) 0; display: flex; flex-direction: column; gap: 12px; }
.hero-copy h1 { font-size: clamp(30px, 8.8vw, 40px); }
.lede { font-size: clamp(15px, 4.2vw, 17px); line-height: 1.4; color: var(--text); }
.cap { font-size: 14px; color: var(--text-2); line-height: 1.4; }

/* How it works: three shots along one dashed line. */
.shots { list-style: none; margin: 6px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 34px; }
.shots li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 50px; bottom: -32px; border-left: 3px dashed var(--gold); }
.shots li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; position: relative; }
.shots .mark { width: 40px; padding-block: 4px; align-self: start; }
.shots h3 { font-family: var(--font-head); font-weight: 800; font-size: 23px; line-height: 1.05; margin: 0; padding-top: 8px; }
.shots p { color: var(--text-2); margin-top: 6px; max-width: 30em; }
.shots figure { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.tally { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; }
.tally b { font-family: var(--font-head); font-weight: 800; font-size: 52px; line-height: 1; }
.tally svg { width: 150px; height: auto; }
.chart { background: var(--felt); border: 1px solid var(--hairline); padding: 10px 10px 6px; }

/* Build your own. */
.build { display: flex; flex-direction: column; gap: 18px; }
.build .words { display: flex; flex-direction: column; gap: 14px; }
.tray { border: 1px solid var(--hairline); padding: 8px 10px; margin-top: 8px; }
.more { font-size: 17px; }
.more a { font-family: var(--font-head); font-weight: 700; text-underline-offset: 4px; }

/* Free to train: two short lists. */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.plans h3 { font-family: var(--font-head); font-weight: 800; font-size: 21px; line-height: 1.05; margin: 0 0 8px; }
.plans ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.plans li { padding-left: 20px; position: relative; }
.plans li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; background: var(--wood); transform: rotate(45deg); }
.plans .pro li::before { background: var(--gold); }

@media (min-width: 620px) and (max-width: 859px) {
  .stage { max-width: 440px; margin-inline: auto; }
  .hero-copy h1 { font-size: 40px; }
  .lede { font-size: 17px; }
}
@media (min-width: 860px) {
  .page-features, .page-home { font-size: 18px; }
  .wordmark { width: 176px; }
  main.col { gap: 104px; padding-bottom: 104px; }
  .feat-head { padding-top: 44px; }
  .nine { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; }
  .strip { overflow: visible; margin-inline: 0; padding-inline: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .strip figure { max-width: none; }
  .stage .tall { display: none; }
  .stage .wide { display: block; }
  .closing { max-width: 860px; margin-inline: auto; }
  .close-copy { padding: calc(4.6% + 34px) 0 0 calc(4.6% + 40px); width: 56%; gap: 14px; }
  .signup-row { flex-direction: row; }
  .signup input[type="email"] { flex: 1 1 auto; min-width: 0; width: auto; }
  .signup .fine { font-size: 14px; }
  .signup label { font-size: 15px; }
  .hero-copy { padding: calc(4.5% + 16px) 0 0 calc(4.5% + 28px); width: 48%; gap: 12px; }
  .hero-copy h1 { font-size: clamp(42px, 4.2vw, 56px); }
  .lede { font-size: clamp(16px, 1.9vw, 20px); }
  .shots { flex-direction: row; gap: 36px; }
  .shots li:not(:last-child)::before { left: 52px; right: -26px; top: 23px; bottom: auto; border-left: 0; border-top: 3px dashed var(--gold); }
  .shots li { flex: 1 1 0; grid-template-columns: minmax(0, 1fr); row-gap: 6px; align-content: start; }
  .build { flex-direction: row; align-items: center; gap: 56px; }
  .build .words { flex: 0 0 38%; }
  .build .draw { flex: 1 1 0; min-width: 0; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; max-width: 860px; }  .tally { flex-wrap: nowrap; gap: 6px 12px; }
  .tally b { font-size: 34px; white-space: nowrap; }
  .tally svg { flex: 0 1 100px; min-width: 0; }
}
