/* Moz Digital Solutions. Warm paper in the light theme, deep green in the dark theme. */

:root {
  --canvas: #f3f0e8;
  --band: #e6efe8;
  --surface: #fffcf7;
  --ink: #1a1f1c;
  --muted: #5c665e;
  --accent: #0e6b57;
  --accent-soft: #e5f3ee;
  --line: #ddd4c6;
  --chip: #f4efe6;
  --inverse: #14332c;
  --on-inverse: #f6fbf8;
  --button: #14332c;
  --on-button: #f6fbf8;
  --inverse-muted: #c9ddd4;
  --field: #fffcf7;
  --danger: #9f1239;
  --header: rgba(243, 240, 232, 0.9);
  --glow: rgba(14, 107, 87, 0.16);
  --shadow: 0 18px 40px rgba(48, 40, 24, 0.06);
  --sans: Aptos, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --measure: 62ch;
  --page: 1120px;
  --header-size: 4.5rem;
  color-scheme: light;
}

html[data-theme="dark"] {
  --canvas: #101412;
  --band: #171e1b;
  --surface: #1c2420;
  --ink: #f4f7f4;
  --muted: #b7c4bb;
  --accent: #8ed9cb;
  --accent-soft: #1c3330;
  --line: #314038;
  --chip: #24302b;
  --inverse: #24312c;
  --on-inverse: #f4f7f4;
  --button: #e7f6f1;
  --on-button: #10211c;
  --inverse-muted: #c5d4cc;
  --field: #141c19;
  --danger: #ffb4c0;
  --header: rgba(16, 20, 18, 0.9);
  --glow: rgba(142, 217, 203, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
.service-list dt,
.fee-figure,
.footer-name,
.contact-details dd {
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 11em;
  font-size: clamp(2.7rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  text-wrap: balance;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main:focus,
section:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--inverse);
  color: var(--on-inverse);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}

.button {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  background: var(--button);
  color: var(--on-button);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 150ms ease, background-color 150ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent);
  color: var(--on-button);
  text-decoration: none;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.2;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.text-link {
  font-weight: 600;
  text-underline-offset: 0.22em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-size);
  padding-block: 0.7rem;
}

.brand {
  order: 1;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.header-tools {
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.site-header nav {
  order: 2;
}

.menu-toggle {
  display: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.nav-list a {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% -10%, var(--glow), transparent 55%),
    var(--canvas);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero p {
  max-width: 38rem;
  color: var(--muted);
}

.hero-text {
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero p + p {
  margin-top: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}

.hero-panel {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-panel p {
  max-width: none;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-panel strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.block {
  padding: 4.25rem 0;
  scroll-margin-top: 5.5rem;
}

#problems,
#fees,
#about {
  background: var(--band);
}

.intro,
.example-note {
  max-width: var(--measure);
  margin-top: 0.85rem;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
}

.service-list div,
.process-list li,
.example,
.about-copy,
.founder-card,
.enquiry-form,
.fee-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.service-list div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.3rem 1.25rem 1.4rem;
}

.service-list dt {
  font-size: 1.2rem;
  line-height: 1.3;
}

.service-list dd {
  margin: 0;
  color: var(--muted);
}

.problem-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.problem-list li {
  margin: 0;
  padding: 1.05rem 1.1rem 1.05rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.problem-list + p {
  max-width: 42rem;
  margin-top: 1.25rem;
}

.process-list {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  padding: 1.25rem 1.15rem 1.4rem;
}

.process-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.process-list p {
  color: var(--muted);
}

.step-number {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.9rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

html[data-theme="dark"] .step-number {
  color: var(--on-inverse);
  background: var(--accent);
}

.fee-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.fee-list article {
  padding: 1.6rem 1.45rem 1.5rem;
}

.fee-list article:last-child {
  background: var(--inverse);
  border-color: transparent;
  color: var(--on-inverse);
}

.fee-list article:last-child h3,
.fee-list article:last-child .fee-figure,
.fee-list article:last-child p,
.fee-list article:last-child li {
  color: var(--on-inverse);
}

.fee-list h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.fee-figure {
  margin: 0.55rem 0 0.75rem;
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  line-height: 1;
}

.fee-list p {
  color: var(--muted);
}

.fee-list ul {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.fee-list li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.15rem;
}

.fee-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 999px;
}

.fee-list article:last-child li::before {
  background: var(--on-inverse);
}

.fee-note {
  max-width: var(--measure);
  margin-top: 1.35rem;
  color: var(--muted);
}

#fees .button {
  margin-top: 1.4rem;
}

.example-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
  align-items: stretch;
}

.example {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.25rem 1.4rem;
}

.example h3 {
  max-width: 12em;
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.15;
  text-wrap: balance;
}

.example p,
.example li {
  color: var(--muted);
}

.example p + p {
  margin-top: 0.7rem;
}

.demo-kicker {
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scenario-card h4 {
  margin-top: 0.95rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.demo-benefits {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

.scenario-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0 0.35rem;
}

.scenario-preview span {
  padding: 0.32rem 0.55rem;
  background: var(--chip);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  white-space: nowrap;
}

.about-layout {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.about-copy,
.founder-card {
  max-width: none;
  padding: 1.45rem 1.4rem 1.5rem;
}

.founder-card h2 {
  margin-bottom: 1rem;
}

.founder-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.founder-heading img {
  width: 5.5rem;
  height: 5.5rem;
  flex: none;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  background: var(--chip);
}

.about-copy p + p,
.founder-card p + p {
  margin-top: 0.95rem;
}

.about-copy p,
.founder-card p,
.founder-role {
  color: var(--muted);
}

.founder-card h3 {
  font-size: 1.7rem;
  line-height: 1.15;
}

.founder-heading .founder-role {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.founder-skills {
  margin-top: 1.25rem;
}

.founder-skills h4 {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.founder-skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-skills li {
  padding: 0.32rem 0.65rem;
  background: var(--chip);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
}

#contact .intro + p {
  max-width: var(--measure);
  margin-top: 0.9rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.contact-details,
.enquiry-form {
  margin: 0;
  padding: 1.4rem 1.3rem 1.35rem;
  border-radius: 18px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-self: start;
  background: var(--inverse);
  color: var(--on-inverse);
}

.enquiry-form {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-details > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-details dt {
  color: var(--inverse-muted);
  font-size: 0.92rem;
  line-height: 1.3;
}

.contact-details dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-details a,
.footer-contact a {
  color: var(--on-inverse);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.enquiry-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.optional,
.form-note {
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

select {
  appearance: none;
  padding-right: 1.8rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 55%,
    calc(100% - 0.75rem) 55%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.95rem;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.form-note {
  max-width: 40rem;
  margin-top: 0.9rem;
  font-size: 0.98rem;
}

.form-status:empty {
  margin: 0;
}

.form-status:not(:empty) {
  margin-top: 1rem;
}

.site-footer {
  padding: 2.75rem 0 3rem;
  background: var(--inverse);
  color: var(--inverse-muted);
}

.footer-name {
  margin-bottom: 0.35rem;
  color: var(--on-inverse);
  font-size: 1.35rem;
}

.footer-contact {
  margin-top: 0.75rem;
  overflow-wrap: anywhere;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--on-inverse);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 0.25rem;
}

@media (min-width: 40rem) {
  .wrap {
    width: min(var(--page), calc(100% - 3rem));
  }

  .hero {
    padding: 5.5rem 0 4.5rem;
  }

  .block {
    padding: 5.25rem 0;
  }

  .service-list,
  .problem-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 52rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
    gap: 3rem;
    align-items: end;
  }

  .fee-list,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fee-list {
    align-items: stretch;
  }

  .contact-grid {
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: minmax(16rem, 0.8fr) 1.2fr;
  }

  .process-list,
  .about-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .example-list,
  .service-list,
  .problem-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(4, 1fr);
  }

}

@media (max-width: 63.99rem) {
  .js .menu-toggle {
    display: inline-block;
  }

  .js .header-tools {
    order: 2;
  }

  .js .site-header nav {
    order: 4;
  }

  .js .site-header nav:has(#site-menu:not([hidden])) {
    flex-basis: 100%;
    width: 100%;
  }

  .js .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.35rem 0 0.5rem;
  }

  .js .nav-list[hidden] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
