/* /support/ only. Shared components live in /styles.css, the motion kit in /motion.css.
   The page is a set of routes: pick the row that fits and it takes you to the next step. Below them, what a bug
   report needs, the site's canonical status list (/support/#status), and the common questions (/support/#questions).
   js/support.js drives the disclosures and the copy button; with JS off the shared .faq styles open the answers. */

.sp-head .lede{ max-width:50ch; }

/* Copy the address: a quiet text button, drawn only when the clipboard is there to answer it (support.js unhides it).
   Its label swaps to "Copied" with a short blur so the two words read as one change. */
.sp-copy{ position:relative; display:inline-grid; place-items:center; min-height:44px; padding:0 12px; border:0; border-radius:999px; background:none; color:var(--ink-2); font:600 var(--t-small)/1 var(--font); letter-spacing:-.01em; cursor:pointer; transition:color var(--dur-micro) ease, transform var(--dur-micro) var(--ease-out); }
.sp-copy[hidden]{ display:none; }
.sp-copy > span{ grid-area:1 / 1; display:inline-flex; align-items:center; gap:9px; transition:opacity .2s ease, filter .2s ease, transform .2s var(--ease-out); }
.sp-copy-b{ opacity:0; filter:blur(2px); transform:translateY(5px); color:var(--ink); }
.sp-copy-b::before{ content:""; width:10px; height:5px; margin-top:-3px; border-left:1.75px solid currentColor; border-bottom:1.75px solid currentColor; transform:rotate(-45deg); }
.sp-copy.is-copied .sp-copy-a{ opacity:0; filter:blur(2px); transform:translateY(-5px); }
.sp-copy.is-copied .sp-copy-b{ opacity:1; filter:none; transform:none; }
.sp-copy:active{ transform:scale(.97); }

/* ---------- routes: one row per kind of problem; the whole row is the link ---------- */
.sp-routes-sec .lede{ max-width:40ch; }
.sp-routes{ position:relative; z-index:0; list-style:none; border-top:1px solid var(--line-2); }
.sp-routes > li{ border-bottom:1px solid var(--line); }
.sp-route{
  position:relative; display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.45fr) minmax(0,.7fr); align-items:baseline; gap:8px clamp(24px, 4vw, 56px);
  padding:30px 0; border-radius:14px; color:inherit; text-decoration:none;
  transition:transform var(--dur-ui) var(--ease-spring-soft);
}
/* A soft light under the pointer (--sx/--sy from data-spot). */
.sp-route::before{
  content:""; position:absolute; inset:5px -16px; z-index:-1; border-radius:16px; pointer-events:none; opacity:0;
  background:radial-gradient(320px circle at calc(var(--sx, 50%) + 16px) calc(var(--sy, 50%) - 5px), rgba(255,255,255,.085), rgba(255,255,255,.035) 70%);
  transition:opacity var(--dur-ui) ease;
}
.sp-route-k{ font:600 var(--t-h3)/1.2 var(--font-display); letter-spacing:-.022em; color:var(--ink); transition:transform var(--dur-ui) var(--ease-out); }
.sp-route-v{ max-width:52ch; color:var(--ink-2); }
.sp-route-go{ justify-self:end; display:inline-flex; align-items:center; gap:.55em; font-size:var(--t-small); font-weight:600; letter-spacing:-.01em; color:var(--ink-2); white-space:nowrap; transition:color var(--dur-micro) ease; }
.sp-route-go::after{ content:"\2192"; font-weight:500; color:var(--ink-3); transition:transform var(--dur-ui) var(--ease-out), color var(--dur-micro) ease; }
.sp-route[href^="#"] .sp-route-go::after{ content:"\2193"; } /* stays on this page: the arrow points down it */
.sp-route:active{ transform:scale(.985); transition-duration:var(--dur-micro); transition-timing-function:var(--ease-out); }
.sp-links .sp-route{ padding:26px 0; }

/* ---------- what a bug report needs, beside the screen it asks about ---------- */
.sp-report{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); align-items:center; gap:clamp(40px, 7vw, 128px); }
.sp-report-h{ max-width:13ch; margin-bottom:clamp(32px, 1.5rem + 2vw, 56px); }
.sp-device-wrap{ justify-self:center; width:100%; max-width:320px; }

/* ---------- status: each state's name beside its rows ---------- */
.sp-status-sec .head{ margin-bottom:clamp(36px, 1.75rem + 2vw, 64px); }
.sp-stats{ border-bottom:1px solid var(--line-2); }
.sp-stat, .sp-group{ display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); align-items:start; gap:0 clamp(40px, 6vw, 112px); border-top:1px solid var(--line-2); }
.sp-stat-h, .sp-group-h{ position:sticky; top:96px; padding:24px 0 32px; font-size:clamp(1.375rem, 1.2rem + .7vw, 1.875rem); font-weight:700; line-height:1.1; letter-spacing:-.035em; word-spacing:.04em; }
.sp-stat .kv{ border-top:0; }
.sp-stat .kv > div{ padding:18px 0; }
.sp-stat .kv > div:last-child{ border-bottom:0; }
.sp-status dt{ font-size:var(--t-body); color:var(--ink); }
.sp-status dd{ display:inline-flex; flex:none; align-items:center; gap:10px; font-family:var(--font); font-weight:500; color:var(--ink-2); white-space:nowrap; }
.sp-status dd a{ display:inline-block; padding:12px 8px; margin:-12px -8px; color:var(--ink); font-weight:600; } /* 44px tap target, row size unchanged */
.sp-status-note{ margin-top:24px; }

/* ---------- common questions ---------- */
.sp-faq .head{ margin-bottom:clamp(32px, 1.5rem + 2vw, 56px); }
.sp-groups{ position:relative; z-index:0; }
.sp-group .faq{ border-top:0; }
/* The hairline between two questions belongs to the lower one, so it travels with that row when the answer above
   it opens. */
.sp-group .faq details{ border-bottom:0; scroll-margin-top:8px; } /* on top of the page's 88px scroll-padding */
.sp-group .faq details + details{ border-top:1px solid var(--line); }
.sp-faq .faq summary{ position:relative; border-radius:12px; transition:color .15s, transform var(--dur-ui) var(--ease-spring-soft); transform-origin:left center; }
.sp-faq .faq summary::before{
  content:""; position:absolute; inset:5px -14px; z-index:-1; border-radius:14px; pointer-events:none; opacity:0;
  background:radial-gradient(260px circle at calc(var(--sx, 50%) + 14px) calc(var(--sy, 50%) - 5px), rgba(255,255,255,.085), rgba(255,255,255,.035) 70%);
  transition:opacity var(--dur-ui) ease;
}
.sp-faq .faq summary:active{ transform:scale(.99); transition-duration:.15s, var(--dur-micro); transition-timing-function:ease, var(--ease-out); }
.sp-faq .faq details[open]:not(.is-closing) > summary::after{ color:var(--ink); }
.sp-faq .faq details.is-closing > summary::after{ transform:none; } /* the plus answers the click, not the end of the exit */
@media (prefers-reduced-motion: no-preference){
  /* Arriving from a row above (#delete-my-data, #refunds): the question lights once. */
  .sp-faq .faq details:target > summary::before{ animation:sp-target 2s var(--ease-out) .2s backwards; }
  /* support.js moves the rows itself, so the shared height transition and answer keyframes stand down here. */
  .js .sp-faq .faq details{ interpolate-size:numeric-only; }
  .js .sp-faq .faq details::details-content{ transition:none; }
  .js .sp-faq .faq details[open] .answer{ animation:none; }
}
@keyframes sp-target{ 0%, 45%{ opacity:1; } 100%{ opacity:0; } }

@media (max-width: 860px){
  .sp-route{ grid-template-columns:minmax(0,1fr); gap:6px; padding:24px 0; }
  .sp-route-go{ justify-self:start; margin-top:6px; }
  .sp-links .sp-route{ grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 20px; padding:22px 0; }
  .sp-links .sp-route-v{ grid-column:1; }
  .sp-links .sp-route-go{ grid-column:2; grid-row:1 / span 2; margin-top:0; }
  .sp-report, .sp-stat, .sp-group{ grid-template-columns:minmax(0,1fr); }
  .sp-report{ gap:56px; }
  .sp-report-h{ max-width:none; }
  .sp-device-wrap{ max-width:240px; }
  .sp-stat-h, .sp-group-h{ position:static; padding:32px 0 6px; }
}
@media (hover: hover) and (pointer: fine){
  .sp-copy:hover{ color:var(--ink); }
  .sp-route:hover::before, .sp-faq .faq summary:hover::before{ opacity:1; }
  .sp-route:hover .sp-route-k{ transform:translateX(4px); }
  .sp-route:hover .sp-route-go{ color:var(--ink); }
  .sp-route:hover .sp-route-go::after{ transform:translateX(5px); color:var(--ink); }
  .sp-route[href^="#"]:hover .sp-route-go::after{ transform:translateY(4px); }
}
