/* Light and dark appearance. Photographs and partner artwork are never inverted or recoloured. */

:root {
  color-scheme: light;
  --page: #fff8f2;
  --surface: #f2ebf3;
  --surface-alt: #f9f0eb;
  --field: #fffaf7;
  --ink: #35223f;
  --muted: #6e5b76;
  --line: #d8cadc;
  --accent-ink: #99503b;
  --link: #753d8d;
  --selected: #ecdfef;
  --overlay: #fff8f2;
  --logo-ground: #fff8f2;
  --field-border: #bfaac8;
  --focus: #a83e20;
}

:root[data-theme=dark] {
  color-scheme: dark;
  --page: #19131f;
  --peach: #19131f;
  --surface: #241b2c;
  --surface-alt: #211828;
  --field: #30243a;
  --ink: #f5ebf8;
  --muted: #c5b3cf;
  --line: #4f3c59;
  --accent-ink: #ffad91;
  --link: #d6acee;
  --selected: #493452;
  --overlay: #2a1e32;
  --logo-ground: #fff5ed;
  --field-border: #947d9e;
  --focus: #ffad91;
}

body {
  background: var(--page);
  color: var(--ink);
}

body,
.solutions,
.contact,
.footer {
  transition: background-color 240ms ease,color 180ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline-color: var(--focus);
}

.skip-link {
  background: var(--overlay);
  color: var(--ink);
}

.hero-curve path {
  fill: var(--page);
}

.header-inner {
  gap: 24px;
}

.header-inner>.brand {
  order: 1;
}

.header-inner>.navigation {
  order: 2;
  margin-left: auto;
}

.theme-toggle {
  order: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff4ec;
  background: #ffffff0a;
  border: 1px solid #fff2e96b;
  border-radius: 3px;
  padding: 10px 13px;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
  font-size: 12px;
  transition: background var(--hover-time) ease,border-color var(--hover-time) ease;
}

.theme-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.theme-icon-sun {
  display: none;
}

[data-theme=dark] .theme-icon-sun {
  display: block;
}

[data-theme=dark] .theme-icon-moon {
  display: none;
}

.theme-toggle:focus-visible {
  background: #ffffff20;
  border-color: #fff2e9;
}

.header-inner>.menu-toggle {
  order: 4;
}

.hero-category {
  font-size: 15px;
  color: #ffebe1;
}

.hero-description {
  max-width: 490px;
}

.hero-actions {
  gap: 32px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--muted);
}

.perspective-content h2 {
  line-height: 1.08;
}

.text-columns p,
.section-heading>p:last-child,
.solution-panel>p:not(.panel-kicker),
.steps p,
.approach-intro>p:not(.eyebrow),
.contact-intro>p:not(.eyebrow):not(.prototype-notice) {
  color: var(--muted);
}

.section-heading>p:last-child {
  line-height: 1.65;
}

.solutions {
  background: var(--surface);
}

.solution-tabs,
.solution-tab {
  border-color: var(--line);
}

.solution-tab {
  color: var(--muted);
}

.solution-tab.active,
.solution-tab:hover {
  color: var(--ink);
}

.tab-number,
.tab-arrow {
  color: var(--muted);
}

.solution-tab.active .tab-number,
.solution-tab.active .tab-arrow {
  color: var(--accent-ink);
}

.panel-kicker {
  color: var(--link);
  font-size: 13px;
}

.data-flow {
  border-color: var(--line);
}

.flow-sources span {
  background: var(--field);
  border-color: var(--line);
  color: var(--ink);
  font-size: 13px;
}

.flow-destination {
  color: var(--ink);
}

.flow-connector {
  color: var(--link);
}

.illustration-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}

.decision-example {
  border-color: var(--link);
}

.decision-example>span,
.decision-example>div {
  color: var(--muted);
}

.decision-example strong {
  color: var(--ink);
}

.automation-flow>span:not(:nth-child(even)),
.automation-flow>strong {
  border-color: var(--line);
  color: var(--ink);
}

.automation-flow>strong {
  background: var(--field);
}

.steps li {
  border-color: var(--line);
}

.steps li>span {
  color: var(--accent-ink);
}

.text-link {
  color: var(--link);
  border-color: var(--line);
}

.partners-intro>p {
  color: var(--muted);
}

.partners h2 {
  line-height: 1.3;
  font-size: 26px;
}

.partner-list {
  padding: 12px 0;
}

.approach+.contact {
  background: var(--surface-alt);
}

.prototype-notice {
  color: var(--muted);
  border-color: var(--line);
}

.prototype-notice strong {
  color: var(--ink);
}

.field label {
  color: var(--ink);
  font-size: 13px;
}

.field label>span {
  color: var(--accent-ink);
}

.field input,
.field select,
.field textarea {
  color: var(--ink);
  border-color: var(--field-border);
  font-size: 16px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--link);
  background: var(--field);
}

.field select option {
  background: var(--field);
  color: var(--ink);
}

.form-note {
  color: var(--muted);
  font-size: 12px;
}

.form-feedback {
  background: var(--selected);
  color: var(--ink);
  border-color: var(--link);
}

.footer {
  background: var(--surface-alt);
  border-color: var(--line);
}

.footer .brand {
  color: var(--ink);
}

.footer-top>p,
.footer-bottom {
  color: var(--muted);
}

.footer-bottom {
  border-color: var(--line);
  font-size: 11px;
}

[data-theme=dark] .hero-shade {
  background: linear-gradient(90deg,#160b25c2,#160b2540 73%,#160b251a),linear-gradient(180deg,#160b2533,transparent 65%,#160b254d);
}

[data-theme=dark] .partner-list {
  background: var(--logo-ground);
  padding: 20px 18px;
  border-radius: 5px;
  gap: 22px;
  color: #35223f;
}

[data-theme=dark] .flow-dot {
  box-shadow: 0 0 0 7px #453050;
}

[data-theme=dark] .button-plum {
  background: #ff9c7b;
  color: #30163d;
}

[data-theme=dark] .button-plum:before {
  background: #fff2e9;
}

[data-theme=dark] .section-side .small-line {
  background: #ffad91;
}

@media (hover:hover) and (pointer:fine) {
  .theme-toggle:hover {
    background: #fff2e91a;
    border-color: #fff2e9;
  }
  .solution-tab:hover .tab-arrow {
    color: var(--accent-ink);
  }
  [data-theme=dark] .button-plum:hover {
    background: #ff9c7b;
  }
}

@media (max-width:1100px) {
  .header-inner {
    gap: 18px;
  }
  .partners h2 {
    font-size: 24px;
  }
}

@media (max-width:980px) {
  .header-inner {
    height: 94px;
    gap: 12px;
  }
  .header-inner>.brand {
    order: 1;
  }
  .header-inner>.theme-toggle {
    order: 2;
    margin-left: auto;
  }
  .header-inner>.menu-toggle {
    order: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid #fff8f260;
    border-radius: 3px;
    background: transparent;
    width: 44px;
    height: 44px;
    color: inherit;
    flex-shrink: 0;
  }
  .menu-toggle>span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
  }
  .header-inner>.navigation {
    order: 4;
    display: none;
    position: absolute;
    left: 22px;
    right: 22px;
    top: 86px;
    padding: 24px;
    background: #30163d;
    border: 1px solid #76517f;
    box-shadow: 0 10px 25px #21112d40;
    align-items: stretch;
    gap: 16px;
    font-size: 16px;
    border-radius: 4px;
    margin-left: 0;
  }
  .header-inner>.navigation.is-open {
    display: flex;
    flex-direction: column;
  }
  .navigation .nav-cta {
    justify-content: space-between;
    margin-top: 4px;
  }
  .theme-toggle-copy {
    display: none;
  }
  .theme-toggle {
    padding: 10px;
    width: 44px;
    height: 44px;
  }
  [data-theme=dark] .partner-list {
    padding: 18px 14px;
    gap: 16px;
  }
}

@media (max-width:800px) {
  .header-inner {
    height: 90px;
  }
  .partners h2 {
    font-size: 26px;
  }
  .hero-category {
    font-size: 14px;
  }
  .hero-actions {
    gap: 22px;
  }
}

@media (max-width:440px) {
  .header-inner {
    gap: 9px;
  }
  .header .brand {
    gap: 6px;
  }
  .header .brand>span {
    font-size: 31px;
  }
  .header .brand-symbol {
    width: 40px;
  }
  .hero-category {
    font-size: 14px;
  }
  .hero-actions {
    gap: 10px;
  }
  .partner-list {
    padding: 8px 0;
  }
  [data-theme=dark] .partner-list {
    padding: 10px 16px;
    gap: 0;
  }
  .field label {
    font-size: 13px;
  }
  .footer-bottom {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion:reduce) {
  body,
  .solutions,
  .contact,
  .footer,
  .theme-toggle {
    transition: none;
  }
}

/* Legibility over the moving picture, measured in browser QA: on narrow screens the description
   spans the whole width and crosses the bright sunset band, so the right side of the shade is
   denser and the text gets a soft plum halo. Wider screens keep the approved V7.1 shade. */
@media (max-width: 800px) {
  .hero-description {
    text-shadow: 0 0 2px rgba(33, 13, 47, .5), 0 1px 16px rgba(33, 13, 47, .75);
  }
}

@media (max-width: 600px) {
  .hero-shade {
    background: linear-gradient(90deg, #210d2fbd, #210d2f73 73%, #210d2f33), linear-gradient(180deg, #210d2f22, transparent 65%, #210d2f33);
  }

  [data-theme=dark] .hero-shade {
    background: linear-gradient(90deg, #160b25c2, #160b2573 73%, #160b2540), linear-gradient(180deg, #160b2533, transparent 65%, #160b254d);
  }
}

/* Footer section links: same quiet style as the partner site links. */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  font-size: 13px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  position: relative;
}

.footer-nav a:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

.footer-nav a:focus-visible:after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover {
    color: var(--ink);
  }

  .footer-nav a:hover:after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (max-width: 800px) {
  .footer-nav {
    order: 4;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-nav a:after {
    transition: none;
  }
}
