/* Design review 13: presentation only. Service colors and commercial behavior stay authoritative. */
:root {
  --mz-motion-out: cubic-bezier(.23, 1, .32, 1);
  --mz-focus: #dfc2ff;
  --mz-reading: #c7bed2;
  --mz-control-radius: 10px;
}
::selection { background: #d8b4ff; color: #21142f; }
html { scrollbar-color: #746184 #18141f; }
:is(.commerce, .service-store, .profile-page, .gems-page) {
  font-variant-numeric: tabular-nums;
}
:is(.commerce, .service-store, #gem-dialog, #service-checkout) :is(input, textarea) {
  caret-color: var(--mz-focus);
}
:is(.button, .v9-button, .commerce-primary, .commerce-secondary, .gem-button, summary) {
  touch-action: manipulation;
}
:is(.button, .v9-button, .commerce-primary, .commerce-secondary, .gem-button) {
  transition: transform 120ms var(--mz-motion-out), background-color 180ms ease, color 180ms ease;
}
:is(.button, .v9-button, .commerce-primary, .commerce-secondary, .gem-button):active:not(:disabled) {
  transform: scale(.98);
}
:is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--mz-focus);
  outline-offset: 4px;
}
:is(.hero h1, .section-heading h2, .services-hero h1, .v9-section h2, .commerce h1, .profile-tube-card h3) {
  text-wrap: balance;
  letter-spacing: -.03em;
}
.hero-description { max-width: 52ch; font-size: 16px; line-height: 1.75; }
.service-description, .service-copy p { font-size: 14px; line-height: 1.65; color: var(--mz-reading); }
.service-cta { font-size: 12px; min-height: 44px; }
.service-card { transition: transform 220ms var(--mz-motion-out), background-color 180ms ease; }
.service-art img { transition: transform 220ms var(--mz-motion-out); }
.service-store .plan-description { font-size: 14px; line-height: 1.65; }
.service-store .plan-duration-note { font-size: 12px; line-height: 1.6; }
.service-store .v9-plan-price { font-variant-numeric: tabular-nums; }
.service-store .v9-tabs { gap: 8px; }
.service-store .v9-tabs button { min-height: 44px; font-size: 13px; }
.service-store .plan-content > .v9-button { min-height: 48px; font-size: 14px; }
.commerce p { font-size: 14px; line-height: 1.7; }
.commerce small { font-size: 12px; }
.commerce label { font-size: 13px; }
.commerce h2 { font-size: 21px; letter-spacing: -.025em; }
.commerce :is(.commerce-primary, .commerce-secondary) { min-height: 46px; font-size: 14px; }

/* This is optional help, not another step in the calculator. Native details
   keeps Enter/Space, expanded state and visibility together without new JS. */
.wall-scan-box { align-items: flex-start; gap: 16px; }
.wall-scan-box > img { width: 52px; height: 62px; flex: 0 0 52px; }
.wall-scan-box > div { flex: 1; min-width: 0; }
.wall-scan-box h3 { font-size: 16px; }
.wall-scan-box p { font-size: 13px; line-height: 1.65; }
.wall-example-help { margin: 8px 0 14px; }
.wall-example-help > summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 44px; padding: 9px 12px;
  border: 1px solid #a88bb858; border-radius: var(--mz-control-radius);
  color: #e1c5ff; font-size: 13px; font-weight: 650; cursor: pointer;
  list-style: none; background: #ffffff04;
}
.wall-example-help > summary::-webkit-details-marker { display: none; }
.wall-example-help > summary::after {
  content: ''; width: 7px; height: 7px; flex: 0 0 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-right: 3px;
}
.wall-example-help[open] > summary::after { transform: rotate(225deg); }
.wall-example-body { padding-top: 12px; }
.wall-example-help .wall-capture-example { margin: 12px 0; max-width: 620px; }
.wall-example-help .wall-capture-example figcaption { font-size: 12px; }
.wall-scan-box input[type=file] { color: #c7bed2; font-size: 13px; }
.wall-scan-box input::file-selector-button { min-height: 44px; font: inherit; font-weight: 650; }
.wall-group :is(input, select) { min-height: 44px; font-size: 14px; }
.wall-remove { min-width: 44px; min-height: 44px; border-radius: 8px; }
.wall-group { grid-template-columns: minmax(70px,.65fr) minmax(100px,1fr) 18px minmax(100px,1fr) 44px; }

#service-checkout .service-checkout-intro { gap: 18px; padding-bottom: 20px; margin-bottom: 22px; }
#service-checkout .service-checkout-intro h2 { letter-spacing: -.025em; text-wrap: balance; }
#service-checkout .service-checkout-intro p:last-child { color: var(--mz-reading); font-size: 14px; }
#service-checkout .v9-form > small { font-size: 12px; line-height: 1.65; }
#service-checkout .v9-check { font-size: 14px; line-height: 1.6; }
#service-checkout .v9-form label { font-size: 14px; }
#gem-dialog .gem-dialog-price { font-size: 14px; }
#gem-dialog .gem-dialog-head { gap: 16px; }
.profile-tube-card > p { font-size: 14px; }
.profile-tube-card > strong { font-size: 13px; min-height: 44px; }

@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-4px); }
  .service-card:hover .service-art img { transform: translateY(-3px) rotate(-1deg); }
  .wall-example-help > summary:hover { background: #ffffff0b; border-color: #bd96ed; }
}
@media (hover: none), (pointer: coarse) {
  .service-card:hover, .service-card:hover .service-art img,
  .button-primary:hover, .service-store .v9-plan:hover { transform: none; }
}
@media (pointer: coarse) {
  .commerce :is(input:not([type=checkbox]):not([type=file]), select, textarea),
  #service-checkout :is(input:not([type=checkbox]), select),
  #gem-dialog :is(input:not([type=checkbox]), select),
  .profile-form-card :is(input, select, textarea) { font-size: 16px; }
}
@media (max-width: 760px) {
  .hero-description { font-size: 15px; margin-inline: auto; }
  .service-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .service-card { display: grid; grid-template-columns: minmax(0,1fr) 112px; padding: 20px; }
  .service-top { grid-column: 1 / -1; font-size: 9px; letter-spacing: .08em; }
  .service-art { grid-column: 2; grid-row: 2; height: 138px; margin: 0 -12px 0 0; }
  .service-card:after { left: auto; right: -24px; top: 38px; width: 150px; height: 150px; }
  .service-copy { grid-column: 1; grid-row: 2; margin-top: 14px; }
  .service-card .service-title, .service-card .service-copy h3 { font-size: 24px; }
  .service-description, .service-copy p { font-size: 13px; line-height: 1.65; }
  .service-cta { font-size: 12px; gap: 8px; }
  .service-store .v9-tabs { flex-wrap: wrap; }
  .commerce :is(input:not([type=checkbox]):not([type=file]), select, textarea),
  #service-checkout :is(input:not([type=checkbox]), select),
  #gem-dialog :is(input:not([type=checkbox]), select),
  .profile-form-card :is(input, select, textarea) { font-size: 16px; }
  .commerce h2 { font-size: 20px; }
  .commerce-head p { max-width: 65ch; }
  .wall-scan-box { display: block; padding: 16px; }
  .wall-scan-box > img { display: none; }
  .wall-scan-box h3 { margin-bottom: 6px; }
  .wall-scan-box .wall-example-help .wall-capture-example { margin: 12px 0; }
  .wall-group { position: relative; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); gap: 12px 8px; padding: 16px; }
  .wall-group > label:first-child { grid-column: 1 / 3; grid-row: 1; }
  .wall-group > label:nth-child(2) { grid-column: 1; grid-row: 2; }
  .wall-group > .wall-arrow { grid-column: 2; grid-row: 2; align-self: end; padding-bottom: 12px; }
  .wall-group > label:nth-child(4) { grid-column: 3; grid-row: 2; }
  .wall-group > .wall-remove { grid-column: 3; grid-row: 1; justify-self: end; width: 44px; }
  .wall-group label { font-size: 12px; }
  .wall-group :is(input,select) { padding: 10px 7px; }
  #service-checkout .service-checkout-intro { gap: 12px; }
  #service-checkout .service-checkout-intro > img { width: 64px; height: 86px; }
  #service-checkout .service-checkout-intro h2 { font-size: 24px; }
  #service-checkout .v9-summary { padding: 15px; }
  .profile-tube-card > p { max-width: 62%; }
}
@media (max-width: 360px) {
  .service-card { grid-template-columns: minmax(0,1fr) 90px; padding: 17px; }
  .service-art { height: 125px; }
  .service-card .service-title, .service-card .service-copy h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.button, .v9-button, .commerce-primary, .commerce-secondary, .gem-button, .service-card, .service-art img) { transition: background-color 120ms ease, color 120ms ease; }
  .service-card:hover, .service-card:hover .service-art img,
  :is(.button, .v9-button, .commerce-primary, .commerce-secondary, .gem-button):active { transform: none; }
}
