/* Titik at Tunog — public marketing/info site.
   Palette mirrors the app's design system (see CLAUDE.md → Design System). */

:root {
  --beige: #f8f5f2;
  --orange: #e6a14a;
  --orange-dark: #cf8d3b;
  --brown: #3e2723;
  --green: #6fcf97;
  --yellow: #ffd36b;
  --blue: #6ec1e4;
  --pink: #ff8c94;
  --card: #ffffff;
  --muted: rgba(62, 39, 35, 0.66);
  --line: rgba(62, 39, 35, 0.12);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--brown);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-dark); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 242, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-size: 18px; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--brown); text-decoration: none; font-weight: 600; font-size: 15px; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-links .btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.2s ease;
}
.btn:hover { background: var(--orange-dark); }
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: transparent;
  color: var(--brown);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn.secondary:hover { border-color: var(--orange); color: var(--orange-dark); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; text-align: center; }
.tiles { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; }
.tile {
  width: 62px; height: 62px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 26px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.tile.y { background: var(--yellow); color: var(--brown); }
.tile.b { background: var(--blue); }
.tile.p { background: var(--pink); }
.hero h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 6px; letter-spacing: 1px; color: var(--orange-dark); }
.hero .lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--brown); font-weight: 600; margin: 0 0 4px; }
.hero .sub { color: var(--muted); max-width: 620px; margin: 10px auto 30px; font-size: 17px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 48px 0; }
.section-title { text-align: center; font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; }
.section-intro { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 36px; font-size: 17px; }
.alt { background: #fffdfb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card .pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; color: #fff;
  font-weight: 700; font-size: 20px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--brown); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative;
}
.price.featured { border-color: var(--orange); box-shadow: 0 10px 30px rgba(230, 161, 74, 0.22); }
.price .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.price h3 { margin: 0 0 4px; font-size: 19px; }
.price .amount { font-size: 38px; font-weight: 800; color: var(--brown); }
.price .per { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.price ul { list-style: none; padding: 0; margin: 0 0 20px; }
.price li { padding: 6px 0; color: var(--muted); font-size: 15px; border-bottom: 1px dashed var(--line); }
.price .btn { margin-top: auto; text-align: center; }

.note { background: #fff8ee; border: 1px solid rgba(230,161,74,0.35); border-radius: 14px; padding: 16px 18px; color: var(--brown); font-size: 15px; margin-top: 26px; }

/* ---------- Contact / business ---------- */
.business { display: grid; gap: 8px; max-width: 640px; margin: 0 auto; text-align: center; }
.business .label { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.business .name { font-size: 22px; font-weight: 800; }

/* ---------- Footer ---------- */
footer { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer a { color: var(--brown); text-decoration: none; font-weight: 600; opacity: 0.8; font-size: 15px; }
footer a:hover { opacity: 1; color: var(--orange-dark); }
footer .fine { color: var(--muted); font-size: 13px; width: 100%; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 20px 20px; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 4px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal p, .legal li { color: var(--brown); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--orange-dark); }
.backlink { display: inline-block; margin-bottom: 8px; text-decoration: none; color: var(--muted); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid, .grid.two, .price-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
}
