:root {
  --bg: #3a1210;
  --bg-alt: #5c1e14;
  --panel: rgba(45, 18, 12, 0.88);
  --panel-strong: rgba(32, 12, 8, 0.94);
  --border: rgba(255, 218, 180, 0.22);
  --text: #fdf6f2;
  --muted: #d9c4b8;
  --link: #9ee0fc;
  --link-strong: #e8f8ff;
  --accent: #7ec8e8;
  --shadow: 0 24px 60px rgba(20, 6, 4, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 200, 140, 0.18), transparent 45%),
    linear-gradient(180deg, #2d0c0a 0%, #5c1a12 22%, #8b2e18 48%, #b84d24 72%, #d9783a 100%);
}

a {
  color: var(--link);
}

a:hover,
a:focus-visible {
  color: var(--link-strong);
}

.site-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.page-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero,
.card,
.legal,
.notice {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 32px 40px 40px;
}

.hero-title {
  margin: 0 0 16px;
  line-height: 0;
  text-align: center;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: min(100%, 720px);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.brand-mark {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--link-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

/* Logo image replaces text title on homepage only */
h1.hero-title {
  margin: 0 0 16px;
  font-size: 0;
  line-height: 0;
  text-align: center;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

@media (min-width: 800px) {
  .grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid.three-up {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  padding: 26px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.link-list a,
.button-link {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(158, 224, 252, 0.32);
  border-radius: 12px;
  background: rgba(158, 224, 252, 0.1);
  color: var(--link-strong);
  text-decoration: none;
}

.link-list a:hover,
.link-list a:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  background: rgba(158, 224, 252, 0.18);
}

.play-store-wrap {
  margin: 16px 0 0;
}

.play-store-badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.play-store-badge-link:hover,
.play-store-badge-link:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}

.play-store-badge-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.play-store-badge-img {
  display: block;
  width: 180px;
  height: auto;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--link);
  text-decoration: none;
}

.legal,
.notice {
  padding: 28px;
}

/* Long mailto addresses must wrap on narrow screens (avoid horizontal bleed) */
.notice .lead {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.notice .lead a {
  overflow-wrap: anywhere;
}

.legal section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 200, 160, 0.14);
}

.legal ul {
  margin: 12px 0 0 20px;
}

.legal ol {
  margin: 12px 0 0 20px;
  padding-left: 1.25rem;
}

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

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

.meta {
  margin-bottom: 22px;
  color: var(--muted);
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.video-embed {
  max-width: min(720px, 100%);
  margin-top: 14px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-caption {
  margin: 12px 0 0 !important;
  font-size: 0.93rem !important;
  color: var(--muted) !important;
}

.card-tagline {
  margin: 0 0 6px;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.app-page-cta-wrap {
  margin: 18px 0 0;
}

.app-page-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(158, 224, 252, 0.45);
  background: linear-gradient(180deg, rgba(158, 224, 252, 0.22) 0%, rgba(126, 200, 232, 0.14) 100%);
  color: var(--link-strong);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.app-page-cta:hover,
.app-page-cta:focus-visible {
  background: linear-gradient(180deg, rgba(158, 224, 252, 0.32) 0%, rgba(126, 200, 232, 0.22) 100%);
  border-color: rgba(158, 224, 252, 0.6);
  color: var(--link-strong);
  transform: translateY(-1px);
  outline: none;
}

.app-page-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-page .app-disclosure {
  margin-top: 12px;
}

.app-disclosure__sep {
  border: none;
  margin: 1.25rem 0 0.35rem;
  border-top: 1px solid rgba(255, 218, 180, 0.16);
}

.app-disclosure__sep + .app-disclosure__heading {
  margin-top: 14px;
}

.app-disclosure__body > .app-disclosure__sep:last-of-type {
  margin-bottom: 0.55rem;
}

.app-disclosure__list--dense li + li {
  margin-top: 0.72rem;
}

.app-disclosure {
  margin: 16px 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(158, 224, 252, 0.24);
  background: rgba(8, 4, 3, 0.35);
  overflow: hidden;
}

.app-disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--link-strong);
  list-style: none;
  transition: background 0.15s ease;
}

.app-disclosure__summary::-webkit-details-marker {
  display: none;
}

.app-disclosure__summary:hover {
  background: rgba(158, 224, 252, 0.06);
}

.app-disclosure__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 12px;
}

details.app-disclosure[open] .app-disclosure__summary {
  border-bottom: 1px solid rgba(255, 218, 180, 0.12);
  background: rgba(158, 224, 252, 0.05);
}

.app-disclosure__label {
  flex: 1;
  text-align: left;
}

.app-disclosure__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(158, 224, 252, 0.28);
  background: rgba(158, 224, 252, 0.08);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
}

.app-disclosure:not([open]) .app-disclosure__icon::before {
  content: '+';
  margin-bottom: 2px;
}

.app-disclosure[open] .app-disclosure__icon::before {
  content: '\2212'; /* minus */
  margin-bottom: 2px;
}

.app-disclosure__body {
  padding: 14px 16px 16px;
}

.app-disclosure__body > p {
  color: var(--muted);
  font-size: 0.98rem;
}

.app-disclosure__body > p:last-of-type {
  margin-bottom: 0;
}

.app-disclosure__heading {
  margin: 22px 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.app-disclosure__list {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.app-disclosure__list:last-of-type {
  margin-bottom: 0;
}

.app-disclosure__list li + li {
  margin-top: 0.52rem;
}

.app-disclosure__fineprint {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem !important;
  color: var(--muted) !important;
  line-height: 1.55;
}

.app-disclosure__fineprint--strong {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--text) !important;
  font-size: 0.92rem !important;
}
