:root {
  color-scheme: light;
  --bg: #f5efe6;
  --bg-soft: #fdfdf6;
  --text: #5d4e37;
  --muted: #8b7355;
  --line: #d8ccb8;
  --accent: #e2725b;
  --accent-secondary: #a1b56c;
  --accent-soft: rgba(226, 114, 91, 0.14);
  --surface-shadow: 0 10px 26px rgba(93, 78, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top right, #f8ddd2 0%, #f1e6d6 35%, var(--bg) 72%);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: rgba(253, 253, 246, 0.85);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 18px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a.active {
  color: var(--text);
  font-weight: 700;
}

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

.lang-switch {
  padding: 8px 12px;
  font-size: 0.9rem;
}

header .btn:hover {
  text-decoration: none;
}

main {
  padding: 70px 0 50px;
}

.hero {
  background: linear-gradient(160deg, rgba(226, 114, 91, 0.16), rgba(161, 181, 108, 0.14));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 5vw, 46px);
  box-shadow: var(--surface-shadow);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 65ch;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.nav-badge {
  margin-bottom: 0;
  white-space: nowrap;
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text);
}

.btn.primary {
  border-color: #cf6a54;
  background: linear-gradient(180deg, #e6846f 0%, var(--accent) 100%);
  color: #fff8f3;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #eb907b 0%, #d96851 100%);
}

.section {
  margin-top: 34px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(253, 253, 246, 0.82);
  box-shadow: var(--surface-shadow);
}

ul {
  padding-left: 20px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 0 40px;
  font-size: 0.95rem;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-meta {
  text-align: center;
}

.termly-badge {
  display: inline-flex;
}

.termly-badge img {
  display: block;
}

.legal h1 {
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal section {
  margin-top: 24px;
}

.policy-content,
.policy-content * {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: var(--muted) !important;
  background: transparent !important;
}

.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4,
.policy-content strong {
  color: var(--text) !important;
}

.policy-content a,
.policy-content a * {
  color: var(--accent) !important;
}

.policy-content table {
  width: 100% !important;
  border-color: var(--line) !important;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.feature-card {
  background: #fff9f2;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

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

.screenshot-card {
  border: none;
  border-radius: 14px;
  background: #efe7da;
  padding: 10px;
}

.screenshot-placeholder {
  height: 320px;
  border-radius: 10px;
  border: 1px dashed #d8b6a7;
  background: linear-gradient(180deg, rgba(226, 114, 91, 0.18), rgba(161, 181, 108, 0.22));
  display: grid;
  place-items: center;
  color: #7f6a4b;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

.screenshot-image {
  width: 100%;
  height: clamp(460px, 68vh, 760px);
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: contain;
  object-position: top center;
  display: block;
}

.screenshot-caption {
  margin: 10px 2px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.app-kicker {
  color: #9a563f;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.secondary {
  border-color: #92a463;
  background: linear-gradient(180deg, #b5c987 0%, var(--accent-secondary) 100%);
  color: #fffdf8;
}

.secondary:hover {
  background: linear-gradient(180deg, #bfd28f 0%, #95a960 100%);
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-right {
    width: 100%;
  }
}