:root {
  --accent: #4abae8;
  --accent-dark: #168fbe;
  --bg: #f2f7fb;
  --ink: #111827;
  --muted: #667085;
  --line: #d8e5ef;
  --navy: #172333;
  --card: #ffffff;
  --shadow: 0 18px 44px rgba(23, 35, 51, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(74, 186, 232, 0.13), transparent 360px), var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.topbar {
  min-height: 72px;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand span {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  box-shadow: inset 0 -4px 0 var(--accent);
  font-weight: 900;
}

.guide-link {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 48px;
}

.hero,
.lookup-card,
.database-card,
.help-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero {
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 35, 51, 0.94), rgba(23, 35, 51, 0.62)),
    url("assets/iphone-authenticity-checker.png") center / cover no-repeat;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
  line-height: 1.65;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  color: var(--accent-dark);
  background: #eaf8fd;
  font-weight: 850;
}

.lookup-card {
  margin-top: 22px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.lookup-form {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
}

label {
  display: grid;
  gap: 9px;
}

label span {
  font-size: 0.9rem;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c7d4df;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

input:focus {
  outline: 4px solid rgba(74, 186, 232, 0.22);
  border-color: var(--accent);
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.suggestions {
  margin-top: -8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 35, 51, 0.12);
}

.suggestions button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: block;
  color: var(--ink);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
}

.suggestions button:last-child {
  border-bottom: 0;
}

.suggestions button:hover,
.suggestions button.is-active {
  background: var(--accent-soft);
}

.result-panel {
  min-height: 170px;
  padding: 20px;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
}

.result-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-label.warning {
  color: #ffd166;
}

.result-panel h2 {
  font-size: 1.8rem;
}

.result-panel p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.empty-result {
  margin: 0;
}

.help-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.help-grid article,
.database-card {
  padding: 24px;
}

.help-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.database-card {
  margin-top: 22px;
}

.database-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.database-header input {
  max-width: 320px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  background: #f7fbfe;
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  line-height: 1.45;
}

td:first-child {
  color: var(--ink);
  font-weight: 850;
}

.blog-article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-hero {
  padding: 40px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 35, 51, 0.95), rgba(23, 35, 51, 0.72)),
    url("assets/iphone-authenticity-checker.png") center / cover no-repeat;
}

.blog-hero h1 {
  max-width: 820px;
}

.blog-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.65;
}

.blog-cta {
  min-height: 46px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.blog-section,
.blog-footer {
  padding: 28px 40px;
  border-top: 1px solid var(--line);
}

.blog-section h2 {
  font-size: 1.55rem;
}

.blog-section p,
.blog-section li,
.blog-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.blog-section ol {
  margin: 16px 0;
  padding-left: 22px;
}

.blog-section li + li {
  margin-top: 8px;
}

.comparison-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.comparison-grid > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.comparison-grid h3 {
  margin: 0 0 8px;
}

.comparison-grid p {
  margin: 0;
}

.faq-block details {
  border-bottom: 1px solid var(--line);
}

.faq-block summary {
  padding: 16px 0;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-block details p {
  margin: 0;
  padding-bottom: 16px;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #f7fbfe;
}

@media (max-width: 820px) {
  .lookup-card,
  .help-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .database-header,
  .blog-footer,
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .database-header input {
    max-width: none;
  }

  .blog-hero,
  .blog-section,
  .blog-footer {
    padding: 22px;
  }
}
