:root {
  --bg: #241c14;
  --bg-elevated: #312417;
  --surface: rgba(255, 244, 227, 0.09);
  --surface-strong: rgba(255, 244, 227, 0.12);
  --surface-border: rgba(227, 179, 87, 0.28);
  --text: #fff4e6;
  --text-muted: rgba(255, 244, 230, 0.74);
  --text-subtle: rgba(255, 244, 230, 0.52);
  --saffron: #d9a640;
  --amber: #f2c36c;
  --rose: #a96863;
  --teal: #5c848d;
  --shadow: 0 26px 70px rgba(10, 7, 4, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(80rem 45rem at 5% -8%, rgba(237, 167, 97, 0.25), transparent 60%),
    radial-gradient(72rem 40rem at 95% -12%, rgba(153, 102, 107, 0.21), transparent 56%),
    linear-gradient(165deg, #261b12 0%, #2d1f14 38%, #1f1711 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.landing {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 222, 178, 0.08) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.18;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.landing-shell {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.ambient.one {
  width: 24rem;
  height: 24rem;
  left: -6rem;
  top: 9rem;
  background: radial-gradient(circle, rgba(239, 175, 84, 0.25), rgba(239, 175, 84, 0));
  animation: driftA 18s ease-in-out infinite;
}

.ambient.two {
  width: 18rem;
  height: 18rem;
  right: 8%;
  top: 30%;
  background: radial-gradient(circle, rgba(92, 132, 141, 0.2), rgba(92, 132, 141, 0));
  animation: driftB 22s ease-in-out infinite;
}

.ambient.three {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(169, 104, 99, 0.28), rgba(169, 104, 99, 0));
  animation: driftA 20s ease-in-out infinite reverse;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.8rem;
  background: linear-gradient(155deg, #f3ab67 0%, #e79252 54%, #e6be6a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 8px 22px rgba(235, 157, 74, 0.34);
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: rgba(255, 244, 227, 0.09);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.8rem;
  align-items: center;
  min-height: calc(100vh - 6.25rem);
  padding: 2.25rem 0 1.8rem;
}

body.landing .topbar {
  padding: 1rem 0 0.55rem;
}

body.landing .hero {
  flex: 1;
  min-height: 0;
  padding: 0.85rem 0 0.8rem;
}

body.landing .lead {
  max-width: 35ch;
}

body.landing .actions {
  margin-top: 1.25rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: rgba(255, 227, 171, 0.9);
  margin-bottom: 0.95rem;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 4.45rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 44ch;
  color: var(--text-muted);
  font-size: clamp(1.01rem, 2.2vw, 1.12rem);
  text-wrap: pretty;
}

.actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.72rem 1.18rem;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn.primary {
  background: linear-gradient(135deg, #d9a640 0%, #efbd67 100%);
  color: #281b0f;
  box-shadow: 0 10px 24px rgba(216, 159, 62, 0.37);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow: 0 16px 34px rgba(216, 159, 62, 0.45);
}

.btn.ghost {
  color: var(--text-muted);
  border-color: rgba(255, 244, 227, 0.24);
  background: rgba(255, 244, 227, 0.04);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  color: var(--text);
  border-color: rgba(255, 244, 227, 0.35);
  background: rgba(255, 244, 227, 0.08);
}

.hero-notes {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.hero-notes li {
  padding: 0.43rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 244, 227, 0.06);
  border: 1px solid rgba(255, 244, 227, 0.14);
  color: var(--text-subtle);
  font-size: 0.81rem;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 420px);
}

.device-shell {
  padding: 0.9rem;
  border-radius: 2.1rem;
  border: 1px solid rgba(255, 223, 173, 0.28);
  background: linear-gradient(145deg, rgba(255, 244, 227, 0.2), rgba(73, 46, 29, 0.28));
  box-shadow: var(--shadow);
  animation: float 9s ease-in-out infinite;
}

.device-screen {
  border-radius: 1.5rem;
  min-height: 27rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background:
    radial-gradient(12rem 9rem at 62% 13%, rgba(255, 238, 203, 0.35), transparent 72%),
    linear-gradient(170deg, #f3a165 0%, #f1bf68 56%, #cf844a 100%);
}

.device-screen::before {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  right: -3.2rem;
  top: -3.4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 239, 0.28), rgba(255, 250, 239, 0));
}

.device-screen::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  left: -2rem;
  bottom: -2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 193, 122, 0.38), rgba(255, 193, 122, 0));
}

.app-icon {
  width: min(64%, 220px);
  border-radius: 28px;
  border: 1px solid rgba(255, 247, 234, 0.35);
  box-shadow:
    0 16px 30px rgba(144, 78, 31, 0.25),
    0 0 0 1px rgba(255, 247, 234, 0.25) inset;
}

.screen-caption {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(54, 28, 10, 0.9);
  text-align: center;
  padding-inline: 1.3rem;
}

.section {
  padding: 3.4rem 0;
}

.section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  text-wrap: balance;
}

.section-intro {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  max-width: 56ch;
}

.feature-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  border: 1px solid var(--surface-border);
  border-radius: 1.2rem;
  padding: 1.2rem;
  background: linear-gradient(155deg, rgba(255, 244, 227, 0.09), rgba(255, 244, 227, 0.04));
  backdrop-filter: blur(6px);
}

.feature-tag {
  display: inline-block;
  padding: 0.25rem 0.58rem;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 228, 173, 0.9);
  border: 1px solid rgba(255, 228, 173, 0.35);
  border-radius: 999px;
}

.feature-card h3 {
  margin: 0.68rem 0 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.subscription-box {
  margin-top: 1.35rem;
  padding: 1.25rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 231, 183, 0.3);
  background: linear-gradient(160deg, rgba(255, 244, 227, 0.12), rgba(255, 244, 227, 0.05));
}

.subscription-box p {
  margin: 0;
  color: var(--text-muted);
}

.subscription-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.subscription-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-subtle);
  font-size: 0.94rem;
}

.subscription-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--saffron), var(--amber));
}

.footer {
  padding: 1.1rem 0 2rem;
  color: var(--text-subtle);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 244, 227, 0.12);
}

body.landing .footer {
  margin-top: auto;
  padding: 0.55rem 0 0.9rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  gap: 0.72rem;
}

.footer-links a {
  transition: color 0.24s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.85s ease forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

.delay-3 {
  animation-delay: 0.24s;
}

.delay-4 {
  animation-delay: 0.32s;
}

body.legal .topbar {
  padding-bottom: 0.7rem;
}

.legal-main {
  padding: 0.7rem 0 2.2rem;
}

.legal-shell {
  margin: 0 auto;
  width: min(920px, calc(100% - 3rem));
}

.legal-card {
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 228, 171, 0.26);
  padding: clamp(1.25rem, 2vw, 1.8rem);
  background: linear-gradient(170deg, rgba(255, 244, 227, 0.1), rgba(255, 244, 227, 0.05));
  box-shadow: var(--shadow);
}

.legal-title {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.5vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.legal-date {
  margin: 0.75rem 0 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
}

.legal-note {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
}

.legal-section {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 228, 171, 0.16);
}

.legal-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.legal-section p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
}

.legal-section ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.legal-section li {
  margin-top: 0.32rem;
}

.legal-links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.legal-links .btn {
  font-size: 0.88rem;
  padding: 0.56rem 0.9rem;
}

/* Subcut-style legal format (adapted to Dear Krishna palette) */
body.legal-page {
  background:
    radial-gradient(60rem 28rem at 0% -8%, rgba(239, 172, 97, 0.28), transparent 60%),
    radial-gradient(52rem 26rem at 100% -14%, rgba(150, 108, 112, 0.2), transparent 58%),
    #fffaf3;
  color: #2d251b;
  min-height: 100vh;
  line-height: 1.7;
}

body.legal-page::before {
  display: none;
}

.legal-gradient {
  background: linear-gradient(135deg, #f7d6a7 0%, #f7e1be 32%, #edc8a6 64%, #f1dcc8 100%);
}

.legal-nav {
  border-bottom: 1px solid rgba(123, 84, 42, 0.14);
}

.legal-nav-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: #463423;
  font-weight: 700;
}

.legal-home-link img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 18px rgba(165, 106, 51, 0.25);
}

.legal-back {
  border-radius: 999px;
  padding: 0.5rem 0.86rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #5f4a35;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.legal-back:hover,
.legal-back:focus-visible {
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
  outline: none;
}

.legal-hero {
  padding: 2.7rem 0 3rem;
}

.legal-hero-inner {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6.2vw, 3.6rem);
  color: #25180f;
}

.legal-eyebrow {
  margin: 0.55rem 0 0;
  color: rgba(79, 54, 33, 0.82);
  font-size: 1.04rem;
}

.legal-updated {
  margin: 0.2rem 0 0;
  color: rgba(79, 54, 33, 0.72);
  font-size: 0.94rem;
}

.legal-main {
  background: #ffffff;
  padding: 2.6rem 0 4.2rem;
}

.legal-main-inner {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
}

.legal-prose {
  font-size: 1.02rem;
  color: #473826;
}

.legal-prose section {
  margin-top: 2rem;
}

.legal-prose section:first-child {
  margin-top: 0;
}

.legal-prose h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  color: #25180f;
  letter-spacing: -0.01em;
}

.legal-prose h3 {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  color: #2f2113;
}

.legal-prose p {
  margin: 0.58rem 0 0;
  color: #4a3927;
}

.legal-prose ul,
.legal-prose ol {
  margin: 0.66rem 0 0;
  padding-left: 1.3rem;
  color: #4a3927;
}

.legal-prose li {
  margin-top: 0.24rem;
}

.legal-highlight {
  margin-top: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(212, 160, 92, 0.4);
  background: linear-gradient(140deg, rgba(251, 239, 216, 0.65), rgba(249, 227, 196, 0.45));
}

.legal-soft {
  margin-top: 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(189, 135, 63, 0.22);
  padding: 0.9rem 1rem;
  background: rgba(252, 246, 236, 0.78);
}

.legal-prose a {
  color: #a4661f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-prose a:hover,
.legal-prose a:focus-visible {
  color: #8e5514;
}

.legal-footer-links {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
}

.legal-footer-links .btn {
  font-size: 0.9rem;
  padding: 0.56rem 0.95rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.9rem;
    padding-top: 1.25rem;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 500px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  body.landing .hero {
    justify-items: center;
    text-align: center;
    gap: 1rem;
    padding-top: 0.35rem;
  }

  body.landing .lead {
    margin-inline: auto;
  }

  body.landing .hero-visual {
    display: none;
  }

  .legal-hero {
    padding: 2rem 0 2.3rem;
  }

  .legal-main {
    padding: 2rem 0 3rem;
  }
}

@media (max-width: 640px) {
  .container,
  .legal-shell {
    width: min(100%, calc(100% - 1.35rem));
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-notes {
    gap: 0.45rem;
  }

  .hero-notes li {
    font-size: 0.78rem;
  }

  .device-screen {
    min-height: 23.5rem;
  }

  .legal-nav-inner {
    width: min(100%, calc(100% - 1.2rem));
    padding: 0.85rem 0;
  }

  .legal-hero-inner,
  .legal-main-inner {
    width: min(100%, calc(100% - 1.2rem));
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes driftA {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-16px) translateX(10px);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(14px) scale(1.06);
  }
}
