/* Shared controls, appearance and content motion for every public page. */
.header-inner {
  gap: 24px;
}
.header-inner > .brand {
  flex-shrink: 0;
}
.site-nav {
  margin-left: auto;
  gap: 25px;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #d7e2f0;
  border-radius: 24px;
  background: #f3f6fb;
  color: #667a94;
  padding: 4px;
  min-height: 44px;
}
.theme-toggle svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  stroke-width: 1.7;
}
.theme-sun {
  background: white;
  color: #986015;
  box-shadow: 0 1px 5px #10243d15;
}
.reveal-in {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 600ms ease,
    translate 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-in.is-revealed,
.reveal-in:focus-within {
  opacity: 1;
  translate: 0 0;
}
.topic-card.reveal-in:nth-child(3n + 2),
.help-steps .reveal-in:nth-child(2n) {
  transition-delay: 60ms;
}
.topic-card.reveal-in:nth-child(3n) {
  transition-delay: 110ms;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #e5edf9;
  --muted: #b1bfd2;
  --blue: #93bbff;
  --turquoise: #65dace;
  --line: #2e4058;
  --pale: #192e49;
}
[data-theme='dark'] body {
  background: #0c1625;
}
[data-theme='dark'] .site-header {
  background: #0f1b2dee;
  border-color: var(--line);
}
[data-theme='dark']
  :is(
    .site-nav > a,
    .hero-note,
    .hero-bottom,
    .hero-bottom div,
    .copyright,
    .footer-legal a,
    .footer-inner p,
    .download-legal a,
    .auth-legal,
    .auth-legal a
  ) {
  color: var(--muted);
}
[data-theme='dark'] :is(.site-nav > a:hover, .footer-legal a:hover) {
  color: var(--blue);
}
[data-theme='dark'] .theme-toggle {
  border-color: #3c526d;
  background: #132239;
  color: #92a4bb;
}
[data-theme='dark'] .theme-sun {
  background: transparent;
  color: inherit;
  box-shadow: none;
}
[data-theme='dark'] .theme-moon {
  background: #355579;
  color: #f0f5ff;
  box-shadow: 0 1px 5px #0002;
}
[data-theme='dark'] :is(.hero, .legal-hero, .contact-hero, .help-hero) {
  background: radial-gradient(ellipse at 85% 20%, #193351 0, #102333 45%, #0c1625 85%);
}
[data-theme='dark'] :is(.how-section, .contact-enquiry-section, .help-library) {
  background: #101e30;
  border-color: var(--line);
}
[data-theme='dark']
  :is(
    .feature-card,
    .float-label,
    .legal-summary,
    .contact-direct,
    .enquiry-panel,
    .help-shortcuts,
    .help-answers details,
    .help-empty,
    .auth-dialog
  ) {
  background: #14243a;
  border-color: var(--line);
}
[data-theme='dark']
  :is(
    .legal-data-list,
    .legal-content .legal-emphasis,
    .contact-address,
    .staff-case pre,
    .service-notice,
    .auth-symbol,
    .noscript-note
  ) {
  background: #192d46;
  border-color: #3b5472;
  color: var(--ink);
}
[data-theme='dark'] :is(.button-outline, .menu-toggle) {
  background: #15263c;
  color: var(--ink);
  border-color: #4b6380;
}
[data-theme='dark'] .button-outline:hover:not(:disabled) {
  background: #223c5d;
}
[data-theme='dark'] .button-primary {
  background: #2662c4;
  color: #fff;
}
[data-theme='dark'] .button-primary:hover:not(:disabled) {
  background: #2b70db;
}
[data-theme='dark'] .button-white {
  color: #194d9c;
}
[data-theme='dark'] .download-section {
  background: #163d7b;
}
[data-theme='dark']
  :is(
    .contact-page input,
    .contact-page select,
    .contact-page textarea,
    .help-tools input,
    .help-tools select,
    .auth-dialog input
  ) {
  background: #0e1c2e;
  color: var(--ink);
  border-color: #566f8c;
}
[data-theme='dark'] input::placeholder,
[data-theme='dark'] textarea::placeholder {
  color: #a4b5cc;
}
[data-theme='dark']
  :is(
    .contact-hero h1 span,
    .help-hero h1 span,
    .topic-number,
    .topic-action,
    .help-answers a,
    .help-empty a,
    .legal-number,
    .legal-summary a,
    .legal-content a,
    #contact-reference
  ) {
  color: #a4c7ff;
}
[data-theme='dark'] .topic-card:hover {
  background: #162c46;
  border-color: #6f9bd5;
}
[data-theme='dark'] :is(.help-steps li::before, .contact-steps li::before) {
  background: #1c3453;
  color: #b1d0ff;
  border-color: #496b95;
}
[data-theme='dark']
  :is(
    .contact-page label span,
    .contact-safety,
    .contact-hint,
    .contact-privacy,
    .contact-address p:not(.eyebrow)
  ) {
  color: var(--muted);
}
[data-theme='dark'] .contact-safety {
  border-color: var(--line);
  background: #15283f;
}
[data-theme='dark'] .auth-error {
  color: #ffbfca;
  background: #431e2a;
  border-color: #865367;
}
[data-theme='dark'] .auth-status {
  color: #a3decd;
}
[data-theme='dark'] :is(.account-email-card, .receipt-check) {
  background: #153d36;
  color: #b1efdc;
}
[data-theme='dark'] :is(.account-email-card .verified-label, .verified-icon) {
  color: #aae3cb;
}
[data-theme='dark'] .phone-card {
  background: #14243a;
  border-color: #263950;
  outline-color: #47607c;
}
[data-theme='dark'] :is(.example-tag, .user-message) {
  background: #223953;
  color: #d3e5fb;
}
[data-theme='dark'] .assistant-message {
  background: #1c3b3b;
}
[data-theme='dark']
  :is(
    .hello-label,
    .phone-greeting p,
    .phone-bottom,
    .sample-message span,
    .float-label small,
    .step-number,
    .step-list p,
    .card-number,
    .delivery-foot,
    .delivery-note,
    .mode-note,
    .eyebrow-muted
  ) {
  color: #b1bfd2;
}
[data-theme='dark'] .assistant-message span {
  color: #9cded1;
}
[data-theme='dark'] .mic-illustration {
  background: #2662c4;
  box-shadow:
    0 0 0 9px #203b62,
    0 0 0 17px #192c46;
}
[data-theme='dark'] .visual-orbit {
  border-color: #304966;
}
[data-theme='dark'] :is(.feature-icon, .step-dot) {
  background: #1c3453;
  color: #aed0ff;
}
[data-theme='dark'] :is(.turquoise-icon, .float-check, .hero-note-icon) {
  background: #163d35;
  color: #a3e4ce;
}
[data-theme='dark'] .navy-icon {
  background: #23354e;
  color: var(--ink);
}
[data-theme='dark'] .delivery-label {
  background: #1c3453;
  color: #b1d0ff;
}
[data-theme='dark'] .delivery-card:nth-child(2) .delivery-label {
  background: #163d35;
  color: #a3e4ce;
}
[data-theme='dark'] .site-footer {
  border-color: var(--line);
}
[data-theme='dark'] .step-number {
  background: #1c3453;
  border-color: #476586;
  color: #b1d0ff;
}
[data-theme='dark'] :is(.pronunciation, .step-list small) {
  color: var(--muted);
}
[data-theme='dark'] :focus-visible {
  outline-color: #7ddbd1;
}
@media (min-width: 781px) and (max-width: 1060px) {
  .header-inner {
    gap: 16px;
  }
  .site-nav {
    gap: 14px;
    font-size: 12px;
  }
  .site-nav .button {
    padding-inline: 12px;
    font-size: 12px;
  }
  .site-header .brand {
    font-size: 26px;
    gap: 8px;
  }
  .site-header .brand-wave {
    width: 29px;
    height: 29px;
  }
}
@media (max-width: 780px) {
  .site-nav {
    margin-left: 0;
  }
  .header-controls {
    margin-left: auto;
  }
  [data-theme='dark'] .site-nav {
    background: #0f1b2d;
    border-color: var(--line);
  }
  html:not(.navigation-ready) .header-controls {
    display: none;
  }
  html:not(.navigation-ready) .site-nav {
    flex-basis: 100%;
  }
}
@media (max-width: 370px) {
  .header-inner {
    gap: 8px;
  }
  .header-controls {
    gap: 8px;
  }
  .site-header .brand {
    font-size: 24px;
    gap: 6px;
  }
  .site-header .brand-wave {
    width: 23px;
    height: 26px;
  }
  .theme-toggle svg {
    width: 25px;
    height: 25px;
  }
  .menu-toggle {
    padding-inline: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-in {
    opacity: 1;
    translate: none;
    transition: none;
  }
}
@media print {
  .reveal-in {
    opacity: 1;
    translate: none;
    transition: none;
  }
  [data-theme='dark'] {
    --ink: #10243d;
    --muted: #40526a;
    --blue: #1856be;
    --line: #c4d6e9;
  }
  [data-theme='dark'] body,
  [data-theme='dark']
    :is(.legal-hero, .legal-summary, .legal-data-list, .legal-content .legal-emphasis) {
    color: #10243d;
    background: white;
  }
}
