.local-ai-page {
  --ai-forest: #243c43;
  --ai-teal: #cbded6;
  --ai-gold: #dab875;
}

.local-ai-page main,
.local-ai-page footer {
  max-width: 1480px;
  margin-inline: auto;
}

.local-ai-page main {
  padding-top: 1.5rem;
}

.local-ai-page :is(h1, h2) em {
  color: #80633c;
  font-weight: inherit;
}

.local-ai-page .hero-kicker {
  color: #526d66;
}

.local-ai-page .btn {
  background: var(--ai-forest);
}

.local-ai-page .btn.ghost {
  background: transparent;
  color: var(--ai-forest);
  border-color: #9bada4;
}

.local-ai-page :is(a, button, summary, input):focus-visible {
  outline: 3px solid #a17b3d;
  outline-offset: 5px;
}

.ai-skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 30;
  padding: 0.8rem 1.2rem;
  color: #fff;
  background: #243c43;
}

.ai-skip:focus {
  top: 1rem;
}

.local-ai-page :is(section[id], main[id]) {
  scroll-margin-top: 195px;
}

.ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 5vw, 5.5rem);
  align-items: center;
  padding: 2.3rem 0 3.7rem;
}

.ai-hero-copy h1 {
  font-size: clamp(2.7rem, 4.8vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 1.07;
  margin-block: 1.1rem 1.5rem;
}

.ai-hero-copy > p:not(.hero-kicker) {
  max-width: 54ch;
  color: #615e50;
}

.ai-hero-copy > .ai-intro {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--ai-forest);
  font-weight: 600;
}

.ai-hero-copy .hero-cta {
  gap: 1rem 1.5rem;
  align-items: center;
  margin-block: 1.8rem;
}

.ai-text-link {
  color: var(--ai-forest);
  font-weight: 600;
  text-underline-offset: 5px;
  font-size: 0.9rem;
}

.ai-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: #696757;
  font-size: 0.74rem;
}

.ai-hero-notes li::before {
  content: "✳";
  color: #7c6741;
  margin-right: 0.4rem;
}

.ai-hero-notes a {
  color: inherit;
  text-underline-offset: 3px;
}

.ai-unlocked {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0.5rem 0 1.2rem;
  border: 1px solid #aabca7;
  border-radius: 18px;
  background: #dee6d7;
}

.ai-unlocked h2 {
  margin-bottom: 0;
}

.ai-unlocked p:not(.hero-kicker) {
  margin-top: 0;
  color: #394d43;
  font-size: 0.93rem;
}

.ai-unlocked p.ai-unlocked-note {
  font-size: 0.78rem;
  color: #576453;
}

.ai-builder fieldset > .ai-chat-style-note {
  margin: 0.7rem 0 0;
}

.ai-workshop-art {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.7rem;
  color: #f6f0df;
  background: radial-gradient(ellipse at 60% 30%, #496961, transparent 65%), #243c43;
  box-shadow: 0 22px 45px #243c4326;
  transform: rotate(1.4deg);
}

.ai-art-label {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #dddfcd;
}

.ai-art-label > span {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ai-gold);
}

.ai-bot-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.ai-orbit {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px dashed #d4e5d53b;
  border-radius: 50%;
}

.ai-orbit-two {
  width: 330px;
  height: 330px;
  opacity: 0.5;
}

.ai-bot {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  transform: rotate(-7deg);
}

.ai-antenna {
  position: absolute;
  left: calc(50% - 2px);
  top: -26px;
  height: 27px;
  width: 5px;
  background: #c6d8c9;
}

.ai-antenna::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ai-gold);
  box-shadow: 0 0 24px #dab87550;
}

.ai-bot-face {
  display: flex;
  justify-content: center;
  gap: 35px;
  position: relative;
  width: 160px;
  height: 116px;
  padding: 32px 20px;
  border: 8px solid #a1b6a7;
  border-radius: 35px;
  background: #e2e5cb;
  box-shadow: 7px 9px 0 #172f34, inset 0 -6px 0 #c3cbb3;
}

.ai-bot-face > span {
  width: 13px;
  height: 23px;
  border-radius: 7px;
  background: #243c43;
  transform: rotate(6deg);
}

.ai-bot-face > i {
  position: absolute;
  bottom: 15px;
  left: 58px;
  width: 29px;
  height: 15px;
  border-bottom: 4px solid #243c43;
  border-radius: 0 0 50% 50%;
}

.ai-bot-body {
  position: relative;
  display: grid;
  place-items: center;
  width: 103px;
  height: 66px;
  margin: 14px auto 0;
  border-radius: 18px 18px 22px 22px;
  background: #a1b6a7;
  box-shadow: 5px 5px 0 #172f34;
  color: #243c43;
  font-size: 0.65rem;
  font-weight: 700;
}

.ai-bot-body > i {
  position: absolute;
  bottom: 9px;
  width: 15px;
  height: 4px;
  border-radius: 4px;
  background: var(--ai-gold);
}

.ai-bot-tag {
  position: absolute;
  z-index: 2;
  border: 1px solid #a6b7a166;
  border-radius: 30px;
  padding: 0.5rem 0.8rem;
  background: #213a37;
  font-size: 0.75rem;
  color: #eee8d1;
  white-space: nowrap;
}

.ai-tag-memory { top: 43px; left: 0; transform: rotate(-10deg); }
.ai-tag-tools { top: 117px; right: -5px; transform: rotate(8deg); }
.ai-tag-style { bottom: 23px; left: 15px; transform: rotate(-5deg); }
.ai-art-spark { position: absolute; color: var(--ai-gold); }
.ai-spark-one { right: 50px; top: 24px; font-size: 2rem; }
.ai-spark-two { bottom: 18px; right: 25px; font-size: 1.5rem; }

.ai-art-caption {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid #d4e5d536;
}

.ai-art-caption > p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.3;
}

.ai-art-caption > p strong { color: #dfbe7c; font-weight: 500; }
.ai-art-caption > span { font-size: 0.7rem; color: #cfdbcf; text-align: right; }
.ai-section { padding-block: 2.3rem; }

.ai-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.local-ai-page h2 { font-size: clamp(1.9rem, 3vw, 3rem); letter-spacing: -0.025em; }
.ai-section-heading h2 { margin: 0; }
.ai-section-heading > p { margin: 0; font-size: 0.85rem; color: #686352; }

.ai-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ai-package {
  display: flex;
  flex-direction: column;
  border: 1px solid #cbbfa7;
  border-radius: 18px;
  padding: clamp(1.3rem, 2.2vw, 2rem);
  background: #faf7ee;
}

.ai-package-plus { background: #e5e8dc; border-color: #bac6b4; }
.ai-package-custom { background: var(--ai-forest); color: #fcf6e7; border-color: var(--ai-forest); }
.ai-tier-label { margin: 0 0 1.7rem; text-transform: uppercase; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; color: #5a6456; }
.ai-tier-label > span { display: inline-block; margin-left: 0.2rem; border-bottom: 1px solid #b6d1bc; color: #d9e4ca; }
.ai-package h3 { margin-bottom: 0.8rem; font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.ai-package-description { font-size: 0.87rem; color: #686352; margin: 0 0 1.5rem; min-height: 4.5em; }
.ai-price { margin: 0; font-size: clamp(2.15rem, 3.3vw, 3rem); letter-spacing: -0.055em; font-weight: 600; line-height: 1.2; }
.ai-price > span { display: inline-block; font-size: 0.75rem; letter-spacing: 0; font-weight: 500; }
.ai-memory-label { padding-bottom: 1.2rem; border-bottom: 1px solid #cbbfa7; font-size: 0.76rem; font-weight: 600; }
.ai-feature-list { list-style: none; margin: 0 0 1.8rem; padding: 0; font-size: 0.85rem; }
.ai-feature-list li { position: relative; padding-left: 1.3rem; margin-block: 0.75rem; }
.ai-feature-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: #52776a; }
.ai-package .btn { margin-top: auto; width: 100%; font-size: 0.85rem; text-align: center; }
.ai-package-custom :is(.ai-tier-label, .ai-package-description) { color: #d0dbcf; }
.ai-package-custom .ai-memory-label { color: #e9cb91; border-color: #71847d; }
.ai-package-custom .ai-feature-list li::before { color: #c2d3a2; }
.ai-package-custom .btn { background: #e4c787; color: #243c43; border-color: #e4c787; }
.ai-package-note { color: #696352; font-size: 0.8rem; margin: 1rem 0 0; }

.ai-care {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: 2rem;
  margin: 1.3rem 0 2rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border-radius: 18px;
  background: #e0d7c3;
  border: 1px solid #c9bda5;
}

.ai-care-heading h2 { max-width: 18ch; }
.ai-care-heading > p:last-child { color: #5b5e50; max-width: 52ch; margin-bottom: 0; }
.ai-care-details { border-left: 1px solid #b6b09c; padding-left: clamp(1.5rem, 3vw, 3rem); }
.ai-care-details .ai-price { margin-bottom: 0.7rem; }
.ai-care-details .ai-feature-list { margin-bottom: 1rem; }

.ai-workshop {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.ai-workshop-intro { padding-top: 1rem; }
.ai-workshop-intro h2 { font-size: clamp(2.3rem, 3.6vw, 3.6rem); }
.ai-workshop-intro > p:not(.hero-kicker, .ai-workshop-price) { color: #615e50; max-width: 43ch; }
.ai-workshop-steps { list-style: none; padding: 0; margin: 2rem 0; font-size: 0.87rem; }
.ai-workshop-steps li { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1rem; }
.ai-workshop-steps li > span { font-size: 0.7rem; color: #7a633b; padding-bottom: 0.2rem; border-bottom: 1px solid #b5a57d; }
.ai-workshop-price { font-size: 0.8rem; color: #65614e; padding-top: 1rem; border-top: 1px solid #cbbfa7; }
.ai-workshop-price strong { display: block; font-size: 1.1rem; color: #243c43; margin-top: 0.2rem; }

.ai-builder {
  gap: 1.4rem;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  border: 1px solid #cbbfa7;
  border-radius: 18px;
  background: #faf7ee;
  box-shadow: 0 16px 32px #44371d0a;
}

.ai-builder fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ai-builder legend { margin-bottom: 0.9rem; padding: 0; font-weight: 600; font-size: 0.9rem; }
.ai-builder legend > span { color: #6a7259; font-size: 0.7rem; margin-right: 0.5rem; }
.ai-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.ai-choice { display: flex; align-items: center; gap: 0.55rem; min-width: 0; padding: 0.7rem; border: 1px solid #d2cab7; border-radius: 9px; font-size: 0.78rem; cursor: pointer; }
.ai-choice:hover { border-color: #849d8d; background: #edf0e6; }
.ai-choice:has(input:checked) { background: #e3ebdf; border-color: #6c8d78; }
.ai-choice input, .ai-care-choice input { accent-color: #345749; width: 16px; height: 16px; flex: 0 0 auto; margin: 0; }
.ai-tone-choices { grid-template-columns: 1fr; }
.ai-field-note { font-size: 0.74rem; color: #696757; margin: 0; }
.ai-builder fieldset > .ai-field-note { margin: -0.25rem 0 0.7rem; }
.ai-care-choice { display: flex; align-items: start; gap: 0.7rem; cursor: pointer; border-top: 1px solid #ded4bf; padding-top: 1.2rem; }
.ai-care-choice input { margin-top: 0.2rem; }
.ai-care-choice strong { display: block; font-size: 0.8rem; }
.ai-care-choice small { display: block; color: #696757; margin-top: 0.25rem; font-size: 0.73rem; }
.ai-builder-summary { padding: 1rem; border-radius: 9px; background: #ece6d7; }
.ai-builder-summary p { margin: 0 0 0.4rem; color: #696352; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.65rem; }
.ai-builder-summary strong { display: block; font-size: 0.8rem; color: #243c43; }
.ai-builder-summary > span { display: block; font-size: 0.76rem; margin-top: 0.5rem; }
.ai-builder > .btn { width: 100%; }
.ai-builder > .ai-field-note { margin-top: -0.6rem; text-align: center; }

.ai-faq { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 2rem; margin-top: 2rem; border-top: 1px solid #cbbfa7; }
.ai-faq details { border-bottom: 1px solid #cbbfa7; padding: 1rem 0; }
.ai-faq details:first-child { padding-top: 0; }
.ai-faq summary { cursor: pointer; font-weight: 600; color: #243c43; font-size: 0.95rem; }
.ai-faq details p { color: #615e50; font-size: 0.88rem; max-width: 65ch; margin-bottom: 0.2rem; }
.ai-closing { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-radius: 18px; padding: 2rem; background: #d9e0d2; margin-block: 1.5rem 3rem; }
.ai-closing h2 { margin: 0; }
.ai-closing .btn { flex-shrink: 0; }
.local-ai-page footer { padding: 1rem clamp(1rem, 4vw, 4rem) 2rem; }

@media (max-width: 1050px) {
  .ai-hero { gap: 2rem; }
  .ai-workshop-art { padding: 1.3rem; }
  .ai-art-caption > span { display: none; }
  .ai-package { padding: 1.3rem; }
  .ai-package .ai-price > span { display: block; margin-top: 0.3rem; }
}

@media (max-width: 800px) {
  .ai-hero { grid-template-columns: 1fr; padding: 1.5rem 0 2rem; }
  .ai-hero-copy h1 { font-size: clamp(2.7rem, 8vw, 4.8rem); }
  .ai-workshop-art { width: min(100%, 500px); justify-self: center; transform: none; }
  .ai-art-caption > span { display: block; }
  .ai-pricing-grid { grid-template-columns: 1fr; }
  .ai-package { padding: 1.7rem; }
  .ai-package-description { min-height: 0; max-width: 52ch; }
  .ai-tier-label { margin-bottom: 1rem; }
  .ai-package .ai-price > span { display: inline-block; margin: 0; }
  .ai-price { font-size: 2.8rem; }
  .ai-care, .ai-workshop, .ai-faq, .ai-unlocked { grid-template-columns: 1fr; }
  .ai-care-details { border-left: 0; border-top: 1px solid #b6b09c; padding: 1.3rem 0 0; }
  .ai-care-heading h2 { max-width: none; }
  .ai-workshop { gap: 1rem; }
  .ai-faq { gap: 0.5rem; }
  .ai-closing { align-items: start; flex-direction: column; }
}

@media (max-width: 480px) {
  .local-ai-page .site-header { position: relative; }
  .local-ai-page :is(section[id], main[id]) { scroll-margin-top: 1rem; }
  .local-ai-page main { padding-top: 0; }
  .ai-section { padding-block: 1.8rem; }
  .ai-section-heading { align-items: start; flex-direction: column; gap: 0.8rem; }
  .ai-hero-notes { gap: 0.55rem 0.9rem; }
  .ai-bot-stage { min-height: 290px; }
  .ai-tag-tools { right: -9px; }
  .ai-tag-style { left: 0; }
  .ai-bot-tag { font-size: 0.66rem; padding: 0.4rem 0.6rem; }
  .ai-choice-grid { grid-template-columns: 1fr; }
  .ai-builder { gap: 1.2rem; }
  .ai-workshop-intro { padding-top: 0; }
  .ai-art-caption > span { font-size: 0.62rem; }
}
