:root {
  color-scheme: light;
  --paper: #faf7f0;
  --ink: #151411;
  --body: #4f4b45;
  --muted: #716b63;
  --orange: #f36b10;
  --border: #d8d0c5;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav: 0ms;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 280px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(44, 36, 26, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 36, 26, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.support-page {
  background-image:
    linear-gradient(rgba(44, 36, 26, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 36, 26, 0.01) 1px, transparent 1px);
}

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

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--paper);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: flex;
  flex-direction: column;
  width: min(100% - 48px, 720px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
}

.site-header {
  padding-top: 42px;
}

.brand {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 39px;
  background: var(--orange);
  -webkit-mask: url("accorded-mark.png") center / contain no-repeat;
  mask: url("accorded-mark.png") center / contain no-repeat;
}

h1,
h2,
p {
  margin-top: 0;
}

.support-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 78px 0 113px;
}

.support-content {
  width: 100%;
  text-align: center;
}

.privacy-main h1::before {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.support-content h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 25px;
  font-size: clamp(42px, 6vw, 58px);
  font-weight: 590;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.headline-row img {
  display: block;
  flex: none;
  width: 54px;
  height: 54px;
}

.support-intro {
  max-width: 440px;
  margin: 0 auto 32px;
  color: #292621;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.action-link {
  display: inline-flex;
  width: 174px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}

.action-link:hover {
  background: var(--paper);
}

.action-primary {
  border-color: #ef6a03;
  background: #ef6a03;
  color: #ffffff;
}

.action-primary:hover {
  border-color: #ef6a03;
  background: #ef6a03;
}

.action-secondary {
  justify-content: space-between;
  background: rgba(250, 247, 240, 0.72);
}

.action-secondary span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 240ms var(--ease-out);
}

.action-secondary:hover {
  border-color: var(--body);
}

.support-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.privacy-main {
  flex: 1;
  padding: 84px 0 100px;
}

.privacy-main h1 {
  margin-bottom: 11px;
  font-size: clamp(40px, 6vw, 52px);
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.privacy-main h1::before {
  margin-bottom: 27px;
}

.updated-date {
  margin-bottom: 57px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.privacy-main section + section {
  margin-top: 35px;
}

.privacy-main h2 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: -0.023em;
}

.privacy-main section p {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.68;
}

.privacy-main section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

.privacy-main section a:hover,
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.site-footer {
  display: flex;
  align-items: center;
  padding-bottom: 29px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
}

.support-footer {
  justify-content: center;
}

.privacy-footer {
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 40px, 720px);
  }

  .site-header {
    padding-top: 27px;
  }

  .support-main {
    padding: 65px 0 86px;
  }

  .support-content h1 {
    gap: clamp(6px, 2vw, 12px);
    margin-bottom: 22px;
    font-size: clamp(25px, 8.5vw, 35px);
  }

  .headline-row img {
    width: clamp(29px, 9vw, 38px);
    height: clamp(29px, 9vw, 38px);
  }

  .support-intro {
    max-width: 345px;
    margin-bottom: 28px;
    font-size: 15px;
  }

  .action-link {
    width: min(50%, 174px);
  }

  .privacy-main {
    padding: 67px 0 82px;
  }

  .privacy-main h1::before {
    margin-bottom: 24px;
  }

  .updated-date {
    margin-bottom: 46px;
  }

  .privacy-main section + section {
    margin-top: 31px;
  }

  .site-footer {
    padding-bottom: 20px;
  }
}

@media (max-width: 370px) {
  .action-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .action-link {
    width: min(100%, 290px);
  }
}

/* ==========================================================================
   Motion (visual design above is unchanged; nothing below alters rest state)
   The body background/grid is never animated or given a transition name.
   ========================================================================== */

/* Hover: pointer devices only, so touch screens never get a stuck lift. */
@media (hover: hover) {
  .action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(21, 20, 17, 0.1);
  }

  .action-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(21, 20, 17, 0.05);
  }

  .action-secondary:hover span {
    transform: translateX(2.5px);
  }
}

/* Press: immediate in, restrained spring-like release (transition above). Must stay after hover rules. */
.action-link:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px rgba(21, 20, 17, 0.12);
  transition-duration: 90ms, 90ms, 90ms, 90ms;
  transition-timing-function: ease-out;
}

.action-secondary:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(21, 20, 17, 0.06);
}

/* Entrance: transform / opacity / a whisper of blur. Fill is "backwards" so hover and press keep control afterwards. */
@keyframes text-rise {
  from { opacity: 0; transform: translateY(11px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes soft-rise {
  from { opacity: 0; transform: translateY(7px); filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes button-rise {
  from { opacity: 0; transform: translateY(7px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes note-rise {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

@keyframes icon-punch {
  0%   { opacity: 0; transform: translateY(8px) scale(0.78) rotate(-4deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  30%  { opacity: 1; }
  58%  { opacity: 1; transform: translateY(0) scale(1.04) rotate(2deg); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  100% { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes page-out {
  to { opacity: 0; transform: translateY(-8px); filter: blur(2px); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Support entrance */
  .support-page .headline-row span {
    animation: text-rise 460ms var(--ease-out) calc(var(--nav) + 0ms) backwards;
  }

  .support-page .headline-row img {
    animation: icon-punch 640ms linear calc(var(--nav) + 40ms) backwards;
  }

  .support-page .support-intro {
    animation: soft-rise 420ms var(--ease-out) calc(var(--nav) + 200ms) backwards;
  }

  .support-page .action-primary {
    animation: button-rise 380ms var(--ease-out) calc(var(--nav) + 300ms) backwards;
  }

  .support-page .action-secondary {
    animation: button-rise 380ms var(--ease-out) calc(var(--nav) + 375ms) backwards;
  }

  .support-page .support-note {
    animation: note-rise 400ms var(--ease-out) calc(var(--nav) + 560ms) backwards;
  }

  .support-page .support-footer {
    animation: fade-in 400ms ease-out calc(var(--nav) + 560ms) backwards;
  }

  /* Privacy entrance: grouped, fast */
  .privacy-page .brand {
    animation: fade-in 300ms ease-out var(--nav) backwards;
  }

  .privacy-main h1 {
    animation: text-rise 380ms var(--ease-out) var(--nav) backwards;
  }

  .privacy-main .updated-date {
    animation: soft-rise 340ms var(--ease-out) calc(var(--nav) + 50ms) backwards;
  }

  .privacy-main section {
    animation: soft-rise 340ms var(--ease-out) calc(var(--nav) + 100ms + var(--i, 0) * 45ms) backwards;
  }

  .privacy-main section:nth-of-type(2) { --i: 1; }
  .privacy-main section:nth-of-type(3) { --i: 2; }
  .privacy-main section:nth-of-type(4) { --i: 3; }
  .privacy-main section:nth-of-type(5) { --i: 4; }
  .privacy-main section:nth-of-type(6) { --i: 5; }

  .privacy-page .privacy-footer {
    animation: fade-in 340ms ease-out calc(var(--nav) + 380ms) backwards;
  }

  /* Native cross-document View Transitions (progressive enhancement).
     Only the content groups are named; the body background/grid stays in the
     root snapshot, which is not animated, so the canvas never moves. */
  @view-transition {
    navigation: auto;
  }

  .support-content { view-transition-name: support-content; }
  .support-footer  { view-transition-name: support-footer; }
  .site-header     { view-transition-name: privacy-header; }
  .privacy-main    { view-transition-name: privacy-main; }
  .privacy-footer  { view-transition-name: privacy-footer; }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none;
    mix-blend-mode: normal;
  }

  /* Old page content exits; the new page's own entrance (delayed by --nav) plays live. */
  ::view-transition-old(support-content),
  ::view-transition-old(support-footer),
  ::view-transition-old(privacy-header),
  ::view-transition-old(privacy-main),
  ::view-transition-old(privacy-footer) {
    animation: page-out 210ms cubic-bezier(0.4, 0, 1, 1) both;
  }

  html.is-navigated {
    --nav: 180ms;
  }

  /* JS fallback exit (browsers without native cross-document transitions) */
  html.is-leaving .support-content,
  html.is-leaving .support-footer,
  html.is-leaving .site-header,
  html.is-leaving .privacy-main,
  html.is-leaving .privacy-footer {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(2px);
    transition: opacity 210ms cubic-bezier(0.4, 0, 1, 1), transform 210ms cubic-bezier(0.4, 0, 1, 1), filter 210ms ease-out;
  }

  html.is-leaving .headline-row span,
  html.is-leaving .headline-row img,
  html.is-leaving .support-intro,
  html.is-leaving .action-link,
  html.is-leaving .support-note,
  html.is-leaving .privacy-main > *,
  html.is-leaving .privacy-main section,
  html.is-leaving .brand,
  html.is-leaving .privacy-footer {
    animation: none;
  }
}

/* Reduce Motion: short opacity fades only. No rotation, overshoot, travel, stagger or page choreography. */
@media (prefers-reduced-motion: reduce) {
  .headline-row span,
  .headline-row img,
  .support-intro,
  .action-link,
  .support-note,
  .brand,
  .privacy-main h1,
  .updated-date,
  .privacy-main section,
  .site-footer {
    animation: fade-in 120ms ease-out backwards;
  }

  .action-link,
  .action-secondary span {
    transition: opacity 90ms ease-out, background-color 90ms ease, border-color 90ms ease;
  }

  .action-link:active {
    transform: none;
    box-shadow: none;
    opacity: 0.87;
  }
}
