:root {
  color-scheme: light;
  --ink: #1f2428;
  --muted: #62666e;
  --accent: #ca603e;
  --accent-deep: #a7462d;
  --card: rgba(255, 253, 249, .84);
  --line: rgba(80, 64, 57, .17);
  --shadow: 0 18px 50px rgba(75, 63, 78, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); }
a { color: inherit; text-decoration: none; }

.brand-landing {
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 170, 145, .55), transparent 27%),
    radial-gradient(circle at 48% 5%, rgba(220, 170, 216, .48), transparent 29%),
    radial-gradient(circle at 72% 12%, rgba(255, 225, 153, .58), transparent 29%),
    radial-gradient(circle at 90% 20%, rgba(151, 188, 255, .58), transparent 32%),
    linear-gradient(150deg, #fbf7f4 0%, #f5eeff 47%, #edf5ff 100%);
  background-attachment: fixed;
}

.brand-landing::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .2;
  background-image: radial-gradient(rgba(69, 53, 46, .28) .6px, transparent .6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, transparent 85%);
}

.pastel-shell { width: min(1120px, calc(100% - 40px)); margin: auto; min-height: calc(100vh - 70px); position: relative; z-index: 1; }
.pastel-nav { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.02em; }
.mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #d3724f, #ef9c72); box-shadow: 0 9px 22px rgba(202, 96, 62, .25); font-size: 12px; letter-spacing: .06em; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; }
.nav-button { padding: 10px 17px; border: 1px solid rgba(167, 70, 45, .25); border-radius: 12px; background: rgba(255,255,255,.52); }

.pastel-hero { text-align: center; padding: 64px 16px 50px; }
.eyebrow { display: inline-flex; margin: 0 0 18px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.52); color: #9c614f; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.pastel-hero h1 { margin: 0; color: var(--accent); font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; font-size: clamp(54px, 8vw, 94px); line-height: .95; letter-spacing: -.06em; text-shadow: 0 8px 28px rgba(202, 96, 62, .14); }
.pastel-hero h1 span { color: #b94f34; }
.subtitle { margin: 24px 0 0; color: #515761; font-size: clamp(20px, 3vw, 30px); font-weight: 650; }
.intro { max-width: 610px; margin: 14px auto 26px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.primary-action { display: inline-flex; gap: 10px; align-items: center; padding: 14px 25px; border-radius: 14px; background: var(--accent); color: white; font-weight: 750; box-shadow: 0 14px 28px rgba(202, 96, 62, .24); transition: .2s ease; }
.primary-action:hover { transform: translateY(-2px); background: var(--accent-deep); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 4px 0 70px; }
.feature-grid article { min-height: 142px; padding: 24px 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.feature-grid h2 { display: inline; margin: 0 0 0 8px; font-size: 18px; }
.feature-grid p { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature-icon { color: #7f8792; font-weight: 800; }
footer { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 0 0 30px; display: flex; justify-content: space-between; color: #747880; font-size: 12px; position: relative; z-index: 1; }

/* Related application pages: login, register and password recovery. */
body.brand-related { background: #f7f5f8 !important; }
body.brand-auth {
  background:
    radial-gradient(circle at 12% 7%, rgba(255, 157, 135, .62), transparent 30%),
    radial-gradient(circle at 44% 7%, rgba(221, 181, 230, .58), transparent 31%),
    radial-gradient(circle at 75% 9%, rgba(255, 230, 161, .62), transparent 31%),
    radial-gradient(circle at 95% 22%, rgba(158, 194, 255, .62), transparent 32%),
    linear-gradient(135deg, #fff8f4, #eff4ff) !important;
}
body.brand-auth #root { position: relative; z-index: 2; width: 50% !important; margin-left: 50% !important; background: rgba(250,251,255,.7); }
body.brand-auth #root form,
body.brand-auth #root [class*="card" i] { border-radius: 18px !important; border-color: rgba(86,76,81,.16) !important; box-shadow: 0 24px 65px rgba(54,57,73,.13) !important; }
body.brand-auth #root button[type="submit"] { background: var(--accent) !important; border-color: var(--accent) !important; border-radius: 10px !important; }
body.brand-auth input { border-radius: 10px !important; }
#domain-brand-panel { display: none; }
body.brand-auth #domain-brand-panel { display: grid; place-content: center; position: fixed; z-index: 1; inset: 0 50% 0 0; padding: 8vw; text-align: center; }
#domain-brand-panel .brand-symbol { margin: auto; color: var(--accent); font-size: clamp(46px, 6vw, 82px); font-weight: 900; letter-spacing: -.055em; }
#domain-brand-panel strong { margin-top: 18px; color: #575b64; font-size: 19px; }
#domain-brand-panel small { margin-top: 10px; color: #7b7e86; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
  .pastel-hero { padding-top: 34px; }
  .nav-links > a:first-child { display: none; }
  body.brand-auth #domain-brand-panel { display: none; }
  body.brand-auth #root { width: 100% !important; margin-left: 0 !important; background: transparent; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
