/* umofam — claymorphism theme. Brand colors: #6a00f4 (violet) and #ffd6a5 (peach). */
:root {
  --violet: #6a00f4;
  --violet-deep: #4e00b5;
  --violet-soft: #ece0ff;
  --peach: #ffd6a5;
  --peach-soft: #fff1e0;
  --bg: #fff6ec;
  --text: #2a1d3d;
  --muted: #6f6280;
  --clay: 18px 18px 36px rgba(106, 0, 244, 0.14),
          -10px -10px 28px rgba(255, 255, 255, 0.9),
          inset -6px -6px 14px rgba(106, 0, 244, 0.07),
          inset 6px 6px 14px rgba(255, 255, 255, 0.85);
  --clay-peach: 16px 16px 32px rgba(214, 140, 60, 0.25),
                -10px -10px 26px rgba(255, 255, 255, 0.85),
                inset -8px -8px 16px rgba(214, 140, 60, 0.22),
                inset 8px 8px 16px rgba(255, 255, 255, 0.6);
  --clay-violet: 12px 14px 28px rgba(106, 0, 244, 0.35),
                 inset -6px -6px 12px rgba(40, 0, 100, 0.35),
                 inset 6px 6px 12px rgba(190, 150, 255, 0.55);
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(106, 0, 244, 0.10), transparent 70%),
    radial-gradient(500px 400px at 0% 40%, rgba(255, 214, 165, 0.7), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--violet); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { padding: 18px 0; }
header .bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: var(--peach-soft); border-radius: 28px; padding: 10px 14px 10px 12px; box-shadow: var(--clay);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--violet); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 4px 4px 10px rgba(106, 0, 244, 0.25); }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 18px; }
nav a:hover { background: var(--violet-soft); }
nav a.active { background: var(--violet); color: #fff; box-shadow: var(--clay-violet); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding: 48px 0 64px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; margin: 0 0 16px; color: var(--violet); font-weight: 900; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 26px; }
.photo-clay { background: var(--peach); padding: 14px; border-radius: 40px; box-shadow: var(--clay-peach); }
.photo-clay img { border-radius: 28px; }

.btn {
  display: inline-block; background: var(--violet); color: #fff; text-decoration: none; font-weight: 800;
  padding: 13px 26px; border-radius: 22px; box-shadow: var(--clay-violet); transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.peach { background: var(--peach); color: var(--text); box-shadow: var(--clay-peach); }

h2 { font-size: 30px; margin: 0 0 22px; color: var(--violet); font-weight: 900; }

/* Family cards */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 72px; }
.person { background: var(--peach-soft); border-radius: 36px; padding: 12px; box-shadow: var(--clay); }
.person img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 26px; }
.person div { padding: 14px 10px 8px; }
.person h3 { margin: 0; font-size: 22px; font-weight: 900; }
.person p { margin: 2px 0 0; color: var(--muted); }

/* App card */
.app { display: flex; gap: 20px; align-items: center; background: var(--peach); border-radius: 36px; padding: 22px 26px; margin-bottom: 80px; box-shadow: var(--clay-peach); }
.app img { width: 80px; height: 80px; border-radius: 20px; box-shadow: 6px 8px 16px rgba(60, 20, 120, 0.3); }
.app h3 { margin: 0; font-size: 21px; font-weight: 900; }
.app p { margin: 2px 0 0; color: #5a4a3a; }

/* Documents */
.doc { max-width: 800px; padding: 40px 20px 80px; }
.doc h1 { font-size: 42px; margin: 0 0 4px; color: var(--violet); font-weight: 900; }
.doc h2 { font-size: 22px; margin: 30px 0 8px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.panel { background: var(--peach-soft); border-radius: 36px; padding: 28px 30px; margin: 26px 0; box-shadow: var(--clay); }
.panel.peach { background: var(--peach); box-shadow: var(--clay-peach); }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* Footer */
footer { padding: 0 0 28px; }
footer .bar {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  background: var(--violet); color: #f3eaff; border-radius: 28px; padding: 18px 24px; box-shadow: var(--clay-violet); font-size: 14px;
}
footer a { color: #fff; font-weight: 700; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 48px; gap: 28px; }
  .people { grid-template-columns: 1fr; }
  .app { flex-direction: column; text-align: center; }
  header .bar { justify-content: center; }
  nav a { padding: 7px 12px; font-size: 14px; }
}

/* Header right side + language switcher */
header .right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 14px; color: var(--violet); padding: 8px 14px; border-radius: 18px;
  background: #fff; box-shadow: var(--clay);
}
.lang summary::-webkit-details-marker { display: none; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 10; width: 210px; max-height: 70vh; overflow-y: auto;
  background: var(--peach-soft); border-radius: 24px; padding: 8px; box-shadow: var(--clay);
  display: grid; grid-template-columns: 1fr; gap: 2px;
}
.lang-menu button {
  font: inherit; font-weight: 700; text-align: left; border: 0; background: transparent; color: var(--text);
  padding: 8px 12px; border-radius: 14px; cursor: pointer;
}
.lang-menu button:hover { background: var(--violet-soft); }
.lang-menu button[aria-current="true"] { background: var(--violet); color: #fff; }

/* Home teaser */
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 80px; padding: 28px 32px; }
.teaser h2 { margin-bottom: 6px; }
.teaser p { margin: 0; color: #5a4a3a; }

/* Apps page */
.page-head { padding: 36px 0 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 50px); margin: 0 0 8px; color: var(--violet); font-weight: 900; }
.page-head p { font-size: 19px; color: var(--muted); margin: 0; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; margin-bottom: 80px; }
.app-card { background: var(--peach); border-radius: 36px; padding: 28px; box-shadow: var(--clay-peach); }
.app-card img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 6px 8px 16px rgba(60, 20, 120, 0.3); margin-bottom: 16px; }
.app-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.app-card p { margin: 0 0 12px; color: #5a4a3a; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #fff6ec; border-radius: 14px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.tag.soon { background: var(--violet); color: #fff; }
.links a { font-weight: 800; }
.app-card.placeholder { background: var(--peach-soft); box-shadow: var(--clay); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 260px; }
.ph-icon { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; font-size: 48px; font-weight: 900; color: var(--violet); background: var(--violet-soft); box-shadow: var(--clay); margin-bottom: 16px; }
.app-card.placeholder p { color: var(--muted); font-weight: 700; }
.note { background: var(--violet-soft); border-radius: 18px; padding: 10px 16px; font-size: 14px; color: var(--violet-deep); }
@media (max-width: 760px) { header .right { justify-content: center; } }
.tag.free { background: #e6f7ec; color: #16743d; }

/* Privacy: per-app rows */
.app-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(90, 60, 30, 0.12); scroll-margin-top: 20px; }
.app-row:first-of-type { border-top: 0; }
.app-row img { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: 4px 6px 12px rgba(60, 20, 120, 0.2); }
.app-row h3 { margin: 0 0 2px; font-size: 18px; font-weight: 900; }
.app-row p { margin: 0; color: #5a4a3a; }
.app-row:target { background: rgba(106, 0, 244, 0.06); border-radius: 18px; padding-left: 12px; padding-right: 12px; }
.doc ul li { margin-bottom: 6px; }
.links + .links { margin-top: -6px; }
