:root {
  --chiwa-smart-language-banner-height: 0px;
  --cd-orange: #ff6b00;
  --cd-logo-orange: #ff7700;
  --cd-orange-dark: #b94700;
  --cd-ink: #1c1f26;
  --cd-muted: #626b78;
  --cd-blue: #0d5f9f;
  --cd-blue-soft: #e8f3fb;
  --cd-paper: #ffffff;
  --cd-soft: #f5f2ee;
  --cd-line: rgba(28, 31, 38, 0.12);
}

@font-face {
  font-family: "Smile and Wave";
  src: url("/static/fonts/smileandwave.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cd-paper);
}

body.agency-home {
  margin: 0;
  background: var(--cd-paper);
  color: var(--cd-ink);
  font-family: "Titillium Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.agency-mobile-menu-open {
  overflow: hidden;
}

.agency-language-fallback {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 9px 16px;
  border-block: 1px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.agency-top-strip {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--cd-orange);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.agency-nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--cd-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.agency-nav__inner,
.agency-section__inner,
.agency-hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.agency-nav__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.agency-brand {
  display: inline-flex;
  align-items: center;
  color: var(--cd-ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.agency-brand img {
  display: block;
}

.agency-brand__wordmark {
  width: clamp(190px, 18vw, 260px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.agency-mobile-menu-button,
.agency-mobile-brand,
.agency-mobile-nav-spacer,
.agency-mobile-menu-backdrop,
.agency-mobile-drawer {
  display: none;
}

.agency-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.agency-nav .public-language-switcher {
  margin: 0;
}

.agency-nav .public-language-trigger {
  width: 48px;
  height: 38px;
}

.agency-mobile-drawer .public-language-switcher {
  margin: 0;
}

.agency-mobile-drawer .public-language-trigger {
  width: 54px;
  height: 44px;
}

.agency-link {
  color: var(--cd-ink);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 4px;
}

.agency-link:hover,
.agency-link:focus {
  color: var(--cd-orange-dark);
}

.agency-link.is-active {
  color: var(--cd-orange-dark);
}

.agency-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.agency-button:hover,
.agency-button:focus {
  transform: translateY(-1px);
}

.agency-button--primary {
  background: var(--cd-orange);
  color: #fff;
  box-shadow: 0 12px 22px rgba(255, 107, 0, 0.22);
}

.agency-button--primary:hover,
.agency-button--primary:focus {
  background: var(--cd-orange-dark);
  color: #fff;
}

.agency-button--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
}

.agency-button--ghost:hover,
.agency-button--ghost:focus {
  background: #fff;
  color: var(--cd-ink);
}

.agency-button--outline {
  border-color: rgba(28, 31, 38, 0.18);
  color: var(--cd-ink);
  background: #fff;
}

.agency-button--outline:hover,
.agency-button--outline:focus {
  border-color: rgba(255, 107, 0, 0.45);
  color: var(--cd-orange-dark);
}

.agency-button--outline.is-active {
  border-color: rgba(255, 107, 0, 0.45);
  color: var(--cd-orange-dark);
}

.agency-hero {
  position: relative;
  height: calc(100vw * 9 / 21);
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #0f172a;
}

.agency-hero__media-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.agency-hero__backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--agency-hero-desktop-position, center);
  display: block;
}

.agency-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, var(--agency-overlay-desktop, 0.45));
  z-index: -1;
  pointer-events: none;
}

.agency-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  z-index: -1;
}

.agency-hero__inner {
  padding: 54px 0 64px;
  color: #fff;
  text-align: left;
}

.agency-hero__badge {
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin-bottom: 20px;
}

.agency-eyebrow {
  margin: 0 0 12px;
  color: #ffd6b5;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agency-hero__brand-title {
  margin: 0;
  max-width: 760px;
  font-size: 4.2rem;
  line-height: 0.95;
  font-family: "Smile and Wave", "Titillium Web", cursive;
  font-weight: 400;
  letter-spacing: 0;
}

.agency-hero__brand-title-chiwa {
  color: #fff;
}

.agency-hero__brand-title-drop {
  color: var(--cd-logo-orange);
}

.agency-hero__lead {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.35rem;
  font-weight: 600;
}

.agency-hero__actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.agency-hero__note {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 700;
}

.agency-section {
  padding: 64px 0;
  background: #fff;
}

.agency-section--soft {
  background: var(--cd-soft);
}

.agency-section--blue {
  background: linear-gradient(180deg, #f9fbfd 0%, var(--cd-blue-soft) 100%);
}

.agency-section__header {
  max-width: 780px;
  margin-bottom: 30px;
}

.agency-section__header h2,
.agency-copy h2 {
  margin: 0 0 14px;
  font-size: 2.1rem;
  line-height: 1.14;
  font-weight: 700;
}

.agency-section__header p,
.agency-copy p {
  margin: 0;
  color: var(--cd-muted);
  font-size: 1.08rem;
}

.agency-section-link {
  display: inline-flex;
  margin-top: 18px;
}

.agency-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.agency-copy {
  max-width: 680px;
}

.agency-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.agency-point {
  border-left: 4px solid var(--cd-orange);
  padding: 4px 0 4px 14px;
  color: var(--cd-ink);
  font-weight: 700;
}

.agency-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--cd-line);
  background: #fff;
  box-shadow: 0 18px 42px rgba(28, 31, 38, 0.12);
}

.agency-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.agency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.agency-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--cd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 31, 38, 0.07);
}

.agency-card h3 {
  margin: 0 0 12px;
  color: var(--cd-ink);
  font-size: 1.25rem;
  font-weight: 700;
}

.agency-card p {
  margin: 0;
  color: var(--cd-muted);
}

.agency-plan-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.agency-plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid rgba(13, 95, 159, 0.22);
  background: #fff;
  color: var(--cd-blue);
  text-decoration: none;
  font-weight: 700;
}

.agency-final {
  text-align: center;
}

.agency-final p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--cd-muted);
  font-size: 1.08rem;
}

.hosting-hero {
  position: relative;
  min-height: 510px;
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(8, 15, 27, 0.9) 0%, rgba(8, 15, 27, 0.68) 45%, rgba(8, 15, 27, 0.18) 100%),
    url("/static/branding/public-home/feature-woocommerce-flow.webp");
  background-position: center;
  background-size: cover;
}

.hosting-hero__inner {
  padding: 70px 0;
}

.hosting-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 3.65rem;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

.hosting-hero p:not(.agency-eyebrow) {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 600;
}

.hosting-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hosting-hero .hosting-hero__status {
  max-width: 660px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

.hosting-section-kicker {
  margin: 0 0 8px;
  color: var(--cd-orange-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hosting-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hosting-pack {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--cd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 31, 38, 0.08);
}

.hosting-pack__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.hosting-pack__kind {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cd-blue-soft);
  color: var(--cd-blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.hosting-pack__number {
  color: rgba(28, 31, 38, 0.16);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.hosting-pack h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.12;
}

.hosting-pack > p {
  margin: 0;
  color: var(--cd-muted);
}

.hosting-pack__features {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.hosting-pack__features li {
  position: relative;
  padding-left: 22px;
  color: var(--cd-ink);
}

.hosting-pack__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cd-orange);
}

.hosting-pack .agency-button {
  margin-top: auto;
}

.hosting-catalog-note {
  max-width: 860px;
  margin: 24px 0 0;
  color: var(--cd-muted);
  font-size: 0.94rem;
}

.hosting-flow {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hosting-flow li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.hosting-flow li > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 107, 0, 0.34);
  border-radius: 8px;
  background: #fff;
  color: var(--cd-orange-dark);
  font-weight: 700;
}

.hosting-flow strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.08rem;
}

.hosting-flow p {
  margin: 0;
  color: var(--cd-muted);
}

.hosting-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: start;
}

.hosting-entry__summary,
.hosting-entry__actions {
  padding: 30px;
  border: 1px solid var(--cd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 31, 38, 0.08);
}

.hosting-entry h2 {
  margin: 18px 0 10px;
  font-size: 1.6rem;
}

.hosting-entry p {
  color: var(--cd-muted);
}

.hosting-entry__actions {
  display: grid;
  gap: 12px;
}

.hosting-entry__actions h2,
.hosting-entry__actions p {
  margin: 0;
}

.hosting-entry__notice {
  padding-top: 10px;
  font-size: 0.92rem;
}

.agency-page-hero {
  background: linear-gradient(180deg, #111827 0%, #263445 100%);
  color: #fff;
}

.agency-page-hero__inner {
  padding: 82px 0 76px;
  text-align: center;
}

.agency-page-hero__inner--narrow {
  max-width: 860px;
}

.agency-page-hero h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.agency-page-hero p:not(.agency-eyebrow) {
  max-width: 820px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  font-weight: 600;
}

.agency-page-hero__actions,
.agency-form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.agency-section__header--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.agency-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.agency-pricing-card,
.agency-form-shell,
.agency-login-card {
  border: 1px solid var(--cd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(28, 31, 38, 0.08);
}

.agency-pricing-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.agency-pricing-card__head {
  min-height: 128px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.agency-pricing-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.agency-pricing-card p {
  margin: 0;
  color: var(--cd-muted);
}

.agency-pricing-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(13, 95, 159, 0.12);
  color: var(--cd-blue);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.agency-pricing-badge--pilot {
  background: rgba(255, 107, 0, 0.13);
  color: var(--cd-orange-dark);
}

.agency-price {
  min-height: 62px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 18px;
}

.agency-price strong {
  font-size: 1.9rem;
  line-height: 1;
}

.agency-price span {
  color: var(--cd-muted);
  font-weight: 600;
}

.agency-feature-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.agency-feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--cd-ink);
  font-weight: 600;
}

.agency-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cd-orange);
}

.agency-pricing-card .agency-button {
  margin-top: auto;
}

/* Recommended card */
.agency-pricing-card--recommended {
  border-color: var(--cd-orange);
  border-width: 2px;
  position: relative;
  transform: scale(1.03);
  z-index: 1;
}

.agency-pricing-card__ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cd-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Trust signals row */
.agency-pricing-trust {
  padding: 24px 0;
}

.agency-trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.agency-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cd-muted);
}

.agency-trust-item svg {
  color: var(--cd-orange);
  flex-shrink: 0;
}

/* FAQ accordion */
.agency-faq {
  display: grid;
  gap: 0;
}

.agency-faq__item {
  border-bottom: 1px solid var(--cd-line);
}

.agency-faq__item summary {
  padding: 18px 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cd-ink);
}

.agency-faq__item summary::-webkit-details-marker {
  display: none;
}

.agency-faq__item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cd-muted);
  transition: transform 0.2s;
}

.agency-faq__item[open] summary::after {
  content: "−";
}

.agency-faq__item p {
  margin: 0 0 18px;
  color: var(--cd-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.agency-form-shell,
.agency-login-shell {
  width: min(100%, 860px);
  margin: 0 auto;
}

.agency-form-shell {
  padding: 30px;
}

.agency-login-shell {
  display: flex;
  justify-content: center;
}

.agency-login-card {
  width: min(100%, 520px);
  padding: 34px;
  text-align: center;
}

.agency-login-card__brand {
  margin-bottom: 24px;
  font-family: "Smile and Wave", "Titillium Web", cursive;
  font-size: 2.3rem;
  line-height: 1;
}

.agency-login-card__brand-chiwa {
  color: var(--cd-ink);
}

.agency-login-card__brand-drop {
  color: var(--cd-logo-orange);
}

.agency-form {
  display: grid;
  gap: 18px;
}

.agency-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.agency-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--cd-ink);
  font-weight: 700;
}

.agency-form input,
.agency-form textarea {
  width: 100%;
  border: 1px solid rgba(28, 31, 38, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--cd-ink);
  padding: 12px 14px;
  font: inherit;
}

.agency-form textarea {
  resize: vertical;
}

.agency-form input:focus,
.agency-form textarea:focus {
  border-color: rgba(255, 107, 0, 0.72);
  outline: 3px solid rgba(255, 107, 0, 0.14);
}

.agency-login-form .agency-button {
  justify-self: center;
}

.agency-login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 16px;
  color: var(--cd-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.agency-login-divider::before,
.agency-login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--cd-line);
}

.chiwacloud-oidc-priming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 10px;
  user-select: none;
  text-align: center;
}

.chiwacloud-oidc-priming__text {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cd-muted, #64748b);
  text-align: center;
}

.chiwacloud-oidc-priming__logo {
  display: block;
  width: auto;
  height: 40px;
  max-height: 44px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.20));
  transition: filter 0.2s ease-in-out;
}

.dark .chiwacloud-oidc-priming__logo,
[data-theme="dark"] .chiwacloud-oidc-priming__logo,
[data-bs-theme="dark"] .chiwacloud-oidc-priming__logo,
.theme-dark .chiwacloud-oidc-priming__logo,
[class*="dark"] .chiwacloud-oidc-priming__logo {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}

.dark .chiwacloud-oidc-priming__text,
[data-theme="dark"] .chiwacloud-oidc-priming__text,
[data-bs-theme="dark"] .chiwacloud-oidc-priming__text,
.theme-dark .chiwacloud-oidc-priming__text,
[class*="dark"] .chiwacloud-oidc-priming__text {
  color: #cbd5e1;
}

.light .chiwacloud-oidc-priming__logo,
[data-theme="light"] .chiwacloud-oidc-priming__logo,
[data-bs-theme="light"] .chiwacloud-oidc-priming__logo,
.theme-light .chiwacloud-oidc-priming__logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.20));
}

.light .chiwacloud-oidc-priming__text,
[data-theme="light"] .chiwacloud-oidc-priming__text,
[data-bs-theme="light"] .chiwacloud-oidc-priming__text,
.theme-light .chiwacloud-oidc-priming__text {
  color: var(--cd-muted, #64748b);
}

.agency-button--chiwacloud {
  width: 100%;
  border: 1px solid rgba(28, 31, 38, 0.2);
  background: #fff;
  color: var(--cd-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.agency-button--chiwacloud:hover,
.agency-button--chiwacloud:focus {
  border-color: var(--cd-blue);
  color: var(--cd-blue);
}

.agency-button__provider-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--cd-blue);
  color: #fff;
  font-weight: 700;
}

.agency-button__google-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.agency-login-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.agency-text-link {
  color: var(--cd-blue);
  font-weight: 700;
  text-decoration: none;
}

.agency-text-link:hover,
.agency-text-link:focus {
  color: var(--cd-orange-dark);
}

.agency-alert {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
}

.agency-alert--info,
.agency-alert--muted {
  background: var(--cd-blue-soft);
  color: #0f4e78;
}

.agency-alert--success {
  background: #eaf7ef;
  color: #1f6f3f;
}

.agency-alert--danger {
  background: #fff0f0;
  color: #a12d2d;
}

.agency-alert__detail {
  margin-top: 8px;
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .agency-nav__inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .agency-nav__actions {
    max-width: 210px;
  }

  .agency-link {
    display: none;
  }

  .agency-hero {
    height: auto;
    min-height: 560px;
    aspect-ratio: auto;
    align-items: flex-end;
  }

  .agency-hero__backdrop-image {
    object-position: var(--agency-hero-mobile-position, center);
  }

  .agency-hero__overlay {
    background-color: rgba(0, 0, 0, var(--agency-overlay-mobile, 0.5));
  }

  .agency-hero__inner {
    padding: 44px 0 48px;
    text-align: center;
  }

  .agency-hero__brand-title {
    font-size: 3rem;
    margin: 0 auto;
  }

  .agency-hero__lead {
    font-size: 1.08rem;
    margin: 20px auto 0;
  }

  .agency-hero__actions {
    justify-content: center;
  }

  .agency-hero__note {
    margin: 24px auto 0;
  }

  .agency-two-col,
  .agency-grid,
  .agency-pricing-grid,
  .hosting-pack-grid,
  .hosting-entry {
    grid-template-columns: 1fr;
  }

  .hosting-hero {
    min-height: 560px;
    aspect-ratio: auto;
    align-items: flex-end;
    background-image:
      linear-gradient(180deg, rgba(8, 15, 27, 0.32) 0%, rgba(8, 15, 27, 0.92) 84%),
      url("/static/branding/public-home/feature-woocommerce-flow.webp");
    background-position: 54% center;
  }

  .hosting-hero__inner {
    padding: 60px 0 54px;
    text-align: center;
  }

  .hosting-hero h1,
  .hosting-hero p:not(.agency-eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .hosting-hero h1 {
    font-size: 2.75rem;
  }

  .hosting-hero__actions {
    justify-content: center;
  }

  .agency-page-hero__inner {
    padding: 62px 0 58px;
  }

  .agency-page-hero h1 {
    font-size: 2.35rem;
  }

  .agency-page-hero p:not(.agency-eyebrow) {
    font-size: 1.05rem;
  }

  .agency-pricing-card__head {
    min-height: auto;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .agency-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .agency-hero__inner {
    padding: 32px 0 36px;
  }

  .agency-eyebrow {
    margin-bottom: 8px;
    font-size: 0.82rem;
  }

  .agency-hero__brand-title {
    font-size: 3.25rem;
  }

  .agency-hero__lead {
    margin-top: 14px;
    font-size: 1.08rem;
  }

  .agency-hero__actions {
    margin-top: 18px;
  }

  .agency-hero__note {
    margin-top: 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .agency-nav__inner,
  .agency-section__inner,
  .agency-hero__inner {
    width: min(100% - 28px, 1180px);
  }

  .agency-top-strip {
    min-height: 42px;
    font-size: 0.88rem;
  }

  .agency-nav {
    position: relative;
    z-index: 30;
  }

  .agency-nav__inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0 14px;
  }

  .agency-brand,
  .agency-nav__actions {
    display: none;
  }

  .agency-mobile-menu-button {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    justify-self: start;
    border: 0;
    background: transparent;
    color: #101827;
    padding: 0;
    cursor: pointer;
  }

  .agency-mobile-menu-button span {
    width: 32px;
    height: 3px;
    display: block;
    border-radius: 999px;
    background: currentColor;
  }

  .agency-mobile-menu-button:hover,
  .agency-mobile-menu-button:focus-visible {
    color: var(--cd-orange);
    outline: none;
  }

  .agency-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: min(140px, 35vw);
    min-width: 0;
  }

  .agency-mobile-brand__logo {
    display: block;
    width: 100%;
    max-height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(16, 24, 39, 0.12));
  }

  .agency-mobile-nav-spacer {
    display: block;
    width: 52px;
    height: 1px;
  }

  .agency-mobile-menu-backdrop {
    position: fixed;
    top: var(--chiwa-smart-language-banner-height, 0px);
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100% - var(--chiwa-smart-language-banner-height, 0px));
    height: calc(100dvh - var(--chiwa-smart-language-banner-height, 0px));
    z-index: 3990;
    display: block;
    background: rgba(5, 8, 15, 0.66);
    transition: top 0.2s ease, height 0.2s ease;
  }

  .agency-mobile-menu-backdrop[hidden] {
    display: none;
  }

  .agency-mobile-drawer {
    position: fixed;
    top: var(--chiwa-smart-language-banner-height, 0px);
    bottom: 0;
    left: 0;
    z-index: 4000;
    width: min(78vw, 340px);
    height: calc(100% - var(--chiwa-smart-language-banner-height, 0px));
    height: calc(100dvh - var(--chiwa-smart-language-banner-height, 0px));
    max-height: calc(100% - var(--chiwa-smart-language-banner-height, 0px));
    max-height: calc(100dvh - var(--chiwa-smart-language-banner-height, 0px));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #fff;
    box-shadow: 18px 0 42px rgba(5, 8, 15, 0.24);
    transition: top 0.2s ease, height 0.2s ease, max-height 0.2s ease;
  }

  .agency-mobile-drawer[hidden] {
    display: none;
  }

  .agency-mobile-drawer__header {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(16, 24, 39, 0.08);
  }

  .agency-mobile-drawer__logo {
    width: min(196px, 56vw);
    max-height: 42px;
    object-fit: contain;
  }

  .agency-mobile-drawer__close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #101827;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
  }

  .agency-mobile-drawer__close:hover,
  .agency-mobile-drawer__close:focus-visible {
    background: var(--cd-orange);
    outline: none;
  }

  .agency-mobile-drawer__nav {
    display: flex;
    flex-direction: column;
  }

  .agency-mobile-drawer__link,
  .agency-mobile-drawer__language {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(16, 24, 39, 0.08);
    color: #555d68;
    padding: 0 24px;
    text-decoration: none;
    font-size: 1.04rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  .agency-mobile-drawer__link:hover,
  .agency-mobile-drawer__link:focus,
  .agency-mobile-drawer__link.is-active {
    color: var(--cd-orange-dark);
    background: #fff7ed;
    outline: none;
  }

  .agency-mobile-drawer__language {
    padding-right: 14px;
  }

  .agency-mobile-drawer__language-label {
    min-width: 0;
  }

  .agency-button {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .agency-hero {
    min-height: 520px;
  }

  .agency-hero__badge {
    width: 82px;
    height: 82px;
  }

  .agency-hero__brand-title {
    font-size: 2.45rem;
  }

  .agency-hero__actions {
    gap: 10px;
  }

  .agency-section {
    padding: 46px 0;
  }

  .agency-section__header h2,
  .agency-copy h2 {
    font-size: 1.74rem;
  }

  .agency-page-hero__inner {
    padding: 48px 0 44px;
  }

  .agency-page-hero h1 {
    font-size: 2rem;
  }

  .hosting-hero {
    min-height: 540px;
  }

  .hosting-hero h1 {
    font-size: 2.25rem;
  }

  .hosting-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hosting-pack,
  .hosting-entry__summary,
  .hosting-entry__actions {
    padding: 22px;
  }

  .agency-form-shell,
  .agency-login-card {
    padding: 22px;
  }

  .agency-form-grid {
    grid-template-columns: 1fr;
  }

  .agency-page-hero__actions,
  .agency-form-actions,
  .agency-login-links {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.agency-footer {
  background: var(--cd-ink, #1a1a2e);
  color: #c8c8d4;
  padding: 48px 0 0;
  margin-top: 0;
}

.agency-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.agency-footer__brand {
  margin-bottom: 32px;
}

.agency-footer__logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.agency-footer__tagline {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #9898a8;
  max-width: 360px;
}

.agency-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agency-footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e0e0e8;
  margin: 0 0 12px;
}

.agency-footer__col a {
  display: block;
  font-size: 0.875rem;
  color: #9898a8;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}

.agency-footer__col a:hover {
  color: #fff;
}

.agency-footer__bottom {
  padding: 20px 0;
  text-align: center;
}

.agency-footer__bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: #686878;
}

@media (max-width: 560px) {
  .agency-footer__nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
