/* Customer account surfaces share the site's palette, rounded cards and system typography. */
.customer-main { padding-block: clamp(38px, 6vw, 76px); }
.customer-title { max-width: 20ch; }
.customer-lede { max-width: 68ch; margin-bottom: 28px; }
.customer-card { max-width: 760px; padding: clamp(20px, 4vw, 32px); }
#auth-panel { margin-top: 28px; }
.customer-form { display: grid; gap: 10px; margin-top: 18px; }
.customer-form > label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-top: 3px; }
.customer-form .ent-input { width: 100%; }
.customer-form[hidden] { display: none; }
.customer-form button { margin-top: 8px; }
.customer-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; }
/* Sign in with Google: Google's own mark on the site's outline pill, above the e-mail form. */
.customer-google { display: grid; gap: 14px; margin-top: 18px; }
.customer-google[hidden] { display: none; }
.customer-google-button { justify-content: center; gap: 10px; }
.customer-google-logo { flex: 0 0 auto; }
.customer-or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink-3); font-size: 13px; }
.customer-or::before, .customer-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.customer-google + .customer-form { margin-top: 0; }
.customer-text-button { padding: 4px 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.customer-text-button:hover { text-decoration: underline; }
.customer-status { max-width: 760px; margin: 14px 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--accent-soft); color: var(--ink-2); font-size: 14px; }
.customer-account-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; max-width: 980px; margin: 26px 0 18px; padding: 17px 22px; }
.customer-account-bar strong { overflow-wrap: anywhere; }
/* Also inside a card, where `.card p` would otherwise win and set it as body text. */
.customer-kicker, .card p.customer-kicker { margin: 0 0 7px; color: var(--accent); font: 700 10px/1.3 var(--mono); letter-spacing: .16em; }
.customer-profile-card { max-width: 980px; }
.customer-section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 12px; }
.customer-section-head .h2, .customer-section-head .h3 { margin: 0; }
.customer-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.customer-help, .customer-profile-footnote, .card p.customer-help, .card p.customer-profile-footnote { color: var(--ink-3); font-size: 14px; line-height: 1.65; max-width: 75ch; }
.customer-profile-footnote, .card p.customer-profile-footnote { margin: 18px 0 0; }
.customer-profile-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
/* One label over each field; the form pairs them two a row (one below 760px, further down). */
.customer-field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.customer-field[hidden] { display: none; }
.customer-field > label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.customer-field > .ent-input { width: 100%; min-width: 0; }
.customer-field-wide { grid-column: 1 / -1; }
.customer-profile-form .customer-privacy-check { grid-column: 1 / -1; display: flex; align-items: start; gap: 10px; font-weight: 500; line-height: 1.5; }
.customer-privacy-check input { margin-top: 4px; accent-color: var(--accent); }
.customer-profile-form > button { grid-column: 1 / -1; justify-self: start; min-width: 190px; }
.customer-section { margin-top: clamp(40px, 6vw, 64px); }
/* The signed-in account: licenses and personal details as two tabs. */
.customer-license-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.customer-license { padding: 22px; min-width: 0; }
.customer-license-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.customer-license h3 { margin: 0; font-size: 20px; }
.customer-license-meta { color: var(--ink-3); font: 12px/1.6 var(--mono); overflow-wrap: anywhere; }
.customer-plugin-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 16px 0; }
.customer-plugin-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 11px; background: var(--accent-soft); color: var(--ink-2); font-size: 13px; }
.customer-license-key { display: flex; gap: 8px; margin-top: 12px; }
.customer-license-key input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; }
.customer-license-key .ent-input { padding: 10px 12px; }
.customer-refund { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.customer-refund .customer-help { margin: 0 0 10px; }
.customer-refund-panel { display: grid; gap: 10px; }
.customer-refund-panel[hidden] { display: none; }
.customer-refund-label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.customer-refund-label textarea { resize: vertical; min-height: 72px; }
.customer-refund-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.company-legal { font-size: 12px !important; line-height: 1.6; }
.contact-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); align-items: start; }
.contact-message { resize: vertical; min-height: 150px; }
.contact-company { padding: 24px; }
.contact-company-line { margin: 16px 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.privacy-copy section + section { margin-top: 24px; }
.privacy-copy p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.7; }
/* A purchase question asks for the company: the same field rhythm as the form around it. */
.contact-company-fields { display: grid; gap: 10px; }
.contact-company-fields[hidden] { display: none; }
.contact-company-fields > label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-top: 3px; }
/* The plugin a "talk to sales" button sent the visitor about. */
.contact-plugin { margin: -4px 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--ink-2); font-size: 14px; }
.contact-plugin[hidden] { display: none; }
.contact-plugin strong { color: var(--ink); }

/* Sent: three pieces in the logo's colours fly in and lock into an envelope, its flap closes,
   it leaves with a trail and a check lands on it. Same easing as the site's reveal; the text
   follows the art the way the hero's brand line follows the mark. */
.contact-sent { display: grid; justify-items: center; gap: 12px; padding: 8px 0 6px; text-align: center; }
.contact-sent[hidden] { display: none; }
.contact-sent-art { width: min(280px, 100%); height: auto; overflow: visible; }
.contact-sent h2 { margin: 4px 0 0; outline: none; }
.contact-sent-text { margin: 0; max-width: 42ch; color: var(--ink-2); line-height: 1.6; overflow-wrap: anywhere; }
.contact-sent .btn { margin-top: 10px; }

.contact-piece { stroke: var(--card-solid); stroke-width: 2.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.contact-piece-1 { fill: var(--blue); }
.contact-piece-2 { fill: var(--cyan); }
.contact-piece-3 { fill: var(--teal); }
.contact-flap { fill: url(#contact-flap-gradient); stroke: var(--card-solid); stroke-width: 2.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: top; }
.contact-flap-from { stop-color: var(--blue); }
.contact-flap-to { stop-color: var(--teal); }
.contact-trail-from { stop-color: var(--blue); stop-opacity: 0; }
.contact-trail-to { stop-color: var(--cyan); }
.contact-trails path { fill: none; stroke: url(#contact-trail-gradient); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 70; stroke-dashoffset: 0; }
.contact-check circle { fill: var(--teal); stroke: var(--card-solid); stroke-width: 3; }
.contact-check path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.contact-check { transform-box: fill-box; transform-origin: center; }

.contact-sent.is-playing .contact-piece { animation: contact-piece-in .62s cubic-bezier(.22, .61, .36, 1) both; }
.contact-sent.is-playing .contact-piece-1 { --from: -64px -18px; --turn: -28deg; animation-delay: 0s; }
.contact-sent.is-playing .contact-piece-2 { --from: 0px 46px; --turn: 18deg; animation-delay: .12s; }
.contact-sent.is-playing .contact-piece-3 { --from: 64px -18px; --turn: 28deg; animation-delay: .24s; }
.contact-sent.is-playing .contact-flap { animation: contact-flap-close .42s cubic-bezier(.22, .61, .36, 1) .82s both; }
.contact-sent.is-playing .contact-envelope { animation: contact-send .5s cubic-bezier(.22, .61, .36, 1) 1.28s both; }
.contact-sent.is-playing .contact-trails path { animation: contact-trail .55s cubic-bezier(.22, .61, .36, 1) both; }
.contact-sent.is-playing .contact-trails path:nth-child(1) { animation-delay: 1.32s; }
.contact-sent.is-playing .contact-trails path:nth-child(2) { animation-delay: 1.38s; }
.contact-sent.is-playing .contact-trails path:nth-child(3) { animation-delay: 1.44s; }
.contact-sent.is-playing .contact-check { animation: contact-check-pop .42s cubic-bezier(.34, 1.56, .64, 1) 1.78s both; }
.contact-sent.is-playing > :not(svg) { animation: contact-rise .5s cubic-bezier(.22, .61, .36, 1) both; }
.contact-sent.is-playing > h2 { animation-delay: 1.9s; }
.contact-sent.is-playing > p { animation-delay: 2s; }
.contact-sent.is-playing > .btn { animation-delay: 2.1s; }

@keyframes contact-piece-in {
  from { opacity: 0; translate: var(--from); rotate: var(--turn); }
  to { opacity: 1; translate: 0 0; rotate: 0deg; }
}
@keyframes contact-flap-close {
  from { opacity: 0; scale: 1 -1; }
  30% { opacity: 1; }
  to { opacity: 1; scale: 1 1; }
}
@keyframes contact-send {
  from { translate: -14px 0; }
  40% { translate: -20px 3px; }
  to { translate: 0 0; }
}
@keyframes contact-trail {
  from { stroke-dashoffset: 70; opacity: 1; }
  to { stroke-dashoffset: 0; opacity: .55; }
}
.contact-trails path { opacity: .55; }
@keyframes contact-check-pop {
  from { opacity: 0; scale: .3; }
  to { opacity: 1; scale: 1; }
}
@keyframes contact-rise {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}
/* Reduced motion: the finished picture, with no movement at all. */
@media (prefers-reduced-motion: reduce) {
  .contact-sent.is-playing *, .contact-sent.is-playing > * { animation: none !important; }
}

.contact-trap { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .customer-profile-form { grid-template-columns: minmax(0, 1fr); }
  .customer-profile-form > div, .customer-profile-form .customer-privacy-check, .customer-profile-form > button { grid-column: auto; }
  .customer-section-head { align-items: start; flex-direction: column; }
  .customer-license-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .customer-account-bar { align-items: start; flex-direction: column; }
  .customer-license-key { flex-direction: column; }
}
