/* ==========================================================================
   AFMÆLI — Official Static Website Stylesheet
   Refined, warm, iOS-inspired, Icelandic-first promotional landing page.
   Brand Palette based on official Afmæli logo & app icon:
   - Primary: Dark Navy (#29304F)
   - Background: Warm Off-White / Cream (#FAF8F5)
   - Accent: Coral / Red (#F26768)
   - Secondary Accent: Warm Amber / Candle Yellow (#FFB323)
   ========================================================================== */

:root {
  /* Official Afmæli Brand Palette */
  --af-brand-blue: #29304F;
  --af-brand-blue-deep: #161A2B;
  --af-brand-blue-mid: #333C61;
  --af-brand-blue-light: #444F7A;
  --af-brand-blue-border: rgba(41, 48, 79, 0.12);

  /* Official Brand Accents */
  --af-accent-coral: #F26768;
  --af-accent-coral-soft: rgba(242, 103, 104, 0.12);
  --af-accent-amber: #FFB323;
  --af-accent-cream: #FFF9EC;
  --af-accent-flame: #EA580C;

  /* Light Theme (Warm, refined Nordic off-white/cream base) */
  --bg-primary: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F3EFEA;
  
  --text-primary: #1A2035;
  --text-secondary: #4A526B;
  --text-muted: #747C96;
  --text-inverse: #FFFFFF;

  --border-subtle: #EBE5DC;
  --border-card: rgba(41, 48, 79, 0.08);

  --shadow-sm: 0 1px 3px rgba(41, 48, 79, 0.04), 0 1px 2px rgba(41, 48, 79, 0.02);
  --shadow-md: 0 4px 16px rgba(41, 48, 79, 0.06), 0 2px 6px rgba(41, 48, 79, 0.03);
  --shadow-lg: 0 12px 30px rgba(41, 48, 79, 0.07), 0 4px 10px rgba(41, 48, 79, 0.03);
  --shadow-device: 0 20px 48px -10px rgba(41, 48, 79, 0.18), 0 6px 16px rgba(41, 48, 79, 0.08);

  --nav-backdrop: rgba(250, 248, 245, 0.88);
  --card-hero-bg: #FFFFFF;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-phone: 40px;

  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Explicit Dark Theme and System Preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #121625;
    --bg-surface: #1A2035;
    --bg-surface-elevated: #232B45;
    --bg-subtle: #1F263D;

    --text-primary: #FAF8F5;
    --text-secondary: #C8CDDC;
    --text-muted: #8E95AA;
    --text-inverse: #29304F;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.09);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-device: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.35);

    --nav-backdrop: rgba(18, 22, 37, 0.88);
    --card-hero-bg: linear-gradient(180deg, #1A2035 0%, #121625 100%);
    --af-accent-coral-soft: rgba(242, 103, 104, 0.18);
  }
}

[data-theme="dark"] {
  --bg-primary: #121625;
  --bg-surface: #1A2035;
  --bg-surface-elevated: #232B45;
  --bg-subtle: #1F263D;

  --text-primary: #FAF8F5;
  --text-secondary: #C8CDDC;
  --text-muted: #8E95AA;
  --text-inverse: #29304F;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.09);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-device: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.35);

  --nav-backdrop: rgba(18, 22, 37, 0.88);
  --card-hero-bg: linear-gradient(180deg, #1A2035 0%, #121625 100%);
  --af-accent-coral-soft: rgba(242, 103, 104, 0.18);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--nav-backdrop);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 7.5px;
  box-shadow: 0 2px 6px rgba(41, 48, 79, 0.16);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--af-brand-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(41, 48, 79, 0.18);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

:root[data-theme="dark"] .btn-header-cta {
  background-color: #FAF8F5;
  color: #161A2B;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-header-cta {
    background-color: #FAF8F5;
    color: #161A2B;
  }
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(41, 48, 79, 0.22);
}

/* ==========================================================================
   Hero Section (Refined: Balanced, elegant, tighter vertical hierarchy)
   ========================================================================== */

.hero-section {
  padding-top: 36px;
  padding-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle warm ambient background glow */
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 260px;
  background: radial-gradient(circle, rgba(242, 103, 104, 0.04) 0%, rgba(255, 179, 35, 0.03) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Hero App Icon (Directly above badge on vertical axis) */
.hero-app-icon-wrapper {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.hero-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(41, 48, 79, 0.14);
  transition: transform var(--transition-normal);
}

.hero-app-icon:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Refined, delicate badge (Directly below icon, above headline) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  background-color: rgba(41, 48, 79, 0.04);
  border: 1px solid rgba(41, 48, 79, 0.09);
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

:root[data-theme="dark"] .hero-badge {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-badge {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Headline with intentional responsive break */
.hero-headline {
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero-headline-break {
  display: inline;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 2.5rem;
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .hero-headline-break {
    display: block;
  }
}

@media (min-width: 900px) {
  .hero-headline {
    font-size: 2.75rem;
  }
}

.hero-description {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 22px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   App Store Download Button — Polished Apple Badge Presentation
   ========================================================================== */

.app-store-badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  text-decoration: none;
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.app-store-badge-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

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

.app-store-badge-img {
  display: block;
  height: 52px;
  width: auto;
  border-radius: 12px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 8px 20px;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  width: fit-content;
  max-width: 100%;
}

.app-store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

.app-store-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: brightness(0.92);
}

.app-store-button:focus-visible {
  outline: 2px solid var(--af-accent-coral);
  outline-offset: 3px;
}

:root[data-theme="dark"] .app-store-button {
  background-color: #050508;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .app-store-button:hover {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-store-button {
    background-color: #050508;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  :root:not([data-theme="light"]) .app-store-button:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.16);
  }
}

.app-store-apple-logo {
  width: 22px;
  height: 26px;
  flex-shrink: 0;
  fill: #FFFFFF;
}

.app-store-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.app-store-subtext {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.1;
  margin-bottom: 2px;
}

.app-store-maintext {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  line-height: 1.15;
}

.app-store-status-note {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cta-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#preview,
#benefits,
#hero,
#download {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   App Preview Showcase (iPhone Presentation)
   ========================================================================== */

.preview-section {
  padding-top: 20px;
  padding-bottom: 56px;
  position: relative;
  overflow: hidden;
}

.preview-header {
  text-align: center;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 22px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--af-accent-coral);
  margin-bottom: 6px;
  display: block;
}

.section-heading {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2rem;
  }
}

/* Tab filters for preview */
.preview-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

@media (min-width: 768px) {
  .preview-tabs {
    justify-content: center;
  }
}

.preview-tab-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.preview-tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(41, 48, 79, 0.2);
}

.preview-tab-btn.active {
  background-color: var(--af-brand-blue);
  color: #FFFFFF;
  border-color: var(--af-brand-blue);
}

:root[data-theme="dark"] .preview-tab-btn.active {
  background-color: #FAF8F5;
  color: #161A2B;
  border-color: #FAF8F5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .preview-tab-btn.active {
    background-color: #FAF8F5;
    color: #161A2B;
    border-color: #FAF8F5;
  }
}

/* Horizontal Scroll Showcase (Mobile-First) */
.device-showcase {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  margin-left: -20px;
  margin-right: -20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.device-showcase::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .device-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    overflow-x: visible;
  }
}

/* Individual iPhone Device Frame */
.device-card {
  flex: 0 0 260px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .device-card {
    flex: 0 0 280px;
  }
}

@media (min-width: 1024px) {
  .device-card {
    flex: auto;
  }
  .device-card:hover {
    transform: translateY(-4px);
  }
}

.iphone-frame {
  position: relative;
  background-color: #101422;
  border-radius: 38px;
  padding: 8px;
  box-shadow: var(--shadow-device);
  border: 3px solid rgba(41, 48, 79, 0.18);
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

:root[data-theme="dark"] .iphone-frame {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .iphone-frame {
    border-color: rgba(255, 255, 255, 0.12);
  }
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background-color: #FAF8F5;
  position: relative;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-caption {
  margin-top: 12px;
  text-align: center;
}

.device-caption-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.015em;
}

.device-caption-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   Main Benefits Section (Refined: Compact, premium, app-focused)
   ========================================================================== */

.benefits-section {
  padding-top: 52px;
  padding-bottom: 56px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal);
}

.benefits-header {
  text-align: center;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 26px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

.benefit-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(41, 48, 79, 0.06);
  border-color: rgba(41, 48, 79, 0.14);
}

:root[data-theme="dark"] .benefit-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .benefit-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  }
}

/* App-inspired icon badge (Warm coral / soft navy) */
.benefit-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--af-accent-coral-soft);
  color: var(--af-accent-coral);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon-box svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.3;
}

.benefit-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Closing CTA Section (Refined: Natural, balanced continuation)
   ========================================================================== */

.closing-cta-section {
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}

.cta-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 38px 24px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-headline {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 22px;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .cta-headline {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: 36px;
  padding-bottom: 30px;
  font-size: 0.84rem;
  transition: background-color var(--transition-normal);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.footer-brand-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--af-accent-coral);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Placeholder Alert Modal or Tooltip for Live Link
   ========================================================================== */

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--af-brand-blue);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  white-space: nowrap;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
