@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --soft: #f1f5f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Neue Haas Grotesk', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav__brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__brand-main {
  font-size: 1rem;
  color: var(--ink);
}

.nav__brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.nav__logo {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.nav__links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav__links a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__links a:hover {
  color: var(--ink);
  background: var(--soft);
}

main.container {
  padding: 2.5rem 1.25rem 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}

.hero.hero--center {
  display: flex;
  justify-content: center;
}

.hero__copy h1 {
  margin: 0.3rem 0 0.6rem;
  font-size: 2.6rem;
  line-height: 1.1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--muted);
}

.lede {
  color: var(--muted);
  line-height: 1.6;
  max-width: 32rem;
}

.chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.5rem;
}

.chip {
  background: var(--soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.list {
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.panel--narrow {
  max-width: 520px;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tag {
  background: #0f172a;
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tag--soft {
  background: var(--soft);
  color: var(--ink);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form--tight {
  gap: 0.4rem;
}

.form--inline .input-row {
  width: 100%;
}

.form--inline .input-row button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.account__logout {
  margin: 0.35rem 0 0;
}

.account__logout button {
  padding: 0.65rem 0.9rem;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

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

.input-row input {
  flex: 1;
}

.suffix {
  white-space: nowrap;
  background: var(--soft);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

button,
.button-link {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  text-align: center;
  display: inline-block;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  text-decoration: none;
}

.button-link {
  width: 100%;
  margin-top: 0.5rem;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button--ghost:hover {
  box-shadow: none;
  transform: none;
  background: var(--soft);
}

.alert {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.alert--error {
  border-color: #fb7185;
  background: #fff1f2;
  color: #991b1b;
}

.alert--success {
  border-color: #86efac;
  background: #ecfdf3;
  color: #15803d;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.examples {
  margin-top: 3rem;
}

.section-heading h2 {
  margin: 0 0 0.35rem;
  font-size: 1.9rem;
}

.section-heading p {
  margin: 0;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.example-svg {
  width: 100%;
  display: block;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.flow {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
}

.flow__block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bubble {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: var(--soft);
  height: 100%;
}

.bubble--reply {
  background: #fff;
}

.line {
  font-size: 0.96rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  letter-spacing: 0;
  font-weight: 600;
}

.mono {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--muted);
  letter-spacing: 0;
  display: inline-flex;
  min-width: 58px;
}

.bubble__body {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: 0;
}

.account {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.account__intro {
  margin-bottom: 1rem;
}

.account__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 1rem;
}

.account-card h3 {
  margin: 0 0 0.35rem;
}

.account__help {
  margin: 1.25rem 0 0.35rem;
}

.button--danger {
  background: #fee2e2;
  color: #b91c1c;
  box-shadow: none;
}

.button--danger:hover {
  box-shadow: none;
  transform: none;
}

.flow__arrow {
  text-align: center;
  font-size: 1.25rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

.steps {
  margin-top: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 0.8rem;
  align-items: start;
}

.step__index {
  background: var(--soft);
  color: var(--ink);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  border: 1px solid var(--line);
}

.step h4 {
  margin: 0;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  grid-column: span 2;
}

.hero--center .panel {
  margin: 0 auto;
}

.align-center {
  text-align: center;
}

.align-center p {
  margin-top: 0;
}

.error-code {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0.25rem 0 0.35rem;
  color: var(--muted);
}

.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0 0.25rem;
}

.error-actions .button-link {
  width: auto;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.error-hint {
  margin: 0.4rem 0 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 1.2rem 0;
  margin-top: 3rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer__left {
  flex: 1 1 auto;
}

.footer__center {
  flex: 0 0 auto;
  text-align: center;
  font-weight: 600;
}

.footer__links {
  display: flex;
  gap: 1rem;
  flex: 0 0 auto;
}

.footer__links a {
  color: var(--muted);
}

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

.policy {
  margin-top: 1rem;
}

.policy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.policy__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.policy__item h3 {
  margin-top: 0;
}

.policy__item p,
.policy__item li {
  color: var(--muted);
  line-height: 1.6;
}

.policy__item ul {
  padding-left: 1.1rem;
  margin: 0.2rem 0;
}

@media (max-width: 720px) {
  .nav__links {
    gap: 0.5rem;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow__arrow {
    display: none;
  }

  main.container {
    padding-top: 1.5rem;
  }

  .example-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__center {
    padding: 0.25rem 0;
  }
}
