/* Skinny Fat Productions: shared styles for every page. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --surface: #ffffff;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #71717a;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --accent-soft: #fff4ed;
  --accent-line: #fed7aa;
  --on-accent: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 8px 24px rgba(24, 24, 27, 0.07);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --bg-soft: #191918;
    --surface: #1b1b1a;
    --text: #f4f4f5;
    --text-2: #b4b4bb;
    --text-3: #8f8f98;
    --line: #2a2a28;
    --line-strong: #3d3d3a;
    --accent: #ff8a4c;
    --accent-strong: #ffab7a;
    --accent-soft: #261810;
    --accent-line: #5a2e14;
    --on-accent: #1a0d05;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover { color: var(--accent-strong); }

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

svg { display: block; }

address { font-style: normal; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { left: 16px; }

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

.lead {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1.06rem, 1.9vw, 1.22rem);
  line-height: 1.6;
}

.muted { color: var(--text-3); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover { color: var(--text); }

.mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 2px;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
}

.site-nav a[aria-current="page"] { font-weight: 600; }

/* Home: hero */

.hero { padding: 96px 0 64px; }

.hero h1 {
  margin: 0 0 20px;
  max-width: 13ch;
  font-size: clamp(2.5rem, 6.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero .lead { max-width: 46ch; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}

/* A small "home screen" of app tiles beside the headline. */
.hero-art {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 18px;
}

.hero-art span {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.hero-art .soft {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.hero-art .empty {
  border: 1.5px dashed var(--line-strong);
  background: transparent;
}

.hero-art .logo {
  display: grid;
  place-items: center;
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}

/* Home: sections */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section:last-of-type { padding-bottom: 88px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-3);
  font-size: 15px;
}

/* Home: apps */

.app-slot {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 20px;
  background: var(--bg-soft);
}

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
}

.app-slot h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.app-slot p {
  margin: 0;
  color: var(--text-2);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.app-card img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.app-card h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.app-card p {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 15px;
}

.app-card .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* Cards (links to the legal and support pages) */

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

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  flex: 1;
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

.card .more {
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* Inner pages: page heading */

.page-head {
  padding: 64px 0 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.page-head .lead { max-width: 52ch; }

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.dates span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 14px;
}

/* Inner pages: contents list beside the text */

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 88px;
}

.toc {
  padding: 2px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 15px;
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.toc summary::-webkit-details-marker { display: none; }

.toc summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin: 0 4px 4px 0;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.toc[open] summary::after {
  margin-bottom: -4px;
  transform: rotate(-135deg);
}

.toc ol {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  margin: 0;
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  color: var(--text-2);
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc) ".";
  flex: none;
  min-width: 1.4em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.toc a:hover { color: var(--accent); }

@media (min-width: 960px) {
  .doc {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 56px);
    overflow-y: auto;
    padding: 0;
    border: 0;
    background: none;
  }

  .toc summary {
    padding: 0 0 12px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .toc[open] summary { pointer-events: none; }

  .toc summary::after { display: none; }

  .toc ol {
    margin: 0;
    border-left: 1px solid var(--line);
  }

  .toc a {
    margin-left: -1px;
    padding: 5px 0 5px 14px;
    border-left: 1px solid transparent;
    font-size: 14px;
  }

  .toc a:hover { border-left-color: var(--accent); }
}

/* Inner pages: long-form text */

.prose {
  min-width: 0;
  max-width: 70ch;
}

.prose h2 {
  margin: 48px 0 12px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin: 28px 0 6px;
  font-size: 1.06rem;
}

.prose p,
.prose ul,
.prose ol { margin: 0 0 16px; }

.prose ul,
.prose ol { padding-left: 1.3em; }

.prose li { margin: 6px 0; }

.prose li::marker { color: var(--text-3); }

.summary {
  padding: 20px 22px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.summary p { margin: 0; }

.note {
  margin: 16px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.note > :last-child { margin-bottom: 0; }

.table-wrap {
  margin: 12px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

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

thead th {
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

tbody tr:last-child td { border-bottom: 0; }

.contact-card {
  margin: 12px 0 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card address { margin-bottom: 10px; }

.contact-card p { margin: 0; }

/* Support page */

.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 88px;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel.wide { grid-column: 1 / -1; }

.panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.panel h2 .icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.panel p,
.panel ul { margin: 0 0 14px; }

.panel ul { padding-left: 1.3em; }

.panel li { margin: 6px 0; }

.panel > :last-child { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.contact-grid address {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
  padding: 44px 0 32px;
}

.footer-company p {
  max-width: 48ch;
  margin: 14px 0 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding: 18px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

.footer-bottom p { margin: 0; }

/* Smaller screens */

@media (max-width: 820px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 16px; }

  body { font-size: 16px; }

  .container { padding: 0 20px; }

  .site-header { position: static; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .site-nav { margin-left: -10px; }

  .site-nav a { padding: 6px 10px; }

  .hero { padding: 56px 0 44px; }

  .section { padding: 44px 0; }

  .app-slot {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .page-head { padding: 40px 0 28px; margin-bottom: 28px; }

  .prose h2 { margin-top: 36px; padding-top: 28px; }

  .panel { padding: 22px; }
}
