:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-strong: #fffaf2;
  --surface: rgba(255, 250, 242, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-muted: rgba(255, 255, 255, 0.7);
  --line: rgba(123, 93, 63, 0.12);
  --text: #1d2533;
  --text-soft: #586072;
  --text-faint: #7f8798;
  --accent: #dd6a3c;
  --accent-strong: #c95222;
  --accent-soft: rgba(221, 106, 60, 0.14);
  --shadow: 0 24px 60px rgba(78, 52, 28, 0.12);
  --shadow-soft: 0 14px 40px rgba(85, 59, 34, 0.08);
  --focus: 0 0 0 3px rgba(221, 106, 60, 0.24);
  --header-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --body-font: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11151f;
  --bg-strong: #151b28;
  --surface: rgba(20, 27, 40, 0.84);
  --surface-strong: rgba(17, 24, 37, 0.92);
  --surface-muted: rgba(33, 42, 58, 0.74);
  --line: rgba(160, 181, 219, 0.12);
  --text: #edf3ff;
  --text-soft: #b8c5da;
  --text-faint: #91a0b9;
  --accent: #f38f5d;
  --accent-strong: #ffb285;
  --accent-soft: rgba(243, 143, 93, 0.18);
  --shadow: 0 28px 80px rgba(2, 5, 11, 0.48);
  --shadow-soft: 0 18px 42px rgba(2, 5, 11, 0.28);
  --focus: 0 0 0 3px rgba(243, 143, 93, 0.28);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 200, 152, 0.46), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255, 168, 113, 0.2), transparent 30%),
    linear-gradient(180deg, var(--bg-strong), var(--bg));
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
  cursor: pointer;
}

.seo-page {
  position: relative;
  min-height: 100vh;
  padding: 14px 14px 22px;
  overflow-x: hidden;
}

.seo-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.seo-backdrop__word {
  position: absolute;
  color: rgba(92, 74, 58, 0.06);
  font-family: var(--header-font);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 700;
  white-space: nowrap;
}

:root[data-theme="dark"] .seo-backdrop__word {
  color: rgba(214, 225, 255, 0.045);
}

.seo-header,
.seo-main,
.seo-footer {
  position: relative;
  width: min(100%, 1080px);
  margin-inline: auto;
}

.seo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 20px rgba(221, 106, 60, 0.22);
}

.brand-name {
  margin: 0;
  font-family: var(--header-font);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1;
  white-space: nowrap;
}

.seo-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
}

.theme-option {
  min-width: 48px;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
}

.theme-option[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button-link,
.button-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button-link--primary,
.button-link--primary:visited {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 16px 32px rgba(221, 106, 60, 0.24);
}

.seo-main {
  padding-top: 18px;
}

.breadcrumbs {
  margin-bottom: 14px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: ">";
  margin-right: 6px;
  color: var(--text-faint);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--text);
  border-bottom-color: currentColor;
  outline: none;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text-soft);
}

.page-hero {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--text-faint);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--header-font);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.page-lead,
.page-copy {
  color: var(--text-soft);
  line-height: 1.72;
}

.page-lead {
  margin: 12px 0 0;
  max-width: 46rem;
  font-size: 1rem;
}

.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.page-grid {
  display: grid;
  gap: 18px;
}

.content-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.content-card > * + * {
  margin-top: 12px;
}

.content-card h2 {
  margin: 0;
  font-size: 1.08rem;
}

.content-card h3 {
  margin: 0;
  font-size: 1rem;
}

.content-card p {
  margin: 0;
}

/* Legal/policy prose: make in-text links visible (base links inherit color). */
.policy-copy a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-copy a:hover,
.policy-copy a:focus-visible {
  color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.link-grid,
.related-links,
.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 10px;
}

.link-grid a,
.related-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.link-grid__meta {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 0.76rem;
  font-weight: 600;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.city-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.city-name {
  display: block;
  font-weight: 800;
}

.city-country {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

html.page-guide-index .page-grid {
  grid-template-columns: minmax(0, 1fr);
}

html.page-guide-index .related-links {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

html.page-guide-index .related-links a {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.page-guide-index .content-card {
  width: min(100%, 1080px);
  margin-inline: auto;
}

html.page-guide-article .breadcrumbs,
html.page-guide-article .page-hero,
html.page-guide-article .page-grid {
  width: min(100%, 860px);
  margin-inline: auto;
}

html.page-guide-article .page-grid {
  grid-template-columns: minmax(0, 1fr);
}

html.page-guide-article .content-card {
  padding: 22px 24px;
}

html.page-guide-article .content-card h2 {
  font-size: 1.22rem;
}

html.page-guide-article .content-card a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

html.page-guide-article .content-card ul:not(.city-list):not(.related-links):not(.link-grid),
html.page-guide-article .content-card ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
}

html.page-guide-article .content-card li + li {
  margin-top: 0.4rem;
}

html.page-guide-article .city-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* App download call-to-action (shared look with the homepage). */
.app-cta {
  width: min(100%, 1080px);
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(130% 170% at 0% 0%, var(--accent-soft), transparent 62%),
    var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.app-cta__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-cta__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.app-cta__subtitle {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.app-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  padding: 9px 16px 9px 13px;
  border-radius: 13px;
  background: #0f0f12;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

a.app-badge:hover,
a.app-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.app-badge--soon {
  cursor: default;
}

.app-badge__logo {
  width: 24px;
  height: 24px;
  fill: #fff;
  flex: 0 0 auto;
}

.app-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.app-badge__line1 {
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.85;
}

.app-badge__line2 {
  font-size: 1rem;
  font-weight: 700;
}

.app-badge__soon {
  position: absolute;
  top: -8px;
  right: -7px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

@media (max-width: 560px) {
  .app-cta {
    justify-content: center;
    text-align: center;
  }
  .app-cta__text {
    align-items: center;
    width: 100%;
  }
  .app-badges {
    justify-content: center;
    width: 100%;
  }
}

.seo-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 6px 4px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.seo-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seo-footer__credit {
  opacity: 0.84;
}

.seo-footer__credit a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 180ms ease,
    opacity 180ms ease;
}

.theme-option:hover,
.button-link:hover,
.link-grid a:hover,
.related-links a:hover,
.seo-footer__credit a:hover {
  transform: translateY(-1px);
}

.theme-option:focus-visible,
.button-link:focus-visible,
.link-grid a:focus-visible,
.related-links a:focus-visible,
.seo-footer__credit a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.seo-footer__credit a:hover,
.seo-footer__credit a:focus-visible {
  border-bottom-color: currentColor;
  opacity: 1;
}

@media (min-width: 900px) {
  .page-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
  }

  .page-grid__full {
    grid-column: 1 / -1;
  }

  html.page-guide-index .page-grid,
  html.page-guide-article .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .seo-page {
    padding-inline: 10px;
  }

  .seo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  .button-link {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
