/*!
 * MW.Codes component helper
 * https://mw.codes/assets/components
 *
 * The buttons, labels, cards and forms used across mw.codes, drawn the same
 * way on any page. Every class starts with mwc-.
 *
 * - Put .mwc-scope on a wrapper for the brand type, colour and box sizing.
 * - Load Inter (weights 400, 600, 700). Without it this falls back to the
 *   system font.
 * - Most components are designed for a dark ground. Use .mwc-ground-night,
 *   or check /assets/color for which pairings are safe to read.
 *
 * Mirrors components/home-two.css and components/brand-controls.css.
 */

:root {
  --mwc-night: #10211c;
  --mwc-ink: #142820;
  --mwc-panel: #1b3229;
  --mwc-panel-raised: #22362d;
  --mwc-deep: #172e25;
  --mwc-paper: #f8f6ef;
  --mwc-shell: #efeee3;
  --mwc-muted: #b8c4b8;
  --mwc-orange: #c67c4c;
  --mwc-orange-hover: #d99a69;
  --mwc-orange-edge: #dfa878;
  --mwc-accent: #e7ac7e;
  --mwc-label: #d4a786;
  --mwc-line: #e9eddb24;
  --mwc-shadow: #071710;
  --mwc-font: var(--font-inter, "Inter"), ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Scope and grounds ---------- */

.mwc-scope,
.mwc-scope * {
  box-sizing: border-box;
}
.mwc-scope {
  color: var(--mwc-paper);
  font-family: var(--mwc-font);
  -webkit-font-smoothing: antialiased;
  /* Arrow glyphs are emoji-capable: keep them as text on phones. */
  font-variant-emoji: text;
}
.mwc-ground-night {
  background: var(--mwc-night);
  color: var(--mwc-paper);
}
.mwc-ground-panel {
  background: var(--mwc-panel);
  color: var(--mwc-paper);
}
.mwc-ground-shell {
  background: var(--mwc-shell);
  color: var(--mwc-ink);
}
.mwc-ground-clay {
  background: var(--mwc-orange);
  color: var(--mwc-night);
}

/* ---------- Buttons ----------
   A tactile edge: a hard shadow the button lifts from on hover and presses
   into on click, with the arrow in its own tile. Variants only change the
   custom properties. */

.mwc-button {
  --mwc-fill: var(--mwc-orange);
  --mwc-fill-hover: var(--mwc-orange-hover);
  --mwc-text: var(--mwc-night);
  --mwc-edge: var(--mwc-orange-edge);
  --mwc-icon-fill: var(--mwc-ink);
  --mwc-icon-text: var(--mwc-paper);
  --mwc-focus: var(--mwc-accent);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  max-width: 100%;
  margin: 0;
  padding: 8px 9px 8px 21px;
  border: 1px solid var(--mwc-edge);
  border-radius: 12px;
  background: var(--mwc-fill);
  color: var(--mwc-text);
  box-shadow:
    3px 3px 0 var(--mwc-shadow),
    inset 0 1px 0 #ffffff16;
  font-family: var(--mwc-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}
.mwc-button--outline {
  --mwc-fill: #1b3229;
  --mwc-fill-hover: #284337;
  --mwc-text: #f8f6ef;
  --mwc-edge: #617462;
  --mwc-icon-fill: #d7ab85;
  --mwc-icon-text: #142820;
}
.mwc-button--dark {
  --mwc-fill: #142820;
  --mwc-fill-hover: #254335;
  --mwc-text: #f8f6ef;
  --mwc-edge: #405b48;
  --mwc-icon-fill: #c67c4c;
  --mwc-icon-text: #10211c;
  --mwc-focus: #80502e;
}
.mwc-button__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--mwc-icon-fill);
  color: var(--mwc-icon-text);
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  font-variant-emoji: text;
  transition: transform 160ms ease;
}
.mwc-button--small {
  min-height: 46px;
  padding: 6px 7px 6px 17px;
  gap: 20px;
  font-size: 11px;
}
.mwc-button--small .mwc-button__icon {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 19px;
}
.mwc-button--block {
  width: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .mwc-button:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--mwc-fill-hover);
    color: var(--mwc-text);
    transform: translate(-1px, -1px);
    box-shadow:
      4px 4px 0 var(--mwc-shadow),
      inset 0 1px 0 #ffffff20;
  }
  .mwc-button:hover:not(:disabled):not([aria-disabled="true"])
    .mwc-button__icon {
    transform: rotate(-5deg);
  }
}
.mwc-button:active:not(:disabled):not([aria-disabled="true"]) {
  transform: translate(3px, 3px);
  box-shadow:
    0 0 0 var(--mwc-shadow),
    inset 0 1px 3px #00000015;
}
.mwc-button:focus-visible {
  outline: 2px solid var(--mwc-focus);
  outline-offset: 6px;
}
.mwc-button:is(:disabled, [aria-disabled="true"]) {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 1px 1px 0 var(--mwc-shadow);
}
.mwc-button:is(:disabled, [aria-disabled="true"]) .mwc-button__icon {
  transform: none;
}

/* Square arrow controls, such as a carousel's previous and next. */
.mwc-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #617462;
  border-radius: 11px;
  background: #1b3229;
  color: #f8f6ef;
  box-shadow: 2px 2px 0 var(--mwc-shadow);
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  font-variant-emoji: text;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}
.mwc-icon-button:hover:not(:disabled) {
  background: #c67c4c;
  color: #10211c;
  border-color: #dfa878;
}
.mwc-icon-button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.mwc-icon-button:disabled {
  opacity: 0.3;
  box-shadow: none;
  cursor: not-allowed;
}

/* A choice that stays selected. Set aria-pressed to show which. */
.mwc-toggle {
  min-height: 44px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #617462;
  border-radius: 10px;
  background: #1b3229;
  color: #f8f6ef;
  box-shadow: 2px 2px 0 var(--mwc-shadow);
  font-family: var(--mwc-font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}
.mwc-toggle:hover:not([aria-pressed="true"]) {
  background: #284337;
  border-color: #c6a17e;
}
.mwc-toggle[aria-pressed="true"] {
  background: #c67c4c;
  color: #10211c;
  border-color: #dfa878;
}

:is(
    .mwc-icon-button,
    .mwc-toggle,
    .mwc-text-link,
    .mwc-service__link,
    .mwc-field input,
    .mwc-field textarea,
    .mwc-faq summary
  ):focus-visible {
  outline: 3px solid var(--mwc-accent);
  outline-offset: 5px;
}

/* ---------- Type and labels ---------- */

.mwc-text-link {
  display: inline-block;
  color: var(--mwc-accent);
  font-size: 12px;
  line-height: 1.8;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-variant-emoji: text;
}
.mwc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #e8eddf25;
  border-radius: 99px;
  background: #e8eddf06;
  color: #d5dece;
  font-size: 11px;
}
.mwc-pill__mark {
  color: var(--mwc-accent);
  font-size: 12px;
}
.mwc-label {
  display: block;
  color: var(--mwc-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mwc-heading {
  margin: 18px 0 0;
  font-family: var(--mwc-font);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.06em;
}
.mwc-accent {
  color: var(--mwc-accent);
}
.mwc-lede {
  max-width: 510px;
  margin: 23px 0 0;
  color: var(--mwc-muted);
  font-size: 15px;
  line-height: 1.7;
}
.mwc-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 31px;
  padding: 28px 0;
  border-block: 1px solid var(--mwc-line);
  color: #d9e1d1;
  font-size: 11px;
}
.mwc-features__dot {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mwc-orange);
}

/* ---------- Cards and panels ---------- */

.mwc-card {
  overflow: hidden;
  padding: 12px 12px 29px;
  border: 1px solid var(--mwc-line);
  border-radius: 22px;
  background: var(--mwc-panel);
  color: var(--mwc-paper);
}
.mwc-card__visual {
  position: relative;
  height: 208px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 13px;
  background: #213b30;
}
.mwc-card__title {
  margin: 0 16px 13px;
  font-family: var(--mwc-font);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.mwc-card__text {
  margin: 0 16px;
  color: var(--mwc-muted);
  font-size: 13px;
  line-height: 1.7;
}

.mwc-service {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--mwc-line);
  border-radius: 19px;
  background: var(--mwc-panel);
  color: var(--mwc-paper);
}
.mwc-service__label {
  display: block;
  color: #c4d0bb;
  font-size: 7px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.mwc-service__title {
  margin: 19px 0 14px;
  font-family: var(--mwc-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.mwc-service__text {
  margin: 0 0 25px;
  color: var(--mwc-muted);
  font-size: 12px;
  line-height: 1.7;
}
.mwc-service__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  color: var(--mwc-accent);
  font-size: 11px;
  line-height: 1.6;
  text-decoration: none;
  font-variant-emoji: text;
}

.mwc-checklist {
  padding: 32px;
  border: 1px solid #182d2920;
  border-radius: 18px;
  background: #f8f6efed;
  color: var(--mwc-ink);
  box-shadow: 0 10px 25px #6e402114;
}
.mwc-checklist__label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mwc-checklist__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.mwc-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #182d2920;
  font-size: 13px;
}
.mwc-checklist__tick {
  color: #5b734a;
  font-size: 14px;
  line-height: 1.45;
}
.mwc-checklist__item strong {
  display: block;
  font-weight: 600;
  line-height: 1.45;
}
.mwc-checklist__item small {
  display: block;
  margin-top: 3px;
  color: #5c6756;
  font-size: 11px;
  line-height: 1.55;
}
.mwc-checklist__note {
  margin: 21px 0 0;
  color: #5c6756;
  font-size: 10px;
}

/* ---------- Conversation ---------- */

.mwc-bubbles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mwc-card__visual > .mwc-bubbles {
  justify-content: center;
  height: 100%;
  padding: 40px 22px;
}
.mwc-bubble {
  display: block;
  align-self: flex-start;
  max-width: 100%;
  padding: 13px 17px;
  border-radius: 13px 13px 13px 3px;
  background: #efeee3;
  color: var(--mwc-ink);
  box-shadow: 0 5px 10px #10211c20;
  font-size: 11px;
}
.mwc-bubble--reply {
  align-self: flex-end;
  border-radius: 13px 13px 3px 13px;
  background: #b7c6a5;
}
.mwc-bubbles__caption {
  margin: 4px 0 0;
  color: #c6d1be;
  font-size: 8px;
  text-align: center;
}

/* ---------- Questions and forms ---------- */

.mwc-faq details {
  border-bottom: 1px solid #d5dfc52c;
}
.mwc-faq details:first-child {
  border-top: 1px solid #d5dfc52c;
}
.mwc-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
.mwc-faq summary::-webkit-details-marker {
  display: none;
}
.mwc-faq summary::marker {
  content: "";
}
.mwc-faq__mark {
  color: var(--mwc-accent);
  font-size: 25px;
  font-weight: 400;
  transition: transform 0.2s;
}
.mwc-faq details[open] .mwc-faq__mark {
  transform: rotate(45deg);
}
.mwc-faq details > p {
  max-width: 560px;
  margin: 0;
  padding: 0 35px 24px 0;
  color: var(--mwc-muted);
  font-size: 13px;
  line-height: 1.7;
}

.mwc-form {
  padding: 30px;
  border: 1px solid #ffffff10;
  border-radius: 19px;
  background: var(--mwc-ink);
  color: var(--mwc-paper);
  box-shadow: 0 10px 35px #10211c15;
}
.mwc-form__title {
  margin: 0;
  font-family: var(--mwc-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.mwc-form__intro {
  margin: 12px 0 25px;
  color: var(--mwc-muted);
  font-size: 11px;
}
.mwc-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mwc-field {
  display: block;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 600;
}
.mwc-field__optional {
  color: #bdc9b5;
  font-weight: 400;
}
.mwc-field input,
.mwc-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid #b4c4a94d;
  border-radius: 6px;
  background: #eef2e308;
  color: var(--mwc-paper);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.mwc-field input::placeholder,
.mwc-field textarea::placeholder {
  color: #b0bea5;
  font-size: 10px;
}
.mwc-status {
  margin: 20px 0 0;
  padding: 13px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
}
.mwc-status--success {
  border-color: #839674;
  background: #e4ebd7;
  color: var(--mwc-ink);
}
.mwc-status--error {
  border-color: #bb8052;
  background: #f5dbc8;
  color: #522a13;
}

/* ---------- Small screens and reduced motion ---------- */

@media (max-width: 760px) {
  .mwc-button {
    min-height: 52px;
    padding: 8px 8px 8px 17px;
    gap: 15px;
  }
  .mwc-button__icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .mwc-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mwc-button,
  .mwc-button__icon,
  .mwc-icon-button,
  .mwc-toggle,
  .mwc-faq__mark {
    transition: none;
    transform: none !important;
  }
}
