/* JoyRemote — one stylesheet for the whole site.
 *
 * The palette is taken from the app's own icon: the mid blue of its face and
 * the deeper blue of its frame. Everything else is a near-neutral biased the
 * same way, so a grey beside the blue reads as chosen rather than left over.
 */

:root {
  --brand: #1F6FC4;
  --brand-deep: #21466F;
  --brand-light: #4895DF;
  --brand-wash: #EEF4FB;

  --ink:  #101822;
  --ink-soft: #39475A;
  --muted: #5E6E82;
  --line: #DCE5EF;
  --paper: #FFFFFF;
  --surface: #F8FAFD;

  --measure: 66ch;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #7FB6EC;
    --brand-deep: #A8CEF4;
    --brand-light: #4895DF;
    --brand-wash: #14243A;

    --ink:  #EDF3FA;
    --ink-soft: #BFCEDE;
    --muted: #8E9FB3;
    --line: #22334A;
    --paper: #0B121B;
    --surface: #111A26;
  }
}

:root[data-theme="dark"] {
  --brand: #7FB6EC;
  --brand-deep: #A8CEF4;
  --brand-light: #4895DF;
  --brand-wash: #14243A;

  --ink:  #EDF3FA;
  --ink-soft: #BFCEDE;
  --muted: #8E9FB3;
  --line: #22334A;
  --paper: #0B121B;
  --surface: #111A26;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.1rem; }

p, li { color: var(--ink-soft); }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- header */

header.bar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}
header.bar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.wordmark { font-size: 1.32rem; color: var(--ink); letter-spacing: -0.03em; }
header.bar nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
header.bar nav a { color: var(--muted); text-decoration: none; font-size: 0.97rem; }
header.bar nav a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ hero */

.hero { padding: clamp(48px, 9vw, 92px) 0 clamp(36px, 6vw, 64px); }
.hero p.lede {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 20px 0 0;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------- content */

section { padding-block: clamp(32px, 6vw, 56px); }
section + section { border-top: 1px solid var(--line); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.05em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.05em; }
.prose li { margin-bottom: 0.4em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--surface);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.96rem; }
.card .soon {
  display: inline-block; margin-top: 12px; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}

/* --------------------------------------------------------------- pricing */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.price {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: var(--paper);
}
.price.lead { border-color: var(--brand); background: var(--brand-wash); }
.price .amount {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 2.3rem; font-weight: 600; color: var(--ink);
  letter-spacing: -0.03em; display: block; line-height: 1.1;
}
.price .per { color: var(--muted); font-size: 0.92rem; display: block; margin-top: 2px; }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; }
.price li { font-size: 0.95rem; padding-left: 22px; position: relative; }
.price li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-light);
}

/* ----------------------------------------------------------------- legal */

.legal { max-width: var(--measure); }
.legal h2 { margin-top: 2.2em; font-size: 1.25rem; }
.legal h2:first-of-type { margin-top: 1em; }
.legal h3 { margin-top: 1.6em; font-size: 1.02rem; color: var(--ink); }
.legal p, .legal li { font-size: 0.99rem; }
.updated { color: var(--muted); font-size: 0.9rem; }
.note {
  background: var(--brand-wash);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0;
}
.note p { margin: 0; font-size: 0.96rem; }

/* ---------------------------------------------------------------- footer */

footer.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 36px;
  margin-top: 40px;
}
footer.foot .wrap {
  display: flex; gap: 28px 40px; flex-wrap: wrap; align-items: flex-start;
}
footer.foot nav { display: flex; flex-direction: column; gap: 8px; }
footer.foot a, footer.foot p { font-size: 0.94rem; }
footer.foot p { margin: 0; color: var(--muted); }
footer.foot .who { margin-left: auto; text-align: right; max-width: 34ch; }

@media (max-width: 640px) {
  footer.foot .who { margin-left: 0; text-align: left; }
  header.bar nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* The one button on the site. A link that looks like a button still has to
 * behave like a link - it keeps its focus ring, and it is large enough to be
 * a comfortable target on a phone. */
.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}
.cta:hover { background: var(--brand-deep); color: var(--paper); }
.cta:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 3px; }

/* A checksum is 64 characters that must be compared exactly, and wrapping it
 * mid-string makes that harder than it needs to be. Monospace, breaks
 * anywhere, and selectable as one run. */
.sum code {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: .82rem;
  line-height: 1.5;
  word-break: break-all;
  overflow-wrap: anywhere;
}
