:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f5f6;
  --text: #1a1a1e;
  --muted: #5c5f66;
  --accent: #d81b60;
  --accent-dim: #ad1457;
  --on-accent: #ffffff;
  --border: #e8e2e5;
  --link-hover: #c2185b;
  --shadow-promo: 0 12px 40px rgba(26, 26, 30, 0.12);
  --focus-ring-offset: #ffffff;
  --max: 42rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e8eef4;
  --muted: #8b9cb3;
  --accent: #e91e63;
  --accent-dim: #c2185b;
  --on-accent: #ffffff;
  --border: #2a3544;
  --link-hover: #f48fb1;
  --shadow-promo: 0 12px 40px rgba(0, 0, 0, 0.35);
  --focus-ring-offset: #0f1419;
}

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

html {
  font-size: 106%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

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

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  background: var(--surface);
}

.site-header__inner {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: 100%;
}

.site-title {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  line-height: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.theme-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

html[data-theme="light"] .theme-toggle__moon {
  display: block;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  background: var(--accent);
  color: var(--on-accent) !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-cta:hover {
  color: var(--on-accent) !important;
  filter: brightness(1.08);
}

.app-store-row {
  margin: 1.25rem 0 2rem;
}

.app-store-row--footer {
  margin-top: 2rem;
}

/* Official App Store badge (Apple Marketing Resources); do not modify artwork. */
.app-store-badge-link {
  display: inline-block;
  line-height: 0;
}

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

.app-store-badge-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list a {
  font-weight: 600;
  font-size: 1.05rem;
}

.post-meta,
.article-meta {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

h1 {
  font-family: system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

h2 {
  font-family: system-ui, sans-serif;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

h3 {
  font-family: system-ui, sans-serif;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.app-demo-video {
  margin: 0 0 1.75rem;
}

.app-demo-video__media {
  display: block;
  width: 100%;
  max-height: min(70vh, 28rem);
  border-radius: 10px;
  background: var(--surface);
}

.app-demo-video__caption {
  margin: 0.5rem 0 0;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

.promo-page .app-demo-video {
  margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
}

.article-body li {
  margin: 0.35rem 0;
}

.article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--accent-dim);
  color: var(--muted);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}

.related h2 {
  margin-top: 0;
  font-size: 1rem;
}

.related ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.hub-cards {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 560px) {
  .hub-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.hub-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-family: system-ui, sans-serif;
}

.hub-card:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.hub-card__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--accent-dim);
}

.hub-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hub-card:hover .hub-card__icon {
  color: var(--accent);
}

.hub-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.hub-card__body strong {
  display: block;
}

.hub-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

.hub-card:hover .hub-card__desc {
  color: var(--muted);
}

.promo-page {
  max-width: 36rem;
  margin: 0 auto;
}

.promo-toolbar {
  margin: 0 0 1rem;
  font-family: system-ui, sans-serif;
}

.promo-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none !important;
  color: var(--text) !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.promo-back:hover {
  border-color: var(--accent-dim);
  color: var(--accent) !important;
}

.promo-copy {
  margin-bottom: 1.25rem;
}

.promo-hed {
  margin: 0 0 0.5rem;
  font-family: system-ui, sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  transition: opacity 0.15s ease;
}

.promo-sub {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.45;
}

.promo-intro {
  margin-bottom: 1rem;
}

.promo-tour-outline {
  margin: 1rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: system-ui, sans-serif;
}

.promo-tour-outline__heading {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.promo-tour-outline__list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

.promo-tour-outline__item {
  margin: 0.15rem 0;
  padding: 0;
}

.promo-tour-outline__btn {
  display: block;
  width: calc(100% + 0.25rem);
  margin: 0 0 0 -0.12rem;
  padding: 0.4rem 0.5rem 0.4rem 0.45rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.promo-tour-outline__btn:hover {
  background: rgba(216, 27, 96, 0.06);
}

html[data-theme="dark"] .promo-tour-outline__btn:hover {
  background: rgba(233, 30, 99, 0.12);
}

.promo-tour-outline__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring-offset), 0 0 0 4px var(--accent);
}

.promo-tour-outline__btn.is-active {
  background: rgba(216, 27, 96, 0.1);
  box-shadow: inset 3px 0 0 0 var(--accent);
}

html[data-theme="dark"] .promo-tour-outline__btn.is-active {
  background: rgba(233, 30, 99, 0.15);
}

.promo-tour-outline__title {
  font-weight: 600;
}

.promo-tour-outline__sub {
  color: var(--muted);
  font-weight: 400;
}

.promo-carousel {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: calc(100% + 0.5rem);
  max-width: none;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}

.promo-nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 26, 30, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.promo-nav:hover:not(:disabled) {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--surface);
}

.promo-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring-offset), 0 0 0 4px var(--accent);
}

.promo-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.promo-nav__icon {
  display: block;
  margin: 0;
}

.promo-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}

.promo-scroller {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12%;
  padding: 0.55rem 12%;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) transparent;
  touch-action: pan-x;
}

.promo-scroller:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.promo-slide {
  flex: 0 0 76%;
  min-width: 76%;
  max-width: 76%;
  margin: 0;
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.promo-slide__frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-promo);
  background: var(--bg);
}

.promo-slide__frame img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 380px);
  object-fit: contain;
  object-position: center top;
  display: block;
}

.promo-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0 0.35rem;
  margin: 0;
  font-family: system-ui, sans-serif;
}

.promo-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.35;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.promo-dot:hover,
.promo-dot:focus-visible {
  opacity: 0.65;
  outline: none;
}

.promo-dot:focus-visible {
  box-shadow: 0 0 0 2px var(--focus-ring-offset), 0 0 0 4px var(--accent);
}

.promo-dot.is-active {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.2);
}

.promo-hint {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.promo-count {
  color: var(--text);
  font-weight: 600;
}
