/* SMART SEAMEN — public pages stylesheet (Round 1, AdSense review)
   Light mode only. Used ONLY by public static pages (/welcome/, /about/,
   /guides/...). The app itself never loads this file. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --ink: #0a1526;
  --muted: #5a6b85;
  --line: #e6e9ef;
  --accent: #2AABEE;
  --accent-dark: #1E8CC0;
  --accent-soft: #EAF7FD;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; }

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

/* ---------- header ---------- */
.pub-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.pub-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 1.2px;
  font-size: 14px;
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.pub-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pub-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.pub-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.pub-nav a.signin {
  background: var(--accent);
  color: #fff;
  margin-left: 6px;
}
.pub-nav a.signin:hover { background: var(--accent-dark); color: #fff; }

/* ---------- layout ---------- */
.pub-main { display: block; }
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-narrow { max-width: 760px; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 64px 20px 48px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--accent-dark);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 auto 16px;
  max-width: 720px;
}
.hero .sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: transparent; }

.strip {
  text-align: center;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.strip strong { color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section h2 {
  font-size: 26px;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  text-align: center;
}
.section .lead {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* ---------- app icon grid ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.tool {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 28px 16px 24px;
  text-align: center;
}
.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 10px;
  overflow: hidden;
}
.tool-icon svg { width: 34px; height: 34px; display: block; }
.tool-icon img { width: 72px; height: 72px; object-fit: cover; display: block; }
.tool-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}
.tool-desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 280px;
  margin: 0 auto;
}

/* guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.guide-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
}
.guide-card:hover { border-color: var(--accent); }
.guide-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.guide-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.guide-card p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
.guide-card .meta { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.cta-band h2 { margin: 0 0 10px; font-size: 28px; color: #fff; }
.cta-band p { margin: 0 auto 26px; color: rgba(255, 255, 255, 0.75); max-width: 520px; }
.cta-band .btn {
  background: #fff;
  border-color: #fff;
  color: var(--accent-dark);
}
.cta-band .btn:hover {
  background: var(--soft-blue);
  border-color: var(--soft-blue);
  color: var(--accent-dark);
}

/* ---------- article ---------- */
.article-hero { padding: 56px 20px 8px; text-align: center; }
.article-hero .wrap-narrow { margin: 0 auto; }
.article-hero h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
.article-hero .meta { color: var(--muted); font-size: 14.5px; }
.article-body { padding: 24px 20px 64px; }
.article-body .wrap-narrow { margin: 0 auto; }
.article-body h2 { font-size: 22px; margin: 36px 0 12px; text-align: left; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin-bottom: 10px; }
.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin: 28px 0;
}
.callout strong { display: block; margin-bottom: 6px; }
.callout p { margin: 0; }
.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 32px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- page hero (about/guides) ---------- */
.page-hero { padding: 56px 20px 40px; text-align: center; }
.page-hero h1 { font-size: 32px; margin: 0 0 12px; letter-spacing: -0.4px; }
.page-hero .sub { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 18px; }
.prose { padding: 8px 0 64px; }
.prose .wrap-narrow { margin: 0 auto; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; text-align: left; }
.prose p { margin: 0 0 16px; }

/* ---------- footer ---------- */
.pub-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 32px 20px;
  text-align: center;
}
.pub-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: center;
  margin-bottom: 14px;
}
.pub-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pub-footer nav a:hover { color: var(--ink); }
.pub-footer .copy { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 44px; }
}

/* ---------- small screens: keep logo + name + nav on one line ---------- */
@media (max-width: 480px) {
  .pub-header-inner { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 12px; letter-spacing: 0.8px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .pub-nav a { font-size: 13px; padding: 10px 6px; }
  .pub-nav a.signin { margin-left: 2px; padding: 10px 12px; }
}
