/* SnapExplain サイト共通スタイル — アプリのアイコン配色に合わせたミニマル design */

:root {
  --bg-deep: #02060e;
  --bg-mid: #06121e;
  --bg-core: #102a40;
  --accent: #f4e6ba;   /* warm amber, アイコンの「A」の色 */
  --accent-dim: #c9bd95;
  --text: #f3f6fa;
  --text-dim: #a8b6c4;
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: radial-gradient(ellipse at 50% 30%, var(--bg-core) 0%, var(--bg-mid) 55%, var(--bg-deep) 100%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  padding: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  padding: 24px max(24px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 12px;
}

header.site .logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #102c44, #06121e);
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--accent);
  font-size: 22px;
  border: 1px solid var(--border);
}

header.site .name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav.top {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px max(24px, env(safe-area-inset-left)) 64px;
}

main.landing {
  max-width: 920px;
  text-align: center;
}

h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

h1 .accent { color: var(--accent); }

p.lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim);
  margin-bottom: 28px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}

p { margin-bottom: 14px; color: var(--text); }

ul, ol { margin: 0 0 14px 20px; }
li { margin-bottom: 6px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.1s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}

.feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.feature h3 {
  color: var(--accent);
  margin-top: 0;
}
.feature p {
  font-size: 14px;
  color: var(--text-dim);
}

footer.site {
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

footer.site nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 12px;
}

.muted { color: var(--text-dim); font-size: 14px; }

table.kv {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
table.kv th, table.kv td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
table.kv th { color: var(--text-dim); font-weight: 500; width: 40%; }

dl.lic dt {
  font-weight: 700;
  margin-top: 16px;
  color: var(--text);
}
dl.lic dd {
  margin-left: 0;
  color: var(--text-dim);
  font-size: 14px;
}
dl.lic dd .license-tag {
  display: inline-block;
  background: rgba(244, 230, 186, 0.15);
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}
