/* app.getxposed.link: the accounts dashboard and its small email pages. Same
   Exposure language as the daemon's pages and the marketing site (film base,
   colour only as light, a viewfinder HUD). The CSP is "default-src 'self'",
   so nothing here relies on inline styles; app.js sets the meter's width.
   The dashboard's cards live in account.css. */

@font-face {
  font-family: "Archivo XP";
  src: url("/_cloud/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/_cloud/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono XP";
  src: url("/_cloud/fonts/martian-mono-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/_cloud/fonts/martian-mono-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}

:root {
  --film: #0A0B0D;
  --paper: #F3F5F7;
  --silver: #BFC4CB;
  --halation: #FF4A2E;
  --safelight: #FF9A1F;
  --signal: #E5484D;
  --dim: #8A909A;
  --rule: rgba(191, 196, 203, .16);
  --sans: "Archivo XP", system-ui, sans-serif;
  --mono: "Martian Mono XP", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --halo: 0 0 .07em rgba(255, 74, 46, .55), 0 0 .2em rgba(255, 74, 46, .22);
  --gutter: clamp(20px, 5vw, 72px);
  --hud: clamp(10px, 1.4vw, 22px);
  --warm: #FFB27A;
  --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(ellipse at 10% 0%, rgba(255, 74, 46, .12), transparent 45%) no-repeat, radial-gradient(ellipse at 100% 60%, rgba(255, 154, 31, .06), transparent 50%) no-repeat, var(--film);
  color: var(--paper);
  font: 400 17px/1.55 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--silver); }
a:hover { color: var(--warm); }
::selection { background: rgba(255, 154, 31, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }
.mono { font-family: var(--mono); font-stretch: 87%; letter-spacing: .14em; text-transform: uppercase; font-weight: 450; }
code { font: 400 .85em var(--mono); font-stretch: 87%; color: var(--warm); }
form.inline { display: inline; }

@keyframes lineup { from { transform: translateY(112%) skewY(6deg); } to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rec { 50% { opacity: .25; } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-14px, 9px); } 50% { transform: translate(11px, -17px); } 75% { transform: translate(-7px, 21px); } 100% { transform: translate(0, 0); } }

/* ---------- grain and viewfinder HUD ---------- */
.grain { position: fixed; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); z-index: 60; pointer-events: none; opacity: .12; mix-blend-mode: overlay; animation: grain .9s steps(5) infinite; }
.hud { position: fixed; inset: var(--hud); z-index: 50; pointer-events: none; font: 450 9.5px/1.4 var(--mono); font-stretch: 87%; letter-spacing: .14em; color: rgba(255, 154, 31, .8); }
.hud .c { position: absolute; width: 24px; height: 24px; border: 0 solid rgba(191, 196, 203, .45); }
.hud .tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hud .tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hud .bl, .hud .br { display: none; }
.hud-tl, .hud-tr { position: absolute; top: 6px; white-space: nowrap; }
.hud-tl { left: 36px; }
.hud-tr { right: 36px; }

/* ---------- layout ---------- */
.page { position: relative; z-index: 1; width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.mark { font-size: 22px; line-height: 1; font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; }
.bar-links { display: flex; align-items: center; gap: 18px; font-size: 10px; }
.bar-links a { text-decoration: none; }
.headline { margin-top: 72px; font-size: clamp(60px, 8vw, 128px); line-height: .88; font-weight: 800; font-stretch: 115%; letter-spacing: -.04em; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: block; animation: lineup 1.2s var(--out) both; }
.ln + .ln > span { animation-delay: .12s; }
.warm { color: var(--warm); text-shadow: 0 0 .07em rgba(255, 74, 46, .6), 0 0 .24em rgba(255, 74, 46, .25); }
.sub { max-width: 36em; margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--silver); }
.sub b { color: var(--paper); font-weight: 600; }
.rise { animation: fadeup 1s var(--out) .35s both; }
.small { font-size: 14px; line-height: 1.55; color: var(--silver); }
.small b { color: var(--paper); font-weight: 600; }
.note { font-size: 10px; color: var(--dim); }
.note-warm { color: var(--warm); animation: fadeup .5s var(--out) both; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 9.5px; color: var(--dim); }

/* ---------- buttons ---------- */
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.card .acts { margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 20px;
  border: 1px solid var(--paper); border-radius: 0;
  background: var(--paper); color: var(--film);
  font: 500 11.5px/1 var(--mono); font-stretch: 87%;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: box-shadow .3s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--film); box-shadow: 0 0 0 1px #fff, 0 0 30px rgba(255, 74, 46, .45); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(191, 196, 203, .35); }
.btn-ghost:hover { color: #fff; border-color: var(--paper); box-shadow: none; }
.btn-danger { background: transparent; color: #FF5B4F; border-color: rgba(255, 91, 79, .45); }
.btn-danger:hover { color: #fff; border-color: #FF5B4F; background: rgba(214, 35, 46, .14); box-shadow: none; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 10px; }
.btn.is-copied { background: var(--warm); border-color: var(--warm); color: var(--film); }

/* ---------- signed out ---------- */
.signin { display: flex; flex-direction: column; align-items: center; gap: 22px; min-height: 64vh; justify-content: center; text-align: center; }
.signin .headline { margin-top: 48px; }
.signin .sub { margin-top: 0; }
.signin .acts { justify-content: center; margin-top: 0; }

@media (max-width: 1000px) {
  .hud { display: none; }
}
@media (max-width: 640px) {
  .page { padding: 40px 16px; }
  .headline { margin-top: 48px; font-size: clamp(48px, 15vw, 72px); }
  .bar-links a { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
