:root {
  --bg-start: #fdf9f0;
  --bg-mid: #f5e8d3;
  --bg-end: #e8d4b5;
  --ink: #2c1810;
  --ink-soft: #6e5c4a;
  --ink-faint: #9c8870;
  --accent: #e0a13e;
  --accent-strong: #c98620;
  --card: #ffffff;
  --card-stroke: rgba(44, 24, 16, 0.06);
  --shadow: 0 8px 32px rgba(44, 24, 16, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 980px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", "Inter", system-ui, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 60%, var(--bg-end) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

header.site {
  padding: 28px 0 12px;
}

header.site .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

header.site .brand .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe9b8, #e0a13e);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(224, 161, 62, 0.25);
}

header.site .brand .icon svg { width: 22px; height: 22px; }

header.site .brand .name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

header.site nav.links {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

header.site nav.links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

header.site nav.links a:hover { color: var(--accent-strong); }

main { padding: 40px 0 80px; }

.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero .lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-store-badge:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }

.app-store-badge .label-small { font-size: 11px; opacity: 0.8; line-height: 1; }
.app-store-badge .label-big { font-size: 19px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature .ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff5dc, #ffd58a);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.feature .ic svg { width: 22px; height: 22px; color: var(--accent-strong); }

.feature h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600;
}

.feature p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

.doc {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-lg);
  padding: 48px clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.doc h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.doc .meta {
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 32px;
}

.doc h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

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

.doc p { margin: 0 0 14px; color: var(--ink); }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 6px; color: var(--ink); }

.doc a { color: var(--accent-strong); text-decoration: none; border-bottom: 1px solid rgba(201, 134, 32, 0.3); transition: border-color 0.15s ease; }
.doc a:hover { border-bottom-color: var(--accent-strong); }

.doc strong { font-weight: 600; }

.callout {
  background: linear-gradient(135deg, rgba(255, 245, 220, 0.7), rgba(255, 213, 138, 0.4));
  border: 1px solid rgba(224, 161, 62, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 18px 0 22px;
}

.callout p:last-child { margin-bottom: 0; }

footer.site {
  padding: 40px 0 60px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
}

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

footer.site a {
  color: var(--ink-soft);
  text-decoration: none;
}

footer.site a:hover { color: var(--accent-strong); }

@media (max-width: 600px) {
  header.site nav.links { display: none; }
  .hero { padding: 32px 0 24px; }
  .doc { padding: 32px 22px; }
}
