/* One engraved line language for navigation, actions and card marks. */
.ui-icon { display: inline-block; width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.mobile-nav .ui-icon { width: 24px; height: 24px; stroke-width: 1.5; }
.mobile-nav a { min-width: 0; }
.mobile-nav a[aria-current="page"] .ui-icon { filter: drop-shadow(0 0 6px rgba(245,217,133,.35)); }
.chat-panel-mark .ui-icon { width: 26px; height: 26px; stroke-width: 1.25; }
#chat-send .ui-icon { width: 23px; height: 23px; stroke-width: 1.6; }

.button > span[aria-hidden="true"],
.text-link > span[aria-hidden="true"],
.inline-action > span[aria-hidden="true"],
.week-feature-cta > span[aria-hidden="true"],
.chat-invite-action > span[aria-hidden="true"] { display: none; }
.button::after,
.text-link::after,
.inline-action::after,
.week-feature-cta::after,
.chat-invite-action::after,
.chat-prompt-list button::after,
.week-arrow::after,
.back-link::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: url('./assets/icon-arrow-up-right.svg') center / contain no-repeat;
  mask: url('./assets/icon-arrow-up-right.svg') center / contain no-repeat;
}
.header-entry {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 8px 18px 8px 9px;
  border: 1px solid rgba(222, 184, 88, .58);
  border-radius: 9px;
  background: linear-gradient(115deg, rgba(222, 184, 88, .14), rgba(222, 184, 88, .035) 75%);
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.015em;
  box-shadow: inset 0 1px 0 rgba(245, 217, 133, .12);
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.header-entry > span { margin: 0; font-size: inherit; line-height: 1; }
.header-entry .ui-icon {
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid rgba(245, 217, 133, .35);
  border-radius: 50%;
  stroke-width: 1.5;
}
.header-entry:hover { background: rgba(222, 184, 88, .18); border-color: var(--gold-light); color: #fff0c5; transform: translateY(-1px); }
.header-entry:active { background: rgba(222, 184, 88, .25); transform: translateY(0); }
.header-entry:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
@media (max-width: 980px) { .header-entry { display: none; } }
@media (prefers-reduced-motion: reduce) { .header-entry { transition: none; } }
.button-gold {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 60px;
  min-width: 250px;
  padding: 0 48px;
  text-align: center;
  border: 1px solid #f1d78d;
  border-radius: 9px;
  background: #dfbd6e;
  color: #26180d;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 246, 210, .48);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.015em;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.button-gold::after { content: none; }
.button-gold > span[aria-hidden="true"] {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-left: 0;
  color: #35220f;
  font-size: 0;
}
.button-gold > span[aria-hidden="true"]::before {
  content: "";
  width: 23px;
  height: 23px;
  background: currentColor;
  -webkit-mask: url('./assets/icon-arrow-up-right.svg') center / contain no-repeat;
  mask: url('./assets/icon-arrow-up-right.svg') center / contain no-repeat;
  transition: transform var(--motion-fast) var(--ease-out);
}
.button-gold:hover { background: #edce80; border-color: #fbe8ad; box-shadow: 0 12px 25px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 251, 222, .7); }
.button-gold:hover > span[aria-hidden="true"]::before { transform: translate(1px, -1px); }
.button-gold:active { transform: translateY(0); background: #d3a95a; box-shadow: inset 0 2px 5px rgba(56, 35, 12, .17); }
.button-gold:focus-visible { outline: 2px solid #fff0b3; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .button-gold, .button-gold > span[aria-hidden="true"]::before { transition: none; } }
.text-link,.inline-action { display: inline-flex; align-items: center; gap: 10px; }
.text-link::after,.inline-action::after { width: 16px; height: 16px; }
.week-feature-cta { align-items: center; }
.week-arrow { font-size: 0; }
.week-arrow::after { width: 27px; height: 27px; }
.chat-invite-action { display: inline-flex; gap: 10px; align-items: center; }
.chat-invite-action::after { width: 16px; height: 16px; }
.chat-prompt-list button { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.chat-prompt-list button::after { float: none; width: 19px; height: 19px; font-size: 0; }
.back-link { gap: 11px; }
.back-link > span[aria-hidden="true"] { display: none; }
.back-link::before { width: 20px; height: 20px; -webkit-mask-image: url('./assets/icon-arrow-left.svg'); mask-image: url('./assets/icon-arrow-left.svg'); }
.footer-links a[href*="instagram.com"] { display: inline-flex; align-items: center; gap: 4px; }
.footer-links a[href*="instagram.com"]::after,
#account-change-password::after,
#account-verify-email::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 8px; vertical-align: -2px; background: currentColor; -webkit-mask: url('./assets/icon-arrow-up-right.svg') center / contain no-repeat; mask: url('./assets/icon-arrow-up-right.svg') center / contain no-repeat; }
.dialog-close,.birth-calendar-heading button,.birth-time-heading button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; font-size: 0 !important; }
.dialog-close::before,.birth-calendar-heading button::before,.birth-time-heading button::before { content: ""; display: block; width: 19px; height: 19px; background: currentColor; -webkit-mask: url('./assets/icon-close.svg') center / contain no-repeat; mask: url('./assets/icon-close.svg') center / contain no-repeat; }
.birth-calendar-controls > button { display: grid; place-items: center; font-size: 0 !important; }
.birth-calendar-controls > button::before { content: ""; display: block; width: 18px; height: 18px; background: currentColor; -webkit-mask: url('./assets/icon-chevron-left.svg') center / contain no-repeat; mask: url('./assets/icon-chevron-left.svg') center / contain no-repeat; }
#birth-calendar-next::before { -webkit-mask-image: url('./assets/icon-chevron-right.svg'); mask-image: url('./assets/icon-chevron-right.svg'); }

.draw-card-star,.draw-card-mark,.mini-card-art { font-size: 0; }
.draw-card-star::before,.draw-card-mark::before,.mini-card-art::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: url('./assets/icon-star.svg') center / contain no-repeat;
  mask: url('./assets/icon-star.svg') center / contain no-repeat;
}
.draw-card-star { width: 16px; height: 16px; }
.draw-card-mark { display: block; width: 74px; height: 74px; }
.mini-card-art { display: grid; place-items: center; }
.mini-card-art::before { width: 70%; height: 70%; }
.birth-date-toggle svg,.birth-time-toggle svg,.password-toggle svg { stroke-linecap: round; stroke-linejoin: round; }

/* Align cards and calls to action to the same mobile inset. */
.account-card { min-width: 0; }
@media (max-width: 760px) {
  .site-header { padding-inline: 20px; }
  .account-layout { min-width: 0; }
  .account-card { width: 100%; padding: 26px 22px; }
  .account-card h2 { overflow-wrap: anywhere; }
  .account-actions { min-width: 0; }
  .account-actions .button { width: 100%; min-width: 0; white-space: normal; text-align: center; }
  .account-actions .button::after { margin-left: auto; }
  .birth-form { min-width: 0; }
  .chat-invite { align-items: center; }
  .chat-invite-copy { min-width: 0; }
  .chat-invite-copy strong { line-height: 1.16; }
}
@media (max-width: 370px) {
  .simple-hero h1 { font-size: clamp(37px, 11vw, 43px); }
  .chat-transcript { overflow-x: hidden; }
  .chat-message-thinking { max-width: 100%; }
  .chat-thinking-stage { flex-direction: column; align-items: flex-start; gap: 0; }
  .chat-thinking-cards { transform: scale(.75); transform-origin: left top; width: 148px; height: 64px; }
  .chat-thinking-line { font-size: 14px; white-space: normal; }
  .mobile-nav { padding-inline: 4px; }
  .mobile-nav a { font-size: 9px; }
}

/* Desktop navigation: a gold rule grows from the centre on hover and stays under the current page. */
.desktop-nav { gap: clamp(20px, 2.3vw, 40px); }
.desktop-nav a { position: relative; padding: 12px 2px; color: #d9cabb; font-size: 14px; letter-spacing: .015em; transition: color var(--motion-base) var(--ease-out); }
.desktop-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light) 18%, var(--gold-light) 82%, transparent); opacity: 0; transition: left 340ms var(--ease-out), right 340ms var(--ease-out), opacity 200ms ease; }
.desktop-nav a::before { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; background: var(--gold-light); transform: translateX(-50%) rotate(45deg) scale(0); transition: transform 340ms var(--ease-out); }
.desktop-nav a:hover { color: #f6e7c4; }
.desktop-nav a:hover::after { left: 18%; right: 18%; opacity: .55; }
.desktop-nav a[aria-current="page"] { color: var(--gold-light); }
.desktop-nav a[aria-current="page"]::after { left: 0; right: 0; opacity: 1; }
.desktop-nav a[aria-current="page"]::before { transform: translateX(-50%) rotate(45deg) scale(1); }
.desktop-nav a:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 4px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .desktop-nav a::after, .desktop-nav a::before { transition: none; } }

/* Footer mirrors the full-width header: same side padding, so the name sits under the logo
   and the links end where the account button ends; the rule spans the page like the header's. */
@media (min-width: 761px) {
  .site-footer.section-wrap { width: 100%; max-width: none; margin-inline: 0; padding-inline: clamp(24px, 3.5vw, 88px); align-items: flex-start; }
}

@media (min-width: 1400px) {
  .hero { grid-template-columns: minmax(0, 55%) minmax(0, 45%); }
  .hero-copy { max-width: none; padding-right: clamp(24px, 2vw, 48px); }
  .hero h1 { max-width: none; font-size: clamp(62px, 4vw, 90px); text-wrap: initial; }
  .hero h1 em { white-space: nowrap; }
}
