/* planetaccounting.org/demo : the demo request form. Colours and font follow the v4 landing (planet-horizon.css). */
@font-face { font-family: 'Hanken Grotesk'; src: url(/fonts/hanken-grotesk/latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(/fonts/hanken-grotesk/latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --ink: #252333;
  --muted: #746d80;
  --paper: #fbfaf7;
  --raised: #fff;
  --lilac: #f5f0f9;
  --line: #e2dae9;
  --line-strong: #cbbfd5;
  --accent: #674197;
  --accent-deep: #563482;
  --cyan: #02aff1;
  --ok: #18a058;
  --bad: #c0304a;
  --radius: 16px;
  --field-h: 46px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 15% -120px, #ece3f6 0%, transparent 70%),
    radial-gradient(900px 360px at 100% -80px, #e3f3fd 0%, transparent 65%),
    var(--paper);
  line-height: 1.5;
  font-size: 16px;
}
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid #8b6bc0; outline-offset: 2px; }

.dm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.dm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 18px 24px; }
.dm-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: .1px; }
.dm-brand:hover { color: var(--ink); }
.dm-top-links { display: flex; align-items: center; gap: 14px; }
.dm-lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--raised); }
.dm-lang button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; padding: 5px 12px; color: var(--muted); cursor: pointer; }
.dm-lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dm-login { font-weight: 600; font-size: 15px; text-decoration: none; }

/* layout */
.dm-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; max-width: 1180px; margin: 0 auto; padding: 24px 24px 64px; align-items: start; }
@media (max-width: 960px) { .dm-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; } }

.dm-intro { padding-top: 28px; position: sticky; top: 24px; }
@media (max-width: 960px) { .dm-intro { position: static; padding-top: 8px; } }
.dm-eyebrow { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--lilac); color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .3px; }
.dm-intro h1 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.8px; font-weight: 750; }
.dm-lead { margin: 0 0 28px; font-size: 18px; color: #4b4658; max-width: 34em; }

.dm-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.dm-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.dm-steps strong { display: block; font-size: 16px; }
.dm-steps span:not(.dm-step-no) { color: var(--muted); font-size: 15px; }
.dm-step-no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line-strong); color: var(--accent); font-weight: 750; font-size: 15px; }
.dm-aside { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* form card */
.dm-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -28px rgba(37, 35, 51, .28); padding: 30px 32px 32px; }
@media (max-width: 560px) { .dm-card { padding: 22px 18px 24px; border-radius: 12px; } }

fieldset { border: 0; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--line); min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); }

.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 560px) { .dm-grid { grid-template-columns: 1fr; } }
.dm-span { grid-column: 1 / -1; }
.dm-field { min-width: 0; }
.dm-field > label, .dm-label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: var(--field-h); padding: 10px 13px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 88px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23746d80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
input:hover, select:hover, textarea:hover { border-color: #a896b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(103, 65, 151, .18); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 48, 74, .15) !important; }
::placeholder { color: #a69fb1; }

.dm-hint { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.dm-err { margin: 5px 0 0; font-size: 13px; color: var(--bad); font-weight: 600; min-height: 0; }
.dm-err:empty { display: none; }

/* employees : segmented */
.dm-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-seg label, .dm-chips label { position: relative; cursor: pointer; }
.dm-seg input, .dm-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dm-seg span { display: inline-block; min-width: 76px; text-align: center; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 600; font-size: 15px; background: #fff; transition: background .15s, border-color .15s, color .15s; font-variant-numeric: tabular-nums; }
.dm-seg label:hover span { border-color: #a896b8; }
.dm-seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.dm-seg input:focus-visible + span, .dm-chips input:focus-visible + span { outline: 3px solid #8b6bc0; outline-offset: 2px; }
.dm-seg.dm-invalid span { border-color: var(--bad); }

/* interests : chips */
.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dm-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; transition: background .15s, border-color .15s, color .15s; }
.dm-chips span::before { content: '+'; font-weight: 700; color: var(--muted); width: 10px; text-align: center; }
.dm-chips label:hover span { border-color: #a896b8; }
.dm-chips input:checked + span { background: var(--lilac); border-color: var(--accent); color: var(--accent-deep); }
.dm-chips input:checked + span::before { content: '✓'; color: var(--accent); }

.dm-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; color: #4b4658; cursor: pointer; }
.dm-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }

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

.dm-captcha { margin: 18px 0 6px; min-height: 0; }
.dm-captcha #dm-recaptcha:empty { display: none; }

.dm-form-msg { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--bad); }
.dm-form-msg:empty { display: none; }

.dm-submit {
  margin-top: 18px; width: 100%; min-height: 52px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .2px;
  transition: background .15s, transform .15s; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.dm-submit:hover { background: var(--accent-deep); }
.dm-submit:active { transform: translateY(1px); }
.dm-submit[disabled] { opacity: .7; cursor: progress; }
.dm-submit[disabled]::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: dm-spin .8s linear infinite; }
@keyframes dm-spin { to { transform: rotate(360deg); } }

/* done */
.dm-done { text-align: left; outline: none; }
.dm-done-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e7f6ee; color: var(--ok); margin-bottom: 14px; }
.dm-done h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.4px; }
.dm-done > p { margin: 0 0 22px; color: #4b4658; font-size: 16px; }
.dm-steps-small { margin-bottom: 24px; }
.dm-steps-small span:not(.dm-step-no) { color: var(--ink); font-size: 15px; }
.dm-back { font-weight: 650; }

.dm-foot { max-width: 1180px; margin: 0 auto; padding: 22px 24px 36px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.dm-foot a { color: var(--muted); text-decoration: none; }
.dm-foot a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0s !important; }
}
