:root {
  --bg: #e8f4fb;
  --primary: #222;
  --muted: #999;
  --main: #444;
  --font-display: "Bricolage Grotesque", serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: #000;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.page {
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 28rem;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1rem 1.25rem 0.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  height: 1.25rem;
  width: auto;
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.skip-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}

.skip-link:hover {
  color: var(--main);
}

.skip-link.is-next {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0.5rem 1.25rem max(0.75rem, env(safe-area-inset-bottom));
}

.slide-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.slide-area.is-leaving {
  opacity: 0;
  transform: translateX(-12px);
}

.slide-area.is-entering {
  opacity: 0;
  transform: translateX(12px);
}

.slide-area:active {
  cursor: grabbing;
}

.icon-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.5rem 0;
}

.icon-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(64vw, 18rem);
  height: min(64vw, 18rem);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08), transparent 70%);
  pointer-events: none;
}

.icon-stage img {
  position: relative;
  display: block;
  width: min(66vw, 17rem);
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(8, 47, 73, 0.08));
}

.copy {
  flex-shrink: 0;
  margin-top: 0.75rem;
  text-align: center;
}

.copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.copy p {
  max-width: 20rem;
  margin: 0.25rem auto 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-shrink: 0;
  margin-top: 0.75rem;
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.dot:hover {
  background: rgba(0, 0, 0, 0.25);
}

.dot.is-active {
  width: 1.5rem;
  background: var(--primary);
}

.actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  min-height: 10.5rem;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:disabled {
  opacity: 0.5;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  color: var(--main);
}

.btn-secondary:hover {
  color: #000;
}

.final-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 22rem;
  text-align: center;
}

.auth-card h1 {
  margin: 0.75rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.auth-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .copy h1 {
    font-size: 1.5rem;
  }

  .copy p {
    font-size: 0.875rem;
  }
}
