/* face-fit.css — Stage E · two-mode entry screen
   Mirrors the dark glass design system used in css/account.css / face-imprint.html.
   Single-file, no JS hooks. Future React port: maps 1:1 to <ModeCard variant="…"/>. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gf-bg:           #0A0A0B;
  --gf-bg-elev1:     #111114;
  --gf-bg-elev2:     #16161B;
  --gf-glass:        rgba(18, 18, 22, 0.74);
  --gf-glass-strong: rgba(12, 12, 16, 0.88);

  --gf-line:         rgba(255, 255, 255, 0.10);
  --gf-line-strong:  rgba(255, 255, 255, 0.20);
  --gf-line-faint:   rgba(255, 255, 255, 0.05);

  --gf-text:         #F5F1E8;
  --gf-text-mute:    rgba(245, 241, 232, 0.55);
  --gf-text-faint:   rgba(245, 241, 232, 0.32);

  --gf-good:         #C7E9C9;

  --gf-r-md:         14px;
  --gf-r-lg:         22px;
  --gf-r-pill:       999px;

  --gf-ease:         cubic-bezier(.16, .84, .32, 1.05);
  --gf-font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  min-height: 100%;
  background: var(--gf-bg);
  color: var(--gf-text);
  font-family: var(--gf-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(120% 55% at 50% -8%, rgba(245, 241, 232, 0.05), transparent 60%),
    radial-gradient(40% 30% at 90% 95%, rgba(199, 233, 201, 0.04), transparent 60%);
}
a { color: inherit; text-decoration: none; }

/* ───────── top bar ───────── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(56px + env(safe-area-inset-top, 0));
  padding: env(safe-area-inset-top, 0) 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.30) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--gf-line-faint);
  z-index: 100;
}
.top-bar__back, .top-bar__account {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gf-text-mute);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color .2s;
  padding: 8px 4px;
}
.top-bar__back:hover, .top-bar__account:hover { color: var(--gf-text); }
.top-bar__title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gf-text-faint);
}

/* ───────── page layout ───────── */
.page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(56px + env(safe-area-inset-top, 0) + 40px) 24px 80px;
}

.intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gf-text-faint);
  margin-bottom: 16px;
}
.title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.lead {
  color: var(--gf-text-mute);
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.6;
  max-width: 520px; margin: 0 auto;
}

/* ───────── modes grid ───────── */
.modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .modes { grid-template-columns: 1fr; }
}

.mode {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--gf-r-lg);
  background: var(--gf-glass);
  border: 1px solid var(--gf-line);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: border-color .3s var(--gf-ease),
              transform .25s var(--gf-ease),
              background .25s var(--gf-ease);
  min-height: 460px;
}
.mode:hover {
  border-color: var(--gf-line-strong);
  background: var(--gf-glass-strong);
  transform: translateY(-3px);
}
.mode--imprint {
  border-color: rgba(199, 233, 201, 0.22);
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(199, 233, 201, 0.05), transparent 60%),
    var(--gf-glass);
}
.mode--imprint:hover { border-color: rgba(199, 233, 201, 0.40); }

.mode__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.mode__tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--gf-r-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gf-line-faint);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gf-text-mute);
}
.mode__tag--accent {
  background: rgba(199, 233, 201, 0.08);
  border-color: rgba(199, 233, 201, 0.28);
  color: var(--gf-good);
}
.mode__num {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gf-text-faint);
  font-variant-numeric: tabular-nums;
}

.mode__art {
  width: 96px; height: 96px;
  margin: 0 0 24px;
  color: var(--gf-text-mute);
  opacity: .85;
}
.mode__art svg { width: 100%; height: 100%; display: block; }
.mode--imprint .mode__art { color: var(--gf-good); opacity: 1; }

.mode__title {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.mode__pill {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: var(--gf-r-pill);
  background: rgba(199, 233, 201, 0.10);
  border: 1px solid rgba(199, 233, 201, 0.30);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gf-good);
}

.mode__desc {
  color: var(--gf-text-mute);
  font-size: 14.5px; line-height: 1.6;
  margin-bottom: 22px;
}

.mode__bullets {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 28px;
  flex: 1;
}
.mode__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--gf-text);
  letter-spacing: 0.005em;
}
.mode__bullets li::before {
  content: '';
  position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gf-text-faint);
}
.mode--imprint .mode__bullets li::before { background: var(--gf-good); }

.mode__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: var(--gf-r-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gf-line);
  font-family: var(--gf-font);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gf-text);
  transition: background .2s, border-color .2s, transform .2s;
  width: 100%;
}
.mode:hover .mode__cta {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gf-line-strong);
}
.mode__cta--primary {
  background: var(--gf-text);
  color: var(--gf-bg);
  border-color: var(--gf-text);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35),
              inset 0 1px 0 rgba(255, 255, 255, .45);
}
.mode--imprint:hover .mode__cta--primary {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.mode__cta svg { transition: transform .2s; }
.mode:hover .mode__cta svg { transform: translateX(3px); }

/* ───────── hint ───────── */
.hint {
  max-width: 640px;
  margin: 56px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--gf-text-faint);
  line-height: 1.6;
}
.hint a {
  color: var(--gf-text-mute);
  border-bottom: 1px solid var(--gf-line);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.hint a:hover { color: var(--gf-text); border-color: var(--gf-line-strong); }

/* ───────── responsive polish ───────── */
@media (max-width: 540px) {
  .page { padding: calc(56px + env(safe-area-inset-top, 0) + 24px) 16px 56px; }
  .intro { margin-bottom: 32px; }
  .mode { padding: 26px 22px; min-height: auto; }
  .mode__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .mode, .mode__cta, .mode__cta svg { transition: none; }
  .mode:hover { transform: none; }
}
