/* Tangramify website — same visual language as the app: sky, meadow, glossy cards, navy ink. */
:root {
  --sky-top: #61d9fd;
  --sky-bottom: #bdedff;
  --meadow: #7ecc38;
  --meadow-dark: #04a03f;
  --ink: #1f2b4d;
  --ink-soft: #3d4a6b;
  --card: #fffdf7;
  --orange: #ff8a1f;
  --orange-dark: #c4600e;
  --sky: #149ef0;
  --line: rgba(31, 43, 77, 0.14);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 70%, #e6f8ff 100%) fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Meadow hills along the bottom of the viewport, purely decorative. */
body::after {
  content: "";
  position: fixed;
  left: -20vw;
  right: -20vw;
  bottom: -32vh;
  height: 46vh;
  border-radius: 50%;
  background: var(--meadow);
  box-shadow: -30vw -4vh 0 0 var(--meadow-dark);
  z-index: -1;
}

a { color: var(--sky); font-weight: 700; }
a:hover { color: var(--ink); }

.wrap { max-width: 860px; margin: 0 auto; padding: 24px 20px 120px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.25rem;
}

.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 3px 0 rgba(31, 43, 77, 0.25); }

.lang {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang a {
  padding: 6px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
}

.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

.card {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  padding: 28px clamp(20px, 5vw, 44px);
  box-shadow: 0 8px 0 rgba(31, 43, 77, 0.22);
  margin-bottom: 28px;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 8px; font-weight: 900; }
h2 { font-size: 1.3rem; margin: 28px 0 8px; font-weight: 900; }
h3 { font-size: 1.08rem; margin: 20px 0 4px; font-weight: 800; }
p, li { color: var(--ink-soft); }
.meta { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 12px; }

.hero { text-align: center; padding-top: 12px; }
.hero img.logo { width: min(420px, 86vw); height: auto; filter: drop-shadow(0 10px 18px rgba(31, 43, 77, 0.22)); }
.hero p.lead { font-size: 1.15rem; color: var(--ink); max-width: 560px; margin: 8px auto 20px; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0 0 24px; list-style: none; }
.pills li {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  background: linear-gradient(180deg, #ffa24a, var(--orange) 55%, #f27e12);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 6px 0 var(--orange-dark);
  text-shadow: 0 2px 0 rgba(31, 43, 77, 0.3);
}
.button:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 var(--orange-dark); }
.button.secondary { background: linear-gradient(180deg, #4dbbff, var(--sky) 55%, #0f86cf); box-shadow: 0 6px 0 #0c6aa3; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.faq details {
  border-top: 2px solid var(--line);
  padding: 12px 0;
}
.faq details:last-child { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); list-style-position: outside; }
.faq details p { margin: 8px 0 0; }

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 18px 22px;
  margin-top: 8px;
}
.contact strong { font-size: 1.05rem; }

footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 700;
}
footer a { margin: 0 8px; }
