/* bocketrox.com. Colors, fonts and spacing come from tokens.css. */

/* ---------- Base ---------- */

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 26px;
  /* Keeps the footer at the bottom of the window on a short page. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

h2 {
  font-size: 36px;
  line-height: 1.1;
}

ul {
  padding-left: 22px;
}

img {
  max-width: 100%;
}

a {
  color: var(--rocket-orange-deep);
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* The page's content column: 1120px wide plus 24px of padding each side. */
.wrap {
  max-width: 1168px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.muted {
  color: var(--ink-muted);
}

.fine-print {
  font-size: 14px;
  line-height: 20px;
}

.measure {
  max-width: 36em;
}

.page-title {
  font-size: 56px;
  line-height: 1.05;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--surface);
  outline-color: var(--rocket-orange-deep);
}

/* ---------- Header ---------- */

.site-header {
  padding-top: 24px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header__brand {
  display: block;
  line-height: 0;
}

.site-header__brand img {
  height: 56px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-nav a {
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--rocket-orange-deep);
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  line-height: 20px;
}

.site-footer__inner {
  padding-block: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a,
.site-footer a:hover {
  color: var(--surface);
}

.site-footer a:hover {
  text-decoration-thickness: 2px;
}

.site-footer :focus-visible {
  outline-color: var(--surface);
}

/* ---------- Buttons and labels ---------- */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--ink);
  color: var(--surface);
}

.button--primary {
  background: var(--rocket-orange-deep);
  border-color: var(--rocket-orange-deep);
  color: var(--surface);
}

.button--primary:hover {
  border-color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* A label that is not a link, such as "iPad version in private beta". */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background: var(--teal);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* ---------- Cards and bands ---------- */

.card {
  background: var(--surface-raised);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 20px;
}

/* A full-width cardboard-colored section. */
.band {
  background: var(--kraft);
  border-block: 4px solid var(--ink);
}

.band__inner {
  padding-block: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.band--roomy .band__inner {
  padding-block: 56px;
  gap: var(--space-6);
}

/* The band meets the footer with no gap, so its bottom border is not needed. */
main > .band:last-child {
  border-bottom: 0;
}

/* ---------- Home ---------- */

.hero {
  padding-top: 24px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.hero__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero__eyebrow {
  font-family: var(--font-marker);
  font-size: 22px;
  line-height: 28px;
  color: var(--rocket-orange-deep);
}

.hero__title {
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.05;
  text-wrap: balance;
}

.hero__lede {
  max-width: 34em;
  color: var(--ink-muted);
}

.hero__art {
  flex: 1 1 380px;
  min-width: 0;
  position: relative;
  height: 488px;
  background: var(--teal);
  border: 4px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__rocket {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  height: 380px;
  width: auto;
  max-width: none;
}

/* The roll pattern: the brand's one pattern, used once per view. */
.hero__roll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 36px, var(--surface) 36px 72px);
  border-top: 4px solid var(--ink);
}

.app-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
}

.app-card__icon {
  flex: none;
  width: 104px;
  height: 104px;
}

.app-card__text {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-card__text h3 {
  font-size: 28px;
  line-height: 34px;
}

.story {
  padding-block: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.story__patch {
  flex: none;
  width: 220px;
  height: 220px;
}

.story__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ---------- DiscoLab ---------- */

.product {
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.product__icon {
  flex: none;
  width: 144px;
  height: 144px;
}

.product__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product__tagline {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 32px;
  color: var(--teal);
}

.screenshot {
  margin: 0 auto;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.screenshot img {
  width: 100%;
  max-width: 880px;
  height: auto;
}

.screenshot figcaption {
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-4);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature h3 {
  font-size: 22px;
  line-height: 28px;
}

/* ---------- Support ---------- */

.support {
  padding-top: 32px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.support__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support__lede {
  max-width: 34em;
  font-size: 19px;
  line-height: 29px;
}

.support__patch {
  flex: none;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 20px 24px;
}

.contact-card__text {
  flex: 1 1 240px;
  min-width: 0;
}

.contact-card__address {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 32px;
  overflow-wrap: anywhere;
}

.checklist__title {
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.faq {
  gap: 12px;
}

.faq h2 {
  margin-bottom: var(--space-2);
}

.faq details {
  padding: 16px 20px;
}

.faq summary {
  min-height: 28px;
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin-top: 10px;
}

/* ---------- Privacy ---------- */

.policy {
  max-width: 808px;
  padding-top: 32px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.policy__title {
  font-size: 52px;
  margin-bottom: var(--space-2);
}

.policy section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy section h2 {
  font-size: 28px;
  line-height: 34px;
}

.policy li + li {
  margin-top: var(--space-2);
}

.policy__draft {
  background: var(--mustard);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  line-height: 22px;
}

.policy__summary {
  background: var(--kraft);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.policy__summary h2 {
  font-size: 26px;
  line-height: 32px;
}

/* ---------- Page not found ---------- */

.not-found {
  padding-top: 48px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
