/* Combined site styles extracted from inline <style> blocks */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f5f7fa;
}

p {
  text-indent: 20px;
}

/* Header / brand */
header {
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  color: #111;
  gap: 16px;
  position: relative;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  margin-left: auto;
  margin-right: 0;
  position: absolute;
  right: 20px;
  top: 24px;
}

.header-brand img {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 10px;
}

/* Center the header text block while leaving room for the logo on the right */
header > div {
  flex: 1;
  text-align: center;
  margin-right: auto;
  padding-left: 44px;
  padding-right: 76px;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 4px;
  color: #111;
}

header p {
  font-size: 1rem;
  color: #333;
}

/* App Store link */
.app-store-link-wrapper {
  margin-top: 16px;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.app-store-image-link {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.app-store-image-link img {
  height: 56px;
  width: auto;
  display: block;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

.store-badges > * {
  max-width: 100%;
}

/* The ms-store-badge widget renders its content ~4px lower than its own
   box on both size variants, so nudge it up to align with the Apple badge. */
.store-badges ms-store-badge {
  margin-top: -7px;
}

.ms-store-badge-small {
  display: none;
}
/* Navigation */
nav {
  background: white;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: 12px;
  position: absolute;
  top: 18px;
  left: 12px;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #7D0519;
  border-radius: 999px;
}

.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #7D0519;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-bottom: 8px;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: fixed;
  top: 12px;
  left: 12px;
  height: auto;
  max-height: calc(100vh - 24px);
  width: min(22vw, 220px);
  min-width: 160px;
  max-width: calc(100vw - 24px);
  padding: 20px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 30;
  overflow-y: auto;
}

.site-nav.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav a {
  color: #7D0519;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Layout */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  background: white;
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

section h2 {
  margin-bottom: 12px;
  color: #7D0519;
}

/* Buttons */
.button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 18px;
  background: #7D0519;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.button:hover {
  background: #7D0519;
}

.button.small {
  padding: 8px 14px;
  font-size: 0.95rem;
  margin-top: 12px;
}

/* Videos grid */
.videos-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 20px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.video-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #111827;
  width: 100%;
}

.video-frame > div {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 !important;
}

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

.video-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.video-info h3 {
  margin-bottom: 8px;
  color: #111827;
}

.video-info p {
  color: #4b5563;
  font-size: 0.95rem;
}

/* Forms and cards */
.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card p {
  margin-bottom: 16px;
  color: #4b5563;
}

.card h1 {
  margin-bottom: 8px;
  color: #111827;
}

.card h2 {
  margin: 24px 0 10px;
  color: #7D0519;
  font-size: 1.2rem;
}

.card ul {
  margin: 0 0 16px 20px;
  color: #4b5563;
}

.card li {
  margin-bottom: 8px;
}

.effective-date {
  margin-bottom: 20px;
  font-weight: 600;
  color: #6b7280;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #7D0519;
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: bold;
  color: #111827;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.helper-text {
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: -6px;
}

.preview-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 20px auto;
}

.preview-screenshot {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

footer {
  text-align: center;
  padding: 25px;
  color: #6b7280;
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  header > div {
    padding-left: 44px;
    padding-right: 64px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .store-badges img {
    height: 44px;
  }

  .ms-store-badge-large {
    display: none;
  }

  .ms-store-badge-small {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: min(22vw, 220px);
    min-width: 160px;
    max-width: calc(100vw - 24px);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
  }

  .site-nav.open {
    display: flex;
  }

  .preview-gallery {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 12% 12px;
    margin: 20px -30px 0;
    scrollbar-width: none;
  }

  .preview-gallery::-webkit-scrollbar {
    display: none;
  }

  .preview-gallery .preview-screenshot {
    flex: 0 0 76%;
    max-width: 220px;
    scroll-snap-align: center;
  }
}

@media (max-width: 360px) {
  header h1 {
    font-size: 1.25rem;
  }
}
