:root {
  --ink: #141414;
  --muted: #525252;
  --line: #e7e7e7;
  --brand: #ff8210;
  --brand-dark: #d96700;
  --accent: #056ad5;
  --danger: #b42318;
  --bg: #ffffff;
  --card: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--brand); }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 10;
}

.coming-soon-page .site-nav {
  justify-content: center;
  min-height: auto;
  padding: 14px 32px;
  position: static;
}

.site-nav .brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.site-nav .brand span { color: var(--brand); }

.brand-logo { height: 58px; width: auto; display: block; }

.site-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.site-nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.site-nav nav a:hover { color: var(--ink); }

.site-nav .cta {
  margin-left: 4px;
  background: var(--brand);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-nav.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-nav.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 72px 24px 56px;
  text-align: center;
  background: linear-gradient(180deg, #fff4ea 0%, var(--bg) 100%);
}

.coming-soon {
  min-height: auto;
  display: grid;
  place-items: start center;
  padding: 26px 24px 32px;
  background: linear-gradient(180deg, #fff4ea 0%, #ffffff 46%, #f6f7f9 100%);
}

.coming-soon-panel {
  width: min(100%, 980px);
  text-align: center;
}

.coming-soon-logo {
  width: min(360px, 82vw);
  height: auto;
  margin-bottom: 18px;
}

.coming-soon h1 {
  max-width: 820px;
  margin: 8px auto 18px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.coming-soon .lede {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto 28px;
  text-align: left;
}

.coming-soon-grid > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

.coming-soon-grid h3 { margin: 0 0 8px; }
.coming-soon-grid p { margin: 0; color: var(--muted); }

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 14px 0 18px;
  font-family: "Newsreader", Georgia, serif;
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--brand); color: var(--brand); }

section.section { padding: 56px 24px; }
section.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
}

.section p.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.card h3 { margin-top: 0; font-size: 1.1rem; }
.card p { color: var(--muted); margin-bottom: 0; }

.steps { counter-reset: step; max-width: 720px; margin: 0 auto; }
.step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-number {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step h4 { margin: 4px 0 4px; }
.step p { margin: 0; color: var(--muted); }

.disclosure-box {
  max-width: 760px;
  margin: 40px auto 0;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 14px;
  padding: 20px 24px;
  color: #7c2d12;
  font-size: 0.92rem;
}

.disclosure-box strong { display: block; margin-bottom: 6px; }

.site-footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}

.form-grid { display: grid; gap: 14px; }
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
.field-group.full-row, .form-grid > label, .form-grid > input, .form-grid > textarea, .form-grid > button { grid-column: 1 / -1; }
.field-group.full-row { grid-column: 1 / -1; }

label { font-weight: 600; font-size: 0.9rem; }

input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
button:hover { background: var(--brand-dark); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.back-button { background: #fff; color: var(--muted); border: 1px solid var(--line); }
button.back-button:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-soft, #fff3ea); }
button.danger-button { background: var(--danger); }
button.danger-button:hover { background: #8f1c11; }

.notice {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.notice.ok { background: #ecfdf3; color: #065f46; border: 1px solid #a7f3d0; }
.notice.error { background: #fef3f2; color: var(--danger); border: 1px solid #fda29b; }
.hidden { display: none !important; }

.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; max-width: 1080px; width: 100%; margin: 0 auto; padding: 40px 24px 80px; box-sizing: border-box; }
.docs-nav { position: sticky; top: 90px; align-self: start; min-width: 0; }
.docs-nav a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.docs-nav a:hover { color: var(--brand); }
.docs-content { min-width: 0; max-width: 100%; }
.docs-content h2 { margin-top: 48px; scroll-margin-top: 90px; }
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 { scroll-margin-top: 90px; }
.docs-content pre {
  background: #101828;
  color: #d1fae5;
  padding: 18px;
  border-radius: 12px;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.85rem;
}
.docs-content code { background: #eef2f6; padding: 2px 6px; border-radius: 6px; font-size: 0.88em; word-break: break-word; }
.docs-content pre code { background: none; padding: 0; }
table.api-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
table.api-table th, table.api-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; font-size: 0.88rem; word-break: break-word; }
table.api-table th { background: #f2f4f7; }

.code-tabs { margin: 16px 0 22px; }
.code-tab-buttons {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: #eef2f6;
  border-radius: 999px;
  margin-bottom: 10px;
}
.code-tab-button {
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.84rem;
  font-weight: 600;
}
.code-tab-button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.code-tab-button.active { background: var(--brand); color: #fff; }
.code-tab-button.active:hover { background: var(--brand-dark); }
.code-tabs pre { border-radius: 12px; margin: 0; }
.code-tab-panel.hidden { display: none; }

.portal-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.portal-tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.portal-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.key-box {
  background: #101828;
  color: #d1fae5;
  padding: 14px 18px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
  margin-bottom: 14px;
}

#dashboard h3 { margin-top: 36px; }
#dashboard h3:first-child { margin-top: 0; }

.lookup-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 16px;
}
.lookup-card h4 { margin: 0 0 6px; }
.lookup-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lookup-status.registered { background: #ecfdf3; color: #065f46; }
.lookup-status.lost { background: #fffaeb; color: #b54708; }
.lookup-status.stolen { background: #fef3f2; color: var(--danger); }
.lookup-status.unregistered { background: #f2f4f7; color: var(--muted); }
.lookup-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lookup-photos img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

@media (max-width: 860px) {
  .site-nav {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 14px 16px;
  }
  .brand-logo { height: 52px; }
  .menu-toggle { display: flex; }
  .site-nav nav {
    display: none;
    order: 3;
    flex-basis: 100%;
  }
  .site-nav.nav-open nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .site-nav nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.92rem;
    text-align: center;
  }
  .site-nav .cta {
    grid-column: 1 / -1;
    margin-left: 0;
  }
  .coming-soon-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
  .docs-nav a { padding: 4px 0; }
}

@media (max-width: 430px) {
  .site-nav nav { grid-template-columns: minmax(0, 1fr); }
  .brand-logo { height: 46px; }
}
