/*
 * Sarovar website styles
 * ----------------------------------------------------------------
 * Sections, in order:
 *   1. Design tokens (colours, fonts) and light/dark themes
 *   2. Base and layout
 *   3. Header
 *   4. Frame 1: hero (arch window and phone mockup)
 *   5. Frame 2: "Inside Sarovar" bento grid and its cards
 *   6. Footer
 *   7. Legal and support pages
 *
 * To change the brand palette or fonts, edit the custom properties
 * in :root only. Everything else reads from them.
 */

:root {
  --ivory: #fdfbf8;
  --saffron: #f97015;
  --rose: #c38e91;
  --blush: #f6e9e2;
  --blush-2: #eed8d3;
  --ink: #38221c;
  --ink-2: #6b4d45;
  --rose-ink: #9a6467;
  --line: #e9dacf;
  --display: "Eczar", "Tiro Devanagari Hindi", Georgia, serif;
  --body: "Mukta", "Hind", "Noto Sans Devanagari", system-ui, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #1e1513;
    --blush: #2a1d1b;
    --blush-2: #3a2826;
    --ink: #fff3e2;
    --ink-2: #d8c1b5;
    --rose-ink: #d9aaad;
    --line: #3c2b27;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ivory: #1e1513;
  --blush: #2a1d1b;
  --blush-2: #3a2826;
  --ink: #fff3e2;
  --ink-2: #d8c1b5;
  --rose-ink: #d9aaad;
  --line: #3c2b27;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}
html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 4px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.top {
  position: absolute;
  left: 0;
  right: 0;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
}
.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.brand .wm {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.brand b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.brand span {
  font-family: var(--display);
  color: var(--rose-ink);
  font-size: 0.95rem;
}
.top nav {
  display: flex;
  gap: 2rem;
  font-size: 0.97rem;
}
.top nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 0.6rem 0;
  border-bottom: 1px solid transparent;
}
.top nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rose);
}

/* Frame 1 */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 56px;
}
.overline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rose-ink);
  font-family: var(--display);
  font-size: 1.05rem;
}
.overline::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rose);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 1.3rem;
  max-width: 12ch;
}
.hero .lede {
  margin-top: 1.6rem;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 30rem;
  line-height: 1.7;
}
.actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
}
.dl {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0.55rem 1.5rem 0.5rem 1.1rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 12px 28px -16px rgba(56, 34, 28, 0.6);
}
.dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -16px rgba(56, 34, 28, 0.7);
}
.dl svg {
  width: 24px;
  height: 24px;
  color: var(--saffron);
}
.dl .t {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.dl .t small {
  font-size: 0.74rem;
  opacity: 0.75;
  font-weight: 400;
}
.dl .t span {
  font-size: 1.08rem;
  font-weight: 500;
}
.langs {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.4;
}
.langs span {
  font-family: var(--display);
  color: var(--ink);
}
.langs .te {
  font-family: "Noto Serif Telugu", serif;
}

/* Arch window */
.window {
  justify-self: center;
  position: relative;
  width: min(100%, 400px);
}
.window .frame {
  position: relative;
  aspect-ratio: 400/520;
  border-radius: 200px 200px 22px 22px;
  background: var(--blush);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.window .frame::before,
.window .frame::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}
.window .frame::before {
  inset: 10px;
  border: 1px solid color-mix(in srgb, var(--rose) 55%, transparent);
  border-radius: 190px 190px 14px 14px;
}
.window .frame::after {
  inset: 16px;
  border: 1px solid color-mix(in srgb, var(--rose) 25%, transparent);
  border-radius: 184px 184px 10px 10px;
}
.window .sun {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 150px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--saffron) 22%, transparent),
    transparent 70%
  );
}
.phone {
  position: relative;
  z-index: 1;
  width: 232px;
  aspect-ratio: 9/19.5;
  margin-bottom: -64px;
  border-radius: 36px;
  padding: 6px;
  background: linear-gradient(
    140deg,
    #6b4c42 0%,
    #2e1d18 22%,
    #1a100d 60%,
    #3f2b25 85%,
    #6b4c42 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 2px rgba(0, 0, 0, 0.35),
    0 34px 60px -28px rgba(80, 40, 25, 0.6),
    0 8px 18px -10px rgba(80, 40, 25, 0.35);
  animation: rise 1s ease-out both;
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  right: -2.5px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #2a1a15, #5a4038);
}
.phone::before {
  top: 19%;
  height: 38px;
}
.phone::after {
  top: 30%;
  height: 64px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone {
    animation: none;
  }
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #fff4e2;
}
.screen .cam {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #0e0806;
  box-shadow:
    inset 0 0 0 2px #241612,
    0 0 0 1px rgba(255, 255, 255, 0.25);
  z-index: 4;
}
.screen .glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 32%);
}
.screen svg.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px 0;
  font-size: 9px;
  color: #4a2418;
  height: 28px;
}
.sbar .ic {
  display: flex;
  gap: 4px;
  align-items: center;
}
.sbar svg {
  width: 11px;
  height: 11px;
  fill: #4a2418;
}
.lock {
  position: relative;
  z-index: 3;
  padding: 18px 18px 0;
  color: #3e1c12;
}
.lock .d {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 11.5px;
}
.lock .d svg {
  width: 11px;
  height: 11px;
  stroke: #3e1c12;
  fill: none;
  stroke-width: 2;
}
.lock .t {
  font-family: var(--body);
  font-weight: 300;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-top: 4px;
}
.lock .t span {
  display: block;
}
.lockicon {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(253, 251, 248, 0.55);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lockicon svg {
  width: 12px;
  height: 12px;
  stroke: #3e1c12;
  fill: none;
  stroke-width: 2;
}
.caption {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.caption em {
  font-style: normal;
  font-family: var(--display);
  color: var(--rose-ink);
}

@media (max-width: 880px) {
  .top nav {
    display: none;
  }
  .hero {
    min-height: 0;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-top: 112px;
    padding-bottom: 4rem;
  }
  .window {
    width: min(100%, 360px);
  }
}

/* Frame 2 */
.inside {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--blush);
  border-top: 1px solid var(--line);
}
.inside .wrap {
  padding-top: 1.6rem;
  padding-bottom: 0.9rem;
}
.inside .head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: end;
}
.inside h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-top: 0.7rem;
  max-width: 20ch;
}
.inside .head p {
  color: var(--ink-2);
  font-weight: 300;
  font-size: 1.12rem;
  max-width: 27rem;
  line-height: 1.7;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 282px);
  gap: 14px;
  margin-top: 1rem;
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 40px -34px rgba(110, 60, 40, 0.5);
}
.card .lbl {
  font-family: var(--display);
  color: var(--rose-ink);
  font-size: 0.92rem;
  line-height: 1.2;
}
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-top: 0.15rem;
}
.card p {
  color: var(--ink-2);
  font-weight: 300;
  font-size: 0.97rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  max-width: 24rem;
}
.bento {
  grid-template-areas: "status status lang wall" "alarm ring kahani wall";
}
.c-status {
  grid-area: status;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.c-status > div:first-child {
  padding: 1.35rem 0;
}
.c-lang {
  grid-area: lang;
}
.c-wall {
  grid-area: wall;
}
.c-alarm {
  grid-area: alarm;
}
.c-ring {
  grid-area: ring;
}
.c-kahani {
  grid-area: kahani;
}

/* alarm widget */
.c-alarm,
.c-ring {
  padding-bottom: 1.1rem;
}
.c-alarm .ui-alarm {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem 0.6rem;
  gap: 0.45rem;
}
.ui-alarm .in {
  font-size: 0.74rem;
  color: var(--ink-2);
  margin-top: 0.2rem;
}
.dayrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.dayrow em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b94a00;
}
.tonebar .art {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
  background: linear-gradient(160deg, #f97015, #c38e91);
  display: grid;
  place-items: center;
  color: #fdfbf8;
  font-family: var(--display);
  font-size: 0.8rem;
}
.c-alarm .ui-alarm .tm {
  font-size: 2.1rem;
}
.c-alarm .days {
  gap: 3px;
  margin-top: 0;
}
.c-alarm .days span {
  width: 21px;
  height: 21px;
  font-size: 0.66rem;
}
.c-alarm .tonebar {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
}
.c-alarm .pbtn {
  width: 26px;
  height: 26px;
}
.ui-alarm {
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.05rem 1.05rem;
}
.ui-alarm .row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ui-alarm .tm {
  font-weight: 300;
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
}
.ui-alarm .tm small {
  font-size: 0.95rem;
  letter-spacing: 0;
  margin-left: 0.2rem;
  color: var(--ink-2);
}
.sw {
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: var(--saffron);
  position: relative;
  flex: none;
}
.sw::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.days {
  display: flex;
  gap: 5px;
  margin-top: 0.8rem;
}
.days span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--saffron) 14%, transparent);
  color: #b94a00;
}
.tonebar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.pbtn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.pbtn::after {
  content: "";
  border-left: 8px solid var(--ivory);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}
.tonebar .nm {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tonebar .pr {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  margin-top: 0.4rem;
  position: relative;
}
.tonebar .pr i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22%;
  border-radius: 2px;
  background: var(--saffron);
}
.tonebar .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--ink-2);
  margin-top: 0.2rem;
}

/* alarm ringing */
.dawn {
  flex: 1;
  min-height: 120px;
  margin-top: 0.6rem;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  color: #4a2418;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.6rem 0.6rem 3.1rem;
  background: linear-gradient(180deg, #fff7e8 0%, #ffe6c8 55%, #fbc7a0 100%);
  border: 1px solid var(--line);
}
.dawn .sun {
  position: absolute;
  left: 50%;
  bottom: -80px;
  width: 124px;
  height: 124px;
  margin-left: -62px;
  border-radius: 50%;
  background: #f97015;
  box-shadow:
    0 0 0 14px rgba(249, 112, 21, 0.12),
    0 0 0 30px rgba(249, 112, 21, 0.06);
}
.dawn .tm {
  position: relative;
  font-weight: 300;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: -1px;
}
.dawn .tm small {
  font-size: 0.8rem;
  letter-spacing: 0;
  margin-left: 0.15rem;
}
.dawn .sub {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink);
  background: rgba(253, 251, 248, 0.85);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  margin-top: 0.3rem;
  box-shadow: 0 2px 8px -4px rgba(110, 50, 20, 0.35);
}
.dawn .btns {
  z-index: 1;
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.dawn .btns button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0.38rem 0;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.dawn .btns .sn {
  background: rgba(253, 251, 248, 0.75);
  color: #4a2418;
}
.dawn .btns .st {
  background: var(--ink);
  color: var(--ivory);
}

/* languages */
.c-lang {
  background: linear-gradient(180deg, var(--ivory), var(--blush) 140%);
}
.tongues {
  margin-top: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tongue {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--line);
}
.tongue .w {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink);
}
.tongue .w.te {
  font-family: "Noto Serif Telugu", serif;
  font-size: 1.1rem;
}
.tongue .w.en {
  font-style: normal;
}
.tongue .k {
  font-size: 0.72rem;
  color: var(--ink-2);
}
.soon {
  margin-top: 0.5rem;
}
.soon .sl {
  font-size: 0.72rem;
  color: var(--rose-ink);
  font-family: var(--display);
}
.soon .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.soon .chips span {
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--rose) 70%, transparent);
  color: var(--rose-ink);
  opacity: 0.85;
}

/* kahani fan */
.kfan {
  position: relative;
  flex: 1;
  min-height: 110px;
  margin: 0.55rem 0 0.2rem;
}
.kfan .pst {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  max-height: 250px;
  aspect-ratio: 9/13;
  box-shadow: 0 16px 26px -16px rgba(60, 20, 10, 0.6);
}
.kfan .pst.l {
  transform: translate(-112%, -47%) rotate(-8deg) scale(0.9);
}
.kfan .pst.r {
  transform: translate(12%, -47%) rotate(8deg) scale(0.9);
}
.kfan .pst.c {
  transform: translate(-50%, -50%);
  z-index: 2;
}
@media (min-width: 1061px) {
  .kfan .pst.l .cap,
  .kfan .pst.r .cap {
    display: none;
  }
}
.pplay {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 44%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(253, 251, 248, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(253, 251, 248, 0.5);
  display: grid;
  place-items: center;
  opacity: 0;
}
.pplay::after {
  content: "";
  border-left: 9px solid #fdfbf8;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

/* status */
.sharebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.sharebar span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem 0.28rem 0.35rem;
  border-radius: 999px;
  background: var(--blush);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 500;
}
.sharebar i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.sharebar .wa i {
  background: #25a35a;
}
.sharebar .ig i {
  background: linear-gradient(45deg, #f97015, #c38e91 60%, #8a4e52);
}
.sharebar svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stories {
  position: relative;
  height: 100%;
  min-height: 210px;
}
.story {
  position: absolute;
  top: 50%;
  height: 86%;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 30px -18px rgba(80, 35, 20, 0.6);
}
.story.back {
  left: 50%;
  transform: translate(-8%, -50%) rotate(7deg);
  background: linear-gradient(180deg, #3f2340, #8a4e52 70%, #c38e91);
  height: 80%;
}
.story.front {
  left: 50%;
  transform: translate(-78%, -50%);
  z-index: 2;
  background: radial-gradient(
    110% 70% at 50% 18%,
    #fff6e4 0%,
    #ffd8a8 40%,
    #f99a4e 78%,
    #e4793a 100%
  );
  color: #5a1e06;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 9px 8px 10px;
}
.story .bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
}
.story .bars i {
  height: 2px;
  border-radius: 2px;
  background: rgba(90, 30, 6, 0.25);
  display: block;
}
.story .bars i:first-child {
  background: #5a1e06;
}
.story .hdr {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 6px;
  font-size: 0.6rem;
  font-weight: 600;
}
.story .hdr b {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(160deg, #c38e91, #8a4e52);
}
.story .rays {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 96px;
  transform: translateX(-50%);
  opacity: 0.5;
}
.story .g1 {
  position: relative;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.1;
  font-weight: 500;
  margin-top: 30px;
}
.story .g2 {
  position: relative;
  font-family: var(--display);
  font-size: 0.58rem;
  line-height: 1.3;
  margin-top: 3px;
  max-width: 90%;
}
.story .face {
  margin-top: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fdfbf8;
  overflow: hidden;
  background: linear-gradient(180deg, #e9b9a6, #c38e91);
  box-shadow: 0 4px 10px -4px rgba(90, 30, 6, 0.6);
}
.story .nm {
  font-size: 0.62rem;
  font-weight: 600;
  margin-top: 3px;
  color: #3e1206;
}
.story.back .moon {
  position: absolute;
  right: 18%;
  top: 18%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: -5px 3px 0 0 #fff3e2;
}
.story.back .dv {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  text-align: center;
  font-family: var(--display);
  color: #fff3e2;
  font-size: 0.85rem;
}

/* wallpaper */
.c-wall {
  padding: 1.35rem 1.4rem 1rem;
}
.fan {
  position: relative;
  flex: 1;
  min-height: 250px;
  margin: 0.6rem -1.4rem 0;
}
.fan::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--saffron) 18%, transparent),
    transparent
  );
}
.wp {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 90%;
  aspect-ratio: 9/19;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #2c1c17;
  box-shadow: 0 18px 30px -18px rgba(80, 35, 20, 0.6);
}
.wp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wp .ck {
  position: absolute;
  left: 0;
  right: 0;
  top: 9%;
  text-align: center;
  color: #fdfbf8;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.5px;
}
.wp .ck::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0e0806;
  margin: -10% auto 9%;
}
.wp.l {
  transform: translate(-100%, -47%) rotate(-9deg);
  z-index: 1;
}
.wp.r {
  transform: translate(0%, -47%) rotate(9deg);
  z-index: 1;
}
.wp.c {
  transform: translate(-50%, -50%);
  z-index: 2;
  height: 96%;
}
.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: var(--blush);
  border: 1px solid var(--line);
  margin-top: 0.7rem;
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.42rem 0;
  border-radius: 999px;
}
.seg button:hover:not(.on) {
  color: var(--ink);
}
.seg button.on {
  background: var(--ink);
  color: var(--ivory);
}

/* ringtone */
.ui-ring {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0.3rem;
  margin-top: 0.55rem;
}
.tr {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.24rem 0.4rem 0.24rem 0.26rem;
  border-radius: 12px;
  background: var(--blush);
  border: 1px solid transparent;
}
.tr .art {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fdfbf8;
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1;
}
.tr b {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tr small {
  display: block;
  font-size: 0.66rem;
  color: var(--ink-2);
  line-height: 1.2;
}
.tr .dur {
  font-size: 0.68rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tr.now {
  background: var(--ivory);
  border-color: color-mix(in srgb, var(--saffron) 45%, transparent);
}

/* kahani */
.pst {
  border-radius: 14px;
  overflow: hidden;
}
.pst svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pst .cap {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.6rem;
  color: #fdfbf8;
  font-family: var(--display);
  font-size: 0.82rem;
  line-height: 1.15;
}
.pst .cap small {
  display: block;
  font-family: var(--body);
  font-size: 0.62rem;
  opacity: 0.85;
}
.pst .bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(253, 251, 248, 0.3);
}
.pst .bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 62%;
  background: var(--saffron);
}
.pst::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(40, 15, 10, 0.65));
}
.pst .cap,
.pst .bar {
  z-index: 1;
}

@media (max-width: 1060px) {
  .inside {
    min-height: 0;
  }
  .inside .head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .card {
    min-height: 250px;
  }
  .bento {
    grid-template-areas: "status status" "alarm ring" "wall kahani" "lang lang";
  }
  .c-wall {
    min-height: 440px;
  }
  .kfan {
    min-height: 220px;
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "status" "alarm" "ring" "wall" "kahani" "lang";
  }
  .c-status {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .c-status {
    padding-bottom: 1.4rem;
  }
  .stories {
    min-height: 300px;
  }
  .c-wall {
    min-height: 470px;
  }
}

footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem 2.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--blush-2);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.footer-contact {
  font-style: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.4rem;
  line-height: 1.5;
}
.footer-label {
  font-family: var(--display);
  color: var(--ink);
}
.footer-address {
  flex-basis: 100%;
}
@media (max-width: 880px) {
  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-contact {
    flex-direction: column;
    gap: 0.2rem;
  }
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ph {
  color: #b94a00;
  background: color-mix(in srgb, var(--saffron) 10%, transparent);
  padding: 0 0.3rem;
  border-radius: 4px;
}

/* Legal pages */
.doc {
  max-width: 44rem;
  padding: 7rem 1.5rem 5rem;
  margin: 0 auto;
}
.doc .back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.doc .back:hover {
  color: var(--ink);
}
.doc h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.doc .upd {
  color: var(--ink-2);
  margin-top: 0.6rem;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.doc p,
.doc li {
  color: var(--ink-2);
  margin-top: 0.7rem;
}
.doc ul {
  padding-left: 1.2rem;
}
.doc li::marker {
  color: var(--rose);
}
.doc strong {
  color: var(--ink);
  font-weight: 600;
}

/* Footer brand name */
.footer-name {
  font-family: var(--display);
  color: var(--ink);
}
.footer-copy {
  font-size: 0.86rem;
}

/* Skip link (keyboard users) */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
}
.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
}
.window {
  margin: 0;
}
.site-footer {
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

/* Ringtone artwork tiles */
.art--saffron {
  background: linear-gradient(160deg, #f97015, #c24a0a);
}
.art--rose {
  background: linear-gradient(160deg, #c38e91, #8a4e52);
}
.art--dusk {
  background: linear-gradient(160deg, #3f2340, #8a4e52);
}

/* "Coming soon" language chips, each in its own script */
.script-bn {
  font-family: "Noto Serif Bengali", serif;
}
.script-deva {
  font-family: var(--display);
}
.script-ta {
  font-family: "Noto Serif Tamil", serif;
}
.script-kn {
  font-family: "Noto Serif Kannada", serif;
}
.script-gu {
  font-family: "Noto Serif Gujarati", serif;
}

/* Wallpaper preview: home-screen overlay (shown when "Home screen" is selected) */
.wp .ck,
.wp .hs {
  transition: opacity 0.25s ease;
}
.wp .hs {
  position: absolute;
  inset: 13% 9% 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
  gap: 9% 12%;
  opacity: 0;
}
.wp .hs i {
  aspect-ratio: 1;
  border-radius: 28%;
  background: rgba(253, 251, 248, 0.32);
  border: 1px solid rgba(253, 251, 248, 0.35);
}
.wp .hs .dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12%;
  padding: 7%;
  border-radius: 14px;
  background: rgba(253, 251, 248, 0.2);
}
[data-wallpaper-preview="home"] .wp .ck {
  opacity: 0;
}
[data-wallpaper-preview="home"] .wp .hs {
  opacity: 1;
}

/* Alarm demo: gentle sun pulse while the tone plays */
.dawn[data-state="playing"] .sun {
  animation: sunPulse 2.4s ease-in-out infinite;
}
@keyframes sunPulse {
  50% {
    box-shadow:
      0 0 0 20px rgba(249, 112, 21, 0.16),
      0 0 0 40px rgba(249, 112, 21, 0.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dawn[data-state="playing"] .sun {
    animation: none;
  }
}

/* Ringtone rows: deity face on the right */
.tr .deity {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  box-shadow:
    0 0 0 2px var(--ivory),
    0 2px 6px -2px rgba(110, 50, 20, 0.35);
}
.dawn .btns button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ------------------------------------------------------------------
 * Legal pages: section links, data table and contact block
 * ------------------------------------------------------------------ */
.doc {
  line-height: 1.7;
}
.doc h1 + p {
  margin-top: 1.4rem;
}
.doc h2 {
  scroll-margin-top: 1.5rem;
}
.doc ul {
  margin: 0.6rem 0 0;
}
.doc ul li {
  margin-top: 0.45rem;
  padding-left: 0.2rem;
}
.doc a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.toc {
  margin: 2rem 0 0.5rem;
  padding: 1.1rem 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--blush);
}
.toc-title {
  margin: 0 0 0.5rem !important;
  font-family: var(--display);
  color: var(--ink) !important;
  font-size: 1.05rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.3rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.95rem;
}
.toc li {
  margin: 0.2rem 0;
  break-inside: avoid;
  color: var(--ink-2);
}
.toc li::marker {
  color: var(--rose);
}
.toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}
@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

.legal-table {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.55;
}
.legal-table th,
.legal-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.legal-table thead th {
  border-top: 0;
  background: var(--blush);
  color: var(--ink);
  font-weight: 600;
}
.legal-table tbody th {
  color: var(--ink);
  font-weight: 600;
  width: 24%;
}
.legal-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--blush) 45%, transparent);
}
@media (max-width: 720px) {
  .legal-table thead {
    display: none;
  }
  .legal-table table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }
  .legal-table tr {
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--line);
  }
  .legal-table tbody tr:first-child {
    border-top: 0;
  }
  .legal-table th,
  .legal-table td {
    padding: 0;
    border: 0;
  }
  .legal-table tbody th {
    width: 100%;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 500;
  }
  .legal-table td {
    margin-top: 0.55rem;
  }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rose-ink);
  }
}

.legal-contact {
  margin: 0.8rem 0 0;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--blush);
}
.legal-contact div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}
.legal-contact div:first-child {
  border-top: 0;
}
.legal-contact dt {
  color: var(--ink-2);
}
.legal-contact dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

/* ------------------------------------------------------------------
 * Delete account data page
 * ------------------------------------------------------------------ */
.delete-form {
  margin: 2rem 0;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--blush);
}
.delete-form label {
  display: block;
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.delete-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--blush-2);
  border-radius: 12px;
}
.delete-form input::placeholder {
  color: var(--ink-2);
  opacity: 0.7;
}
.delete-form input:focus {
  outline: 2px solid var(--saffron);
  outline-offset: 1px;
  border-color: transparent;
}
.delete-form input[aria-invalid="true"] {
  border-color: #b94a00;
}
.doc .delete-error {
  margin-top: 0.45rem;
  color: #b94a00;
  font-size: 0.9rem;
}
.delete-form button {
  appearance: none;
  width: 100%;
  min-height: 52px;
  margin-top: 1.1rem;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 12px 28px -16px rgba(56, 34, 28, 0.6);
  transition: transform 0.2s;
}
.delete-form button:hover {
  transform: translateY(-1px);
}
.doc .delete-note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
}
.delete-done {
  text-align: center;
}
.delete-done:focus {
  outline: none;
}
.doc .delete-done-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--ink);
}
