/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

a {
  color: var(--title-bar);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Logo mark ---------- */
.logo-mark {
  width: 40px;
  height: 40px;
}
.logo-mark circle:not(.logo-mark-core) {
  mix-blend-mode: multiply;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(44, 37, 48, 0.08);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
}
.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
}
.site-nav a:hover {
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--title-bar);
  color: var(--paper);
  margin-top: 64px;
}
.site-footer .brand-name,
.site-footer h1, .site-footer h2, .site-footer h3 {
  color: var(--paper);
}
.site-footer-inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer .site-nav a {
  color: var(--paper);
  opacity: 0.85;
}
.site-footer .site-nav a:hover {
  opacity: 1;
}
.site-footer-note {
  opacity: 0.7;
  font-size: 0.9em;
  margin: 0;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--header-bar);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.button-primary {
  background: var(--c6);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
}
.hero-mark svg {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 2.4rem;
  max-width: 720px;
  margin: 0 auto 16px;
}
.hero-lead {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--ink-soft);
}

/* ---------- Life areas ---------- */
.life-areas {
  text-align: center;
  padding: 32px 24px;
}
.life-areas-grid {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.life-area-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--chip-color);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Product card ---------- */
.featured-products {
  padding: 32px 24px;
}
.product-card {
  border: 1px solid rgba(44, 37, 48, 0.12);
  border-radius: 16px;
  padding: 32px;
  background: #fff;
}
.product-card-tagline {
  color: var(--ink-soft);
}
.product-card-tiers {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.product-card-tiers li {
  padding: 4px 0;
}

/* ---------- Generic page ---------- */
.page {
  padding: 48px 24px;
}
.page h1 {
  font-size: 2rem;
}

/* ---------- Product detail page ---------- */
.tier-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 8px;
}
.tier-card {
  border: 1px solid rgba(44, 37, 48, 0.12);
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--title-bar);
}
.tier-table-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.screenshot-placeholder {
  border: 1px dashed rgba(44, 37, 48, 0.25);
  border-radius: 12px;
  padding: 48px 16px;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(44, 37, 48, 0.03);
}
.screenshot-placeholder span {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---------- Blog ---------- */
.post-list {
  list-style: none;
  padding: 0;
}
.post-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(44, 37, 48, 0.1);
}
.post-list a {
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-heading);
}
.post-excerpt {
  color: var(--ink-soft);
  margin: 8px 0 0;
}
.post-meta {
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  margin-top: 24px;
}
.contact-form label {
  font-weight: 700;
  margin-top: 12px;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(44, 37, 48, 0.2);
  background: #fff;
  color: var(--ink);
}
.contact-form button {
  margin-top: 16px;
  align-self: flex-start;
}
.contact-form-status {
  color: var(--ink-soft);
  min-height: 1.2em;
}
