/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 */

:root {
  --bg: #fafafa;
  --fg: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111111;
  --radius: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --muted: #9ca3af;
    --line: #1f1f22;
    --accent: #f5f5f5;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Inter",
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.profile {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  background: var(--fg);
  color: var(--bg);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile__name {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile__bio {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.profile__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.profile__meta li + li {
  position: relative;
  padding-left: 16px;
}

.profile__meta li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  transform: translateY(-50%);
  opacity: 0.6;
}

.profile__links {
  list-style: none;
  padding: 0;
  margin: -16px 0 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.profile__links a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.profile__links a:hover {
  border-color: var(--muted);
}

.profile__divider {
  width: 48px;
  height: 1px;
  background: var(--line);
  margin: 0 auto 24px;
}

.services {
  margin: 0 0 28px;
  text-align: left;
}

.services__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

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

.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
}

.service-card__icon {
  font-size: 22px;
  line-height: 1;
}

.service-card__body {
  flex: 1;
  min-width: 0;
}

.service-card__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-card__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

.service-card__desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

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

/* Card that links out to several platforms instead of a single destination. */
.service-card--group {
  align-items: flex-start;
}

.service-card--group:hover {
  border-color: var(--line);
  transform: none;
}

.service-card__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.platform-link {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.platform-link:hover {
  border-color: var(--muted);
}

.platform-link--pending {
  color: var(--muted);
  opacity: 0.7;
}

.profile__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.profile__note a {
  color: var(--fg);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
 * Content pages (about, privacy, terms, contact)
 *
 * The landing page is a vertically centred card; documents are long, so
 * `body.doc` switches the flex alignment to the top and widens the column.
 * ------------------------------------------------------------------ */

body.doc {
  /* Documents are taller than the viewport; centring would push the top out of reach. */
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 32px 24px 64px;
}

.site-header,
.site-footer,
.doc {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.site-header__home {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

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

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

.doc {
  text-align: left;
  font-size: 15px;
  line-height: 1.75;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.doc__lead {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.65;
}

.doc__updated {
  margin: 0 0 40px;
  font-size: 13px;
  color: var(--muted);
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.doc p {
  margin: 0 0 16px;
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.doc li {
  margin-bottom: 6px;
}

.doc a {
  color: var(--fg);
  text-underline-offset: 3px;
}

.doc strong {
  font-weight: 600;
}

.doc__table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}

.doc table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

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

.doc th {
  font-weight: 600;
  white-space: nowrap;
}

.doc__note {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

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

.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.site-footer__copy {
  margin: 0;
}

/* The landing page is a narrow card, so its footer matches that column. */
.site-footer--narrow {
  max-width: 420px;
  margin-top: 40px;
}

/* ------------------------------------------------------------------
 * Service detail pages (/apps/*)
 * ------------------------------------------------------------------ */

.app-hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.app-hero__icon {
  display: block;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 12px;
}

.app-hero__name {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-hero__tagline {
  margin: 0 auto 20px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.app-hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* A strip of phone screenshots that scrolls sideways on narrow viewports. */
.shots {
  display: flex;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

/* 155px keeps four phone shots inside the text column with room to spare;
 * narrower viewports fall back to sideways scrolling. */
.shots figure {
  flex: 0 0 auto;
  width: 155px;
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.shots figcaption,
.shot-wide figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Single wide screenshot, used for the web services. */
.shot-wide {
  margin: 0 0 20px;
}

.shot-wide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* Inline SVG board diagrams that explain the game rules. */
.diagram {
  margin: 0 0 24px;
  text-align: center;
}

/* Diagrams are small figures, not banners — cap them so the labels stay text-sized. */
.diagram svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.diagram figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.faq__q {
  margin: 24px 0 6px;
  font-size: 15px;
  font-weight: 600;
}
