:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #737373;
  --line: #e5e5e5;
  --hover: #f5f5f5;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 18vh 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

main.narrow { padding-top: 12vh; }

.logo {
  width: 64px;
  height: 64px;
  margin-bottom: 2rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-family: "Rubik", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34ch;
}

section {
  width: 100%;
  margin-top: 4rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.app {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.app img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.app-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-name {
  font-weight: 500;
}

.app-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-arrow {
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.app:hover .app-arrow {
  color: var(--ink);
  transform: translateX(3px);
}

footer {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease;
}

footer a:hover { border-color: var(--ink); }

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.back:hover { color: var(--ink); }

form {
  width: 100%;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
}

input,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  transition: border-color 0.15s ease;
}

input:hover,
textarea:hover { border-color: #bdbdbd; }

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
}

textarea { resize: vertical; }

button {
  font: inherit;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s ease;
}

button:hover { opacity: 0.85; }
