/* Alfred: Local AI support page.
   The masthead reuses the canonical LlataRoch + Alfred components used by Contacto. */

.alfred-support-page {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 12%, rgba(16,80,147,.42), transparent 34%),
    linear-gradient(180deg, #031f49 0%, #021a3c 46%, #011733 100%);
}

.as-page {
  padding-top: clamp(18px, 3vw, 34px);
}

.as-widget {
  width: min(980px, 100%);
  margin: 0 auto;
}

.as-card {
  overflow: hidden;
  border: 2px solid #d9a957;
  border-radius: 34px;
  background: #f7f4ee;
  box-shadow:
    inset 0 0 0 2px rgba(1,23,51,.54),
    inset 0 0 0 3px rgba(244,205,133,.20),
    0 28px 72px rgba(0,0,0,.30),
    0 0 0 1px rgba(210,159,87,.18);
}

.as-header {
  padding: 18px clamp(20px, 5vw, 54px) 16px;
  text-align: center;
}

.as-language-toggle {
  position: relative;
  z-index: 3;
  display: inline-flex;
  gap: 8px;
  margin: 2px auto 4px;
  padding: 4px;
  border: 1px solid rgba(217,169,87,.45);
  border-radius: 18px;
  background: rgba(1,23,51,.42);
}

.as-language-toggle .lr-deco-button {
  min-width: 108px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: .10em;
}

.as-language-toggle .lr-deco-button::before {
  inset: 4px;
  border-radius: 7px;
}

.as-language-toggle .lr-deco-button[aria-pressed="true"] {
  border-color: #f3d18e;
  background: linear-gradient(150deg, rgba(16,80,147,.94), rgba(2,32,74,.92));
  color: #fff0ca;
  box-shadow:
    inset 0 0 0 2px rgba(1,23,51,.92),
    inset 0 0 0 3px rgba(255,224,163,.7),
    0 8px 18px rgba(1,23,51,.24);
}

.as-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: end;
  min-height: 440px;
  padding: clamp(28px, 5vw, 54px) clamp(24px, 6vw, 62px) 0;
  background:
    radial-gradient(circle at 74% 46%, rgba(35,149,255,.10), transparent 27%),
    linear-gradient(180deg, #fff 0%, #f7f4ee 100%);
}

.as-hero-copy {
  align-self: center;
  padding-bottom: clamp(26px, 5vw, 52px);
}

.as-kicker {
  margin: 0 0 10px;
  color: #a86e26;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.as-hero h2,
.as-section-title {
  font-family: 'Poiret One', 'Century Gothic', sans-serif;
  font-weight: 400;
}

.as-hero h2 {
  margin: 0 0 14px;
  color: #02204a;
  font-size: clamp(36px, 6vw, 64px);
  line-height: .98;
  letter-spacing: .035em;
}

.as-lede {
  max-width: 620px;
  margin: 0;
  color: #24405f;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  line-height: 1.72;
}

.as-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.as-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(2,32,74,.20);
  border-radius: 999px;
  color: #24405f;
  background: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.as-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.as-actions .lr-deco-button {
  min-width: min(100%, 250px);
}

.as-figure {
  display: block;
  align-self: end;
  justify-self: center;
  width: min(100%, 360px);
  max-height: 430px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 24px rgba(0,61,135,.18));
}

.as-body {
  padding: clamp(30px, 5vw, 58px) clamp(22px, 5vw, 52px) clamp(34px, 6vw, 64px);
  background: #f7f4ee;
}

.as-section-title {
  margin: 0 0 24px;
  color: #02204a;
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.05;
  text-align: center;
}

.as-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 24px);
}

.as-panel {
  position: relative;
  min-height: 230px;
  padding: 28px 28px 26px;
}

.as-panel h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

.as-panel p,
.as-panel ul {
  position: relative;
  margin-top: 0;
}

.as-panel ul {
  margin-bottom: 0;
  padding-left: 20px;
}

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

.as-support {
  position: relative;
  margin-top: clamp(22px, 3vw, 30px);
  padding: clamp(28px, 4vw, 42px);
}

.as-support h2 {
  position: relative;
  margin: 0 0 10px;
  color: #f1c979;
  font-family: 'Poiret One', 'Josefin Sans', Jost, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
}

.as-support p {
  position: relative;
  max-width: 760px;
  margin: 0 auto 20px;
  color: rgba(247,244,238,.90);
  font-family: 'Poiret One', 'Josefin Sans', Jost, Arial,sans-serif;
  font-size: 18px;
  line-height: 1.62;
}

.as-support .lr-deco-button {
  min-width: min(100%, 260px);
}

.as-footer-note {
  margin: 24px auto 0;
  max-width: 760px;
  color: #687b90;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 760px) {
  .as-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .as-card {
    border-radius: 28px;
  }

  .as-language-toggle {
    width: min(100%, 248px);
    justify-content: center;
    margin-top: 4px;
  }

  .as-language-toggle .lr-deco-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .as-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 22px 0;
  }

  .as-hero-copy {
    padding-bottom: 0;
    text-align: center;
  }

  .as-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .as-meta,
  .as-actions {
    justify-content: center;
  }

  .as-figure {
    width: min(96vw, 420px);
    max-height: 440px;
  }

  .as-body {
    padding: 28px 16px 38px;
  }

  .as-grid {
    grid-template-columns: 1fr;
  }

  .as-panel {
    min-height: 0;
    padding: 26px 22px;
  }

  .as-support {
    padding: 28px 22px;
  }

  .as-actions .lr-deco-button,
  .as-support .lr-deco-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .as-language-toggle {
    width: 100%;
  }

  .as-language-toggle .lr-deco-button {
    font-size: 11px;
    letter-spacing: .06em;
  }

  .as-meta span {
    font-size: 10px;
  }
}
