@font-face {
  font-family: "Mouse Memoirs";
  src: url("../fonts/mouse-memoirs.regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html {
  height: 100%;
  --panel-bg: rgba(136, 68, 153, 0.75);
}

body {
  min-height: 100%;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #f5f5f5;
  background-color: #111;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  height: 60px;
  padding: 0 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.logo {
  font-family: "Mouse Memoirs", cursive;
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.top-bar nav {
  display: flex;
  gap: 2rem;
}

.top-bar nav a {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.top-bar nav a:hover,
.logo:hover {
  opacity: 0.7;
}

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 2rem 5.5rem;
}

.friends-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  padding: 0 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.friends-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
}

.friends-list img {
  display: block;
  max-height: 2rem;
  max-width: 6rem;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.friends-list .friends-logo--blender {
  max-width: 7.5rem;
  max-height: 2.25rem;
}

.friends-list .friends-logo--ograf {
  max-width: 7rem;
}

.friends-list img:hover {
  opacity: 1;
}

.content {
  width: 100%;
  max-width: 42rem;
  padding: 2.5rem;
  background: var(--panel-bg);
  border-radius: 1rem;
}

.content h1 {
  font-family: "Mouse Memoirs", cursive;
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.content h2 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.content p {
  margin-bottom: 2rem;
}

.content p:last-child {
  margin-bottom: 0;
}

.home {
  width: 100%;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact {
  width: 100%;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact h1 {
  margin: 0 0 0.25rem;
  font-family: "Mouse Memoirs", cursive;
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.2;
}

.contact-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-panel {
  max-width: none;
  padding: 1.75rem 2rem;
}

.contact-panel__title {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel--info .social-links {
  margin: 1.25rem 0 0;
}

.contact-panel--form .contact-form {
  padding-top: 0;
  border-top: none;
}

.home-panels {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.home-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  margin: 0;
  padding: 1.35rem 1rem 1.2rem;
  max-width: none;
}

.home-panel__icon {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 5.5rem;
}

.home-panel__title {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.home-copy {
  max-width: none;
  padding: 1.5rem 1.75rem;
}

.home-copy p {
  margin: 0;
  opacity: 0.95;
  line-height: 1.55;
}

.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.home-copy .social-links {
  margin-top: 1.25rem;
}

.social-links__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
}

.social-links__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.social-links__icon {
  display: block;
  width: auto;
  height: 1.35rem;
  max-height: 1.35rem;
}

@media (max-width: 720px) {
  .home-panels {
    grid-template-columns: 1fr;
  }

  .home-panel {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 1rem 1.15rem;
  }

  .home-panel__icon {
    max-height: 3.75rem;
  }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-field,
.contact-list .contact-field {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.contact-field--info {
  margin-bottom: 0.65rem;
}

.contact-field--info:last-child {
  margin-bottom: 0;
}

.contact-field--message {
  display: block;
  margin-bottom: 1rem;
}

.contact-field--check {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-field--check .contact-field__label {
  display: block;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  margin: 0;
}

.contact-field--check .contact-field__input {
  display: block;
  width: 11rem;
  max-width: 100%;
}

.contact-field__label {
  font-size: 1rem;
  color: #fff;
}

.contact-field--message .contact-field__label {
  display: block;
  margin-bottom: 0.5rem;
}

.contact-field__value {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #fff;
}

.contact-field__input {
  width: 11rem;
  max-width: 100%;
  height: 1.75rem;
  padding: 0 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 0.3rem;
}

.contact-field__textarea {
  display: block;
  width: 100%;
  min-height: 8.5rem;
  padding: 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 0.3rem;
  resize: vertical;
}

.contact-field__input:focus,
.contact-field__textarea:focus {
  outline: none;
}

.contact-field__input:-webkit-autofill,
.contact-field__input:-webkit-autofill:hover,
.contact-field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

.contact-form {
  margin: 0;
}

.contact-form__submit {
  display: inline-block;
  min-width: 4.5rem;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 0.3rem;
  cursor: pointer;
}

.contact-form__submit:hover {
  opacity: 0.85;
}

.form-notice {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.form-notice--error {
  color: #ffb4b4;
}

.form-notice--success {
  color: #b8f0c8;
}

.hp {
  display: none !important;
}

.content--product {
  max-width: 52rem;
}

.page:has(.content--product) {
  align-items: flex-start;
  padding-top: calc(60px + 2.5rem);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-header h1,
.product-header__title {
  margin-bottom: 0;
}

.product-logo {
  display: block;
  max-width: 150px;
  width: 100%;
  height: auto;
}

.product-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border-radius: 0.25rem;
}

.product-lead {
  margin-bottom: 1.75rem;
}

.product-shot {
  margin: 0 0 2rem;
}

.product-shot img {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
}

.product-gallery {
  margin-bottom: 2rem;
}

.product-gallery .product-shot {
  margin-bottom: 1.5rem;
}

.product-gallery .product-shot:last-child {
  margin-bottom: 0;
}

.product-shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

.product-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 0.25rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #000;
}

.product-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-pricing {
  margin-bottom: 2rem;
}

.product-pricing h2 {
  margin-bottom: 0.75rem;
}

.product-pricing__plans {
  list-style: none;
  margin-bottom: 0.75rem;
}

.product-pricing__plans li {
  margin-bottom: 0.35rem;
}

.product-pricing__plans li:last-child {
  margin-bottom: 0;
}

.product-pricing__plans strong {
  display: inline-block;
  min-width: 3.5rem;
  font-weight: 500;
}

.product-pricing__note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.product-cta {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border-radius: 0.3rem;
  transition: opacity 0.2s ease;
}

.product-cta:hover {
  opacity: 0.85;
}

.product-section {
  margin-bottom: 2rem;
}

.product-section h2 {
  margin-bottom: 0.75rem;
}

.product-section__intro {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.product-features,
.product-examples,
.product-steps {
  list-style: none;
  margin-bottom: 0;
}

.product-features li,
.product-examples li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  opacity: 0.7;
}

.product-examples li strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.product-steps {
  counter-reset: product-step;
  margin-bottom: 1rem;
}

.product-steps li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  counter-increment: product-step;
}

.product-steps li::before {
  content: counter(product-step) ".";
  position: absolute;
  left: 0;
  font-weight: 500;
  opacity: 0.85;
}

.product-note {
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.4rem;
}

.product-features--notes + .product-note {
  margin-top: 1rem;
}

.product-features--notes li::before {
  content: "!";
  font-size: 0.8rem;
  font-weight: 500;
}

.content code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  padding: 0.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

.product-list {
  list-style: none;
}

.product-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.product-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.product-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding: 1.25rem 0;
  transition: opacity 0.2s ease;
}

.product-list a:hover {
  opacity: 0.75;
}

.product-list__logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: 120px;
  width: 100%;
  height: auto;
}

.product-list__desc {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.95rem;
  opacity: 0.85;
}

.product-list .product-badge {
  grid-column: 3;
  grid-row: 1 / span 2;
}

@media (max-width: 600px) {
  .top-bar {
    padding: 0 1.25rem;
  }

  .friends-bar {
    padding: 0 1.25rem;
    height: 52px;
  }

  .site-footer-wrap {
    max-width: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: calc(52px + 0.85rem);
  }

  body:has(.content--account-dash) .site-footer-wrap {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    padding-bottom: calc(52px + 1.15rem);
  }

  .site-footer {
    padding: 0.9rem 1.15rem;
  }

  .friends-list {
    gap: 1.25rem;
  }

  .friends-list img {
    max-height: 1.5rem;
    max-width: 4.5rem;
  }

  .page {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 4.5rem;
  }

  .page:has(.content--product) {
    padding-top: calc(60px + 1.5rem);
  }

  .content {
    padding: 2rem 1.5rem;
  }

  .content--account-dash {
    padding: 1.5rem 1.15rem 2.25rem;
  }

  body:has(.content--account-dash) .page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .account-panel {
    padding: 1.35rem 1.25rem;
  }

  .account-panel__product-head {
    padding: 1.15rem 1.2rem;
  }

  .account-panel__product-detail {
    padding: 1.15rem 1.2rem;
  }

  .content h1 {
    font-size: 2rem;
  }

  .contact-field__input {
    width: 100%;
  }
}

/* —— MENiAC Account —— */
.content--account {
  max-width: 36rem;
}

.content--account-dash {
  max-width: 68rem;
  width: 100%;
  background: transparent;
  color: #1a1a1a;
  padding: 2rem 2.5rem 3rem;
  box-sizing: border-box;
}

body:has(.content--account-dash) {
  color: #1a1a1a;
  background-color: #ececec;
  background-image: none;
}

body.admin-page {
  color: #1a1a1a;
  background-color: #ececec;
  background-image: none !important;
}

body.admin-page .page {
  align-items: flex-start;
  padding-top: 5.5rem;
}

body.admin-page .top-bar {
  color: #f5f5f5;
}

body.admin-page .content--account {
  background: #fff;
  color: #1a1a1a;
}

body.admin-page .site-footer-wrap {
  max-width: 68rem;
  margin: 1.35rem auto 0;
  padding: 0 2.5rem calc(60px + 1.35rem);
  box-sizing: border-box;
}

body.admin-page .site-footer {
  border: 1px solid #d8d8d8;
  border-radius: 0.65rem;
  background: #fff;
  color: #444;
}

body.admin-page .site-footer a {
  color: #1a1a1a;
  opacity: 0.82;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body:has(.content--account-dash) .page {
  align-items: flex-start;
  padding: 5.5rem 2.5rem 5.5rem;
}

body:has(.content--account-dash) .top-bar,
body:has(.content--account-dash) .friends-bar {
  color: #f5f5f5;
}

.content--account-dash .form-notice--error {
  color: #b42318;
}

.content--account-dash .form-notice--success {
  color: #067647;
}

.account-flash {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-bottom: 2px solid transparent;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
  animation: account-flash-in 0.35s ease forwards;
}

.account-flash--success {
  background: #dcfce7;
  border-bottom-color: #86efac;
  color: #14532d;
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.25);
}

.account-flash--error {
  background: #fef3c7;
  border-bottom-color: #fcd34d;
  color: #78350f;
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.35);
}

.account-flash__text {
  margin: 0;
  max-width: 52rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.account-flash--hide {
  transform: translateY(calc(-100% - 60px));
  opacity: 0;
  pointer-events: none;
}

@keyframes account-flash-in {
  from {
    transform: translateY(calc(-100% - 60px));
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .account-flash {
    top: 60px;
    padding: 0.75rem 1rem;
  }

  .account-flash__text {
    font-size: 0.86rem;
  }
}

.account-dash-header h1 {
  margin-bottom: 0.15rem;
}

.content--account-dash .account-dash-header h1 {
  color: #111;
  margin-bottom: 0.5rem;
}

.account-lead {
  margin: 0 0 1.35rem;
  opacity: 0.82;
  font-size: 0.98rem;
}

.content--account-dash .account-lead {
  opacity: 0.72;
  color: #333;
}

.account-optional {
  font-weight: 400;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0;
}

.account-form .contact-field {
  margin-bottom: 0.85rem;
}

.account-switch {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.account-switch a {
  text-decoration: underline;
}

.account-oauth {
  margin: 0 0 1rem;
}

.account-oauth__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 0.5rem;
  background: #fff;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.account-oauth__google:hover {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.7);
  color: #0f172a;
}

.account-oauth__google-icon {
  display: inline-flex;
  line-height: 0;
}

.account-oauth__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: rgba(226, 232, 240, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-oauth__divider::before,
.account-oauth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
}

.account-section {
  margin: 1.5rem 0 0;
}

.account-section__title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.content--account-dash .account-section__title {
  opacity: 0.55;
  color: #333;
}

.account-section--quiet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.content--account-dash .account-section--quiet {
  border-top-color: #e5e5e5;
}

.account-muted {
  margin: 0;
  opacity: 0.75;
  font-size: 0.95rem;
}

.content--account-dash .account-muted {
  opacity: 0.7;
  color: #444;
}

.account-panels {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.account-panel {
  border: 1px solid #d8d8d8;
  border-radius: 0.65rem;
  background: #fff;
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.05);
}

.account-panel--account {
  background: #fff;
}

.account-panel--product {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.account-panel__head {
  margin-bottom: 0;
}

.account-panel__head + .account-panel__section {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid #e8e8e8;
}

.account-panel__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #111;
}

.account-panel__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #666;
}

.account-panel__subtitle--spaced {
  margin-top: 1.5rem;
}

.account-panel__section-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.account-panel__product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 0.5rem;
}

.account-panel__product-intro {
  min-width: 0;
  flex: 1;
}

.account-panel__product-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #111;
}

.account-panel__product-status {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
}

.account-panel__product-details {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #777;
}

.account-panel__product-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: flex-start;
}

.account-panel__product-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.account-panel__product-detail {
  padding: 1.35rem 1.5rem;
  border-radius: 0.5rem;
  background: #fafafa;
  border: 1px solid #ececec;
}

.account-panel__product-detail .account-plan-form + .account-plan-form {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e4e4e4;
}

.account-panel__product-detail .account-hint:first-child {
  margin-top: 0;
}

.account-panel__product-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}

.account-panel__product-links--inline {
  padding-top: 0.15rem;
}

.account-products-grid {
  display: grid;
  gap: 1.35rem;
  margin-top: 1rem;
  margin-bottom: 1.35rem;
}

.account-panel--newsletter {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.account-panel--actions {
  margin-top: 0;
}

.account-panel__newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.account-panel__newsletter-copy {
  min-width: 0;
  flex: 1;
}

.account-panel__newsletter-form {
  margin: 0;
  flex-shrink: 0;
}

.account-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.account-panel__logout {
  margin: 0 0 0 auto;
}

.account-products {
  list-style: none;
  display: grid;
  gap: 0;
}

.account-product {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0;
  border: 0;
}

.content--account-dash .account-product {
  border: 0;
}

.account-product:last-child {
  border-bottom: 0;
}

.content--account-dash .account-product:last-child {
  border-bottom: 0;
}

.account-product__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.account-product__intro {
  min-width: 0;
  flex: 1;
}

.account-product__name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.account-product__status {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.88;
}

.account-product__details {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  opacity: 0.55;
}

.account-product__cta {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.account-product__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}

.account-product__footer--flush {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content--account-dash .account-product__footer--flush {
  border-top-color: #e8e8e8;
}

.account-product__panel {
  padding: 0.85rem 0.95rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.content--account-dash .account-product__panel {
  background: #f6f6f6;
  border-color: #e2e2e2;
}

.account-plan-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.account-plan-form label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.account-plan-form input,
.account-plan-form select {
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  min-width: 5.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
}

.content--account-dash .account-plan-form input,
.content--account-dash .account-plan-form select {
  border-color: #ccc;
  background: #fff;
  color: #1a1a1a;
}

.account-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  opacity: 0.55;
}

.account-hint--inline {
  margin: 0;
  align-self: center;
  opacity: 0.65;
}

.account-text-link {
  font-size: 0.86rem;
  opacity: 0.78;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.account-text-link:hover {
  opacity: 1;
}

.account-text-link--muted {
  opacity: 0.45;
}

.account-dot {
  opacity: 0.4;
  margin: 0 0.2rem;
}

.account-cta-form {
  margin: 0;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  padding: 0.5rem 0.95rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  white-space: nowrap;
}

.account-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.account-btn--primary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.account-btn--primary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.account-btn--ghost {
  background: transparent;
  opacity: 0.85;
}

.content--account-dash .account-btn {
  border-color: #c8c8c8;
  background: #fff;
  color: #1a1a1a;
}

.content--account-dash .account-btn:hover {
  background: #f3f3f3;
}

.content--account-dash .account-btn--primary {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.content--account-dash .account-btn--primary:hover {
  background: #333;
}

.content--account-dash .account-btn--ghost {
  background: transparent;
  border-color: #ccc;
}

.account-logout {
  margin-top: 1.75rem;
}

.account-reset-log {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  font-size: 0.82rem;
  opacity: 0.7;
  line-height: 1.5;
}

.account-reset-log li + li {
  margin-top: 0.25rem;
}

.account-license-table-wrap {
  margin-top: 0;
  overflow-x: auto;
  border: 1px solid #e2e2e2;
  border-radius: 0.45rem;
}

.account-license-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin: 0 0 0.65rem;
}

.account-license-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #444;
  cursor: pointer;
  user-select: none;
}

.account-license-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #1a1a1a;
}

.account-license-table-wrap--hide-released .account-license-row--released {
  display: none;
}

.account-license-empty-hidden {
  margin: 0;
  padding: 1rem 1.1rem;
}

.account-license-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.4;
}

.account-license-table th,
.account-license-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}

.account-license-table th {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  background: #f7f7f7;
  white-space: nowrap;
}

.account-license-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-license-row--released {
  color: #666;
  background: #fafafa;
}

.account-license-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
}

.account-license-badge--active {
  background: #e8f6ee;
  color: #067647;
}

.account-license-badge--released {
  background: #f0f0f0;
  color: #666;
}

.account-license-duration {
  display: block;
  font-weight: 500;
}

.account-license-duration-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #777;
}

.account-license-fp {
  display: inline-block;
  max-width: 12rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
  word-break: break-all;
  color: #444;
}

.account-license-release {
  margin: 0;
}

.account-btn--compact {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.account-license-details {
  max-width: 18rem;
  font-size: 0.78rem;
  color: #555;
  word-break: break-word;
}

@media (max-width: 540px) {
  .account-panel__product-head,
  .account-product__top {
    flex-direction: column;
    align-items: stretch;
  }

  .account-panel__product-actions .account-btn,
  .account-product__cta .account-btn,
  .account-cta-form .account-btn {
    width: 100%;
  }

  .account-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-panel__logout {
    margin-left: 0;
  }

  .account-panel__logout .account-btn {
    width: 100%;
  }

  .account-panel__newsletter {
    flex-direction: column;
    align-items: stretch;
  }

  .account-panel__newsletter-form .account-btn {
    width: 100%;
  }
}

/* —— Legal pages & site footer —— */

.site-footer-wrap {
  max-width: 42rem;
  margin: 1.35rem auto 0;
  padding: 0 2rem calc(60px + 1rem);
  box-sizing: border-box;
}

body:has(.content--account-dash) .site-footer-wrap {
  max-width: 68rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  padding-bottom: calc(60px + 1.35rem);
}

body:has(.content--account:not(.content--account-dash)) .site-footer-wrap {
  max-width: 36rem;
}

body:has(.content--product) .site-footer-wrap {
  max-width: 52rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  color: #444;
  border: 1px solid #d8d8d8;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.05);
}

.site-footer a {
  color: #1a1a1a;
  opacity: 0.82;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer a:hover {
  color: #000;
  opacity: 1;
}

.site-footer__sep {
  opacity: 0.35;
  color: #666;
}

.site-footer__note {
  color: #666;
  font-size: 0.85em;
}

.content--legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: #ddd;
  line-height: 1.65;
}

.content--legal h1 {
  margin-bottom: 0.35rem;
}

.legal-meta {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: #999;
}

.legal-lead {
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.legal-section {
  margin-bottom: 1.75rem;
}

.legal-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #f0f0f0;
}

.legal-section p {
  margin: 0 0 0.75rem;
}

.legal-section ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.content--legal a {
  color: #b8a8ff;
}

.legal-box {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-box__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 500;
}

.legal-box__list {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.legal-box__list li + li {
  margin-top: 0.4rem;
}

.legal-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.legal-box__actions .account-btn {
  text-decoration: none;
  text-align: center;
}

.legal-box__links {
  margin: 0;
  font-size: 0.92rem;
}

.legal-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  line-height: 1.5;
}

.legal-check input {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.legal-check a {
  color: #b8a8ff;
}

.account-buy-form {
  margin-top: 1.25rem;
}

/* —— Account admin —— */

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-search-form {
  max-width: 36rem;
}

.admin-grant-grid,
.admin-trial-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .admin-grant-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-trial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-action-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.admin-action-form input[type="number"] {
  width: 4rem;
  padding: 0.25rem 0.4rem;
}

.admin-inline-form {
  margin-top: 0.5rem;
}

.admin-inline-form button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
