:root {
  --paper: #FBFAF8;
  --surface: #FFFFFF;
  --ink: #1A1618;
  --muted: #6C6469;
  --border: #ECE7E2;
  --brand: #E2001A;
  --brand-deep: #B60016;
  --brand-soft: #FBE7E9;
  --wheat: #A9781F;
  --wheat-soft: #F6EEDD;
  --ring: rgba(226, 0, 26, .35);
  --shadow-sm: 0 1px 2px rgba(26, 22, 24, .05);
  --shadow-lg: 0 26px 60px -34px rgba(26, 22, 24, .45);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"], html.dark {
  --paper: #131010;
  --surface: #1D1917;
  --ink: #F2EDE9;
  --muted: #A79E98;
  --border: #2F2A27;
  --brand: #FF3B4E;
  --brand-deep: #FF6472;
  --brand-soft: #2A1618;
  --wheat: #D8AC57;
  --wheat-soft: #2A2214;
  --ring: rgba(255, 59, 78, .4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 26px 60px -30px rgba(0, 0, 0, .75);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131010;
    --surface: #1D1917;
    --ink: #F2EDE9;
    --muted: #A79E98;
    --border: #2F2A27;
    --brand: #FF3B4E;
    --brand-deep: #FF6472;
    --brand-soft: #2A1618;
    --wheat: #D8AC57;
    --wheat-soft: #2A2214;
    --ring: rgba(255, 59, 78, .4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 26px 60px -30px rgba(0, 0, 0, .75);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased;
  display: flex; align-items: center; justify-content: center; padding: clamp(1.25rem, 4vw, 3rem);
  position: relative; overflow-x: hidden;
}
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 82% -10%, var(--brand-soft), transparent 60%),
    radial-gradient(48rem 34rem at 0% 110%, var(--wheat-soft), transparent 55%);
  opacity: .8;
}

.shell {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  display: flex; flex-direction: column; gap: clamp(1.75rem, 4vw, 2.6rem);
}

.masthead { display: flex; flex-direction: column; gap: .55rem; }
.brand { margin-bottom: .9rem; }
.brand-logo { height: 46px; width: auto; max-width: 72%; display: block; }
@media (max-width: 480px) { .brand-logo { height: 38px; } }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-deep);
}
h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 720; text-wrap: balance; }
.lede { color: var(--muted); font-size: 1.02rem; max-width: 42ch; }

.grid { display: flex; flex-direction: column; gap: 1rem; }
.app-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem;
  padding: 1.35rem 1.4rem; border-radius: 16px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover, .app-card:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  outline: none;
}
.app-card:focus-visible { box-shadow: 0 0 0 3px var(--ring), var(--shadow-lg); }
.app-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--wheat-soft); color: var(--wheat);
}
.app-icon svg { width: 26px; height: 26px; }
.app-body h2 { font-size: 1.16rem; font-weight: 680; letter-spacing: -.01em; margin-bottom: .18rem; }
.app-body p { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.app-go {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  color: var(--brand); background: var(--brand-soft);
  transition: transform .2s ease;
}
.app-card:hover .app-go { transform: translateX(3px); }
.app-go svg { width: 18px; height: 18px; }

.foot { text-align: center; padding-top: 1.7rem; border-top: 1px solid var(--border); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: .85rem; }
.footer-sep { width: 1px; height: 18px; background: var(--border); }
.manaca-link { display: inline-flex; align-items: center; border-radius: 6px; }
.manaca-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.manaca-logo { height: 20px; width: auto; display: block; opacity: .55; transition: opacity .2s ease; }
.manaca-link:hover .manaca-logo { opacity: 1; }
:root[data-theme="dark"] .manaca-logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .manaca-logo { filter: brightness(0) invert(1); }
}
:root[data-theme="light"] .manaca-logo { filter: none; }
.footer-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--muted); font-size: .84rem; font-weight: 500; transition: color .2s ease;
}
.footer-link:hover { color: var(--brand-deep); }
.footer-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.footer-link svg { flex-shrink: 0; }
.footer-text { color: var(--muted); font-size: .78rem; }

@media (prefers-reduced-motion: reduce) {
  .app-card, .app-go { transition: none; }
  .app-card:hover, .app-card:focus-visible { transform: none; }
}
