/* Brewake's own site. Black and white on a white page, like ashsoft.us:
   hierarchy from size and two greys, never from colour. No web fonts.
   Same system as the Just Black Screen site. What is added for Brewake: .pill.small, .eyebrow,
   and .mock (the menu bar picture, drawn in CSS). */

:root {
  --ink: #000;
  --body: #545454;
  --mute: #6b6b6b;
  --surface: #fafafa;
  --surface-2: #f0f0f0;
  --line: rgb(0 0 0 / 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(12px);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.bar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.bar nav a.link {
  color: var(--mute);
  text-decoration: none;
}
.bar nav a.link:hover {
  color: var(--ink);
}

/* Pill buttons: black for the main action, light grey for the other. */
.button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.button:hover {
  background: #2a2a2a;
}
.button.soft {
  background: var(--surface-2);
  color: var(--ink);
}
.button.soft:hover {
  background: #e6e6e6;
}
.button.small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
/* Not a button: something that is not out yet. */
.pill {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--mute);
  font-size: 15px;
  font-weight: 500;
}
.pill.small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

/* Type */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}
h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--body);
}
.note {
  font-size: 14px;
  color: var(--mute);
}
p {
  margin: 0;
}

/* Sections */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 96px;
  text-align: center;
}
.hero img {
  margin: 0 auto;
}
.hero h1 {
  margin-top: 32px;
}
/* The small line above the headline: name and category. */
.hero .eyebrow {
  margin-top: 24px;
  font-size: 14px;
  color: var(--mute);
}
.hero .eyebrow + h1 {
  margin-top: 12px;
}
.hero .lead {
  max-width: 560px;
  margin: 20px auto 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero .note {
  margin-top: 16px;
}
.shot {
  margin-top: 64px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* The picture. Not a screenshot: the macOS menu bar with Brewake's menu open, drawn in CSS.
   White on the black of .shot, so it weighs the same on the page as a screenshot would. */
.mock {
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  cursor: default;
  user-select: none;
}
.mock .menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 14px;
  background: rgb(255 255 255 / 0.1);
}
.mock .menubar div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mock .menubar b {
  font-weight: 600;
}
/* The status item, lit the way macOS lights it while its menu is open. */
.mock .status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 22px;
  margin: 0 -7px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.2);
}
/* The cup is the real menu bar icon (app/icons/menubar-on.svg), inline in the page. */
.mock .cup {
  display: block;
  width: 24px;
  height: 16px;
}
.mock .desk {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 8px 56px 56px;
}
.mock .tagline {
  align-self: center;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.mock .menu {
  flex-shrink: 0;
  width: 280px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border-radius: 8px;
  background: #262626;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.mock .menu li {
  position: relative;
  padding: 2px 10px 2px 14px;
}
.mock .menu li.head {
  font-weight: 600;
}
/* The durations: two rows of eight round buttons. The chosen one takes the accent colour. */
.mock .menu li.grid {
  display: grid;
  grid-template-columns: repeat(8, 28px);
  gap: 6px 4px;
  padding: 4px 9px;
}
.mock .menu li.grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mock .menu li.grid span.on {
  background: #0a84ff;
  font-size: 16px;
}
/* A submenu arrow, and a keyboard shortcut. */
.mock .menu li.more::after,
.mock .menu li.key::after {
  position: absolute;
  right: 12px;
  color: rgb(255 255 255 / 0.55);
}
.mock .menu li.more::after {
  content: "›";
}
.mock .menu li.key::after {
  content: attr(data-key);
}
.mock .menu li.rule {
  height: 1px;
  margin: 5px 10px;
  padding: 0;
  background: rgb(255 255 255 / 0.14);
}

.story {
  max-width: 640px;
  margin: 80px auto 0;
}
.story p + p {
  margin-top: 24px;
}
section.block {
  margin-top: 128px;
}
section.block > h2 {
  margin-bottom: 40px;
}
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card p {
  margin-top: 8px;
  color: var(--body);
}
.price {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.price .amount {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.price ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--body);
}
.price li {
  display: flex;
  gap: 12px;
}
.price li + li {
  margin-top: 12px;
}
.price li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.7em;
  border-radius: 50%;
  background: var(--ink);
}
.faq {
  margin: 0;
  border-top: 1px solid var(--line);
}
.faq div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.faq dt {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq dd {
  margin: 0;
  color: var(--body);
}
.help {
  padding: 80px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.help .lead {
  max-width: 480px;
  margin: 16px auto 0;
}
.help .actions {
  margin-top: 32px;
}
.text-link {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration-color: var(--ink);
}

/* Footer */
footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--mute);
}
footer nav {
  display: flex;
  gap: 20px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
}

/* Terms and privacy: one narrow column of text */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 96px;
  color: var(--body);
}
.legal h1 {
  font-size: 36px;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.legal .note {
  margin-top: 12px;
}
.legal section {
  margin-top: 40px;
}
.legal h2 {
  margin-bottom: 16px;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal p + p,
.legal ul + p {
  margin-top: 16px;
}
.legal ul {
  margin: 0;
  padding-left: 20px;
}
.legal li + li {
  margin-top: 8px;
}

@media (max-width: 809px) {
  h1,
  .price .amount {
    font-size: 40px;
  }
  h2 {
    font-size: 28px;
  }
  .hero {
    padding-top: 64px;
  }
  .bar nav a.link {
    display: none;
  }
  .grid,
  .price,
  .faq div {
    grid-template-columns: 1fr;
  }
  .faq div {
    gap: 8px;
  }
  .price {
    padding: 32px;
  }
  section.block {
    margin-top: 96px;
  }
  /* The menu hangs from the bar on the right; the tagline moves below it. */
  .mock .menubar div:first-child {
    visibility: hidden;
  }
  .mock .desk {
    flex-direction: column;
    align-items: flex-end;
    padding: 4px 8px 32px 24px;
  }
  .mock .tagline {
    order: 2;
    align-self: flex-start;
    font-size: 40px;
  }
}
@media (min-width: 810px) and (max-width: 1199px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 810px) {
  .wrap {
    padding: 0 40px;
  }
}
