/* Heads Up website: the "Paper" design (Ink theme, light). */

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --text: #18181b;
  --text-2: #3f3f46;
  --body: #52525b;
  --muted: #63636b;
  --line: #e4e4e2;
  --line-soft: #eeeeeb;
  --red: #d93a40;
  --avoid-bg: #fde8e8;
  --avoid-text: #b42328;
  --note-bg: #fdf0d6;
  --note-text: #8a5208;
  --want-bg: #e1f3e8;
  --want-text: #1c6e3d;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.06), 0 30px 60px -20px rgba(24, 24, 27, 0.25);
  --wrap: 1160px;
  --gutter: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--text);
}

a:hover {
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-weight: 650;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* Buttons -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  min-height: 52px;
  padding: 0 22px;
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

.btn-light {
  background: var(--surface);
  border-color: #d4d4d0;
  color: var(--text);
}

.btn-light:hover {
  background: var(--surface-2);
}

.btn-white {
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.btn-white:hover {
  background: #ececea;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 550;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-head .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* Hero ----------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 56px 72px;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.lede {
  max-width: 470px;
  color: var(--body);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fine {
  color: var(--muted);
  font-size: 14px;
}

.browser {
  flex: 1 1 520px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcdcd8;
}

.browser-bar span {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #efefec;
  color: var(--muted);
  font-size: 12px;
}

.browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* Legend --------------------------------------------------------------------- */

.band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 28px;
}

.legend > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legend strong {
  display: block;
}

.legend span.sub {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.tile {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.tile svg {
  width: 20px;
  height: 20px;
}

.tile-avoid { background: var(--avoid-bg); color: var(--avoid-text); }
.tile-note { background: var(--note-bg); color: var(--note-text); }
.tile-want { background: var(--want-bg); color: var(--want-text); }

/* Sections ------------------------------------------------------------------- */

.section {
  padding-block: 96px 40px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.h2 {
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head .h2 {
  max-width: 560px;
}

.section-head p {
  max-width: 400px;
  color: var(--body);
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Split rows ----------------------------------------------------------------- */

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

.split.reverse {
  flex-wrap: wrap-reverse;
}

.split-copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.split-copy > p {
  color: var(--body);
  font-size: 17px;
}

.shot {
  flex: 0 1 420px;
  min-width: 0;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #f3f2f1;
  box-shadow: 0 30px 60px -24px rgba(24, 24, 27, 0.22);
}

.shot.tall {
  flex-basis: 380px;
  height: 600px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.badges li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.badge {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.badge-avoid { background: var(--avoid-bg); color: var(--avoid-text); }
.badge-note { background: var(--note-bg); color: var(--note-text); }
.badge-want { background: var(--want-bg); color: var(--want-text); }

.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
}

.checks svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Themes --------------------------------------------------------------------- */

.themes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-block: 96px;
  text-align: center;
}

.themes-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.themes-head p {
  max-width: 520px;
  color: var(--body);
}

.grid-3 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.theme {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.theme-shot {
  height: 440px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.theme-shot.dark {
  border-color: #2e2e35;
}

.theme-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.theme figcaption {
  font-weight: 650;
}

.theme figcaption span {
  color: var(--muted);
  font-weight: 500;
}

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

.privacy-box {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.privacy-intro {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-intro .h2 {
  font-size: 36px;
}

.privacy-intro p {
  color: var(--body);
}

.privacy-intro a {
  align-self: flex-start;
  font-weight: 650;
}

.privacy-points {
  flex: 2 1 480px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.privacy-points > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-points h3 {
  font-size: 16px;
}

.privacy-points p {
  color: var(--muted);
  font-size: 14px;
}

/* FAQ ------------------------------------------------------------------------ */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  margin-top: 28px;
}

.faq h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.faq p {
  color: var(--body);
}

/* Bonk ----------------------------------------------------------------------- */

.bonk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbf6ec;
}

.bonk img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.bonk-copy {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bonk-copy h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bonk-copy p {
  color: var(--body);
}

.bonk .btn {
  background: #1d1b19;
  color: #fbf6ec;
}

.bonk .btn:hover {
  background: #000;
  color: #fbf6ec;
}

/* Install -------------------------------------------------------------------- */

.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 56px 48px;
  border-radius: 24px;
  background: var(--text);
  color: #fff;
}

.install .h2 {
  font-size: clamp(30px, 3.6vw, 38px);
  line-height: 1.1;
}

.install p {
  margin-top: 8px;
  color: #a1a1aa;
}

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

.site-foot {
  border-top: 1px solid var(--line);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-foot .brand {
  font-size: 15px;
}

.site-foot .brand svg {
  width: 22px;
  height: 22px;
}

.site-foot a:not(.brand) {
  color: var(--text-2);
}

.site-foot .note {
  margin-left: auto;
}

/* Privacy policy page --------------------------------------------------------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
}

.doc h1 {
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.doc .updated {
  margin: 12px 0 40px;
  color: var(--muted);
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.doc p,
.doc li {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
}

.doc p + p {
  margin-top: 14px;
}

.doc ul {
  margin: 0;
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #ececea;
  font-size: 0.9em;
}

.summary {
  margin-bottom: 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.summary p {
  font-size: 16px;
}

/* Small screens --------------------------------------------------------------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-points { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .site-head .btn { margin-left: auto; }
  .hero { padding-block: 24px 56px; gap: 40px; }
  .legend,
  .grid-3,
  .faq { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: 72px 24px; }
  .split { gap: 40px; padding-block: 56px; }
  .shot,
  .shot.tall { flex-basis: 100%; height: 480px; }
  .theme-shot { height: 380px; }
  .privacy-box,
  .install { padding: 32px 24px; }
  .bonk { padding: 24px; }
  .site-foot .note { margin-left: 0; }
}

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