/* Kaakha website (task 077). The app's Classic brand: indigo and marigold. System fonts only,
   so the site makes no third-party requests. */

:root {
  --indigo: #3949ab;
  --indigo-deep: #283593;
  --indigo-ink: #1a237e;
  --marigold: #f2a900;
  --marigold-soft: #fff4d6;
  --bg: #fbf9f4;
  --surface: #ffffff;
  --surface-alt: #f2f0fa;
  --text: #1c1b2e;
  --muted: #55536b;
  --line: #e6e3ef;
  --shadow: 0 1px 2px rgb(28 27 46 / 6%), 0 8px 24px rgb(28 27 46 / 6%);
  --radius: 18px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121c;
    --surface: #1b1b29;
    --surface-alt: #22223a;
    --text: #ecebf5;
    --muted: #a9a7c0;
    --line: #2e2d45;
    --marigold-soft: #3a3013;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--indigo);
  text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  a {
    color: #9fa8ff;
  }
}

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

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 560px) {
  .nav .hide-sm {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}

.hero::before {
  /* The two scripts from the logo, large and faint, behind the headline. */
  content: "क ख  ಕ ಖ";
  position: absolute;
  right: -60px;
  bottom: -30px;
  font-size: clamp(120px, 22vw, 260px);
  font-weight: 800;
  line-height: 1;
  color: var(--indigo);
  opacity: 0.045;
  white-space: nowrap;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--marigold-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--indigo);
  background-image: linear-gradient(transparent 72%, color-mix(in srgb, var(--marigold) 55%, transparent) 72%);
}

@media (prefers-color-scheme: dark) {
  .hero h1 .accent {
    color: #aab3ff;
  }
}

.hero p.lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--indigo);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgb(57 73 171 / 28%);
}

.button:hover {
  background: var(--indigo-deep);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}

.button.ghost:hover {
  background: var(--surface);
}

.soon {
  color: var(--muted);
  font-size: 15px;
}

.hero-card {
  justify-self: center;
  width: min(100%, 360px);
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--indigo) 0%, var(--indigo-ink) 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgb(26 35 126 / 35%);
}

.hero-card .logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 12%);
}

.bubble {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgb(255 255 255 / 10%);
  font-size: 15px;
  line-height: 1.45;
}

.bubble .label {
  display: block;
  margin-bottom: 2px;
  color: var(--marigold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bubble.play::after {
  content: "▶  Listen";
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--marigold);
  color: #1c1b2e;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

section.alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--marigold);
  color: #1c1b2e;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--indigo) 12%, transparent);
  color: var(--indigo);
}

@media (prefers-color-scheme: dark) {
  .icon {
    background: color-mix(in srgb, var(--indigo) 35%, transparent);
    color: #c5cbff;
  }
}

.icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 860px) {
  .steps,
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  section {
    padding: 56px 0;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
}

/* Languages */
.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lang {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.lang .script {
  font-size: 28px;
  font-weight: 700;
  color: var(--indigo);
}

@media (prefers-color-scheme: dark) {
  .lang .script {
    color: #aab3ff;
  }
}

.lang .name {
  color: var(--muted);
  font-weight: 600;
}

/* Privacy in brief */
.promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promise div {
  padding: 22px;
  border-left: 4px solid var(--marigold);
  border-radius: 6px 14px 14px 6px;
  background: var(--surface);
}

.promise strong {
  display: block;
  margin-bottom: 4px;
}

.promise p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 860px) {
  .promise {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--muted);
}

/* ---------- Document pages (privacy, terms, delete account) ---------- */

.doc {
  padding: 48px 0 72px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.doc .updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.doc h2 {
  margin: 36px 0 8px;
  font-size: 22px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.draft {
  margin: 0 0 28px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--marigold-soft);
  border: 1px solid color-mix(in srgb, var(--marigold) 60%, transparent);
  font-size: 15px;
}

.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--marigold-soft);
  border: 1px dashed var(--marigold);
  font-size: 0.92em;
}

.steps-list {
  counter-reset: item;
  list-style: none;
  padding: 0;
}

.steps-list li {
  position: relative;
  margin: 12px 0;
  padding: 14px 16px 14px 56px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps-list li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}
