/* Panna — website. Same palette and type as the app itself. */

:root {
  --paper: #faf9f7;
  --surface: #ffffff;
  --ink: #26241f;
  --muted: #6b655d;
  --line: #e4e0d8;
  --accent: #b08d1e;
  --accent-soft: #f6efd9;
  --serif: Georgia, 'Source Serif 4', 'Times New Roman', serif;
  --sans: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(60, 55, 45, 0.06), 0 12px 40px rgba(60, 55, 45, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101014;
    --surface: #1a1c20;
    --ink: #f2f0ec;
    --muted: #a39c92;
    --line: #2a2d33;
    --accent: #c9a227;
    --accent-soft: #2a2414;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 44px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

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

/* --- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
}

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

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

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

/* --- hero --- */

.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  max-width: 15ch;
  margin: 0 auto;
}

.hero .lead {
  max-width: 56ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: #26241f;
  border-color: #14130f;
  color: #faf9f7;
}

@media (prefers-color-scheme: dark) {
  .button.primary {
    background: #f2f0ec;
    border-color: #cbc5b9;
    color: #1a1916;
  }
}

.button[aria-disabled='true'] {
  cursor: default;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.install-note {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 13.5px;
}

.shot {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}

.hero .shot {
  margin-top: 48px;
}

/* --- sections --- */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

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

.band {
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.split + .split {
  margin-top: 64px;
}

.split h3 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 12px;
}

.split p {
  color: var(--muted);
  margin: 0 0 12px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.steps li {
  position: relative;
  padding-left: 46px;
  color: var(--muted);
}

.steps li strong {
  color: var(--ink);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.checks li strong {
  color: var(--ink);
}

.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14.5px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
}

.small {
  width: 100%;
  font-size: 13px;
  opacity: 0.85;
}

/* --- the privacy policy and other long-form pages --- */

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 8px;
}

.prose h2 {
  font-size: 27px;
  margin: 44px 0 12px;
}

.prose h3 {
  font-size: 21px;
  margin: 30px 0 10px;
}

.prose p,
.prose li {
  color: color-mix(in oklab, var(--ink) 86%, var(--paper));
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

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

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

.prose code {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  overflow-wrap: anywhere;
}

.prose .table-scroll {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.prose th {
  font-weight: 600;
}

@media (max-width: 560px) {
  .site-nav {
    gap: 14px;
    font-size: 14px;
  }
  /* Four links do not fit beside the name on a phone. The policy is also in
     the footer, so it is the one to drop from the bar. */
  .site-nav a:last-child {
    display: none;
  }
  .brand {
    font-size: 20px;
  }
  .wrap {
    padding: 0 18px;
  }
  .hero {
    padding-top: 48px;
  }
  section {
    padding: 52px 0;
  }
}
