/* UltimateRoll website. Always dark, system fonts only, no external resources. */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #131318;
  --surface-raised: #1c1c24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-tertiary: #8e8e98;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --crimson: #ef4444;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --sky: #38bdf8;
  --pink: #f472b6;
  --radius: 20px;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--emerald);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--emerald-bright);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--bg);
}

.container {
  width: min(100% - 2.5rem, 1080px);
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 64px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  text-decoration: none;
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--border-strong);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--text);
}

/* Type */

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.lead {
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--emerald);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--emerald);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--emerald-bright);
  color: var(--bg);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

/* Landing page */

.hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3rem, 7vw, 5rem);
}

.hero .container {
  display: grid;
  align-items: center;
  gap: 3.5rem;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 1.75rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--border-strong), 0 18px 40px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-note {
  margin: 1.1rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}

@media (min-width: 880px) {
  .hero .container {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-header p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
}

.swipe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.badge-keep {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
}

.badge-trash {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.badge-later {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
}

.queue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.queue h3 {
  margin-bottom: 0.3rem;
}

.queue p {
  margin: 0;
  color: var(--text-secondary);
}

.queue-dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 5px var(--dot-ring);
}

.dot-violet { --dot: var(--violet); --dot-ring: rgba(139, 92, 246, 0.18); }
.dot-sky { --dot: var(--sky); --dot-ring: rgba(56, 189, 248, 0.18); }
.dot-pink { --dot: var(--pink); --dot-ring: rgba(244, 114, 182, 0.18); }
.dot-emerald { --dot: var(--emerald); --dot-ring: rgba(16, 185, 129, 0.18); }
.dot-amber { --dot: var(--amber); --dot-ring: rgba(245, 158, 11, 0.18); }

.section-note {
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1rem 2rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.55);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 0.48rem;
  left: 0.47rem;
  width: 0.32rem;
  height: 0.6rem;
  border: solid var(--emerald);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-list strong {
  display: block;
  color: var(--text);
}

.cta-panel {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(16, 185, 129, 0.16), transparent 55%),
    var(--surface);
}

.cta-panel p {
  max-width: 560px;
  color: var(--text-secondary);
}

.cta-panel .hero-actions {
  margin-top: 1.5rem;
}

/* Decorative phone mock-up on the landing page */

.device {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 48px;
  background: #000;
  box-shadow: 0 0 0 7px #111114, 0 40px 80px rgba(0, 0, 0, 0.6);
}

.device-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  aspect-ratio: 9 / 19;
  padding: 2.6rem 0.85rem 1rem;
  overflow: hidden;
  border-radius: 37px;
  background: var(--bg);
}

.device-screen::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 32%;
  height: 1.35rem;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.mock-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.mock-title span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
}

.mock-meta {
  align-self: center;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 0.62rem;
  font-weight: 600;
}

.mock-meta b {
  color: var(--amber);
  font-weight: 700;
}

.mock-deck {
  position: relative;
  flex: 1;
}

.mock-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
}

.mock-card-back {
  background: var(--surface);
  transform: scale(0.92) translateY(18px);
}

.mock-card-front {
  background:
    radial-gradient(circle at 68% 34%, #fde68a 0 8%, rgba(253, 186, 116, 0.45) 8.5% 17%, transparent 18%),
    radial-gradient(130% 55% at 18% 104%, #064e3b 0 50%, transparent 51%),
    radial-gradient(120% 50% at 92% 106%, #065f46 0 46%, transparent 47%),
    linear-gradient(180deg, #1e1b4b 0%, #6d28d9 38%, #f97316 78%, #fdba74 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: translateX(9%) rotate(6deg);
  transform-origin: 50% 100%;
}

.mock-stamp {
  position: absolute;
  top: 1.1rem;
  left: 0.9rem;
  padding: 0.05rem 0.5rem;
  border: 3px solid var(--emerald);
  border-radius: 10px;
  background: rgba(9, 9, 11, 0.35);
  color: var(--emerald);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  transform: rotate(-14deg);
}

.mock-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-bar li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.6rem;
  font-weight: 600;
}

.mock-bar span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text);
}

.mock-bar svg {
  width: 1.05rem;
  height: 1.05rem;
}

.mock-bar .mock-trash span {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.16);
  color: var(--crimson);
}

.mock-bar .mock-later span {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber);
}

.mock-bar .mock-keep span {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald);
}

/* Support and privacy pages */

.page-main {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.page-header {
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.page-header .lead {
  margin-bottom: 0;
}

.updated {
  margin: 0.75rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}

.toc {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc h2 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2 300px;
  column-gap: 2rem;
}

.toc li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.toc li::marker {
  color: var(--text-tertiary);
}

.faq-item {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 1rem;
}

.faq-item h2 {
  font-size: 1.3125rem;
}

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

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  scroll-margin-top: 1rem;
}

.prose p,
.prose li {
  color: #d4d4d8;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.45em;
}

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

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.faq-item p,
.faq-item li {
  color: #d4d4d8;
}

.faq-item ol,
.faq-item ul {
  margin: 0 0 1em;
  padding-left: 1.4rem;
}

.faq-item li {
  margin-bottom: 0.45em;
}

.faq-item li::marker {
  color: var(--text-tertiary);
}

.faq-item strong {
  color: var(--text);
  font-weight: 650;
}

.callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.08);
}

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

.contact-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(16, 185, 129, 0.14), transparent 55%),
    var(--surface);
  scroll-margin-top: 1rem;
}

.contact-card h2 {
  font-size: 1.3125rem;
}

.contact-email {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer .legal {
  flex-basis: 100%;
  font-size: 0.8125rem;
}

@media (max-width: 480px) {
  .toc,
  .faq-item,
  .contact-card,
  .card {
    padding: 1.25rem;
  }
}

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