/* 3catwifi.com — shared styles. Plain, readable, works on phones. */

:root {
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e3e3e6;
  --bg: #ffffff;
  --panel: #f6f7f9;
  --accent: #1f4e8c;
  --accent-dark: #163a69;
  --max: 920px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}
.site-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:first-child { margin-left: 0; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* Main */
main { padding: 40px 0 56px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }

.lead { font-size: 20px; color: var(--muted); max-width: 680px; }
.small { font-size: 14px; color: var(--muted); }

/* App cards (home page) */
.app-list { display: grid; gap: 20px; margin-top: 32px; }
.app-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.app-card img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex: none;
}
.app-card h2 { margin: 0 0 6px; font-size: 22px; }
.app-card p { margin-bottom: 12px; }
.links a { margin-right: 18px; white-space: nowrap; }

/* App page hero */
.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.hero img.icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
}
.hero .text { flex: 1 1 320px; }

.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-dark); color: #fff; }

figure { margin: 28px 0; }
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.note {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: var(--panel);
  border-radius: 6px;
  margin: 20px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .app-card { flex-direction: column; }
  .site-nav a { margin-left: 14px; }
}
