/* Colours and type follow the sign-in result page (crates/auth/assets/result.css). */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --soft: #F4F6F8;
  --fg: #00374E;
  --muted: #4B5B67;
  --line: #D5DCE2;
  --accent: #B4440F;
  --warm-a: #FDE7DA;
  --warm-b: #FEF3DC;
  --shadow: 0 1px 2px rgb(0 55 78 / .06), 0 8px 24px rgb(0 55 78 / .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
    system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.top, main, footer { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand img { display: block; height: 2rem; width: auto; }
#account { display: flex; align-items: center; gap: 1rem; min-width: 0; }
#who { color: var(--muted); font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#status { color: var(--muted); padding: 2rem 0; margin: 0; }
#status.error { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 0;
}

.hero + .hero { border-top: 1px solid var(--line); }
.product { align-items: start; }
.product:nth-child(even) .art { order: 2; }

.art {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, var(--warm-a), var(--warm-b));
  overflow: hidden;
}

.art img { display: block; max-width: 88%; max-height: 88%; height: auto; }
.art img.mark { width: 34%; }
/* an app screenshot sits in its panel like a window: rounded, lifted by a soft shadow */
.art img:not(.mark) {
  border-radius: .625rem;
  box-shadow: 0 0 0 1px rgb(0 55 78 / .08), 0 2px 4px rgb(0 55 78 / .10),
    0 14px 28px rgb(0 55 78 / .16), 0 36px 72px rgb(0 55 78 / .14);
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, .headline {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.lead { margin: 0 0 1rem; color: var(--muted); font-size: 1.125rem; max-width: 34rem; }
.version { margin: 0 0 1.5rem; color: var(--muted); font-size: .9375rem; }
.hint { margin: 1rem 0 0; color: var(--muted); font-size: .9375rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .75rem 1.75rem;
  border: 2px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pill.second { background: transparent; color: var(--fg); }
.pill.small { min-height: 2.5rem; padding: .4rem 1.1rem; font-size: .9375rem; }
.pill:hover { box-shadow: var(--shadow); }
.pill:disabled { opacity: .55; cursor: default; box-shadow: none; }

.link { border: 0; padding: 0; background: none; color: var(--fg); font: inherit; text-decoration: underline; cursor: pointer; }

:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }

details { margin-top: 1.25rem; }
summary { cursor: pointer; color: var(--fg); font-weight: 600; font-size: .9375rem; }
.check { margin: 1rem 0 .5rem; color: var(--muted); font-size: .875rem; }
.notes { margin: .75rem 0; color: var(--muted); white-space: pre-line; }

table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { text-align: left; vertical-align: top; padding: .4rem .75rem .4rem 0; border-top: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; border-top: 0; }
td.sha { font: .75rem ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

.old { padding: 1rem 0; border-top: 1px solid var(--line); }
.old h3 { margin: 0; font-size: 1rem; }
.old-date { color: var(--muted); font-weight: 400; margin-left: .5rem; }
.old-files { display: flex; flex-wrap: wrap; gap: .5rem; }

.note { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); max-width: 44rem; }
.note h2 { margin: 0 0 .5rem; color: var(--fg); font-size: 1.25rem; }

pre {
  background: var(--soft);
  padding: .875rem 1rem;
  border-radius: .75rem;
  overflow-x: auto;
  font: .875rem ui-monospace, Menlo, Consolas, monospace;
}

footer { padding-top: 2rem; padding-bottom: 2.5rem; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
footer p { margin: 0; }

@media (max-width: 48rem) {
  .top, main, footer { padding: 0 1.25rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 2rem 0 2.5rem; }
  .product:nth-child(even) .art { order: 0; }
  .art { border-radius: 1.25rem; }
  .actions .pill { flex: 1 1 100%; }
  #who { display: none; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-top: 0; padding: .1rem 0; }
  tr { padding: .6rem 0; border-top: 1px solid var(--line); }
}
