/* Theme matched to the live coinid.org site */

:root {
  --bg: #fbf9f8;            /* warm off-white, from coinid.org body */
  --ink: #333333;           /* body & heading text */
  --navy: #252242;          /* "COIN" logotype color */
  --gray: #8a8a8f;
  --border: #e8e3dd;
  --card: #ffffff;

  --teal: #0aa49a;          /* primary button color on coinid.org */
  --purple: #617af7;        /* secondary button color on coinid.org */
  --peach: #ffca7a;
  --sky: #65e1fb;

  --radius: 3px;            /* coinid.org button radius */
  --radius-lg: 10px;

  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; color: var(--ink); margin: 0 0 18px; letter-spacing: 0.01em; }
h1 { font-size: 52px; }
h2 { font-size: 32px; margin-top: 0; }
h3 { font-size: 20px; margin-bottom: 8px; }
p { margin: 0 0 18px; }

a { color: var(--ink); transition: color 100ms ease; }
a:hover { color: var(--purple); }

/* Header */
.header { padding: 22px 0; }
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--navy); }
.brand img {
  display: block;
  height: 40px;
  width: auto;
}
.brand small {
  font-weight: 400;
  font-size: 15px;
  color: var(--gray);
  margin-left: 4px;
}
.header nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 16px;
  margin-left: 26px;
}
.header nav a:hover, .header nav a.active { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .kicker {
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 10px;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 20px; max-width: 720px; margin: 0; }
.hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 26px;
}

/* Sections */
.section { padding: 56px 0; }
.section--banner { background: var(--peach); padding: 22px 0; }
.section--banner p { margin: 0; font-size: 16.5px; }

/* Wallet cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(51, 51, 51, 0.10);
  color: var(--ink);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: #666; font-size: 15.5px; }
.card .platform {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.card--featured { border: 2px solid var(--teal); }
.badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

/* Icon colors */
.icon--purple { background: var(--purple); }
.icon--teal { background: var(--teal); }
.icon--sky { background: var(--sky); }
.icon--peach { background: var(--peach); color: var(--ink); }
.icon--navy { background: var(--navy); }
.icon--gray { background: var(--gray); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 56px;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tip box */
.tip {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin: 24px 0;
  font-size: 16px;
}
.tip p { margin: 0; }

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  font-size: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
th {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
}
tr:last-child td { border-bottom: none; }

code {
  font-family: var(--mono);
  font-size: 14.5px;
  background: #f1ece6;
  border-radius: var(--radius);
  padding: 2px 7px;
  white-space: nowrap;
}
.tip code, table code { background: #f6f2ee; }

ol:not(.steps), ul { padding-left: 24px; }
li { margin: 6px 0; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--gray);
  font-size: 15px;
}
.footer a { color: var(--ink); }
.footer p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1, .hero h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .hero { padding: 44px 0 36px; }
  .hero .lead { font-size: 18px; }
  .section { padding: 40px 0; }
  .header nav a { margin-left: 14px; font-size: 15px; }
  .brand small { display: none; }
}
